Charging and discharging test method, device and system of energy storage system, storage medium and program product

By simulated testing the charge and discharge test path of the energy storage system, the accuracy of the test path is ensured, and the problem of equipment damage caused by unreasonable testing strategies in the existing technology is solved, and safer and more effective charge and discharge test is achieved.

CN119125894APending Publication Date: 2024-12-13SHENZHEN HITHIUM ENERGY STORAGE CONTROL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411134409.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

In the charging and discharging test of energy storage systems, the existing technology is prone to failure of the test due to unreasonable testing strategies, and even damage to the tested equipment.

Method used

A charging and discharging test method is proposed. By conducting simulation tests on each test path of the task flow, ensuring that the simulation test passes and then conducting actual tests to avoid equipment damage. This method includes obtaining task flow, path analysis, simulation testing and actual testing modules to ensure the accuracy and security of the test path.

Benefits of technology

Improve the effectiveness of charge and discharge tests, avoid equipment damage caused by unreasonable task flow design or wrong task configuration, and ensure the safety and accuracy of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119125894A_ABST
    Figure CN119125894A_ABST
Patent Text Reader

Abstract

The invention discloses a charging and discharging test method, device and system of an energy storage system, a storage medium and a program product. The method comprises the steps of obtaining a task flow corresponding to a to-be-tested charging and discharging function, wherein the task flow comprises a plurality of tasks; path analysis is conducted on the task flow to obtain a plurality of test paths, and the test paths are composed of a plurality of tasks executed in sequence; performing simulation test on each test path to obtain a simulation test result; and under the condition that the test path corresponding to each simulation test result characterization passes the test, the to-be-tested charge and discharge function of the energy storage system is controlled based on the task flow to perform an actual test so as to obtain an actual test result, and the actual test result is determined based on the operation data after the energy storage system executes the task flow. According to the technical scheme, the simulation test is carried out on each test path of the task flow, and the actual test is carried out after the simulation test passes, so that the effectiveness of the actual test is improved, and the safety problem caused by the problem of the task flow can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of energy storage system testing, and in particular, relates to a charging and discharging testing method, a functional testing device, an energy storage system, a computer-readable storage medium, and a computer program product for an energy storage system. Background Art

[0002] The strategy management module in the Energy Manager Unit of the energy storage system can be used to connect the liquid cooling cabinet equipment for charge and discharge strategy management. The module can set the charge and discharge execution mode under different time periods and different conditions. However, when actually performing charge and discharge control to implement the charge and discharge strategy test, the test may fail due to unreasonable setting of the test strategy, or even cause the tested equipment to be damaged due to the test. Summary of the invention

[0003] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a charging and discharging test method, a functional test device, an energy storage system, a computer-readable storage medium and a computer program product for an energy storage system, which can first perform a simulation test on each test path of the task flow, and only perform an actual test after the simulation test passes, thereby ensuring the effectiveness of the actual test and avoiding damage to the tested equipment during the actual test.

[0004] In a first aspect, the present application provides a method for charging and discharging testing of an energy storage system, comprising obtaining a task flow corresponding to a charging and discharging function to be tested, the task flow comprising a plurality of tasks; performing path analysis on the task flow to obtain a plurality of test paths, the test paths being composed of a plurality of tasks executed sequentially; performing simulation tests on each of the test paths to obtain simulation test results; and when each of the simulation test results indicates that the corresponding test path has passed the test, controlling the energy storage system to perform an actual test of the charging and discharging function to be tested based on the task flow to obtain an actual test result, the actual test result being determined based on the operating data of the energy storage system after executing the task flow.

[0005] In the second aspect, the present application provides a functional testing device, which includes an acquisition module, an analysis module, a simulation test module and an actual test module. The acquisition module is used to acquire the task flow corresponding to the charge and discharge function to be tested, and the task flow includes multiple tasks; the analysis module is used to perform path analysis on the task flow to obtain multiple test paths, and the test path is composed of multiple tasks executed in sequence; the simulation test module is used to perform simulation tests on each of the test paths to obtain simulation test results; the actual test module is used to control the energy storage system to perform actual tests on the charge and discharge function to be tested based on the task flow when the test paths corresponding to the simulation test results have passed the tests, so as to obtain actual test results, and the actual test results are determined based on the operating data after the energy storage system executes the task flow.

