State of charge detection method, device, energy storage device and medium

By obtaining the shutdown mark and buffering the state of charge when the energy storage device is powered on, and determining the actual state of charge of the battery based on the error code query results, the problem of failure to update the state of charge of the battery caused by software protection lag is solved, and storage is achieved The accurate charging state detection and display of the energy device improves the user experience.

CN115498295BActive Publication Date: 2024-11-15ECOFLOW INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211166801.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-23
Publication Date
2024-11-15
Estimated Expiration
2042-09-23

AI Technical Summary

Technical Problem

During the battery charging and discharging process, when the software protection lags behind the hardware protection, the hardware protection triggers after the battery is discharged to undervoltage. The controller cannot store the real remaining battery power in time before powering down, resulting in the energy storage device being unable to accurately record and display charges. state.

Method used

By obtaining the shutdown mark and buffering the state of charge when the energy storage device is powered on, if the shutdown mark is abnormal, query the error code to determine the actual state of charge of the battery to avoid the inability to update the state of charge in time when the power is shut down abnormally.

Benefits of technology

Ensure that energy storage equipment can accurately obtain and display the state of charge after power-on, improve user experience, and avoid equipment damage caused by inability to know the accurate state of charge.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115498295B_ABST
    Figure CN115498295B_ABST
Patent Text Reader

Abstract

The present application belongs to the field of energy technology, and in particular, relates to a charge state detection method, device, energy storage device and medium. The machine identification and normal shutdown identification; if the shutdown identification is an abnormal shutdown identification, query the error code according to the abnormal shutdown identification; determine the actual charge state of the battery according to the query result of the error code and the cached charge state. In this way, the charge state detection method provided by the present application can determine the actual charge state of the battery according to the query result of the shutdown identification and the error code of the energy storage device during the charging process, thereby avoiding the energy storage device from being unable to charge when it is abnormally shut down due to undervoltage. The state detection method includes: obtaining the shutdown identification and cached charge state stored in the energy storage device when the energy storage device is powered on, and the shutdown identification includes the abnormal shutdown. By timely recording the actual charge state, the user is unable to know and continues to use the energy storage device for discharge, thereby causing damage to the energy storage device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of new energy technologies, and in particular to a method, device, energy storage device and medium for detecting the state of charge of a battery pack. Background Art

[0002] With the decreasing oil resources and the increasingly serious environmental pollution, protecting the environment, saving energy and reducing emissions have become the current trend in the world. Against this background, in recent years, the number of mechanical equipment and energy storage products that use batteries as the main power source or part of the power source has gradually increased. It can be seen that under the current trend of technological development, the application field and degree of battery application are constantly increasing, and the importance of battery as an energy source is also gradually increasing.

[0003] The charge and discharge protection of the battery usually includes dual protection of hardware protection and software protection, and the software protection is usually triggered before the hardware protection. For most batteries, in order to save costs, the software protection part and the hardware protection part are not set on the same circuit board. For example, a hardware protection circuit is set on a certain circuit board and packaged together with the battery cell as a battery pack, and the software protection part such as BMS (BATTERY MANAGEMENT SYSTEM) chip is integrated on another circuit board and connected to the battery pack. The above-mentioned battery-related circuit boards are usually powered by batteries. When the battery pack is discharging, if the software protection lags behind the hardware protection, the battery will be discharged to undervoltage and then the hardware protection will be triggered to directly cut off the discharge circuit, causing the BMS chip to suddenly lose power. The actual remaining power of the battery cannot be stored before the BMS chip loses power. Summary of the invention

[0004] The main purpose of the present invention is to provide a method, device, energy storage device and medium for detecting the state of charge, so that the energy storage device can determine the actual state of charge of the battery according to the query results of the shutdown mark and error code after power-on.

[0005] According to one aspect of an embodiment of the present application, a method for detecting a state of charge is disclosed, which is applied to an energy storage device. The method includes:

[0006] When the energy storage device is powered on, a shutdown flag and a cache charge state stored in the energy storage device are obtained, wherein the shutdown flag includes an abnormal shutdown flag and a normal shutdown flag;

[0007] If the shutdown identifier is an abnormal shutdown identifier, querying an error code according to the abnormal shutdown identifier;

