Test system and method based on energy management system

By designing an automated test system in the energy management system, using data detection, picture analysis and status judgment modules, combined with container technology, the problem of traditional testing requiring human participation is solved, automated testing is realized, costs are reduced and standardization is promoted. .

CN114265784BActive Publication Date: 2024-10-25SHANGHAI YUYUAN POWER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111638484.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2024-10-25
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

Traditional manual testing methods cannot meet the testing needs of modern software products, especially in energy management systems. An automated testing system is needed to reduce human resource costs and avoid human errors.

Method used

A test system based on the energy management system is designed, including a data detection module, a picture analysis module and a status judgment module. It detects various values ​​through multiple detection units, records the detection values ​​in the form of pictures, and uses a machine learning model to Analyze and compare data to determine the status of various system indicators, and use container technology to encapsulate the detection unit to ensure independence and security.

Benefits of technology

It achieves unattended system testing, reduces human resource costs, avoids human errors, promotes the standardization of the software testing industry, and reduces the costs of development system companies through online testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114265784B_ABST
    Figure CN114265784B_ABST
Patent Text Reader

Abstract

The present invention relates to a test system and method based on an energy management system, wherein the test system comprises: a data detection module, comprising a plurality of detection units realizing different detection functions, wherein the detection units are used to detect various values; an image parsing module, which is used to display the detection values ​​on a display page, take a screenshot of the display page, and parse the data in the image; and a state judgment module, which is used to compare the parsed detection values ​​with preset standard data. In addition, a test method based on an energy management system is also provided. The above-mentioned test system and method based on an energy management system solves the problem that traditional system testing requires personnel participation, thereby reducing the human resource cost for system testing experimental units. It effectively avoids human errors during the testing process, which is helpful for the standardization and promotion of the software testing industry. During the test, it can be carried out as long as it is conducted online, thereby reducing the cost of the system development company.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of energy management, and in particular to a testing system and method based on an energy management system. Background Art

[0002] With the rapid development of my country's new energy industry and the deepening of the energy revolution, energy storage, as a key support for the development of future energy systems, has become a focus of attention from all parties. Energy storage will be a key technology that affects the future energy landscape, and it is of great significance to the safe, stable and efficient operation of its access to the energy system, improve the comprehensive utilization efficiency of energy, promote the development of the new energy industry, and promote the strategic transformation of energy.

[0003] At present, in the cost structure of energy storage systems, batteries are the most important component of energy storage systems, accounting for about 60% of the cost, followed by energy storage inverters, accounting for about 20%. However, the battery link itself has a large stock market, so the incremental space for battery energy storage is relatively small. In the future, the incremental space for energy storage inverters, system integration and energy control systems will be the largest. With the deepening of energy reform and the injection of capital, major giants have devoted themselves to the development of energy management systems. These software products are rich in functions and are updated very quickly, but traditional manual testing methods can no longer meet the testing needs of modern software products, and automated testing has gradually become a trend in software testing. Summary of the invention

[0004] Based on this, it is necessary to provide a testing system and method based on an energy management system that can perform online testing and has low development cost in response to the above technical problems.

[0005] A test system based on an energy management system, the test system comprising:

[0006] A data detection module, comprising a plurality of detection units implementing different detection functions, wherein the detection units are used to detect various values;

[0007] An image parsing module is used to display the detected values ​​on a display page, take a screenshot of the display page, and parse the data in the image; and

[0008] The status judgment module is used to compare the analyzed detection values ​​with the preset standard data to determine the status of various indicators of the system.

[0009] Furthermore, each detection unit is encapsulated in a respective container and is independent of each other.

[0010] Furthermore, the detected values ​​are displayed in the form of graphs, charts or numbers.

[0011] Furthermore, the picture cache module captures the long picture by means of distributed screenshots or pull-down screenshots.

[0012] Furthermore, the test system further includes:

[0013] The filtering module is used to remove the data that does not conform to the normal analysis in the image.