[0006] In a third aspect, the present application provides an energy storage system, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned charge and discharge test method when executing the program.

[0007] In a fourth aspect, the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned charge and discharge test method when executed by a processor.

[0008] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the above-mentioned charge and discharge test method when executed by a processor.

[0009] The charge and discharge test method, functional test device, energy storage system, computer-readable storage medium and computer program product provided in the embodiments of the present application obtain the task flow corresponding to the charge and discharge function to be tested (i.e., the task pipeline composed of various tasks that implement the charge and discharge function to be tested). Since the task flow has different directions, in order to achieve full coverage testing, the task flow can be split into multiple test paths based on different directions, so that each test path is simulated and tested separately. After the simulation test passes, the accuracy of the task flow can be determined, so that based on a relatively accurate task flow, the energy storage system is actually tested based on the task flow to obtain the operating data of the energy storage system after executing the charge and discharge function to be tested, so as to obtain the final actual test results, so as to determine whether the charge and discharge function to be tested can be effectively implemented, thereby improving the effectiveness of the actual test and avoiding safety problems (such as equipment damage) caused by problems with the task flow itself (such as unreasonable task flow design or incorrect task configuration of the task flow). BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0011] Figure 1 is a schematic diagram of the structure of an energy storage system provided in certain embodiments of the present application;

[0012] Figure 2 is a flow chart of a charge and discharge test method provided in certain embodiments of the present application;

[0013] Figure 3 is a flow chart of a charge and discharge test method provided in certain embodiments of the present application;

[0014] Figure 4 is a schematic diagram of a charging and discharging test method provided in some embodiments of the present application; and

[0015] Figure 5 It is a module schematic diagram of a functional testing device provided in certain embodiments of the present application. DETAILED DESCRIPTION

[0016] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0017] For ease of understanding, the technical background and application scenarios of this application are first introduced below:

[0018] An Energy Management Unit (EMU) is a technology product used to manage and optimize energy usage. It is usually composed of hardware and software, and is designed to monitor, measure and control energy consumption to achieve more efficient energy management and reduce energy waste. The main functions of an EMU include real-time monitoring of energy consumption, collection of energy data, analysis of energy usage patterns, identification of energy waste points, provision of energy reports and recommendations, and control of energy equipment.

[0019] The capacity management unit generally operates based on preset control strategies. In order to ensure operational stability, it is generally necessary to test the control strategies regularly to avoid safety risks caused by control failure or control deviation.

[0020] See also Figure 1 , Figure 11 is an application scenario diagram of a charge and discharge test method provided in an embodiment of the present application. The energy storage system 1000 in the application scenario provided in the present application includes an energy storage device 100, a power generation device 200 and an electrical device 300. For example, the charge and discharge test method provided in the present application can be executed by the energy storage device 100, that is, the energy management unit is located in the energy storage device 100, such as a processor of the energy storage device.

[0021] The energy storage device 100 includes a battery module 10 and a processor 20 .

[0022] The battery module 10 may be a single physical module including one or more single cells to provide higher voltage and capacity. For example, the battery module 10 mentioned in the present application may include single cells, battery modules or battery packs.

[0023] A single cell is the smallest unit of the battery module 100, which can independently realize the charge and discharge functions. The single cell can be cylindrical, rectangular or other shapes, etc., which are not limited in the present embodiment. When there are multiple single cells, the multiple single cells are connected in series, in parallel or in mixed connection through a current collecting component.

[0024] In some embodiments, the battery assembly 10 may be a battery module; when there are multiple single cells, the multiple single cells are arranged and fixed to form a battery module.

[0025] In some embodiments, the battery module 10 may be a battery pack, which includes a box body and single cells. The single cells or battery modules are accommodated in the box body.