[0008] The actual state of charge of the battery is determined according to the query result of the error code and the cached state of charge.

[0009] In some embodiments of the present application, based on the above technical solution, determining the actual state of charge of the battery according to the error code query result and the cached state of charge includes:

[0010] If the error code is found, the acquired cache state of charge is determined as the actual state of charge of the battery.

[0011] In some embodiments of the present application, based on the above technical solution, after the error code is queried, the method further includes:

[0012] Detect the type of error code queried;

[0013] The type of the queried error code is compared with preset reference data to output a triggering reason for abnormal shutdown of the energy storage device.

[0014] In some embodiments of the present application, based on the above technical solution, determining the actual state of charge of the battery according to the error code query result and the cached state of charge includes:

[0015] If the error code is not found, the actual state of charge is assigned a value of zero.

[0016] In some embodiments of the present application, based on the above technical solution, after obtaining the shutdown flag during power-on, the method further includes:

[0017] The shutdown flag is reset to an abnormal shutdown flag.

[0018] In some embodiments of the present application, based on the above technical solution, after resetting the shutdown flag to an abnormal shutdown flag, the method further includes:

[0019] If a shutdown command is received, the current actual state of charge is stored as a cached state of charge;

[0020] Assigning the shutdown flag to a normal shutdown flag;

[0021] Execute the shutdown instruction.

[0022] In some embodiments of the present application, based on the above technical solution, the charge state detection method further includes:

[0023] Obtaining discharge parameters of the battery during the discharge process;

[0024] When the discharge parameter satisfies the undervoltage protection condition, storing the current actual state of charge as the cached state of charge, and saving the corresponding error code according to the type of the discharge parameter that satisfies the undervoltage protection condition;

[0025] Execute undervoltage protection operation.

[0026] According to another aspect of an embodiment of the present application, a method for detecting a state of charge is disclosed, which is applied to an energy storage device. The method includes:

[0027] Acquire a shutdown flag and a cached charge state of the battery when powering on, wherein the shutdown flag includes a normal shutdown flag and an abnormal shutdown flag;

[0028] When the shutdown flag is a normal shutdown flag, determining the cache charge state as the actual charge state of the battery;

[0029] When the shutdown mark is an abnormal shutdown mark, the actual state of charge is determined to be zero.

[0030] According to one aspect of an embodiment of the present application, a charge state detection device is disclosed, comprising:

[0031] An acquisition module is configured to acquire a shutdown identifier and a cache charge state stored in the energy storage device when the energy storage device is powered on, wherein the shutdown identifier includes an abnormal shutdown identifier and a normal shutdown identifier;

[0032] a query module configured to query an error code according to the abnormal shutdown identifier if the shutdown identifier is an abnormal shutdown identifier;

[0033] The determination module is configured to determine the actual state of charge of the battery according to the query result of the error code and the cached state of charge.

[0034] According to one aspect of an embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the state of charge detection method in the above technical solution.

[0035] In the charge state detection method provided in the present application, the energy storage device can read the shutdown flag and charge state stored in the energy storage device after power-on, wherein the shutdown flag includes an abnormal shutdown flag corresponding to an abnormal shutdown, and a normal shutdown flag corresponding to a shutdown action executed according to a shutdown instruction, and the charge state is used to reflect the remaining power of the energy storage device. When the shutdown flag is an abnormal shutdown flag, the error code used to record the triggering cause of the abnormal shutdown is queried, and finally, the cached charge state previously queried is judged to be accurate based on the query result of the error code, and the actual charge state of the battery is finally determined.

[0036] In this way, the charge state detection method provided in the present application can enable the energy storage device to determine the actual charge state of the battery according to the query results of the shutdown identification and error code after power-on, thereby avoiding the energy storage device being unable to timely record / update the accurate charge state when the energy storage device is abnormally shut down due to undervoltage, resulting in the energy storage device being unable to obtain and display the accurate charge state after power-on, which is beneficial to improving the user experience.

[0037] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0039] Figure 1 A schematic diagram of an application environment of the technical solution of an embodiment of the present application is shown.

[0040] Figure 2 A flowchart of the steps of a method for detecting the state of charge of an energy storage device in one embodiment of the present application is shown.