[0014] Furthermore, the test system further includes:

[0015] A cache module is used to cache parsed graphics, charts or numbers.

[0016] Furthermore, the preset standard value is a numerical point or a numerical segment bounded by one or more numerical points.

[0017] A testing method based on an energy management system comprises the following steps:

[0018] The detection module detects each function and records the detection values;

[0019] Convert the detected values ​​into image format, and intercept and analyze the data therein;

[0020] Compare the detected values ​​with the preset standard data to determine the status of each indicator of the system.

[0021] Furthermore, the numerical values ​​in the picture format are recorded as graphs, charts or numbers.

[0022] Furthermore, the preset standard data is recorded as a graph, a chart or a number, and includes numerical points used for status judgment or numerical segments bounded by one or more numerical points.

[0023] The above-mentioned test system based on the energy management system detects various values ​​through multiple detection units, and records the detected values ​​in the form of pictures. By identifying and analyzing the data recorded on the pictures, each indicator is judged, which solves the problem that traditional system testing requires personnel participation and reduces human resource costs for system testing experimental units. It effectively avoids human errors during the testing process, helps promote standardization in the software testing industry, and can be carried out online during testing, reducing the cost of the company developing the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a module diagram of a test system based on an energy management system;

[0025] Figure 2 Schematic diagram of the steps of the test method based on the energy management system.

[0026] In the figure: 110, data detection module; 120, image analysis module; 130, state judgment module. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] like Figure 1 As shown, in one embodiment, a test system based on an energy management system comprises:

[0029] The data detection module 110 includes a plurality of detection units for realizing different detection functions, and the detection units are used to detect various values. The detection units include data acquisition, communication, processing calculation and storage function detection units, alarm and alarm suppression function detection units, graphic function detection units, tabulation and printing function detection units, operation parameter and state manual setting function detection units, remote control and remote adjustment function detection units, bar graph and trend curve display function detection units, accident recall function detection units, channel quality monitoring function units, remote maintenance and fault diagnosis function detection units, system response time and performance index detection units, continuous operation detection units and system monitoring configuration function detection units.

[0030] The image parsing module 120 is used to display the detection value on the display page, take a screenshot of the display page, and parse the data in the image. Through the latest domestic intelligent image recognition module, the open source framework PaddlePaddle and Scrapy framework are combined to convert the data of the intercepted image through the machine learning model, and the energy management system is crawled for accurate test data through the Scrapy framework and Selenium framework, and the intercepted image is converted through the machine learning model, and the test data is saved in the MongoDB database.

[0031] The status judgment module 130 is used to compare the analyzed detection values ​​with the preset standard data to determine the status of various indicators of the system. The analyzed detection values ​​are stored in a relational database and compared with the standards in the database. If they are out of range, abnormal annotations are made. Alternatively, the displayed data images and icons are intercepted, the frame data image data is analyzed, the data graphic type is analyzed, the results are stored in the data cache, the image types pre-stored in the MySQL database are queried, the comparison is made, and the annotations are made in the generated PDF report.

[0032] The above setting of the database error range in the test system based on the energy management system automatically pulls down the page of the test system through the Selenium automatic drop-down menu, takes screenshots step by step, extracts image data through the internal data processing code block, and stores it in the MongoDB database. The Selenium screenshot tool captures the time point of the response page of the data, subtracts the sending time and receiving time recorded by the system to obtain the time period, and queries the response time table in the database to see if the time period is less than the national standard.

[0033] The above-mentioned test system based on the energy management system detects various values ​​through multiple detection units, and records the detected values ​​in the form of pictures. By identifying and analyzing the data recorded on the pictures, each indicator is judged, which solves the problem that traditional system testing requires personnel participation and reduces human resource costs for system testing experimental units. It effectively avoids human errors during the testing process, helps promote standardization in the software testing industry, and can be carried out online during testing, reducing the cost of the company developing the system.