[0026] The power generation device 200 is used to generate electricity to supply power to the energy storage device 100 and / or the power consumption device 300. The power generation device 200 may be a wind power generation device, a photovoltaic power generation device, or the like.

[0027] The electrical equipment 300 is a device that operates based on electrical energy to achieve a specific working effect, such as an air conditioner, a washing machine, a water heater, and various devices that require electricity to drive.

[0028] The processor 20 of the energy storage device 100 can control the operation of the energy storage device 100, the power generation device 200 and the power-consuming device 300 based on a preset control strategy, such as controlling the charging and discharging time periods of the energy storage device 100 and the power during charging and discharging, controlling the power generation time period of the power generation device 200, controlling the power generation device 200 to directly supply power to the power-consuming device 300 or store electricity in the energy storage device 100, controlling the operating time period of the power-consuming device 300 (such as the water heater can be operated when the electricity price is low, or when the energy storage device 100 is fully charged and the power generation device 200 is continuously generating electricity), etc., to realize the charging and discharging control of the energy storage device 100.

[0029] Based on the introduction of the above-mentioned related scenarios, the embodiment of the present application provides a charge and discharge test method, which is described in detail below:

[0030] See also Figure 2 A charge and discharge test method provided in an embodiment of the present application is implemented by steps 011 to 014, which are described in detail below.

[0031] Step 011: Obtain the task flow corresponding to the charge and discharge function to be tested, where the task flow includes multiple tasks;

[0032] Optionally, the charge and discharge function to be tested may be a function preset to achieve a specific control effect when the energy storage system performs charge and discharge control. For example, the charge and discharge function to be tested may be at least one of a constant capacity discharge function for peak shaving and valley filling, an on-demand charge and discharge function based on peak shaving and valley filling, and an anti-backflow function.

[0033] Among them, the constant capacity discharge function of peak shaving and valley filling means that the energy storage equipment will work within the designed capacity range and will not discharge indefinitely to protect the battery life and ensure the stable operation of the system. When the electricity price is high, the energy storage equipment and power generation equipment are used to supply electricity to achieve self-generation and self-use, and when the electricity price is low, the grid is used to supply electricity, thereby achieving the peak shaving and valley filling function, and when the energy storage equipment is close to full power, the excess electricity generated is sold to the grid to realize profits.

[0034] Among them, the on-demand charging and discharging function based on peak shaving and valley filling refers to dynamically adjusting the user's electricity consumption behavior according to the real-time power supply and demand situation and electricity price fluctuations to achieve a balance between power system supply and demand. For example, through information technology and data analysis, the load changes and electricity price information of the power grid are monitored in real time, and historical data and current meteorological conditions are combined to predict future power supply and demand trends. When it is predicted that supply exceeds demand, electricity is sold or stored. When it is predicted that demand exceeds supply, energy storage equipment is used to store electricity in advance to meet electricity demand. At the same time, when the electricity price is high, the electricity generated by energy storage equipment and power generation equipment is used to supply electricity to achieve self-generation and self-use, and when the electricity price is low, the power grid is used for power supply, thereby realizing the peak shaving and valley balancing function, and when the energy storage equipment is close to full power, the excess electricity generated is sold to the power grid to realize profits.

[0035] Among them, the anti-backflow function mainly refers to the technical measures taken in the energy storage system to prevent the energy storage equipment from feeding electricity back to the power grid (that is, the flow of electricity back to the power grid) under certain conditions when it is equipped with renewable energy systems such as solar photovoltaic and wind power.

[0036] Optionally, the task flow refers to a task pipeline composed of various tasks, and the tasks are executed sequentially based on the task pipeline. The task flow includes multiple tasks.

[0037] Each task can be used to implement logical judgment or perform specific data processing, so that the task flow has different directions for different inputs. For example, under different electricity prices, different power generation and power demand, and / or different power of energy storage devices, there are different directions, so that the charging and discharging of energy storage devices can be controlled with different charging and discharging control parameters to realize the charging and discharging function to be tested.