[0041] Figure 3 A flowchart showing the steps of a method for detecting the state of charge of an energy storage device in another embodiment of the present application is shown.

[0042] Figure 4 The structural block diagram of the charge state detection device provided in an embodiment of the present application is schematically shown.

[0043] Figure 5 The structural block diagram of the energy storage device provided in the embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0044] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0045] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0046] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0047] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0048] The following is a detailed description of the technical solutions such as the charge state detection method, device, power conversion device and storage medium provided in the present application in combination with specific implementation methods.

[0049] Figure 1 A schematic diagram of an application environment of the technical solution of the embodiment of the present application is shown. Figure 1 As shown, the battery pack 10 can discharge to the outside through the power conversion circuit 40 or be charged by the external power source 30. The battery pack 10 is generally also provided with a BMS board 20 for managing the charge and discharge of the battery pack 10.

[0050] like Figure 1 As shown, the battery pack 10 may be composed of a plurality of battery cells 11. For example, the battery cells 11 may be connected in series to form the battery pack 10. It is understood that the battery cells 11 may also be connected in parallel or in other combinations to form the battery pack 10, which is not limited in the present application.

[0051] The BMS board 20 electrically connected to the battery pack 10 is generally disposed adjacent to the battery pack 10, and the BMS board 20 includes a charge and discharge switch tube 22 disposed on the discharge circuit of the battery pack 10. For example, Figure 1As shown, the charge and discharge switch tube 22 can be a MOS tube (Metal-Oxide-Semiconductor Field-Effect Transistor, MOSFET). In other embodiments, it can also be other devices with switching functions, such as IGBT tubes (Insulated Gate Bipolar Transistor) or triodes, etc. The BMS board 20 is also provided with an AFE chip (analog front end) 21 for detecting battery charging parameters, for example, for collecting the voltage, current temperature, and temperature of the charge and discharge switch tube 22 of each battery cell in the battery pack, and controlling the on or off of the charge and discharge switch tube 22. It can be understood that the AFE chip 21 can accurately detect different charging parameters of the battery pack 10 on the BMS board 20. For example, the voltage, current, and temperature of the charge and discharge switch tube 22 of a single battery cell 11.

[0052] The power conversion circuit 40 can be set on a circuit board to realize voltage conversion functions, such as AC-DC conversion, or DC conversion, to charge the battery pack 10, or discharge the power of the battery pack 10 to the outside. The battery pack 10 is discharged to the outside and charged through the charge and discharge switch tube 22 on the BMS board 20 and the power conversion circuit 40. The external power supply 30 charges the battery pack 10 through the power conversion circuit 40, and an interface can be set on the circuit board where the power conversion circuit 40 is located to connect to the external power supply 30.

[0053] It can be understood that the above-mentioned power conversion circuit 40, BMS board 20 and battery pack 10 can be integrated in the same device to form an energy storage device, or they can be independent devices to form an energy storage system. Exemplarily, the BMS board 20 and the battery pack 10 can form an independent energy storage device, and the circuit board where the power conversion circuit 40 is located can be an independent inverter device. Different interfaces are set on the inverter device to access the energy storage device formed by the battery pack 10, other external power supplies and loads. The energy storage device is connected to the inverter device, and the inverter device supplies power to the load, or receives charging from an external power supply. Thus, the external power supply, the inverter device, and the energy storage device form an energy storage system.

[0054] It can be understood that the power conversion circuit 40 may also include a controller ( Figure 1 ), which is used to execute the charging control method of each embodiment of the present application.

[0055] It can be understood that in some other embodiments, the power conversion circuit 40 can also be set on different circuit boards. For example, the relevant circuits of the AC-DC conversion part are set on the first circuit board to realize the AC-DC conversion function, and the relevant circuits of the DC-DC conversion part are set on the second circuit board to realize the DC conversion function.

[0056] It should be noted that in relevant battery technologies, battery charge and discharge protection usually includes dual protections, hardware protection and software protection, and software protection is usually triggered before hardware protection. When the battery pack is discharged, if the software protection lags behind the hardware protection, the battery will be discharged to undervoltage and then trigger the hardware protection and shut down directly. The actual remaining power of the battery cannot be stored before the controller loses power.

