A pressure testing system and testing method suitable for energy storage monitoring system
By designing a stress testing system suitable for energy storage monitoring systems, the problems of hardware resource limitations, communication protocol complexity and manual intervention are solved, and efficient and accurate test results and rapid fault diagnosis are achieved.
Patent Information
- Application Number
- CN202411972698.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2044-12-30
AI Technical Summary
Existing stress testing methods in energy storage monitoring systems have problems such as hardware resource limitations, communication protocol complexity, low testing efficiency, reduced accuracy due to manual intervention, and the inability to simultaneously simulate active-standby redundancy and dual-network modes.
A stress testing system suitable for energy storage monitoring systems is designed, including a task management module, a policy control module, a data object module, a communication management module, a message monitoring module and a data processing module. It manages resources through a thread pool, supports multiple communication protocols, automatically processes data and generates test reports.
It improves testing efficiency, reduces manual intervention, ensures the accuracy and repeatability of test results, supports large-scale simulation and multi-task concurrent testing, quickly identifies problems, and generates detailed test reports.
Smart Images

Figure CN119835172B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of energy storage monitoring, and in particular to a pressure testing system and a testing method thereof applicable to an energy storage monitoring system. Background Art
[0002] Energy storage monitoring systems (hereinafter referred to as "ESMSs") are becoming increasingly common in power systems. Their flexibility, efficiency, and environmental friendliness have led to their continued expansion. ESMSs can be used to regulate peak loads and offset valleys in the power grid, balancing the disparity between power supply and demand, and improving the stability and reliability of the power system. Furthermore, ESMSs can be used to address transient load fluctuations in the power system, providing immediate backup power and ensuring power supply quality. Furthermore, ESMSs can be used in conjunction with renewable energy generation systems to provide storage and dispatch capabilities for renewable energy, increasing their utilization efficiency. Overall, the application of ESMSs in power systems provides strong support for the sustainability and reliability of power supply. With the continuous advancement of technology and the widespread adoption of ESMSs, the requirements for performance testing of ESMSs are also increasing. This is especially true with the commissioning of gigawatt-hour-class ESMSs, which are required to handle large-scale and highly variable loads. To evaluate the performance and resilience of ESMSs under abnormal loads and fault conditions, more advanced stress testing tools and techniques are needed to more accurately reflect the performance of ESMSs under real-world operating conditions.
[0003] The shortcomings of existing methods: 1) Traditional stress testing requires the use of multiple measurement and control devices, each of which is equipped with multiple telesignals. A large number of telesignal position change signals are generated by short-circuiting the measurement and control devices and adding relay testers. This test environment that combines software and hardware is cumbersome and time-consuming. Under limited physical resources, there is an upper limit to the simulated load. Once the data to be simulated far exceeds the range that the existing hardware resources can support, large-scale stress testing cannot be carried out; 2) Traditional stress testing simultaneously sets the telesignal signal and the telemetry signal to realize telesignal avalanche simulation and telemetry avalanche simulation. All avalanche data are sent to the signal through a protocol. In actual power station energy storage monitoring system, the station communication The communication involves multiple communication protocols, such as Modbus, 103, 104, MMS, and CMS communication protocols; 3) Traditional stress testing does not support simultaneous stress testing of energy storage monitoring systems with active-standby redundancy and dual-network mode architecture. The traditional method requires waiting for the completion of the test on the main energy storage monitoring system before reconfiguring the test standby machine. This limitation prolongs the entire test process and reduces test efficiency; 4) Traditional stress testing requires manual inspection of the analog trigger signal quantity, the network message analysis recorder record signal quantity, and the energy storage monitoring system event sequence record (SOE) signal quantity. Manual intervention to judge the results is time-consuming and labor-intensive and prone to human errors, resulting in reduced accuracy of the inspection results.
[0004] Therefore, in view of the shortcomings of the existing technology, it is necessary to provide a pressure testing system and a testing method suitable for an energy storage monitoring system to solve the shortcomings of the existing technology. Summary of the Invention
[0005] The first object of the present invention is to overcome the shortcomings of the prior art and provide a pressure testing system for an energy storage monitoring system. The pressure testing system for an energy storage monitoring system can provide strong support for the testing and acceptance of the energy storage monitoring system and can process and simulate a large number of energy storage devices.
[0006] The above-mentioned purpose of the present invention is achieved through the following technical measures:
[0007] Provided is a pressure testing system suitable for an energy storage monitoring system, comprising:
[0008] Task management module - receives the pressure test parameters corresponding to the energy storage monitoring system test task input by the host computer;
[0009] The policy control module allocates its CPU resources and controls the energy storage monitoring system through a thread pool for testing. It also sets scenarios for telesignaling position change, telemetering over-limit, and a combination of telesignaling position change and telemetering over-limit, as well as specifies the telesignaling and telemetering data change patterns.
[0010] Data Object Module - Import the point table for intra-station communication or the SCD configuration file for the entire station system, select the number of simulated devices, telesignaling position changes, and telemetering over-limit objects, and then perform device simulation;
[0011] Communication management module - communicates with the energy storage monitoring system and the host computer; selects the communication protocol type based on the stress test parameters, allocates IP addresses and port numbers based on the number of simulated devices in the data object module, and transmits the simulated devices, telesignaling changes, and telemetering over-limit objects selected by the data object module to the energy storage monitoring system via messages;
[0012] Message monitoring module - captures messages sent by the communication management module to the energy storage monitoring system, filters and extracts semaphores from the messages. The semaphores consist of fields such as alarm time, alarm type, and alarm content. The semaphores are combined into a file A.csv containing the alarm time, alarm type, and alarm content, and the file A.csv is transferred to the data processing module.
[0013] Data processing module: receives the file A.csv, compares the file A.csv with the historical database of the energy storage monitoring system, and outputs the test results.
[0014] Preferably, when the simulation trigger signal quantity of the data object module is equal to the parsed signal quantity of the file A.csv, the above-mentioned data processing module outputs a result that the test environment is normal and continues to execute the test; otherwise, it outputs a result that the signal quantity does not match and automatically stops the test.
[0015] Preferably, the above-mentioned analog trigger signal quantity is the sum of the telemetry points and telesignaling points of all analog devices; and the above-mentioned analysis signal quantity is the total number of the above-mentioned signal quantities.
[0016] Preferably, the above-mentioned data processing module also remotely connects to the historical database of the energy storage monitoring system, and queries the event sequence record SOE database table, and then filters the alarm time, alarm type and alarm content field contents in the event sequence record SOE database table to obtain the query results, and outputs the query results in file B.csv.
[0017] When the test continues, the data processing module reorders the files A.csv and B.csv according to the alarm time, and compares the contents and semaphores of the two sorted files A.csv and B.csv. When the event query semaphore in the file B.csv is equal to the parsed semaphore in the file A.csv, the module outputs the result of "normal test report of energy storage monitoring system data processing"; when the event query semaphore in the file B.csv is less than the parsed semaphore in the file A.csv, the module outputs the result of "missing point or omission test report of energy storage monitoring system data processing"; when the event query semaphore in the file B.csv is greater than the parsed semaphore in the file A.csv, the module outputs the result of "multiple report or duplicate test report of energy storage monitoring system data processing".
[0018] When the intra-station communication of the energy storage monitoring system adopts the Modbus protocol, 103 protocol or 104 protocol, the data object module imports the point table of the intra-station communication information, and the imported point table is consistent with the point table configuration of the energy storage monitoring system.
[0019] When the intra-station communication of the energy storage monitoring system adopts the MMS protocol or the CMS protocol, the SCD configuration file of the entire station system is imported into the data object module, and then the data object module parses the SCD configuration file into a CID file, and the imported SCD configuration file is consistent with the SCD configuration file configuration of the energy storage monitoring system.
[0020] Preferably, the data object module further obtains the number of telesignaling changes and the number of telemetry changes from the parameter configuration information in the stress test parameters.
[0021] Preferably, the above-mentioned point table at least includes the telesignaling point number, the communication point table name, the communication point table index address, the telemetry point number, the telemetry point name and the telemetry point index address.
[0022] Preferably, the above-mentioned communication management module is provided with a communication protocol submodule and a communication interface submodule.
[0023] Preferably, the above-mentioned communication protocol submodule is used to parse and generate corresponding communication protocol data packets, and the communication protocol submodule supports Modbus communication protocol, 103 communication protocol, 104 communication protocol, MMS communication protocol and CMS communication protocol, and parses and generates corresponding communication protocol data packets.
[0024] Preferably, the above-mentioned communication interface submodule is used to configure parameters, set IP addresses and set port numbers.
[0025] Preferably, the message monitoring module is further used to set packet capture parameters, which are capture filtering rules and capture time.
[0026] Preferably, the message monitoring module captures the message and writes it into local storage or transmits it to an external server via the network, then analyzes and decodes the message, uses the sniffer command line interface to filter the telesignaling and telemetry change messages, uses Python's scapy library to read the pcap file, and extracts the alarm time, alarm type, and alarm content fields of the message to form file A.csv.
[0027] Preferably, the time interval during which the message monitoring module retrieves the message is greater than the time during which the data signal is generated.
[0028] Preferably, the task management module is provided with a task list submodule and a task execution submodule.
[0029] Preferably, the task list submodule includes a create task function, a view task function, an edit task function and a delete task function.
[0030] Preferably, the task execution submodule includes a task start function, a task pause function and a test task end function.
[0031] Preferably, the above-mentioned create task function is used to set the stress test parameters.
[0032] Preferably, the above-mentioned viewing task function is used to view the created tasks and view the detailed information of the tasks.
[0033] Preferably, the above-mentioned editing task function is used to edit the created task and modify the stress test parameters.
[0034] Preferably, the above-mentioned task deletion function is used to delete a created task, thereby removing it from the task list according to the task ID.
[0035] Preferably, the above-mentioned policy control module is also used to set supported scenarios and data change modes; the scenarios are set to telesignaling position change, telemetry over-limit, and telesignaling position change + telemetry over-limit combination; the data change modes are telesignaling data change mode and telemetry data change mode.
[0036] Preferably, the above stress test parameters are task name, task ID, protocol type, task description, configuration parameters and priority.
[0037] Preferably, the above-mentioned protocol types are Modbus communication protocol, 103 communication protocol, 104 communication protocol, MMS communication protocol, and CMS communication protocol.
[0038] Preferably, the above configuration parameters are the number of telesignaling changes, the period of telesignaling change, the number of telemetering changes, the upper limit of telemetering change, the lower limit of telemetering change, the period of telemetering change and the operating time.
[0039] Preferably, the above-mentioned equipment is an in-situ formation equipment of an energy storage monitoring system.
[0040] Preferably, the above-mentioned point table is a point table of the energy storage monitoring system or a pre-obtained point table.
[0041] Preferably, the above-mentioned SCD configuration file is an SCD configuration file of the energy storage monitoring system or a pre-obtained SCD configuration file.
[0042] A second object of the present invention is to overcome the shortcomings of the prior art and provide a testing method based on a pressure testing system suitable for an energy storage monitoring system. This testing method can provide strong support for the testing and acceptance of the energy storage monitoring system and can process and simulate a large number of energy storage devices.
[0043] The above-mentioned purpose of the present invention is achieved through the following technical measures:
[0044] A testing method based on the pressure testing system for the energy storage monitoring system is provided, which is performed by the following steps:
[0045] S1, start, enter S2;
[0046] S2. Input the pressure test requirements and corresponding pressure test parameters of the energy storage monitoring system into the task management module, and proceed to S3;
[0047] S3: The policy control module schedules threads according to the stress test parameters, thereby controlling the energy storage monitoring system to perform the test, and then proceeds to S4.
[0048] S4. The data object module imports the point table or SCD configuration file consistent with the energy storage monitoring system and enters S5.
[0049] S5: The communication management module selects the communication protocol type and sends the analog device, telesignaling position change, and telemetering over-limit object selected by the data object module to the energy storage monitoring system via a message, and then proceeds to S6;
[0050] S6, the message monitoring module captures the message of the communication management module and parses it, and then enters S7;
[0051] S7, the message monitoring module sends the analysis results to the data processing module, and enters S8;
[0052] S8, the data processing module determines the test results and outputs a test report, and then enters S9;
[0053] S9, end.
[0054] Preferably, the method for determining the test result of the data processing module is performed by the following steps:
[0055] A1. Compare the simulated trigger signal of the data object module with the parsed signal parsed by the message monitoring module. When the simulated trigger signal is equal to the parsed signal, determine that the test environment is normal and continue to execute the test and enter A2. When the simulated trigger signal is greater than or less than the parsed signal, determine that the output signal does not match and automatically stop the test.
[0056] A2. Compare the event query signal volume with the resolution signal volume. When the event query signal volume is equal to the resolution signal volume, it is determined that the energy storage monitoring system data processing test report is normal. When the resolution signal volume is greater than the event query signal volume, it is determined that the energy storage monitoring system data processing test report is missed or underreported. When the resolution signal volume is less than the event query signal volume, it is determined that the energy storage monitoring system data processing test report is overreported or repeated.
[0057] The present invention provides a pressure test system and a test method for an energy storage monitoring system, wherein the pressure test system is provided with a task management module to receive pressure test parameters corresponding to the test task of the energy storage monitoring system to be tested input by the host computer; the policy control module allocates its CPU resources and controls the energy storage monitoring system to perform the test through the thread pool; at the same time, scenarios of telesignaling change, telemetering over-limit, and the combination of telesignaling change and telemetering over-limit are set, and the telesignaling and telemetering data change mode is specified; the data object module imports the point table of intra-station communication or the SCD configuration file of the whole station system, selects the number of simulated devices, telesignaling change and telemetering over-limit objects, and then performs device simulation; the communication management module communicates with the energy storage monitoring system and the host computer; and at the same time, the communication is selected according to the pressure test parameters. Protocol type, assign IP addresses and port numbers according to the number of simulated devices in the data object module, and send the simulated devices, telesignaling changes, and telemetering over-limit objects selected by the data object module to the energy storage monitoring system via messages; the message monitoring module captures the messages sent by the communication management module to the energy storage monitoring system, filters and extracts the semaphores in the messages, and the semaphores are composed of the alarm time, alarm type, and alarm content fields. The alarm time, alarm type, and alarm content fields in all semaphores are collectively formed into file A.csv, and the file A.csv is transferred to the data processing module; the data processing module receives the file A.csv, compares the file A.csv with the historical database of the energy storage monitoring system, and outputs the test results. The present invention can provide strong support for the testing and acceptance of energy storage monitoring systems, can process and simulate a large number of energy storage devices, and provide a test platform that can simulate the operation of large-scale energy storage systems. It supports multiple communication protocols and specifications to ensure the interoperability of different types of energy storage devices and systems. It can simulate communication in multiple channels and conduct concurrent testing of multiple test tasks. The introduction of automated data processing can significantly improve test efficiency, reduce manual intervention, avoid human errors, and ensure the repeatability and accuracy of test results. The present invention also automatically analyzes test results based on preset judgment logic, can quickly identify problems and anomalies, thereby accelerating fault diagnosis and problem solving; and automatically generates test reports and provides test result analysis data, which helps to comprehensively evaluate the performance indicators of the energy storage monitoring system. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The present invention is further described with reference to the accompanying drawings, but the contents in the accompanying drawings do not constitute any limitation to the present invention.
[0059] Figure 1 Schematic diagram of the testing method of the present invention.
[0060] Figure 2 Flowchart of a method for determining test results of a data processing module. DETAILED DESCRIPTION
[0061] The technical solution of the present invention is further described with reference to the following examples.
[0062] Example 1
[0063] A pressure testing system suitable for an energy storage monitoring system, comprising:
[0064] Task management module - receives the pressure test parameters corresponding to the energy storage monitoring system test task input by the host computer;
[0065] The policy control module allocates its CPU resources and controls the energy storage monitoring system through a thread pool for testing. It also sets scenarios for telesignaling position change, telemetering over-limit, and a combination of telesignaling position change and telemetering over-limit, as well as specifies the telesignaling and telemetering data change patterns.
[0066] Data Object Module - Import the point list for intra-station communication or the SCD configuration file for the entire station system, select the number of simulated devices, telesignaling position changes, and telemetering over-limit objects, and then perform device simulation; the devices are the existing ground-level devices of the energy storage monitoring system;
[0067] Communication management module - communicates with the energy storage monitoring system and the host computer; selects the communication protocol type based on the stress test parameters, allocates IP addresses and port numbers based on the number of simulated devices in the data object module, and transmits the simulated devices, telesignaling changes, and telemetering over-limit objects selected by the data object module to the energy storage monitoring system via messages;
[0068] Message monitoring module: This module captures messages sent from the communication management module to the energy storage monitoring system, filters and extracts semaphores from the messages. These semaphores consist of fields such as alarm time, alarm type, and alarm content. These fields are combined into a file called A.csv, which is then transferred to the data processing module.
[0069] Data processing module - receives file A.csv, compares file A.csv with the historical database of the energy storage monitoring system, and outputs the test results.
[0070] It should be noted that before the energy storage monitoring system under test undergoes a stress test, the test port of the pressure testing system of the present invention communicates with the energy storage monitoring system, and the host computer communicates with the management port of the pressure testing system. The tester configures the stress test parameters through the host computer's graphical user interface (GUI). At the start of the test, the policy control module configures the test plan and stress test parameters based on the stress test requirements of the energy storage monitoring system.
[0071] It should be noted that after completing the input of stress test parameters, the policy control module is responsible for scheduling tasks and realizing effective management of concurrent tasks through the thread pool. When the stress test task is submitted to the thread pool, ThreadPoolExecutor is the core implementation class of the thread pool. ThreadPoolExecutor will process the stress test task according to the current thread pool status and configuration parameters. First, the running status of the thread pool is detected. The task is executed in the running state, otherwise it is rejected. When executing the test task, when the number of threads in the thread pool is less than the number of core threads, the thread pool creates a new thread to execute the task. When the number of threads in the thread pool is greater than or equal to the number of core threads and the blocking queue is not full, the new task will be placed in the blocking queue and wait for execution. When the number of threads in the thread pool is less than the maximum number of threads and the blocking queue is full, the thread pool creates a new thread to execute the task. When the number of threads in the thread pool has reached the maximum number of threads and the blocking queue is full, the thread pool executes the rejection strategy.
[0072] When the simulation trigger signal quantity of the data object module is equal to the parsed signal quantity of the file A.csv, the data processing module outputs the result that the test environment is normal and continues to execute the test; otherwise, it outputs the result that the signal quantity does not match and automatically stops the test; the simulation trigger signal quantity is the sum of the telemetry points and telesignaling points of all simulated devices; the parsed signal quantity is the total number of signal quantities.
[0073] Specifically: the time interval for the message monitoring module to retrieve the message must be greater than the time when the data signal is generated. The start and end times are set to be extended by 10s respectively. The file extracted by the message monitoring module is passed to the data processing module for statistical analysis. If the parsing signal of the message is equal to the simulation trigger signal, it means that the test environment is normal and can continue to be executed, otherwise the test will be automatically stopped; if the message parsing signal is less than the simulation trigger signal, it means that the test environment is abnormal and data is lost; if the message parsing signal is greater than the data trigger signal, it means that the test environment is abnormal and the data is falsely reported.
[0074] The data processing module also remotely connects to the historical database of the energy storage monitoring system and queries the event sequence record SOE database table, then filters the alarm time, alarm type and alarm content fields in the event sequence record SOE database table to obtain the query results, and outputs the query results in file B.csv.
[0075] When the test continues, the data processing module reorders files A.csv and B.csv according to the alarm time, and compares the contents and semaphores of the two sorted files A.csv and B.csv. When the event query semaphore in file B.csv is equal to the parsed semaphore in file A.csv, the module outputs the result of "normal test report of energy storage monitoring system data processing"; when the parsed semaphore in file A.csv is greater than the event query semaphore in file B.csv, the module outputs the result of "missing point or underreporting test report of energy storage monitoring system data processing"; when the parsed semaphore in file A.csv is less than the event query semaphore in file B.csv, the module outputs the result of "overreporting or duplication test report of energy storage monitoring system data processing".
[0076] It should be noted that the data processing module remotely connects to the historical database of the energy storage monitoring system, queries the SOE in the alarm information storage table of the energy storage monitoring system historical database, queries and filters the SOE alarm time, alarm type, and alarm content fields, processes the query results into a Python list, and uses Python's csv module to output a csv format file, marked as file B.csv. The event query semaphore and the message parsing semaphore are consistent, indicating that the stress test has passed, and the test report outputs the message parsing semaphore and the event query semaphore. If the message parsing semaphore is greater than the event query semaphore, it indicates that there are missed points or underreporting during the data processing of the energy storage monitoring system, and the test report provides specific lost signal information. If the message parsing semaphore is less than the event query semaphore, it indicates that there are multiple reports or repeated reports during the processing of the energy storage monitoring system, and the test report provides specific duplicate data signal information.
[0077] When the energy storage monitoring system uses Modbus, 103, or 104 protocols for intra-station communication, the data object module imports the point table for intra-station communication information. This imported point table must be consistent with the energy storage monitoring system's point table configuration. The point table must contain at least the telesignaling point number, communication point table name, communication point table index address, telemetry point number, telemetry point name, and telemetry point index address.
[0078] When the intra-station communication of the energy storage monitoring system adopts the MMS protocol or CMS protocol, the SCD configuration file of the entire station system is imported into the data object module. The data object module then parses the SCD configuration file into a CID file, and the imported SCD configuration file is consistent with the SCD configuration file of the energy storage monitoring system.
[0079] The SCD configuration file contains 100 each for the BMS, PCS, protection and measurement and control devices, and auxiliary equipment. The BMS IEDs are numbered PL001, ..., PL100; the PCS IEDs are numbered PL101, ..., PL200; the protection and measurement and control device IEDs are numbered PL201, ..., PL300; and the IEDs for auxiliary equipment such as air conditioners, fans, access control systems, and smoke detectors are numbered PL301, ..., PL400. Each simulated device has 100 telemetry points and 100 telesignaling points. The data object module parses the SCD file into a CID file and displays the simulated device's IED name, IP address, operating status, number of telesignaling points, and number of telemetry points on the GUI. The number of telesignaling changes and telemetering changes are obtained from the parameter configuration information of the task management module. The actual number of telesignaling simulation devices = the number of telesignaling changes / 100. The telesignaling data objects are selected one by one from the BMS, PCS, protection and measurement and control devices, and auxiliary equipment until it is equal to the actual number of telesignaling simulation devices. The actual number of telemetering simulation devices = the number of telemetering changes / 100. The telemetering data objects are selected one by one from the BMS, PCS, protection and measurement and control devices, and auxiliary equipment until it is equal to the actual number of telemetering simulation devices.
[0080] The point table is a point table of the energy storage monitoring system or a pre-obtained point table. The SCD configuration file is an SCD configuration file of the energy storage monitoring system or a pre-obtained SCD configuration file.
[0081] The data object module also obtains the number of telesignaling and telemetering changes from the parameter configuration information in the stress test parameters. It also obtains the number of telesignaling and telemetering changes from the parameter configuration information in the task management module. The telesignaling data object selects data between the telesignaling start address and the telesignaling end address. The telesignaling start address is typically 1, and the telesignaling end address = the telesignaling start address + the number of telesignaling changes. The telemetry data object selects data between the telemetrying start address and the telemetrying end address. The telemetrying start address is typically 16385, and the telemetrying end address = the telemetrying start address + the number of telesignaling changes.
[0082] The communication management module includes a communication protocol submodule and a communication interface submodule. The communication protocol submodule is used to parse and generate corresponding communication protocol data packets. It supports Modbus, 103, 104, MMS, and CMS communication protocols, parsing and generating corresponding communication protocol data packets. The communication interface submodule is used to configure parameters, set IP addresses, and set port numbers.
[0083] It should be noted that the energy storage monitoring system and the communication management module communicate via the TCP / IP protocol. During hardware design, a network card supporting both 100M and 100M adaptive speeds and Ethernet was selected. Once the communication management module successfully establishes a communication connection with the energy storage monitoring system, it sends messages to the energy storage monitoring system via a protocol.
[0084] The message monitoring module is also used to set packet capture parameters, which include capture filtering rules and capture time. The message monitoring module captures messages and writes them to local storage or transmits them to an external server via the network. It then analyzes and decodes the messages, uses the sniffer command line interface to filter telesignaling and telemetry change messages, uses Python's scapy library to read pcap files, and extracts the message's alarm time, alarm type, and alarm content fields to form file A.csv. The time interval in which the message monitoring module retrieves messages is greater than the time when the data signal is generated.
[0085] It should be noted that the message monitoring module integrates existing network sniffer tools or libraries, such as tcpdump, Wireshark, and Scapy, into the device's operating system. Captured data packets are written to local storage or transmitted over the network to an external server. The captured data packets are analyzed and decoded, and the telesignaling and telemetry change messages are filtered using the sniffer's command-line interface. The Python scapy library is used to read pcap files and extract the alarm time, alarm type, and alarm content fields from the messages. The extracted data is added to a list. A loop (for or while) and conditional statements are used to iterate over the data and check whether it meets the extraction criteria. If it does, the field is added to the list, resulting in a list containing all the fields. This facilitates further sorting, specific field searches, and output in a CSV format file, labeled A.csv.
[0086] Captured data packets are written to local storage or transmitted over the network to an external server. The captured data packets are then analyzed and decoded. The sniffer's command-line interface is used to filter telesignaling and telemetry change messages. The Python scapy library is used to read the pcap file and extract the message fields such as the alarm time, alarm type, and alarm content. The extracted data is added to a list. A loop (for or while) and conditional statements are used to iterate over the data and check whether the extraction criteria are met. If they are met, the field is added to the list, resulting in a list containing all the fields. This facilitates further sorting, specific field searches, and output to a CSV file, labeled A.csv.
[0087] The policy control module is also used to set supported scenarios and data change modes; the scenarios are set to telesignal position change, telemetering over-limit, and telesignal position change + telemetering over-limit combination; the data change modes are telesignaling data change mode and telemetering data change mode.
[0088] The telesignaling changes in the strategy control module include: telesignaling data change mode, telemetry data change mode, telemetry random change mode, increasing or decreasing linear change mode and telemetry point random change mode. Specifically:
[0089] Telesignal data change mode: Batch setting telesignal status values to 0: In this mode, all telesignal status values will be set to 0. Batch setting telesignal status values to 1: In this mode, all telesignal status values will be set to 1. Random setting of telesignal status values: In this mode, some telesignal status values will be randomly set to 0 or 1.
[0090] Telemetry data change mode: increasing or decreasing linearly: In this mode, the value of each telemetry point will increase or decrease linearly according to a certain ratio.
[0091] Telemetry random change mode: In this mode, the value of each telemetry point will change randomly. The range of telemetry values is limited to ensure that the telemetry value does not exceed the limit.
[0092] Increasing or decreasing linear change mode: In this mode, the value of each telemetry point increases or decreases linearly at a specific ratio within a set time range. This ratio is pre-set and can be a fixed value or a dynamically changing value. This mode can be used to simulate continuous changes in physical quantities such as temperature and pressure.
[0093] Telemetry Point Random Change Mode: In this mode, the value of each telemetry point will change randomly. This random change means the value fluctuates randomly within a set range. At the same time, to ensure that the telemetry value does not exceed the limit, a value range must be set.
[0094] The task management module is equipped with a task list submodule and a task execution submodule; the task list submodule includes the create task function, view task function, edit task function and delete task function; the task execution submodule includes the start task function, pause task function and end test task function; the create task function is used to set stress test parameters; the view task function is used to view the created tasks and view the detailed information of the tasks; the edit task function is used to edit the created tasks and modify the stress test parameters; the delete task function is used to delete the created tasks, thereby removing them from the task list according to the task ID.
[0095] The stress test parameters are task name, task ID, protocol type, task description, configuration parameters and priority; the protocol types are Modbus communication protocol, 103 communication protocol, 104 communication protocol, MMS communication protocol and CMS communication protocol; the configuration parameters are number of telesignaling changes, telesignaling change cycle, number of telemetering changes, upper limit of telemetering change, lower limit of telemetering change, telemetering change cycle and running time.
[0096] The pressure test system for energy storage monitoring systems can provide strong support for the test acceptance of energy storage monitoring systems, can process and simulate a large number of energy storage devices, and provide a test platform that can simulate the operation of large-scale energy storage systems. It supports multiple communication protocols and specifications to ensure the interoperability of different types of energy storage devices and systems. It can simulate the communication of multiple channels and concurrently test multiple test tasks. The introduction of automated data processing can greatly improve test efficiency, reduce manual intervention, avoid human errors, and ensure the repeatability and accuracy of test results. The present invention also automatically analyzes test results according to preset judgment logic, can quickly identify problems and anomalies, thereby accelerating fault diagnosis and problem solving; automatically generates test reports and provides test result analysis data, which helps to comprehensively evaluate the performance indicators of the energy storage monitoring system.
[0097] Example 2
[0098] A testing method for a pressure testing system of an energy storage monitoring system based on Example 1, such as Figure 1 , proceed as follows:
[0099] S1, start, enter S2;
[0100] S2. Input the pressure test requirements and corresponding pressure test parameters of the energy storage monitoring system into the task management module, and proceed to S3;
[0101] S3: The policy control module schedules threads according to the stress test parameters, thereby controlling the energy storage monitoring system to perform the test, and then proceeds to S4.
[0102] S4. The data object module imports the point table or SCD configuration file consistent with the energy storage monitoring system and enters S5.
[0103] S5: The communication management module selects the communication protocol type and sends the analog device, telesignaling position change, and telemetering over-limit object selected by the data object module to the energy storage monitoring system via a message, and then proceeds to S6;
[0104] S6, the message monitoring module captures the message of the communication management module and parses it, and then enters S7;
[0105] S7, the message monitoring module sends the analysis results to the data processing module, and enters S8;
[0106] S8, the data processing module determines the test results and outputs a test report, and then enters S9;
[0107] S9, end.
[0108] The method for determining the test results of the data processing module is as follows: Figure 2 :
[0109] A1: Compare the simulated trigger signal of the data object module with the parsed signal parsed by the message monitoring module. When the simulated trigger signal is equal to the parsed signal, it is determined that the test environment is normal and the test continues to proceed to A2. When the simulated trigger signal is greater than or less than the parsed signal, it is determined that the output signal does not match and the test automatically stops.
[0110] A2. Compare the event query signal volume with the resolution signal volume. When the event query signal volume is equal to the resolution signal volume, it is determined that the energy storage monitoring system data processing test report is normal. When the resolution signal volume is greater than the event query signal volume, it is determined that the energy storage monitoring system data processing test report is missed or underreported. When the resolution signal volume is less than the event query signal volume, it is determined that the energy storage monitoring system data processing test report is overreported or repeated.
[0111] This testing method can provide strong support for the test acceptance of energy storage monitoring systems, can process and simulate a large number of energy storage devices, and provide a test platform that can simulate the operation of large-scale energy storage systems. It supports multiple communication protocols and specifications to ensure the interoperability of different types of energy storage devices and systems. It can simulate communication in multiple channels and concurrently test multiple test tasks. The introduction of automated data processing can greatly improve test efficiency, reduce manual intervention, avoid human errors, and ensure the repeatability and accuracy of test results. The present invention also automatically analyzes test results according to preset judgment logic, can quickly identify problems and anomalies, thereby accelerating fault diagnosis and problem solving; automatically generates test reports and provides test result analysis data, which helps to comprehensively evaluate the performance indicators of energy storage monitoring systems.
[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the scope of protection of the present invention. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the essence and scope of the technical solutions of the present invention.
Claims
1. A pressure testing system suitable for an energy storage monitoring system, characterized in that: The settings are: Task management module - receives the pressure test parameters corresponding to the energy storage monitoring system test task input by the host computer; The policy control module allocates its CPU resources and controls the energy storage monitoring system through a thread pool for testing. It also sets scenarios for telesignaling position change, telemetering over-limit, and a combination of telesignaling position change and telemetering over-limit, as well as specifies the telesignaling and telemetering data change patterns. Data Object Module - Import the point table for intra-station communication or the SCD configuration file for the entire station system, select the number of simulated devices, telesignaling position changes, and telemetering over-limit objects, and then perform device simulation; Communication management module - communicates with the energy storage monitoring system and the host computer; selects the communication protocol type based on the stress test parameters, allocates IP addresses and port numbers based on the number of simulated devices in the data object module, and transmits the simulated devices, telesignaling changes, and telemetering over-limit objects selected by the data object module to the energy storage monitoring system via messages; Message monitoring module - captures messages sent by the communication management module to the energy storage monitoring system, filters and extracts semaphores from the messages. The semaphores consist of fields such as alarm time, alarm type, and alarm content. The semaphores are combined into a file A.csv containing the alarm time, alarm type, and alarm content, and the file A.csv is transferred to the data processing module. Data processing module: receives the file A.csv, compares the file A.csv with the historical database of the energy storage monitoring system, and outputs the test results.
2. The pressure testing system for an energy storage monitoring system according to claim 1, characterized in that: When the simulation trigger signal quantity of the data object module is equal to the parsed signal quantity of the file A.csv, the data processing module outputs a result that the test environment is normal and continues to execute the test; otherwise, it outputs a result that the signal quantity does not match and automatically stops the test; The analog trigger signal quantity is the sum of the telemetry points and telesignaling points of all analog devices; the parsed signal quantity is the total number of the signal quantities.
3. The pressure testing system for an energy storage monitoring system according to claim 2, characterized in that: The data processing module also remotely connects to the historical database of the energy storage monitoring system and queries the event sequence record (SOE) database table, then filters the alarm time, alarm type, and alarm content fields in the event sequence record (SOE) database table to obtain query results, and outputs the query results as file B.csv; When the test continues, the data processing module reorders the files A.csv and B.csv according to the alarm time, and compares the contents and semaphores of the sorted files A.csv and B.csv. When the event query semaphore in file B.csv is equal to the parsed semaphore in file A.csv, the module outputs a "normal energy storage monitoring system data processing test report" result; when the parsed semaphore in file A.csv is greater than the event query semaphore in file B.csv, the module outputs a "missing point or underreporting test report for energy storage monitoring system data processing" result; and when the parsed semaphore in file A.csv is less than the event query semaphore in file B.csv, the module outputs a "multiple reporting or duplicate testing report for energy storage monitoring system data processing" result.
4. The pressure testing system for an energy storage monitoring system according to claim 3, characterized in that: When the intra-station communication of the energy storage monitoring system adopts the Modbus protocol, 103 protocol or 104 protocol, the data object module imports the point table of the intra-station communication information, and the imported point table is consistent with the point table configuration of the energy storage monitoring system; When the intra-station communication of the energy storage monitoring system adopts the MMS protocol or the CMS protocol, the SCD configuration file of the entire station system is imported into the data object module, and then the data object module parses the SCD configuration file into a CID file, and the imported SCD configuration file is consistent with the SCD configuration file configuration of the energy storage monitoring system.
5. The pressure testing system for an energy storage monitoring system according to claim 4, characterized in that: The data object module also obtains the number of telesignaling changes and the number of telemetry changes from the parameter configuration information in the stress test parameters; The point table at least includes a telesignaling point number, a communication point table name, a communication point table index address, a telemetry point number, a telemetry point name and a telemetry point index address.
6. The pressure testing system for an energy storage monitoring system according to claim 5, characterized in that: The communication management module is provided with a communication protocol submodule and a communication interface submodule; The communication protocol submodule is used to parse and generate corresponding communication protocol data packets, and the communication protocol submodule supports Modbus communication protocol, 103 communication protocol, 104 communication protocol, MMS communication protocol and CMS communication protocol, and parses and generates corresponding communication protocol data packets; The communication interface submodule is used to configure parameters, set IP addresses and set port numbers.
7. The pressure testing system for an energy storage monitoring system according to claim 6, characterized in that: The message monitoring module is also used to set packet capture parameters, which include capture filtering rules and capture time; The message monitoring module captures the message and writes it into local storage or transmits it to an external server via the network. It then analyzes and decodes the message, filters the telesignaling and telemetry change messages using the sniffer command line interface, uses Python's scapy library to read the pcap file, and extracts the alarm time, alarm type, and alarm content fields of the message to form a file A.csv; The time interval during which the message monitoring module retrieves the message is greater than the time when the data signal is generated.
8. The pressure testing system for an energy storage monitoring system according to claim 7, characterized in that: The task management module is provided with a task list submodule and a task execution submodule; The task list submodule includes the functions of creating tasks, viewing tasks, editing tasks and deleting tasks; The task execution submodule includes a task start function, a task pause function and a task end test function; The create task function is used to set the stress test parameters; The task view function is used to view the created tasks and view the detailed information of the tasks; The editing task function is used to edit the created task and modify the stress test parameters; The delete task function is used to delete a created task, thereby removing it from the task list according to the task ID; The policy control module is also used to set supported scenarios and data change modes; the scenarios are set to telesignaling position change, telemetry over-limit, and a combination of telesignaling position change + telemetry over-limit; the data change modes are telesignaling data change mode and telemetry data change mode.
9. The pressure testing system for an energy storage monitoring system according to claim 8, characterized in that: The stress test parameters are task name, task ID, protocol type, task description, configuration parameters and priority; The protocol types are Modbus communication protocol, 103 communication protocol, 104 communication protocol, MMS communication protocol, and CMS communication protocol; The configuration parameters are the number of telesignal changes, the period of telesignal change, the number of telemetering changes, the upper limit of telemetering change, the lower limit of telemetering change, the period of telemetering change and the operating time; The equipment is an in-situ stratum equipment for an energy storage monitoring system; The point table is a point table of the energy storage monitoring system or a pre-obtained point table; The SCD configuration file is an SCD configuration file of the energy storage monitoring system or a pre-obtained SCD configuration file.
10. A testing method for a pressure testing system applicable to an energy storage monitoring system based on any one of claims 1 to 9, characterized in that: Proceed as follows: S1, start, enter S2; S2. Input the pressure test requirements and corresponding pressure test parameters of the energy storage monitoring system into the task management module, and proceed to S3; S3: The policy control module schedules threads according to the stress test parameters, thereby controlling the energy storage monitoring system to perform the test, and then proceeds to S4. S4. The data object module imports the point table or SCD configuration file consistent with the energy storage monitoring system and enters S5. S5: The communication management module selects the communication protocol type and sends the analog device, telesignaling position change, and telemetering over-limit object selected by the data object module to the energy storage monitoring system via a message, and then proceeds to S6; S6, the message monitoring module captures the message of the communication management module and parses it, and then enters S7; S7, the message monitoring module sends the analysis results to the data processing module, and enters S8; S8, the data processing module determines the test results and outputs a test report, and then enters S9; S9, end; The method for determining the test result of the data processing module is performed by the following steps: A1. Compare the simulated trigger signal of the data object module with the parsed signal parsed by the message monitoring module. When the simulated trigger signal is equal to the parsed signal, determine that the test environment is normal and continue to execute the test and enter A2. When the simulated trigger signal is greater than or less than the parsed signal, determine that the output signal does not match and automatically stop the test. A2. Compare the event query signal volume with the resolution signal volume. When the event query signal volume is equal to the resolution signal volume, it is determined that the energy storage monitoring system data processing test report is normal. When the resolution signal volume is greater than the event query signal volume, it is determined that the energy storage monitoring system data processing test report is missed or underreported. When the resolution signal volume is less than the event query signal volume, it is determined that the energy storage monitoring system data processing test report is overreported or repeated.
Citation Information
Patent Citations
Monitoring function test method and system for energy storage power station
CN110275509A
Distributed Internet of Things platform pressure test system
CN115567559A