Method and device for detecting available capacity of energy storage unit, equipment and storage medium
By acquiring the charge and discharge information of the energy storage unit from the first power state to the opposite state, determining the available capacity of the energy storage unit based on this information, the problems of high detection difficulty and low accuracy in the prior art are solved, and high accuracy and low cost detection are achieved.
Patent Information
- Application Number
- CN202411447289.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-03-07
Smart Images

Figure CN119575001A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of energy storage technology, and in particular, relates to a method, device, equipment and storage medium for detecting the available capacity of an energy storage unit. Background Art
[0002] The integrated energy system integrates a variety of energy supply, conversion, storage and consumption units, and can integrate and utilize a variety of energy sources to achieve efficient utilization and comprehensive optimization of energy through energy conversion and energy storage. Among them, the actual available capacity (that is, the actual maximum capacity) of the energy storage unit in the integrated energy system plays a vital role in the intelligent operation of the integrated energy system.
[0003] However, since many factors such as the service life of the energy storage unit, the number of times it is used, the way it is used, and the environment faced by the energy storage unit will all cause capacity loss of the energy storage unit, it is difficult to determine the actual available capacity of the energy storage unit. In the prior art, when detecting the actual available capacity of an energy storage unit, it is generally necessary to use professional detection equipment in a specific environment for detection. Due to the difference between the specific environment and the actual operating environment of the energy storage unit, there is a large error between the detected available capacity of the energy storage unit and the maximum capacity that the energy storage unit can actually store. The above method is difficult to detect the available capacity of the energy storage unit and has low accuracy. Summary of the invention
[0004] The embodiment of the present application provides an implementation scheme different from the prior art to solve the technical problem in the prior art that it is difficult and has low accuracy to detect the available capacity of an energy storage unit.
[0005] In a first aspect, the present application provides a method for detecting the available capacity of an energy storage unit, comprising: obtaining a first moment when the energy storage unit is in a first power state, the first power state being an empty power state or a full power state, wherein if the discharge power of the energy storage unit during discharge is 0, then the first power state is an empty power state, and if the charging power of the energy storage unit during charging is 0, then the first power state is a full power state; if it is detected that at a second moment after the first moment, the energy storage unit is in a state opposite to the first power state, then obtaining charging and discharging information between the first moment and the second moment; determining the available capacity of the energy storage unit based on the charging and discharging information; wherein the duration between the first moment and the second moment is not greater than a preset duration.
[0006] In a second aspect, the present application provides a device for detecting the available capacity of an energy storage unit, comprising: an acquisition unit, used to acquire a first moment when the energy storage unit is in a first power state, the first power state being an empty power state or a full power state, wherein if the discharge power of the energy storage unit during discharge is 0, then the first power state is an empty power state, and if the charging power of the energy storage unit during charging is 0, then the first power state is a full power state; a detection unit, used to acquire charging and discharging information between the first moment and the second moment if it is detected that at a second moment after the first moment, the energy storage unit is in an opposite state to the first power state; a determination unit, used to determine the available capacity of the energy storage unit based on the charging and discharging information; wherein the duration between the first moment and the second moment is not greater than a preset duration.
[0007] In a third aspect, the present application provides an electronic device comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any method in the first aspect or any possible implementation manner of the first aspect by executing the executable instructions.
[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the computer program implements any method in the first aspect or any possible implementation manner of the first aspect.
[0009] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the method described in the first aspect or any possible implementation manner of the first aspect.
[0010] The solution provided by the present application is to obtain the first moment when the energy storage unit is in the first power state, the first power state is an empty power state or a full power state, wherein, if the discharge power of the energy storage unit during the discharge period is 0, the first power state is an empty power state, and if the charging power of the energy storage unit during the charging period is 0, the first power state is a full power state; if it is detected that the energy storage unit is in the opposite state of the first power state at the second moment after the first moment, the charge and discharge information between the first moment and the second moment is obtained; based on the charge and discharge information, the available capacity of the energy storage unit is determined; wherein the duration between the first moment and the second moment is not greater than the preset duration. The solution. By obtaining the charge and discharge information of the energy storage unit from the first power state to the opposite state of the first power state, based on the charge and discharge information of the actual operation of the energy storage unit, the available capacity of the energy storage unit in the actual operation environment at the current moment is determined, so that the accuracy of the available capacity of the energy storage unit obtained is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0012] Figure 1 A schematic flow chart of a method for detecting the available capacity of an energy storage unit provided in one embodiment of the present application;
[0013] Figure 2 A schematic diagram of a process for determining available capacity based on charging and discharging information of an energy storage unit is provided for an embodiment of the present application;
[0014] Figure 3 A schematic diagram of another process for determining available capacity based on charge and discharge information of an energy storage unit provided in an embodiment of the present application;
[0015] Figure 4 A schematic diagram of the structure of a device for detecting the available capacity of an energy storage unit provided in one embodiment of the present application;
[0016] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0017] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, but cannot be understood as limiting the present application.
[0018] The terms "first" and "second" etc. in the specification, claims and drawings of the embodiments of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0019] The integrated energy system integrates a variety of energy supply, conversion, storage and consumption units, and can integrate and utilize a variety of energy sources to achieve efficient utilization and comprehensive optimization of energy through energy conversion and energy storage. Among them, the actual available capacity of the energy storage unit in the integrated energy system plays a vital role in the intelligent operation of the integrated energy system.
[0020] However, since many factors such as the service life of the energy storage unit, the number of times it is used, the way it is used, and the environment faced by the energy storage unit will all cause capacity loss of the energy storage unit, it is difficult to determine the actual available capacity of the energy storage unit. In the prior art, when detecting the actual available capacity of an energy storage unit, it is generally necessary to use professional testing equipment in a specific environment to perform testing. Due to the difference between the specific environment and the actual operating environment of the energy storage unit, there is a large error between the detected available capacity of the energy storage unit and the actual storage capacity of the energy storage unit. The above method is difficult to detect the available capacity of the energy storage unit and has low accuracy. In addition, the cost of using professional testing equipment to detect the available capacity of the energy storage unit is high.
[0021] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0022] Figure 1 A flow chart of a method for detecting the available capacity of an energy storage unit provided by an exemplary embodiment of the present application, the method at least includes the following steps S101-S103:
[0023] S101, obtaining a first moment when the energy storage unit is in a first power state, the first power state being an empty power state or a full power state, wherein if the discharge power of the energy storage unit during the discharge period is 0, the first power state is an empty power state, and if the charging power of the energy storage unit during the charging period is 0, the first power state is a full power state;
[0024] Optionally, in order to save costs and maximize revenue, the discharging period in the method may be a period of time when the electricity price is relatively high, and the charging period may be a period of time when the electricity price is relatively low.
[0025] S102: if it is detected that at a second moment after the first moment, the energy storage unit is in a state opposite to the first power state, then acquiring charging and discharging information between the first moment and the second moment;
[0026] Optionally, if the first power state is a full power state, the opposite state of the first power state is an empty power state.
[0027] Optionally, if the first power state is an empty power state, the opposite state of the first power state is a full power state.
[0028] Optionally, in embodiment 1, if the first power state is an empty power state, the charge and discharge information includes charging time and charging power, or charging time, charging power, discharging time, and discharging power.
[0029] In optional embodiment 2, if the first power state is a full power state, the charge and discharge information includes a discharge time and a discharge power, or a charge time, a charge power, a discharge time, and a discharge power.
[0030] S103. Determine the available capacity of the energy storage unit based on the charge and discharge information; wherein the duration between the first moment and the second moment is not greater than a preset duration.
[0031] Optionally, the available capacity refers to the maximum capacity that the energy storage unit can actually store at the current moment, that is, the available capacity is equal to the maximum capacity of the energy storage unit at the time of leaving the factory minus the capacity loss of the energy storage unit from the time of leaving the factory to the current moment.
[0032] Optionally, the preset time length is the longest period for obtaining charging and discharging information of the energy storage unit from a first state of charge to an opposite state of the first state of charge. If the energy storage unit does not change from the first state of charge to the opposite state of the first state of charge within the preset time length, the charging and discharging information within the preset time length will not be obtained, and a new first moment that satisfies the first state of charge needs to be re-determined.
[0033] Optionally, in the case one of the aforementioned embodiment one: if the first power state is an empty power state, and the charging and discharging information includes a charging time and a charging power, determining the available capacity of the energy storage unit based on the charging and discharging information includes: determining the available capacity of the energy storage unit based on the product of the charging time and the charging power.
[0034] Optionally, if the charging duration includes at least one first charging duration, and the charging power includes at least one first charging power, wherein there is a one-to-one correspondence between the at least one first charging duration and the at least one first charging power, then determining the available capacity of the energy storage unit based on the product of the charging duration and the charging power includes the following steps S1011-S1012:
[0035] S1011. For each first charging duration in the at least one first charging duration, obtain a third product of the first charging duration and the first charging power corresponding to the first charging duration, and further obtain at least one third product;
[0036] S1012. Determine the available capacity of the energy storage unit based on the sum of the at least one third product.
[0037] Optionally, if the duration is in hours, the power is in watts.
[0038] Optionally, in the second situation of the aforementioned embodiment 1: if the first power state is an empty power state, and the charging and discharging information includes charging time, charging power, discharging time, and discharging power, determining the available capacity of the energy storage unit based on the charging and discharging information includes the following steps S1-S3:
[0039] S1. Obtaining a first product of the charging duration and the charging power;
[0040] S2. Obtaining a second product of the discharge power and the discharge duration;
[0041] S3. Determine the available capacity of the energy storage unit based on the difference between the first product and the second product.
[0042] Optionally, in the aforementioned S1, obtaining the first product of the charging duration and the charging power includes: if the charging duration includes at least one second charging duration, and the charging power includes at least one second charging power, wherein there is a one-to-one correspondence between the at least one second charging duration and the at least one second charging power, then obtaining the first product of the charging duration and the charging power includes the following steps S10-S11:
[0043] S10. For each second charging duration in the at least one second charging duration, obtain a fourth product of the second charging duration and the second charging power corresponding to the second charging duration, and further obtain at least one fourth product;
[0044] S11. Determine a first product of the charging power based on a sum of the at least one fourth product.
[0045] Optionally, the charging duration includes at least one first charging duration, and the charging power includes at least one first charging power, wherein there is a one-to-one correspondence between the at least one first charging duration and the at least one first charging power.
[0046] Optionally, in the aforementioned S2, obtaining the second product of the discharge power and the discharge duration includes: if the discharge duration includes at least one first discharge duration, and the discharge power includes at least one first discharge power, wherein there is a one-to-one correspondence between the at least one first discharge duration and the at least one first discharge power, then obtaining the second product of the discharge power and the discharge duration includes the following steps S20-S21:
[0047] S20. For each first discharge duration in the at least one first discharge duration, obtain a fifth product of the first discharge duration and the first discharge power corresponding to the first discharge duration, and further obtain at least one fifth product;
[0048] S21. Determine a second product of the discharge power based on the sum of the at least one fifth product.
[0049] Optionally, in the case 1 of the aforementioned embodiment 2: if the first power state is a full power state, and the charge and discharge information includes a discharge duration and a discharge power, determining the available capacity of the energy storage unit based on the charge and discharge information includes: determining the available capacity of the energy storage unit based on the product of the discharge duration and the discharge power.
[0050] Optionally, if the discharge duration includes at least one second discharge duration, and the discharge power includes at least one second discharge power, wherein there is a one-to-one correspondence between the at least one second discharge duration and the at least one second discharge power, then determining the available capacity of the energy storage unit based on the product of the discharge duration and the discharge power includes the following steps S2011-S2012:
[0051] S2011. For each second discharge duration in the at least one second discharge duration, obtain a sixth product of the second discharge duration and the second discharge power corresponding to the second discharge duration, and further obtain at least one sixth product;
[0052] S2012. Determine the available capacity of the energy storage unit based on the sum of the at least one sixth product.
[0053] Optionally, in the second situation of the second embodiment, if the first power state is a full power state, and the charging and discharging information includes charging time, charging power, discharging time, and discharging power, determining the available capacity of the energy storage unit based on the charging and discharging information includes the following steps S01-S03:
[0054] S01. Obtaining a first product of the charging duration and the charging power;
[0055] Optionally, if the charging time includes multiple charging time, the method for determining the first product can refer to the aforementioned steps S10-S11, which will not be described in detail here.
[0056] S02, obtaining a second product of the discharge power and the discharge duration;
[0057] Optionally, if the discharge duration includes multiple discharge durations, the method for confirming the second product may refer to the aforementioned steps S20-S21, which will not be described in detail here.
[0058] S03. Determine the available capacity of the energy storage unit based on the difference between the second product and the first product.
[0059] Optionally, when the energy storage unit is in an empty state, if the energy storage unit is not replenished immediately or the energy stored in the energy storage unit is used up before being fully charged after being replenished, the energy storage unit will become empty again. There is a certain period of time between the first empty state and the next empty state of the energy storage unit. If the available capacity of the energy storage unit is determined based on the charge and discharge information over a longer period of time, the error between the available capacity and the latest available capacity of the energy storage unit is large. In order to reduce the error in calculating the available capacity of the energy storage unit, the present application proposes to determine the available capacity of the energy storage unit based on the charge and discharge information of the energy storage unit in the shortest and most recent time period. The method includes the following steps: If it is detected that the energy storage unit is in the first power state at a third moment after the first moment, the third moment is used as the new first moment.
[0060] In summary, by real-time detection of the power state of the energy storage unit, the latest first moment is obtained to ensure that the acquired charging and discharging information is the information determined by the first moment and the second moment closest to the current moment, and the first moment and the second moment are both before the current moment.
[0061] Optionally, in the aforementioned S101, after acquiring the first moment at which the energy storage unit is in the first power state, where the first power state is an empty power state or a full power state, the method further includes the following steps S0001-S0003:
[0062] S0001. Delete the historical charge and discharge information of the energy storage unit before the first moment;
[0063] S0002, modifying the record mark to a record state, wherein the record state indicates that the corresponding recorded charge and discharge information is valid data;
[0064] S0003. Repeat the detection of the power state of the energy storage unit at the next moment. If the energy storage unit is not in the opposite state of the first power state at the fourth moment, and the duration between the fourth moment and the first moment is greater than the preset duration, the record mark is modified to a non-recording state, and a new first moment is re-determined, wherein the new first moment is located after the fourth moment.
[0065] Optionally, in S0003, redetermining a new first moment includes: re-executing the aforementioned steps S101-S103.
[0066] Optionally, in the aforementioned S103, the acquiring the charge and discharge information between the first moment and the second moment includes: acquiring the charge and discharge information between the first moment and the second moment with the record identifier being a record state.
[0067] For example, in order to understand this solution more clearly, please refer to Figure 2 , Figure 2 A schematic diagram of a process for determining available capacity based on charging and discharging information of an energy storage unit provided for an exemplary embodiment of the present application:
[0068] Detect the state of the energy storage unit at the current moment. If the state of the energy storage unit at the current moment is not the first power state, take the next moment after the current moment as the new current moment, and re-execute the detection of the state of the energy storage unit at the current moment. If the state of the energy storage unit at the current moment is the first power state, and it is the empty power state in the first power state, then the current moment is determined as the first moment. Obtain a reference moment at a preset time length of the first moment, where the time length between the first moment and the reference moment is equal to the preset time length.
[0069] Determine whether the next moment after the first moment is before the reference moment, and if so, determine the state of the energy storage unit at the next moment after the first moment, wherein the next moment being equal to the reference moment is regarded as being before the reference moment.
[0070] If it is an empty power state, the first moment is updated with the next moment, and the reference moment of the preset duration of the first moment is obtained, where the duration between the first moment and the reference moment is equal to the preset duration. It is determined whether the next moment of the first moment is before the reference moment, and if so, the state of the energy storage unit of the next moment of the first moment is determined.
[0071] If it is in the full power state, the next moment is taken as the second moment, wherein the second moment is the moment of the full power state. The charge and discharge information between the first moment and the second moment is obtained, and the available capacity of the energy storage unit is determined based on the charge and discharge information.
[0072] If it is neither a full power state nor an empty power state, the next moment of the next moment is taken as a new next moment, and the state of the energy storage unit at the next moment of the first moment is continued to be determined.
[0073] If not, the next moment after the next moment is taken as the new current moment, and the detection of the state of the energy storage unit at the current moment is continued.
[0074] For example, in order to understand this solution more clearly, please refer to Figure 3 , Figure 3 Another flow chart of determining available capacity based on charging and discharging information of an energy storage unit provided for an exemplary embodiment of the present application:
[0075] Detect the state of the energy storage unit at the current moment. If the state of the energy storage unit at the current moment is not the first power state, take the next moment after the current moment as the new current moment, and re-execute the detection of the state of the energy storage unit at the current moment. If the state of the energy storage unit at the current moment is the first power state, and it is the full power state in the first power state, then the current moment is determined as the first moment. Obtain a reference moment at a preset time length of the first moment, where the time length between the first moment and the reference moment is equal to the preset time length.
[0076] Determine whether the next moment after the first moment is before the reference moment, and if so, determine the state of the energy storage unit at the next moment after the first moment, wherein the next moment being equal to the reference moment is regarded as being before the reference moment.
[0077] If it is in the full power state, the first moment is updated with the next moment, and the reference moment of the preset time length of the first moment is obtained, where the time length between the first moment and the reference moment is equal to the preset time length. It is determined whether the next moment of the first moment is before the reference moment, and if so, the state of the energy storage unit of the next moment of the first moment is determined.
[0078] If it is an empty power state, the next moment is taken as a second moment, wherein the second moment is a full power state moment. The charge and discharge information between the first moment and the second moment is obtained, and the available capacity of the energy storage unit is determined based on the charge and discharge information.
[0079] If it is neither a full power state nor an empty power state, the next moment of the next moment is taken as the new next moment, and the state of the energy storage unit at the next moment of the first moment is continued to be determined.
[0080] If not, the next moment after the next moment is taken as the new current moment, and the detection of the state of the energy storage unit at the current moment is continued.
[0081] In summary, the solution provided by the present application is to obtain the first moment when the energy storage unit is in the first power state, the first power state is an empty power state or a full power state, wherein, if the discharge power of the energy storage unit during the discharge period is 0, the first power state is an empty power state, and if the charging power of the energy storage unit during the charging period is 0, the first power state is a full power state; if it is detected that the energy storage unit is in the opposite state of the first power state at the second moment after the first moment, the charge and discharge information between the first moment and the second moment is obtained; the available capacity of the energy storage unit is determined based on the charge and discharge information; wherein, the duration between the first moment and the second moment is not greater than the preset duration. The solution utilizes the latest charge and discharge information of the energy storage unit from the first power state to the opposite state of the first power state, and determines the available capacity of the energy storage unit in the actual operating environment based on the latest charge and discharge information of the actual operation of the energy storage unit, so that the accuracy of the obtained available capacity of the energy storage unit is higher.
[0082] In addition, the present application calculates the available capacity of the energy storage unit by obtaining the charging and discharging information of the energy storage unit during operation, without the need for external equipment, which is more convenient and low-cost.
[0083] Figure 4 A schematic structural diagram of a device for detecting the available capacity of an energy storage unit provided in an exemplary embodiment of the present application, the device comprising:
[0084] an acquisition unit 41, configured to acquire a first moment when the energy storage unit is in a first power state, wherein the first power state is an empty power state or a full power state, wherein if the discharge power of the energy storage unit during the discharge period is 0, the first power state is an empty power state, and if the charging power of the energy storage unit during the charging period is 0, the first power state is a full power state;
[0085] The detection unit 42 is configured to obtain the charge and discharge information between the first moment and the second moment if it is detected that the energy storage unit is in a state opposite to the first state of charge at a second moment after the first moment;
[0086] The determination unit 43 is used to determine the available capacity of the energy storage unit based on the charging and discharging information; wherein the duration between the first moment and the second moment is not greater than a preset duration.
[0087] Optionally, the device is further used for: if it is detected that at a third moment after the first moment, the energy storage unit is in the first power state, taking the third moment as the new first moment.
[0088] Optionally, if the first power state in the device is an empty power state, the charging and discharging information includes charging time and charging power, or charging time, charging power, discharging time, and discharging power; if the first power state is a full power state, the charging and discharging information includes discharging time and discharging power, or charging time, charging power, discharging time, and discharging power.
[0089] Optionally, in the device, if the first power state is an empty power state, and the charge and discharge information includes charging time and charging power, the device is used to determine the available capacity of the energy storage unit based on the charge and discharge information, specifically for: determining the available capacity of the energy storage unit based on the product of the charging time and the charging power; if the first power state is an empty power state, and the charge and discharge information includes charging time, charging power, discharging time, and discharging power, the device is used to determine the available capacity of the energy storage unit based on the charge and discharge information, specifically for: obtaining a first product of the charging time and the charging power; obtaining a second product of the discharging power and the discharging time; and determining the available capacity of the energy storage unit based on the difference between the first product and the second product.
[0090] Optionally, in the device, if the first power state is a full power state, and the charge and discharge information includes a discharge time and a discharge power, the device is used to determine the available capacity of the energy storage unit based on the charge and discharge information, specifically for: determining the available capacity of the energy storage unit based on the product of the discharge time and the discharge power; if the first power state is a full power state, and the charge and discharge information includes a charge time, a charge power, a discharge time, and a discharge power, the device is used to determine the available capacity of the energy storage unit based on the charge and discharge information, specifically for: obtaining a first product of the charge time and the charge power; obtaining a second product of the discharge power and the discharge time; and determining the available capacity of the energy storage unit based on the difference between the second product and the first product.
[0091] Optionally, the device is used to, after obtaining the first moment when the energy storage unit is in a first power state, and the first power state is an empty power state or a full power state, the device is also used to: delete the historical charge and discharge information of the energy storage unit before the first moment; modify the record mark to a record state, wherein the record state indicates that the corresponding recorded charge and discharge information is valid data; repeat the detection of the power state of the energy storage unit at the next moment, and if it is detected that at a fourth moment, the energy storage unit is not in a state opposite to the first power state, and the duration between the fourth moment and the first moment is greater than the preset duration, modify the record mark to a non-recording state, and re-determine a new first moment, wherein the new first moment is a moment after the fourth moment.
[0092] Optionally, the device is used to obtain the charge and discharge information between the first moment and the second moment, specifically to obtain the charge and discharge information between the first moment and the second moment with the record mark being a record state.
[0093] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, no further description is given here. Specifically, the device may perform the above method embodiment, and the above and other operations and / or functions of each module in the device are the corresponding processes in each method in the above method embodiment, respectively, and no further description is given here for the sake of brevity.
[0094] The above describes the device of the embodiment of the present application from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or a combination of hardware and software modules in the decoding processor to perform. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in conjunction with its hardware.
[0095] Figure 5 is a schematic block diagram of an electronic device provided in an embodiment of the present application, and the electronic device may include:
[0096] The memory 301 and the processor 302, the memory 301 is used to store the computer program and transmit the program code to the processor 302. In other words, the processor 302 can call and run the computer program from the memory 301 to implement the method in the embodiment of the present application.
[0097] For example, the processor 302 may be configured to execute the above method embodiments according to instructions in the computer program.
[0098] In some embodiments of the present application, the processor 302 may include but is not limited to:
[0099] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
[0100] In some embodiments of the present application, the memory 301 includes but is not limited to:
[0101] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).
[0102] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 301 and executed by the processor 302 to complete the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.
[0103] like Figure 5 As shown, the electronic device may also include:
[0104] The transceiver 303 may be connected to the processor 302 or the memory 301 .
[0105] The processor 302 may control the transceiver 303 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 303 may include a transmitter and a receiver. The transceiver 303 may further include an antenna, and the number of antennas may be one or more.
[0106] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
[0107] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. In other words, the present application embodiment also provides a computer program product containing instructions, and when the instructions are executed by a computer, the computer can perform the method of the above method embodiment.
[0108] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.
[0109] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0110] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0111] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0112] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for detecting the available capacity of an energy storage unit, characterized in that: include: Acquire a first moment when the energy storage unit is in a first power state, the first power state being an empty power state or a full power state, wherein if the discharge power of the energy storage unit during the discharge period is 0, the first power state is an empty power state, and if the charging power of the energy storage unit during the charging period is 0, the first power state is a full power state; If it is detected that at a second moment after the first moment, the energy storage unit is in a state opposite to the first state of charge, then acquiring charging and discharging information between the first moment and the second moment; Determining the available capacity of the energy storage unit based on the charge and discharge information; The duration between the first moment and the second moment is not greater than a preset duration.
2. The method according to claim 1, characterized in that The method further comprises: If it is detected that at a third moment after the first moment, the energy storage unit is in the first power state, the third moment is taken as the new first moment.
3. The method according to claim 1, characterized in that If the first power state is an empty power state, the charging and discharging information includes charging time and charging power, or charging time, charging power, discharging time, and discharging power; If the first power state is a full power state, the charge and discharge information includes a discharge time and a discharge power, or a charge time, a charge power, a discharge time, and a discharge power.
4. The method according to claim 3, characterized in that If the first power state is an empty power state, and the charge and discharge information includes a charging time and a charging power, determining the available capacity of the energy storage unit based on the charge and discharge information includes: determining the available capacity of the energy storage unit based on the product of the charging time and the charging power; If the first power state is an empty power state, and the charge and discharge information includes a charging time, a charging power, a discharge time, and a discharge power, determining the available capacity of the energy storage unit based on the charge and discharge information includes: Obtaining a first product of the charging duration and the charging power; Obtaining a second product of the discharge power and the discharge duration; The available capacity of the energy storage unit is determined based on a difference between the first product and the second product.
5. The method according to claim 3, characterized in that: If the first power state is a full power state, and the charge and discharge information includes a discharge duration and a discharge power, determining the available capacity of the energy storage unit based on the charge and discharge information includes: determining the available capacity of the energy storage unit based on the product of the discharge duration and the discharge power; If the first power state is a full power state, and the charge and discharge information includes a charge duration, a charge power, a discharge duration, and a discharge power, determining the available capacity of the energy storage unit based on the charge and discharge information includes: Obtaining a first product of the charging duration and the charging power; Obtaining a second product of the discharge power and the discharge duration; The available capacity of the energy storage unit is determined based on a difference between the second product and the first product.
6. The method according to claim 1, characterized in that After obtaining the first moment at which the energy storage unit is in the first power state, where the first power state is an empty power state or a full power state, the method further includes: Deleting historical charge and discharge information of the energy storage unit before the first moment; Modify the record flag to a record state, wherein the record state indicates that the charge and discharge information of the corresponding record is valid data; Repeat the detection of the power state of the energy storage unit at the next moment. If a fourth moment is detected, the energy storage unit is not in a state opposite to the first power state, and the duration between the fourth moment and the first moment is greater than the preset duration, then the record mark is modified to a non-recording state, and a new first moment is re-determined, wherein the new first moment is located after the fourth moment.
7. The method according to claim 6, characterized in that The acquiring the charge and discharge information between the first moment and the second moment includes: Acquire the charge and discharge information of the state recorded by the record mark between the first moment and the second moment.
8. A device for detecting the available capacity of an energy storage unit, characterized in that: include: an acquisition unit, configured to acquire, at a first moment when the energy storage unit is in a first power state, the first power state being an empty power state or a full power state, wherein if the discharge power of the energy storage unit during the discharge period is 0, the first power state is an empty power state, and if the charging power of the energy storage unit during the charging period is 0, the first power state is a full power state; a detection unit, configured to obtain charge and discharge information between the first moment and the second moment if it is detected that the energy storage unit is in a state opposite to the first state of charge at a second moment after the first moment; The determination unit is used to determine the available capacity of the energy storage unit based on the charge and discharge information; The duration between the first moment and the second moment is not greater than a preset duration.
9. An electronic device, characterized in that: include: processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the method of any one of claims 1-7 by executing the executable instructions.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.