[0057] Specifically, taking lithium iron phosphate cells as an example, the undervoltage point of a single cell is 2.5V, of which the software undervoltage protection point is 2.7V and the hardware undervoltage protection point is 2.5V. Figure 1 For example, the circuit board where the hardware protection circuit is located, such as the BMS board 20, is usually directly connected to each battery cell 11 in the battery pack 10. The controller that implements software protection is usually located on the power conversion circuit 40, and is usually connected to the battery pack 10 only through the positive and negative electrodes, namely P+, P- and B+, B_. Assuming that the total voltage of the battery pack 10 with 4 strings of battery cells 11 reaches about 10.8V, the average voltage of a single battery cell 11 that the software can only obtain through the total voltage is 2.7V, which does not reach the software undervoltage protection point. However, if the hardware directly detects that the voltage of one of the battery cells 11 is lower than 2.5V, that is, it reaches the hardware undervoltage protection point, the hardware protection of the battery pack 10 will be triggered, and the charge and discharge switch tube 22 on the battery pack 10 will be directly disconnected. At this time, the controller powered by the battery pack 10 will be directly powered off, and there will be no time to store the current SOC value in the memory, such as FLASH. When the device is powered on next time, it directly reads the stored historical SOC value. At this time, the SOC value cannot truly reflect the state of charge of the battery pack. For example, if the historical SOC value stored in FLASH is 100, and battery pack 10 is discharged from SOC value 100 to undervoltage shutdown, the controller suddenly loses power due to triggering hardware protection, and the SOC value in FLASH cannot be updated in time before shutdown. Then, battery pack 10 will be discharged completely, causing the device to shut down due to undervoltage, but the SOC will still be displayed as 100 when it is powered on again.

[0058] In order to solve the above problems, Figure 2 A flow chart showing the steps of a method for detecting a state of charge in one embodiment of the present application is shown. Figure 1 As shown, the state of charge detection method is applied to a controller, and the state of charge detection method may mainly include the following steps S100 to S300.

[0059] The following is a detailed description of each method step in the charge state detection method.

[0060] Step S100, when the energy storage device is powered on, obtaining a shutdown flag and a cache charge state stored in the energy storage device.

[0061] Specifically, the shutdown flag may include an abnormal shutdown flag and a normal shutdown flag. Exemplarily, the shutdown flag may be an identification bit, 1 indicates a normal shutdown, and 0 indicates an abnormal shutdown. Each time the controller detects a shutdown command, it will perform relevant operations before shutdown, such as storage of relevant status information, such as SOC storage, etc., and after performing the above-mentioned related operations, the shutdown flag will be set to 1, and finally the power will be turned off and shut down. Here, the shutdown command includes a shutdown command triggered by the user. For example, the shutdown operation is triggered by the user through a related shutdown button or application. It can be understood that each time the shutdown flag is read, it will be reset to 0. Therefore, if the shutdown is triggered by the shutdown command again, the shutdown flag will be set to 1 to indicate that the shutdown is a normal shutdown. If the shutdown is caused by a sudden power outage, the controller will not have time to set the shutdown flag, and the shutdown flag will remain at 0, indicating that the shutdown is not a normal shutdown.

[0062] Each time the energy storage device is powered on, the controller obtains the stored shutdown flag and cached charge state, and can determine whether the last shutdown was a normal shutdown based on the shutdown flag, and then clarify the cached charge state obtained. Here, the cached charge state is the charge state stored in the energy storage device. If the energy storage device is shut down normally, the cached charge state is the actual charge state of the energy storage device when it is powered on again.

[0063] Step S200: If the shutdown identifier is an abnormal shutdown identifier, query an error code according to the abnormal shutdown identifier.

[0064] Specifically, when the shutdown mark is an abnormal shutdown mark, it means that the last shutdown was not a normal shutdown triggered after receiving the shutdown command. At this time, the controller can query the error code used to record the triggering cause of the abnormal shutdown. It can be understood that the error code is set by the controller, and different error codes are used for different shutdown types, that is, different protection types. Each time the controller detects that the conditions for charge and discharge protection are met, the corresponding error code will be set and the corresponding protection will be triggered, such as stopping charging or discharging. At the same time, the current actual remaining power will be stored as the cached charge state. That is, even if the energy storage device is shut down abnormally, if the energy storage device has generated an error code before the power is turned off and shut down, it means that the controller has stored a reliable SOC in time before shutdown.