[0034] The data acquisition function detection unit can collect and receive the following types of data:

[0035] 1) Measurement data, including active power, reactive power, current, voltage, frequency, temperature, state of charge and other measurement values. The comprehensive error of analog telemetry shall not exceed 1.5%.

[0036] 2) State quantity The state quantity includes the circuit breaker position, the isolating switch position and the grounding switch position.

[0037] 3) Event sequence recording has the event sequence recording function to record the records of the operating system.

[0038] The data communication function detection unit detects whether it has the following functions:

[0039] 1) Data communication protocol The remote data communication protocol between the master station and the substation should support DL / T 634.5104 DL / T634.5101 DL / T 860.

[0040] 2) Analog quantity, 3) State quantity, 4) Event sequence record, 5) Remote control, 6) Remote control success rate, 7) Remote adjustment, 8) Remote adjustment success rate.

[0041] The processing calculation and storage function detection unit detects and implements the following data processing, calculation and storage functions.

[0042] 1) Data rationality check and processing.

[0043] 2) Abnormal data processing.

[0044] 3) Event classification and processing.

[0045] 4) Support various commonly used calculation functions, including parameter calculation, arithmetic calculation, algebraic calculation, trigonometric function calculation and logical calculation, etc.

[0046] 5) Historical data processing. a. Support the function of flexibly setting the historical data storage period. b. Have the ability to store historical data for no less than one year. c. Have flexible statistical calculation capabilities. D. Have the ability to conveniently query historical data.

[0047] 6) Check and process the rationality of analog data.

[0048] Among them, the alarm and alarm suppression function detection unit mainly automatically detects the abnormal alarm of remote measurement, the alarm of remote signal change prompt, and the abnormal alarm of computer system.

[0049] 1) Data communication abnormality alarm.

[0050] 2) The alarm should have the form of pushing the screen, emitting sound (voice, whistle) and prompt window.

[0051] 3) It should be able to search for alarms by plant, interval, equipment, device, alarm level, time, fuzzy query, etc.

[0052] 4) Conveniently confirm alarms.

[0053] 5) Alarm suppression can be implemented selectively.

[0054] The graphic function detection unit detects whether it has the following functions:

[0055] 1) The detection adopts full-graphic and multi-window technology, with functions such as world map, layer display, picture, zoom roaming, plane overlay, etc.

[0056] 2) It should support various expression styles such as graphics, tables, curves, bars, pie charts, etc.

[0057] 3) Support alarm push screen function.

[0058] 4) Screen copying should be supported.

[0059] 5) The screen display should support Chinese characters in multiple fonts.

[0060] The tabulation and printing function detection unit detects whether it has the following functions:

[0061] 1) It should have basic electronic spreadsheet functions.

[0062] 2) It should be able to print various abnormal records and operation records for various reports.

[0063] 3)Support multiple printer functions.

[0064] 4) It should be able to support instant and scheduled printing.

[0065] 5) Tabulation printing should support Chinese characters.

[0066] The operating parameter and status manual setting function detection unit detects whether the telemetry value, telesignal status, calculation amount, equipment parameters and hanging / removing various signboards can be manually set.

[0067] The remote control function detection unit detects whether the remote control function is available, and the remote control action accuracy = 100%. The remote control function of the background should have a return verification function timeout, a cancellation function, and a remote control condition judgment locking function.

[0068] The remote adjustment function detection unit detects whether it has the following functions:

[0069] The background should support remote adjustment functions based on lifting and lowering commands.

[0070] The bar graph and trend curve display function detection unit detects whether it has the following functions: dynamic bar graph, dynamic curve, historical curve, and pie chart drawing functions.

[0071] The accident recall function detection unit detects whether it has the following functions:

[0072] 1) The accident recall function can be started automatically or manually.

[0073] 2) The time length and density of recording before and after the accident can be set.

[0074] 3) The accident recall start point can be set.