[0038] Specifically, each charging and discharging function to be tested can involve corresponding task flows based on the business logic of the charging and discharging function to be tested. For example, for the constant capacity discharge function, the current power can be obtained first, and then the energy storage device can be controlled to stop discharging after the current power exceeds the set range. For another example, the peak shaving and valley leveling function can obtain the current time. If the current time is in a period of high electricity prices, the energy storage device is controlled to discharge. If the current time is in a period of low electricity prices, the energy storage device is controlled to charge (such as grid charging and / or power generation equipment charging). In this way, based on the charging and discharging function to be tested, the corresponding task flow can be involved based on its business logic to realize the charging and discharging function to be tested.

[0039] Step 012: Perform path analysis on the task flow to obtain multiple test paths, where the test paths consist of multiple tasks that are executed sequentially;

[0040] Specifically, the tasks in the task flow may include common tasks and judgment tasks. Common tasks generally process inputs to obtain corresponding outputs. Common tasks generally have only one output, while judgment tasks generally have different output branches, so that the task flow has different data directions. Each data direction can form a test path, so that multiple test paths can be obtained through analysis.

[0041] Optionally, the number of test paths is positively correlated with the number of judgment tasks. That is, the more judgment tasks there are in a task flow, the more test paths can generally be analyzed.

[0042] Optionally, see Figure 3 , step 012 comprises:

[0043] Step 0121: Obtain each judgment branch of the judgment task to determine each test path based on the combination relationship between each judgment branch.

[0044] Specifically, when there is no judgment branch, the general task flow only includes one test path executed sequentially. When there is a judgment task, two judgment branches based on the judgment task can be obtained, and two test paths can be determined. Therefore, in order to determine each test path, it is necessary to first determine the judgment branch of each judgment task, so as to determine each test path of different task directions based on the combination relationship between the judgment branches.

[0045] For example, see Figure 4 , the task flow includes tasks 1 to 9, among which tasks 3 and 7 are judgment tasks, and the other tasks are common tasks. Task 3 includes 2 judgment branches, and task 7 also includes 2 judgment branches. Therefore, based on the judgment branches of tasks 3 and 5, the directions of 4 tasks can be determined, thereby obtaining 3 test paths. For example, tasks 1, task 2, task 3, task 4, task 6, and task 9 form the first test path in sequence, tasks 1, task 2, task 3, task 5, task 7, task 8, and task 9 form the second test path in sequence, and tasks 1, task 2, task 3, task 5, task 7, and task 9 form the third test path in sequence.

[0046] Step 013: Perform simulation tests on each test path to obtain simulation test results.

[0047] Specifically, after obtaining each test path, each test path is composed of multiple tasks connected in sequence, and the tasks of the test path are executed sequentially, that is, for any two adjacent tasks, the output of the previous task is the input of the next task, until the final output of the last task is obtained.

[0048] For each test path, the final output generally only needs to be obtained after data processing. As long as the corresponding control instructions are not generated based on the output to control the energy storage system, the simulation test can be realized.

[0049] It can be understood that after each test path is designed, there is a corresponding relationship between the input and output, or the output generally has a preset range. Once the input and output do not correspond, it can be determined that there is a problem with the operation of the test path, and the simulation test result is that the test failed. For example, the discharge power of the energy storage device generally has a preset discharge power range. Once the discharge power corresponding to the output is outside this range, it can be determined that the test path test has failed. If the test path that has failed the test is effective in the actual test, it may cause damage to the energy storage device or other equipment. Therefore, through simulation testing, the accuracy of each test path can be guaranteed, and equipment damage caused by direct actual testing can be avoided.

[0050] Optionally, refer again to Figure 3 , step 013 comprises:

[0051] Step 0131: Determine charging and discharging setting data that meets the test conditions of each test path, where the test conditions are determined based on the judgment task of the test path;

[0052] Step 0132: Based on the charge and discharge setting data, simulate the test on each test path to obtain the simulation test result of each test path.