[0065] Step S300, determining the actual state of charge of the battery according to the query result of the error code and the cached state of charge.

[0066] Specifically, as mentioned above, depending on whether the error code can be queried, it can be determined whether the energy storage device recorded the actual remaining power in time when it was last shut down, and ultimately determine whether the current cache charge state is accurate and the actual charge state of the battery.

[0067] The state of charge detection method provided by the present application reads the shutdown flag and charge state stored in the energy storage device when the energy storage device is powered on, wherein the shutdown flag includes an abnormal shutdown flag generated corresponding to an abnormal shutdown, and a normal shutdown flag generated corresponding to a shutdown action executed according to a shutdown instruction, and the charge state is used to reflect the remaining power of the energy storage device. When the shutdown flag is an abnormal shutdown flag, the error code used to record the triggering cause of the abnormal shutdown is queried, and finally, the cached charge state previously queried is judged to be accurate based on the query result of the error code, and the actual charge state of the battery is finally determined.

[0068] In this way, the state of charge detection method provided by the present application can determine the actual state of charge of the battery according to the query results of the shutdown mark and error code of the energy storage device during the charging process, thereby avoiding the situation where the energy storage device cannot update the accurate state of charge in time when it is abnormally shut down due to undervoltage, resulting in the energy storage device being unable to obtain and display the accurate state of charge after powering on, which is conducive to improving the user experience. In addition, the method provided in the embodiment of the present application can also prevent users from continuously using the energy storage device to discharge due to the inability to know the accurate state of charge, thereby causing damage to the energy storage device.

[0069] Further, based on the above embodiment, the above step S300 of determining the actual state of charge of the battery according to the query result of the error code and the cached state of charge includes the following step S301.

[0070] Step S301: If the error code is found, the acquired cache state of charge is determined as the actual state of charge of the battery.

[0071] When the energy storage device can query the error code that records the triggering cause of the abnormal shutdown according to the abnormal shutdown identifier, it means that before the energy storage device was shut down for the last time, the controller has recorded the status before the shutdown, that is, the remaining battery power at that time was recorded as the cached charge state. Therefore, the obtained cached charge state is accurate and can reflect the actual remaining battery power. The cached charge state is determined as the actual charge state of the battery.

[0072] It should be noted that in some embodiments, after the energy storage device obtains an error code when it is powered on, the stored error code is cleared to facilitate recording of new error codes generated when the device is shut down abnormally again, and to avoid the historical cached error code affecting subsequent detection processes.

[0073] Further, based on the above embodiment, after the error code is queried in the above step S301, the method further includes the following steps S302 and S303.

[0074] Step S302, detecting the type of the queried error code.

[0075] Step S303: compare the type of the queried error code with preset reference data to output a triggering reason for abnormal shutdown of the energy storage device.

[0076] Specifically, different triggering reasons that cause the energy storage device to shut down abnormally correspond to different types of error codes. Therefore, the specific triggering reason can be determined according to the type of error code for user reference. For example, if the energy storage device triggers the discharge high temperature protection due to excessive temperature during discharge, resulting in abnormal shutdown, error code A is generated; if the energy storage device triggers the discharge low temperature protection due to excessive temperature during discharge, resulting in abnormal shutdown, error code B is generated; if the energy storage device triggers the discharge overcurrent protection due to excessive current during discharge, resulting in abnormal shutdown, error code C is generated; if the energy storage device triggers the undervoltage protection due to excessive voltage during discharge, resulting in abnormal shutdown, error code D is generated.

[0077] In this way, this embodiment can output the specific triggering cause of the abnormal shutdown of the energy storage device according to the type of error code for user reference, thereby improving the practicality and user experience of the technical solution of the present application.

[0078] Further, based on the above embodiment, the above step S300 of determining the actual state of charge of the battery according to the query result of the error code and the cached state of charge also includes the following step S304.

[0079] Step S304: if the error code is not found, the actual state of charge is assigned a value of zero.