[0075] 4) You can choose to recall the transaction record point or save all records.

[0076] The channel quality monitoring function unit detects whether it has the following functions:

[0077] A communication interruption alarm is generated when communication is interrupted, and the communication interruption alarm is reset after communication is restored.

[0078] The remote maintenance and fault diagnosis function detection unit provides system automatic diagnosis function to ensure the overall safety of the system.

[0079] The system response time detection unit detects whether it has the following functions:

[0080] 1) The analog quantity transmission time to the background shall not exceed 3s across the dead zone.

[0081] 2) The time for transmitting the switch position change to the background shall not exceed 3s.

[0082] 3) The response time of the remote control shall not exceed 3s.

[0083] 4) The screen call time shall not exceed 2s.

[0084] 5) Dual-machine switching time.

[0085] 6) Manual switching should not exceed 30 seconds.

[0086] 7) Automatic switching should not exceed 30 seconds.

[0087] The performance indicator detection unit detects whether it has the following functions

[0088] 1) The resolution of the sequence of events (SOE) recorded within the station should be less than or equal to 2ms.

[0089] 2) Average CPU utilization of each server.

[0090] 3) Under normal circumstances (within any 30 minutes): <= 30%.

[0091] When the power system fails, <=50% within 10s.

[0092] Monitor the average load rate of the system network.

[0093] Under normal circumstances, it is <=30% within any 30 minutes.

[0094] When the power system fails, <=50% within 10s.

[0095] The continuous operation detection unit detects whether it has the following functions:

[0096] The system operates continuously for 72 hours with normal communication and recording.

[0097] The system monitoring configuration function detection unit detects whether it has the following functions:

[0098] 1) Supports the generation of a series of screens with design monitoring functions through configuration. Supports the drawing and publishing of user-defined graphics.

[0099] 2) Support maintenance of system database graphical interface and functional modules.

[0100] 3) System operation safety and operational stability inspection.

[0101] 4) Different management permissions can be set for different users to ensure the security of the system.

[0102] 5) No freeze or system crash should occur during the entire testing process.

[0103] 6) Provide system automatic diagnosis function to ensure the overall safety of the system.

[0104] In this embodiment, each detection unit is encapsulated in each container and is independent of each other, which is highly independent, safe and has a fast processing speed.

[0105] The above-mentioned test system based on the energy management system is used to make each module run safely and quickly by encapsulating each detection unit in each container. This makes the system:

[0106] 1) Deployment security: container technology is used to keep the development environment, test environment, and production environment unified in terms of versions and dependencies, ensuring that the code is executed in a highly unified environment. The unification of the test environment can also meet the CI process's environmental requirements. With the growing demand for distributed technology and capacity expansion, if operations and maintenance can use container technology to deploy the environment, it will not only save a lot of deployment time, but also minimize many errors caused by manual configuration of the environment.

[0107] 2) Good isolation. Whether it is development or production, we may need to run multiple services on one machine, and the dependency configurations required by each service are not the same. If two applications need to use the same dependency, or there are some conflicts between the dependencies required by the two applications, problems will easily arise at this time. Therefore, it is best to isolate different services provided by different applications on the same server. Containers have a natural advantage in this regard. Each container is an isolated environment. The container can provide all the services you require from the container. This high cohesion performance can quickly separate problematic services and achieve rapid troubleshooting and timely processing in some complex systems.

[0108] 3) Low cost. Before the emergence of containers, we often needed a new server or a virtual machine to build an application. The purchase cost and operation and maintenance cost of the server were very high, and the virtual machine took up a lot of unnecessary resources. In contrast, container technology is much smaller and lighter. You only need to build the dependencies required by the application inside a container.

[0109] 4) Easy to use: sales personnel can take photos with their mobile phones, and the user's electricity bills and load curve data of the power station system can provide calculated data without the need for manual secondary processing.

[0110] In this embodiment, the detected values ​​are displayed in the form of graphs, charts or numbers, which makes the display more comprehensive and the displayed data more complete.