[0053] Specifically, when conducting simulation tests, in order to avoid the test path being unable to run sequentially from the first task to the last task, it is necessary to ensure that the input of each judgment task satisfies the conditions of the judgment branch of the judgment task in the test path. Therefore, when conducting tests, it is necessary to determine the charging and discharging setting data that meets the test conditions of each test path (that is, the conditions corresponding to the judgment branch of the judgment task).

[0054] For example, see again Figure 4 , the test path is task 1, task 2, task 3, task 5, task 7, and task 9. The judgment tasks of the test path include task 3 and task 7. For example, task 3 is whether it is less than 5, and task 7 is whether it is less than 10. Then the charge and discharge setting data input to task 1 needs to ensure that the input of task 3 is greater than 5, and the input of task 7 is greater than 10. In this way, the charge and discharge setting data for the simulation test of each test path can be determined.

[0055] Then, the charge and discharge setting data is used as the initial input of the test path, and each task of the test path is run to obtain the final output of the test path, so as to complete the simulation test of each test path.

[0056] Step 014: When the test paths corresponding to the test results of each simulation test have passed, actual tests of the charge and discharge functions to be tested are performed on the energy storage system based on the task flow to obtain actual test results. The actual test results are determined based on the operating data of the energy storage system after executing the task flow.

[0057] Specifically, in actual testing, any test path may be tested. Therefore, it is necessary to make sure that the simulation test results of each test path are all passed before performing actual testing based on the task flow. In this way, while ensuring the accuracy of the task flow, the energy storage system is controlled based on the task flow to execute the charge and discharge functions to be tested, thereby performing actual function testing of the charge and discharge functions to be tested. After the actual test, the operating data of the energy storage system can be obtained, and based on the operating data of the energy storage system, it can be determined whether the energy storage system achieves the charge and discharge functions to be tested.

[0058] For example, if the charging and discharging function to be tested is the constant-capacity discharge function for peak shaving and valley filling, the operating data can be used to determine whether the capacity of the energy storage device is within the preset capacity range during the actual test; whether the energy storage device is controlled to discharge when the electricity price is high; whether the excess electricity is sold when the energy storage device is close to full charge; whether the grid is connected to the power supply when the electricity price is low, etc., so as to determine whether the energy storage system can normally perform the constant-capacity discharge function for peak shaving and valley filling.

[0059] In this way, not only can the effectiveness of the test be guaranteed, the test efficiency be improved, and the need for retesting due to problems with the task flow itself be avoided, but also equipment damage during the test process can be avoided.

[0060] The charge and discharge test method of the present application obtains the task flow corresponding to the charge and discharge function to be tested (i.e., the task pipeline composed of various tasks that implement the charge and discharge function to be tested). Since the task flow has different directions, in order to achieve full coverage testing, the task flow can be split into multiple test paths based on different directions, so as to perform simulation tests on each test path respectively. After the simulation test passes, the accuracy of the task flow can be determined, so as to perform actual tests on the energy storage system based on the more accurate task flow, and obtain the test operation data of the device energy storage system corresponding to the function to be tested after the actual test of the charge and discharge function to be tested, so as to obtain the final actual test results, so as to determine whether the charge and discharge function to be tested can be effectively implemented, thereby improving the effectiveness of the actual test, and avoiding safety problems (such as equipment damage) caused by problems with the task flow itself (such as unreasonable task flow design, or incorrect task configuration of the task flow, etc.).

[0061] In some embodiments, please refer to Figure 3 Before performing simulation tests on each test path to obtain simulation test results, the method further includes:

[0062] Step 015: Conflicting tasks are detected on each test path to determine and delete invalid paths. An invalid path is a test path where the processing results of any two tasks conflict with each other.

[0063] Specifically, there may be conflicts between different tasks, such as Figure 4 In the example, the output of task 5 is the same as the output of task 8, which means that the existence of task 8 will make task 5 in the test path invalid, making it difficult to evaluate whether task 5 is executed normally. Therefore, it is necessary to detect conflicting tasks, so as to determine the test path where the processing results of any two tasks conflict with each other as an invalid path, ensuring that all test paths used for simulation testing are valid paths and the effectiveness of simulation testing.