[0080] Specifically, if the energy storage device fails to query the error code according to the abnormal shutdown identifier, it means that the energy storage device was shut down last time due to undervoltage triggering hardware protection, and the controller failed to record the actual remaining power of the battery as the cached charge state in time. Therefore, the queried cached charge state is not accurate, and the battery pack is actually in a state of undervoltage and cannot be discharged, so the actual charge state of the battery is assigned to zero.

[0081] Further, based on the above embodiment, after acquiring the shutdown flag at power-on in the above step S100, the method further includes the following step S101.

[0082] Step S101, resetting the shutdown flag to an abnormal shutdown flag.

[0083] Specifically, after obtaining the shutdown identifier, the energy storage device resets the shutdown identifier to an abnormal shutdown identifier, so that even if the energy storage device is abnormally shut down due to some reason in the current state and the shutdown state cannot be recorded, the shutdown identifier can be obtained as an abnormal shutdown identifier when it is powered on next time, thereby determining that the current shutdown of the energy storage device is an abnormal shutdown.

[0084] Further, based on the above embodiment, after resetting the shutdown flag to an abnormal shutdown flag in the above step S101, the method further includes the following steps S102 to S104.

[0085] Step S102: if a shutdown instruction is received, the current actual state of charge is stored as a cached state of charge.

[0086] Step S103: assigning the shutdown flag to a normal shutdown flag.

[0087] Step S104, executing the shutdown instruction.

[0088] Specifically, after the energy storage device resets the shutdown flag to the abnormal shutdown flag, that is, the initial state of the shutdown flag is the abnormal shutdown flag. Upon receiving the shutdown command, the controller executes the normal shutdown process, stores and records the actual state of charge of the battery, that is, the current remaining power, and assigns the shutdown flag to the normal shutdown flag, so that the next time the power is turned on, it can identify this shutdown as a normal shutdown, and then execute the shutdown command.

[0089] Furthermore, based on the above embodiment, the method further includes the following steps S401 to S403.

[0090] Step S401, obtaining discharge parameters of the battery during the discharge process.

[0091] Step S402, when the discharge parameter meets the under-voltage protection condition, storing the current actual state of charge as the cached state of charge, and saving the corresponding error code according to the type of the discharge parameter that meets the under-voltage protection condition.

[0092] Step S403, executing an undervoltage protection operation.

[0093] Specifically, when the energy storage device is discharging, if it is detected that the battery voltage is lower than the undervoltage protection threshold, that is, the discharge parameters meet the undervoltage protection conditions, the undervoltage protection is triggered, the actual state of charge of the battery is stored and recorded, and an error code corresponding to the undervoltage protection is generated, and then the undervoltage protection operation is executed to shut down. The above process is the normal shutdown process after the controller triggers the undervoltage protection.

[0094] It should be noted that the above-mentioned undervoltage protection threshold is usually set to an empirical value of 2.7V, and can also be set to other values ​​in other embodiments, which are not specifically limited here; and the undervoltage protection condition can be that the battery voltage is continuously lower than the undervoltage protection threshold for a certain period of time. For example, if the battery voltage is continuously lower than 2.7V for 300ms, the discharge parameters are deemed to meet the undervoltage protection conditions.

[0095] Furthermore, if Figure 3 As shown, another embodiment of the present application discloses a method for detecting a state of charge, which is applied to an energy storage device. The method includes the following steps S501 to S503.

[0096] Step S501 , obtaining a shutdown flag and a cached charge state of a battery when power is turned on, wherein the shutdown flag includes a normal shutdown flag and an abnormal shutdown flag.

[0097] Step S502: when the shutdown flag is a normal shutdown flag, determining the cache charge state as the actual charge state of the battery.

[0098] Step S503: when the shutdown mark is an abnormal shutdown mark, the actual charge state is determined to be zero.