[0111] In this embodiment, the picture cache module captures long pictures by distributed screenshots or pull-down screenshots, which is used to obtain a large range of data at one time.

[0112] In this embodiment, the test system further includes:

[0113] The filtering module is used to remove the data that does not conform to the norm in the image analysis to ensure the accuracy of the data. For example, when saving to the MongoDB database, the data that does not conform to the norm (including spaces, underscores and special symbols [?...]) is removed, and after this filtering, it is finally saved in the MySQL database.

[0114] In this embodiment, the test system further includes:

[0115] A cache module is used to cache parsed graphics, charts or numbers.

[0116] In this embodiment, the preset standard value is a value point or a value segment bounded by one or more value points, which is used to compare data in different time periods.

[0117] like Figure 2 As shown, based on the above-mentioned test system based on the energy management system, this embodiment further proposes a test method based on the energy management system using the above-mentioned system for testing, comprising the following steps:

[0118] Step S110: the detection module detects each function and records the detection value.

[0119] Step S120, converting the detected value into a picture format, and intercepting and analyzing the data therein.

[0120] Step S130, comparing the detected value with the preset standard data to determine the status of each indicator of the system.

[0121] The above-mentioned testing method based on the energy management system solves the problem that traditional system testing requires human participation, and reduces the human resource cost for system testing experimental units. It effectively avoids human errors during the testing process, and helps promote the standardization of the software testing industry. During the test, it can be carried out online, which reduces the cost of the company developing the system.

[0122] In this embodiment, the numerical value record in the picture format is a graph, a chart or a number.

[0123] In this embodiment, the preset standard data is recorded as a graph, a chart or a number, and includes numerical points used for status judgment or numerical segments bounded by one or more numerical points.

[0124] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A test system based on energy management system, It is characterized in that The test system comprises: The data detection module includes a plurality of detection units for realizing different detection functions, wherein the detection units are used to detect various values, and the detected values ​​are displayed in the form of graphics, charts or numbers; The image parsing module is used to display the detection value on the display page, take a screenshot of the display page, and parse the data in the image. The image parsing module takes a long screenshot by distributed screenshots or pull-down screenshots. The image parsing module converts the data of the captured image through a machine learning model through an intelligent image recognition module, the open source framework PaddlePaddle and the Scrapy framework, and captures accurate test data through the Scrapy framework and the Selenium framework. The captured image is converted through a machine learning model and the test data is saved in a MongoDB database. The filtering module is used to remove the data that does not conform to the normal analysis in the image; A cache module for caching parsed graphs, charts or figures; and A status judgment module is used to compare the analyzed detection value with the preset standard value to judge the status of various indicators of the system. The preset standard value is recorded as a graph, chart or number and contains a value point for status judgment or a value segment bounded by one or more value points; The state judgment module stores the analyzed detection values ​​in a relational database, compares them with the preset standard values ​​in the database, and marks the abnormalities if they are out of range; or captures the displayed data images and charts, parses the framework data image data, analyzes the data graphic type, stores the results in the data cache, queries the image types pre-stored in the MySQL database, compares them, and marks them in the generated report.

2. The energy management system based test system according to claim 1, It is characterized in that Each detection unit is encapsulated in a respective container and is independent of each other.

3. A testing method based on the testing system as claimed in claim 1, It is characterized in that The following steps are involved: The detection module detects each function and records the detection values; Convert the detected values ​​into image format, and intercept and analyze the data therein; Compare the detected values ​​with the preset standard values ​​to determine the status of each indicator of the system.

4. The test method according to claim 3, It is characterized in that The numerical values ​​in the picture format are recorded as graphs, charts or numbers.

5. The testing method according to claim 3, It is characterized in that The preset standard numerical value is recorded as a graph, a chart or a number, and includes numerical points used for status judgment or numerical segments bounded by one or more numerical points.