[0064] Optionally, each test path does not need to cover all branches, and it is only necessary to ensure that each test path is tested separately so that each task can be effectively tested to see if it is executed normally. For example, for task 1 and task 2, it is sufficient to make them both in two valid paths, and it is not necessary for task 1 and task 2 to be in the same test path.

[0065] In some embodiments, please refer to Figure 3 , the charge and discharge test method also includes:

[0066] Step 016: When any target test path in each test path fails the test, the faulty task is located based on the execution results of each task in the target test path during the simulation test.

[0067] Specifically, the role of the simulation test is not only to determine the test path that failed the test, but also to locate the faulty task in the test path that failed the test, so as to facilitate repairing the faulty task.

[0068] When conducting simulation tests, the input and output of each task can be obtained. Therefore, if any target test path in each test path fails the test, the execution results of each task in the target test path (such as including input and corresponding output) can be obtained. If the input and output do not correspond, or the output exceeds the preset range, it can be determined that the task is faulty and cannot perform data processing normally, thereby accurately determining the faulty task.

[0069] After the faulty task is identified, the faulty task can be repaired.

[0070] For example, the cause of the fault may be an input fault. For input faults, it is generally caused by unreasonable setting of the charge and discharge setting data. For example, for the judgment task (whether it is greater than 1), the target test path tests the judgment branch greater than 1, but the input of the judgment task is data less than 1, which causes the target test path to fail the test. Therefore, at this time, the charge and discharge setting data can be re-determined based on the execution result of the faulty task, thereby eliminating the faulty task caused by unreasonable charge and discharge setting data.

[0071] For another example, the cause of the failure may be an output failure. For output failure, it is generally due to unreasonable settings of the task itself, such as the output exceeds the preset range, or the relationship between the output and the input does not satisfy the preset mapping relationship, etc. At this time, the business logic of the faulty task can be adjusted based on the execution result of the faulty task to ensure the accuracy of the output.

[0072] In this way, by locating and modifying faulty tasks, problems in the task flow can be corrected in advance before actual testing, avoiding equipment damage caused by faulty tasks during subsequent actual testing, thereby ensuring the safety and effectiveness of the test.

[0073] According to the method described in the above embodiment, the present application embodiment also provides a functional testing device 300 for executing the steps in the above charge and discharge testing method. Figure 5 , Figure 54 is a schematic diagram of a functional testing device 400 provided in an embodiment of the present application. The functional testing device 300 includes an acquisition module 401, a generation module 402, a simulation test module 403, and an actual test module 404, wherein:

[0074] The acquisition module 401 is used to acquire a task flow corresponding to the charge and discharge function to be tested, and the task flow includes multiple tasks;

[0075] The generation module 402 is used to perform path analysis on the task flow to obtain multiple test paths, where the test paths consist of multiple tasks executed in sequence;

[0076] The simulation test module 403 is used to perform simulation tests on each test path to obtain simulation test results;

[0077] The actual test module 404 is used to perform an actual test on the charging and discharging function to be tested of the control energy storage system based on the task flow when the test path test corresponding to each simulation test result characterization has passed, so as to obtain the actual test result. The actual test result is determined based on the operating data after the energy storage system executes the task flow.

[0078] It should be noted that the specific details of each module unit in the above-mentioned functional testing device have been described in detail in the embodiment of the above-mentioned charging and discharging testing method, and will not be repeated here.

[0079] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0080] In some embodiments, the functional testing device in the embodiments of the present application can be implemented in hardware, such as an energy storage system, or a component in the energy storage system, such as an integrated circuit or a chip; the functional testing device can also be implemented in software, such as as an application installed in the energy storage system.