[0099] The present embodiment is different from the above-mentioned embodiments in that, in the present embodiment, the shutdown flag is not set immediately after receiving the shutdown command, but is set after recording the remaining battery power as the cached charge state after receiving the shutdown command, and then the shutdown action is performed. Alternatively, when the energy storage device triggers hardware protection / software protection due to other factors such as overtemperature, low temperature or overcurrent during the discharge process, the remaining battery power will be recorded as the cached charge state first, and then the shutdown flag will be set to the normal shutdown flag, and then the shutdown action will be performed. That is, at this time, it can be directly determined whether the correct remaining battery power is recorded before shutdown through the shutdown flag. As long as the energy storage device can record the remaining battery power as the cached charge state before shutdown, the shutdown flag will be set to the normal shutdown flag. When the energy storage device suddenly loses power and shuts down due to triggering the undervoltage protection, it is impossible to record the remaining battery power as the cached charge state before shutdown. At this time, the shutdown flag is not set and will be in a reset state, that is, an abnormal shutdown flag. On this basis, when the energy storage device is powered on next time, if the controller reads the shutdown mark as a normal shutdown mark from the memory, it is determined that the cached charge state is accurate, and the cached charge state is determined as the actual charge state of the battery; if the shutdown mark read is an abnormal shutdown mark, it can be determined that the energy storage device must not have stored the actual remaining power of the battery before the last shutdown, and the cached charge state is not accurate, so the actual charge state is determined to be zero.

[0100] In this way, the energy storage device in this embodiment can directly determine whether the cache charge state is accurate and determine the actual charge state of the battery based on the shutdown flag without combining the error code, thereby reducing the calculation steps and calculation costs required to determine the actual charge state, and has high practicality in actual applications.

[0101] The following introduces an embodiment of a device of the present application, which can be used to execute the state of charge detection method in the above-mentioned embodiment of the present application. Figure 4 The structure block diagram of the charge state detection device provided in the embodiment of the present application is schematically shown. Figure 4 As shown, the charge state detection device 400 includes:

[0102] The acquisition module 410 is configured to acquire a shutdown flag and a cache charge state stored in the energy storage device when the energy storage device is powered on, wherein the shutdown flag includes an abnormal shutdown flag and a normal shutdown flag;

[0103] The query module 420 is configured to query an error code according to the abnormal shutdown identifier if the shutdown identifier is an abnormal shutdown identifier;

[0104] The determination module 430 is configured to determine the actual state of charge of the battery according to the query result of the error code and the cached state of charge.

[0105] In one embodiment of the present application, based on the above embodiment, the determination module includes:

[0106] The first determining unit is configured to determine the acquired cache charge state as the actual charge state of the battery if the error code is queried.

[0107] In one embodiment of the present application, based on the above embodiment, the determination module further includes:

[0108] The comparison unit is configured to detect the type of the queried error code; and compare the type of the queried error code with preset reference data to output a triggering reason for the abnormal shutdown of the energy storage device.

[0109] In one embodiment of the present application, based on the above embodiment, the determination module further includes:

[0110] The second determining unit is configured to assign the actual state of charge to zero if the error code is not found.

[0111] In one embodiment of the present application, based on the above embodiment, the acquisition module includes:

[0112] The resetting unit is configured to reset the shutdown flag to an abnormal shutdown flag.

[0113] In one embodiment of the present application, based on the above embodiment, the acquisition module further includes:

[0114] The assignment unit is configured to, if a shutdown instruction is received, store the current actual charge state as the cache charge state; and assign the shutdown identifier to a normal shutdown identifier; and execute the shutdown instruction.

[0115] In one embodiment of the present application, based on the above embodiment, the charge state detection module further includes:

[0116] An error code saving module is configured to obtain the discharge parameters of the battery during the discharge process; and when the discharge parameters meet the undervoltage protection conditions, store the current actual charge state as the cache charge state, and save the corresponding error code according to the type of discharge parameters that meet the undervoltage protection conditions; and perform the undervoltage protection operation.

[0117] The present application also provides an energy storage device that can be used to execute the state of charge detection method in the above embodiments of the present application. The energy storage device includes: a battery module, a memory, a processor, and a state of charge detection program stored in the memory and executable on the processor, and when the state of charge detection program is executed by the processor, the state of charge detection method of the battery pack described in the above embodiments is implemented.

[0118] like Figure 5 As shown, the energy storage device 500 includes not only a battery module 510 , a memory 520 , and a processor 530 , but also a power conversion module 540 and a first interface 550 . The first interface 550 can be used to connect to an external power source to charge the battery module 510 .