[0081] In some embodiments, please refer again to Figure 1 The energy storage system 1000 includes a processor 20 and a memory 30. The memory 30 stores a computer program that can be run on the processor 20. When the program is executed by the processor 20, each process of the embodiment of the above-mentioned charge and discharge test method is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0082] An embodiment of the present application also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the embodiment of the above-mentioned charge and discharge test method are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0083] The processor may be the processor in the energy storage system in the above embodiment. The computer readable storage medium may be a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0084] Computer readable media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash memory or other solid-state storage technologies, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, cassettes, magnetic tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will know that computer storage media are not limited to the above.

[0085] The embodiment of the present application also provides a computer program product, including a computer program, which implements the above-mentioned charge and discharge test method when executed by a processor. The processor may be a processor in the energy storage system in the above-mentioned embodiment. When the computer program is executed by the processor, each process of the embodiment of the above-mentioned charge and discharge test method is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0086] It is understandable that in the specific implementation of this application, data related to user identity or characteristics is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0087] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.

Claims

1. A charging and discharging test method for an energy storage system, characterized in that: include: Obtaining a task flow corresponding to the charge-discharge function to be tested, wherein the task flow includes multiple tasks; Performing path analysis on the task flow to obtain multiple test paths, where the test paths consist of multiple tasks executed sequentially; Performing simulation tests on each of the test paths to obtain simulation test results; When all the simulation test results are passed, the energy storage system is controlled based on the task flow to perform actual test of the charging and discharging function to be tested to obtain actual test results, and the actual test results are determined based on the operating data after the energy storage system executes the task flow.

2. The charge and discharge test method according to claim 1, characterized in that: Before performing simulation tests on each of the test paths to obtain simulation test results, the method further includes: Conflicting task detection is performed on each of the test paths to determine and delete invalid paths, where the invalid paths are test paths where the processing results of any two tasks conflict with each other.

3. The charge and discharge test method according to claim 1 or 2, characterized in that: The multiple tasks include at least common tasks and judgment tasks, the number of the test paths is positively correlated with the number of the judgment tasks, and the path analysis of the task flow to obtain multiple test paths includes: Each judgment branch of the judgment task is obtained to determine each test path based on the combination relationship between each judgment branch.

4. The charge and discharge test method according to any one of claims 1 to 3, characterized in that: Performing simulation tests on each of the test paths to obtain simulation test results includes: Determining charging and discharging setting data that satisfies the test conditions of each of the test paths, wherein the test conditions are determined based on the judgment tasks of the test paths; Based on the charge and discharge setting data, simulation tests are performed on each of the test paths to obtain simulation test results of each of the test paths.

5. The charge and discharge test method according to claim 4, characterized in that: The simulation test result includes a test pass and a test fail, and the method further includes: In the case that any target test path in each of the test paths fails the test, the faulty task is located based on the execution results of each task in the target test path when performing the simulation test.

6. The charge and discharge test method according to claim 5, characterized in that: The method further comprises: re-determining the charge and discharge setting data based on the execution result of the fault task; and / or The business logic of the faulty task is adjusted based on the execution result of the faulty task.

7. The charge and discharge test method according to claim 1, characterized in that: The charge and discharge function to be tested includes at least one of a constant capacity discharge function based on peak shaving and valley filling, an on-demand charge and discharge function based on peak shaving and valley filling, and a backflow prevention function.

8. A functional testing device, characterized in that: include: An acquisition module, used to acquire a task flow corresponding to the charge and discharge function to be tested, wherein the task flow includes multiple tasks; A generating module, configured to perform path analysis on the task flow to obtain a plurality of test paths, wherein the test paths are composed of a plurality of tasks executed sequentially; A simulation test module, used to perform simulation tests on each of the test paths to obtain simulation test results; The actual test module is used to perform an actual test on the charge-discharge function to be tested based on the task flow when all the simulation test results are passed, so as to obtain an actual test result.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the charge and discharge test method according to any one of claims 1 to 7 is implemented.

10. An energy storage system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the charge and discharge test method according to any one of claims 1 to 7 is implemented.

11. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the charge and discharge test method according to any one of claims 1 to 7.