[0119] It can be understood that in this embodiment, the battery module 510 can be an integrated Figure 1 The battery pack 10 of the BMS board shown includes a plurality of battery cells 11 and a BMS board 20 .

[0120] It is understood that the power conversion module 540 may be as follows Figure 1 The power conversion circuit shown, the processor 530 and the memory 520 may be arranged on a circuit board where the power conversion circuit is located, or may be arranged on other circuit boards in the energy storage device.

[0121] It is understandable that the energy storage device 500 may include more or fewer modules. For example, the power conversion module 540 may be used as an independent power conversion device connected to the energy storage device 500, and the present application does not impose any limitation on this.

[0122] In particular, according to an embodiment of the present application, the processes described in the various method flow charts may be implemented as computer software programs. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, the computer program containing program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed over a network, and / or installed from a removable medium. When the computer program is executed by a processor, various functions defined in the state of charge detection device or energy storage device of the present application are executed.

[0123] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0124] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0125] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0126] Through the description of the above implementation modes, it is easy for those skilled in the art to understand that the example implementation modes described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation mode of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation mode of the present application. After considering the specification and practicing the invention disclosed here, those skilled in the art will easily think of other implementation modes of the present application.

[0127] This application is intended to cover any modifications, uses or adaptive changes of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the technical field that are not disclosed in this application.

[0128] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for detecting a state of charge, applied to an energy storage device, characterized in that: The state of charge detection method comprises: When the energy storage device is powered on, a shutdown identifier and a cache charge state stored in the energy storage device are obtained, wherein the shutdown identifier includes an abnormal shutdown identifier and a normal shutdown identifier; if the shutdown identifier is an abnormal shutdown identifier, an error code is queried according to the abnormal shutdown identifier, wherein the abnormal shutdown identifier is used to indicate that the previous shutdown of the energy storage device was a normal shutdown triggered by not receiving a shutdown instruction, and the error code is used to record the triggering cause of the abnormal shutdown; If the error code is queried, the acquired cache charge state is determined as the actual charge state of the battery, and the cache charge state is the actual charge state when the energy storage device meets the undervoltage protection condition; If the error code is not found, the actual state of charge is assigned a value of zero.

2. The method for detecting the state of charge according to claim 1, wherein: After the error code is queried, the method further includes: Detect the type of error code queried; The type of the queried error code is compared with preset reference data to output a triggering reason for abnormal shutdown of the energy storage device.

3. The method for detecting the state of charge according to claim 1, wherein: After obtaining the shutdown flag during power-on, the method further includes: The shutdown flag is reset to an abnormal shutdown flag.

4. The method for detecting the state of charge according to claim 3, wherein: After resetting the shutdown flag to an abnormal shutdown flag, the method further includes: If a shutdown command is received, the current actual state of charge is stored as a cached state of charge; Assigning the shutdown flag to a normal shutdown flag; Execute the shutdown instruction.

5. The method for detecting the state of charge according to claim 1, wherein: The state of charge detection method further includes: Obtaining discharge parameters of the battery during the discharge process; When the discharge parameter satisfies the undervoltage protection condition, storing the current actual state of charge as the cached state of charge, and saving the corresponding error code according to the type of the discharge parameter that satisfies the undervoltage protection condition; Execute undervoltage protection operation.

6. A method for detecting a state of charge, applied to an energy storage device, characterized in that: The state of charge detection method comprises: Acquire a shutdown flag and a cached charge state of the battery when powering on, wherein the shutdown flag includes a normal shutdown flag and an abnormal shutdown flag, and the abnormal shutdown flag is used to indicate that the previous shutdown of the energy storage device was a normal shutdown triggered by not receiving a shutdown instruction; When the shutdown flag is a normal shutdown flag, determining the cache charge state as the actual charge state of the battery; When the shutdown mark is an abnormal shutdown mark, the actual state of charge is determined to be zero.

7. An energy storage device, characterized in that: The energy storage device includes: a battery module, a memory, a processor, and a state of charge detection program stored in the memory and executable on the processor, wherein the state of charge detection program, when executed by the processor, implements the state of charge detection method according to any one of claims 1 to 6.

8. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the charge state detection method according to any one of claims 1 to 6 is implemented.