CN113655731B - Relay protection device function simulation method and system - Google Patents
Relay protection device function simulation method and system Download PDFInfo
- Publication number
- CN113655731B CN113655731B CN202110768606.XA CN202110768606A CN113655731B CN 113655731 B CN113655731 B CN 113655731B CN 202110768606 A CN202110768606 A CN 202110768606A CN 113655731 B CN113655731 B CN 113655731B
- Authority
- CN
- China
- Prior art keywords
- relay protection
- database
- protection
- logic processing
- processing result
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B17/00—Systems involving the use of models or simulators of said systems
- G05B17/02—Systems involving the use of models or simulators of said systems electric
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Emergency Protection Circuit Devices (AREA)
Abstract
The invention discloses a relay protection device function simulation method and a system, which realize the function simulation of the relay protection device, can greatly improve the research and development efficiency and the test efficiency of a relay protection module, and well reduce the maintenance cost, the learning cost and the labor cost.
Description
Technical Field
The invention relates to a relay protection device function simulation method and system, and belongs to the technical field of relay protection.
Background
In the current relay protection field, the development and the test of the relay protection device are required to be carried out based on a real device, but each real relay protection device means a longer production period and higher development cost, and a relay protection device function simulation technology is urgently needed.
Disclosure of Invention
The invention provides a relay protection device function simulation method and system, and solves the problems disclosed in the background art.
In order to solve the technical problems, the invention adopts the following technical scheme:
A relay protection device function simulation method comprises the following steps:
Receiving an excitation signal from a virtual tester;
Converting the excitation signal into excitation data, and transmitting the excitation data to a database for storage;
responding to the excitation data storage, acquiring logic processing related data from a database, performing relay protection logic processing, and transmitting a relay protection logic processing result to the database for storage;
responding to the relay protection logic processing result storage, acquiring and displaying the relay protection logic processing result from the database, and checking with the expected result;
and sending out an instruction for driving the hardware according to the relay protection logic processing result.
The excitation signal is a 0/1 sequence, sine wave or square wave.
The database is the SQLite3 database.
The relay protection logic comprises line protection, transformer protection, bus protection, reactor protection, a protection and measurement integrated device, a measurement and control device, a stability control device, process layer equipment and transformer group protection.
A relay protection device function simulation system comprises an interface module, a logic module and a driving module;
Wherein,
And a driving module: receiving an excitation signal from a virtual tester; converting the excitation signal into excitation data, and transmitting the excitation data to a database for storage; according to the relay protection logic processing result, sending out a command for driving hardware;
the logic module: responding to the excitation data storage, acquiring logic processing related data from a database, performing relay protection logic processing, and transmitting a relay protection logic processing result to the database for storage;
And an interface module: and responding to the relay protection logic processing result storage, acquiring the relay protection logic processing result from the database, and displaying the relay protection logic processing result for checking with the expected result.
The excitation signal is a 0/1 sequence, sine wave or square wave.
The database is the SQLite3 database.
The relay protection logic comprises line protection, transformer protection, bus protection, reactor protection, a protection and measurement integrated device, a measurement and control device, a stability control device, process layer equipment and transformer group protection.
The interface module is a Linux interface module or a Windows interface module developed by QT language.
The invention has the beneficial effects that: the invention realizes the function simulation of the relay protection device, can greatly improve the research and development efficiency and the test efficiency of the relay protection module, and well reduces the maintenance cost, the learning cost and the labor cost.
Drawings
FIG. 1 is a flow chart of the method of the present invention;
fig. 2 is a block diagram of the system of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings. The following examples are only for more clearly illustrating the technical aspects of the present invention, and are not intended to limit the scope of the present invention.
As shown in fig. 1, a method for simulating functions of a relay protection device includes the following steps:
step 1, receiving an excitation signal from a virtual tester; wherein the excitation signal is a 0/1 sequence, sine wave or square wave;
Step 2, converting the excitation signal into excitation data, and sending the excitation data to a database for storage; the database adopts an SQLite3 database;
Step 3, responding to the excitation data storage, acquiring logic processing related data from the database, performing relay protection logic processing, and transmitting a relay protection logic processing result to the database for storage;
step 4, responding to the storage of the relay protection logic processing result, acquiring the relay protection logic processing result from the database, and displaying the relay protection logic processing result for checking with the expected result; the relay protection logic comprises line protection, transformer protection, bus protection, reactor protection, a protection and measurement integrated device, a measurement and control device, a stability control device, process layer equipment and transformer group protection;
and step 5, sending out a command for driving the hardware according to the relay protection logic processing result.
The method realizes the function simulation of the relay protection device, can greatly improve the research and development efficiency and the test efficiency of the relay protection module, and well reduces the maintenance cost, the learning cost and the labor cost.
As shown in FIG. 2, the simulation system for the function of the relay protection device, which is software corresponding to the method, comprises an interface module, a logic module and a driving module.
And an interface module: and responding to the relay protection logic processing result storage, acquiring the relay protection logic processing result from the database, and displaying the relay protection logic processing result for checking with the expected result.
The interface module is developed based on QT language, and the software interface is compiled into a Linux version running on the embedded device and a Windows version running on the PC through compiling parameter support and control, namely the interface module is a Linux interface module or a Windows interface module, and the quantity of interfaces, the operation mode of the interfaces and the resolution of the interfaces are consistent no matter whether the Linux version or the Windows version is the Linux interface module or the Windows interface module.
The development interface module totally uses the native interfaces of QT and C++ languages, does not additionally introduce Windows or Linux characteristic content, and then configures a compiler and equipment types of Windows and Linux versions in QTCreator (development tools of the QT and C++ languages) respectively in a code compiling stage, wherein the compiler of the Windows version is Mingw4.82\bin\g++ exe, the equipment type is PC, and the compiler of the Linux version is embedded equipment.
The interface module specifically comprises a constant value interface, an event interface, an alarm interface, a system configuration interface and the like.
The logic module: and responding to the excitation data storage, acquiring logic processing related data from the database, performing relay protection logic processing, and transmitting a relay protection logic processing result to the database for storage.
The logic module is mainly used for processing business logic related to the relay protection device, such as modifying a fixed value, uploading an event, protecting an alarm, modifying system configuration, various types of relay protection logic and the like, and specifically comprises a line protection device, a transformer protection device, a bus protection device, a reactor protection device, a protection and measurement integrated device, a measurement and control device, a stability control device, a process layer device, a transmission and transformation group protection device and the like.
In order to improve the code execution efficiency, the logic module is still developed by adopting a C language, binary files of different versions are compiled according to Windows and Linux platforms, the Windows platform is a DLL file, and Linux is a file.
And a driving module: receiving an excitation signal from a virtual tester; converting the excitation signal into excitation data, and transmitting the excitation data to a database for storage; and sending out an instruction for driving the hardware according to the relay protection logic processing result.
The driving module is mainly based on a real embedded Linux hardware driver for code encapsulation, and Windows virtual driver is added. For a user who calls a hardware driver, it is controlled by the incoming parameter isWin whether to actually call the real Linux hardware driver or the Windows virtual driver (isWin =true to Windows virtual driver, isWin =false to real Linux hardware driver, isWin default to false). When Windows virtual drive is called, the real hardware device does not exist, so that the returned result is directly simulated, and the real hardware control is not performed.
Virtual testers are used for providing external excitation signals, such as 0/1 sequences, sine waves, square waves and the like. The virtual tester is an independent software program, and outputs various excitation signals outwards by realizing a standard mathematical algorithm.
The database is an SQLite3 database and stores dynamic data and static configuration data generated in the running process.
Dynamic data refers to: real-time data generated in the operation process of the relay protection device, such as alarm information sent by the device fault, log information and wave recording files recorded by the device fault, real-time values modified in the operation process of the fixed value, and the like.
Static data refers to: before the relay protection device operates, the developer presets configuration data, such as an IP address, a port number, a bit rate, 61859 model file, a fixed value maximum value and minimum value, a default value and the like.
There are 2 interaction modes between the database and the interface module: firstly, providing data for an interface for display; second, data modifications caused by interface operations are received and persisted into the database.
There are 2 ways of interaction between the database and the logic module: the method comprises the steps that when a first logic module carries out logic operation, data are obtained from a data center; and the second logic module stores the operation result into the database.
There are 2 interaction modes between the database and the driving module: the first and the driving modules are driven to external excitation, and convert excitation signals into data and store the data in a database. When the second hardware driving layer controls external hardware equipment, required data are obtained from the data center layer, and the obtained data are generally switching value and analog value; switching amounts such as on and off of the pressing plate, on and off of the relay, on and off of the buzzer; the analog quantity outputs voltage and current with a certain limit.
Taking Windows version as an example, the final form of the system (hereinafter referred to as "simulation software") is an exe file which can run on the Windows platform, and the limitation of the device type is eliminated.
The starting mode is as follows:
1. executable file compiled into exe format
2. Double clicking exe starts, and each module is loaded when the simulation software starts.
When the simulation software is started, the protection judgment logic is circularly operated in the internal period like other operating systems.
The test of simulation software mainly comprises the following steps:
1. Functional test: adding specific excitation from outside through the virtual tester, and after receiving the specific excitation, the simulation software driving module stores the data in a database and notifies the logic module to process; after the logic module processes according to the established logic, storing the logic module into a database, and if the processing result accords with the expectation, describing the code logic; if not consistent with expectations, the instruction shows that defects and vulnerabilities of the code and design are discovered through simulation.
2. Performance test: running simulation software for a long period of time, typically in weeks, such as 7 x 24 hours of continuous operation, does not intermittently see if there is an anomaly in the interface module and database.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing is illustrative of the present invention and is not to be construed as limiting thereof, but rather as providing for the use of additional embodiments and advantages of all such modifications, equivalents, improvements and similar to the present invention are intended to be included within the scope of the present invention as defined by the appended claims.
Claims (7)
1. The relay protection device function simulation method is characterized by comprising the following steps of:
Receiving an excitation signal from a virtual tester;
Converting the excitation signal into excitation data, and transmitting the excitation data to a database for storage;
Responding to the excitation data storage, acquiring logic processing related data from a database, performing relay protection logic processing, and transmitting a relay protection logic processing result to the database for storage; the relay protection logic comprises line protection, transformer protection, bus protection, reactor protection, a protection and measurement integrated device, a measurement and control device, a stability control device, process layer equipment and a transformer group protection;
responding to the relay protection logic processing result storage, acquiring and displaying the relay protection logic processing result from the database, and checking with the expected result;
and sending out an instruction for driving the hardware according to the relay protection logic processing result.
2. The method for simulating the function of a relay protection device according to claim 1, wherein the excitation signal is a 0/1 sequence, a sine wave or a square wave.
3. The method for simulating functions of a relay protection device according to claim 1, wherein the database is an SQLite3 database.
4. The relay protection device function simulation system is characterized by comprising an interface module, a logic module and a driving module;
Wherein,
And a driving module: receiving an excitation signal from a virtual tester; converting the excitation signal into excitation data, and transmitting the excitation data to a database for storage; according to the relay protection logic processing result, sending out a command for driving hardware;
The logic module: responding to the excitation data storage, acquiring logic processing related data from a database, performing relay protection logic processing, and transmitting a relay protection logic processing result to the database for storage; the relay protection logic comprises line protection, transformer protection, bus protection, reactor protection, a protection and measurement integrated device, a measurement and control device, a stability control device, process layer equipment and a transformer group protection;
And an interface module: and responding to the relay protection logic processing result storage, acquiring the relay protection logic processing result from the database, and displaying the relay protection logic processing result for checking with the expected result.
5. The relay protection device functional simulation system of claim 4, wherein the excitation signal is a 0/1 sequence, a sine wave, or a square wave.
6. The relay protection device functional simulation system of claim 4, wherein the database is a SQLite3 database.
7. The relay protection device function simulation system of claim 4, wherein the interface module is a Linux interface module or a Windows interface module developed in QT language.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110768606.XA CN113655731B (en) | 2021-07-07 | 2021-07-07 | Relay protection device function simulation method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110768606.XA CN113655731B (en) | 2021-07-07 | 2021-07-07 | Relay protection device function simulation method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113655731A CN113655731A (en) | 2021-11-16 |
CN113655731B true CN113655731B (en) | 2024-07-02 |
Family
ID=78489153
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110768606.XA Active CN113655731B (en) | 2021-07-07 | 2021-07-07 | Relay protection device function simulation method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113655731B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115033239A (en) * | 2022-06-16 | 2022-09-09 | 南京国电南自电网自动化有限公司 | Relay protection device interface configuration method and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101499937A (en) * | 2009-03-16 | 2009-08-05 | 盛科网络(苏州)有限公司 | Software and hardware collaborative simulation verification system and method based on FPGA |
CN112036023A (en) * | 2020-08-26 | 2020-12-04 | 南京国电南自维美德自动化有限公司 | Software integrated generation system for generator transformer bank protection device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104101791A (en) * | 2013-04-11 | 2014-10-15 | 云南电网公司曲靖供电局 | Relay protection device fixed vale automatic test method and system |
US20150281278A1 (en) * | 2014-03-28 | 2015-10-01 | Southern California Edison | System For Securing Electric Power Grid Operations From Cyber-Attack |
CN107884707B (en) * | 2017-09-30 | 2018-12-21 | 杨启蓓 | High-voltage circuit-breaker switching on-off time on-Line Monitor Device and method |
CN106886411A (en) * | 2017-02-17 | 2017-06-23 | 南京国电南自电网自动化有限公司 | A kind of protective relaying device logic figure collocation method based on QT |
US11036907B2 (en) * | 2019-03-01 | 2021-06-15 | Synopsys, Inc. | Automatic testbench generator for test-pattern validation |
CN111723481B (en) * | 2020-06-17 | 2023-04-11 | 国网重庆市电力公司电力科学研究院 | Relay protection equipment simulation verification method and device and readable storage medium |
-
2021
- 2021-07-07 CN CN202110768606.XA patent/CN113655731B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101499937A (en) * | 2009-03-16 | 2009-08-05 | 盛科网络(苏州)有限公司 | Software and hardware collaborative simulation verification system and method based on FPGA |
CN112036023A (en) * | 2020-08-26 | 2020-12-04 | 南京国电南自维美德自动化有限公司 | Software integrated generation system for generator transformer bank protection device |
Also Published As
Publication number | Publication date |
---|---|
CN113655731A (en) | 2021-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110096338B (en) | Intelligent contract execution method, device, equipment and medium | |
US9274930B2 (en) | Debugging system using static analysis | |
CN103399814B (en) | The method and device of automatic test | |
CN110930131A (en) | Vehicle maintenance method, device, equipment and medium | |
US20050229161A1 (en) | Generic user interface testing framework with load-time libraries | |
CN113655731B (en) | Relay protection device function simulation method and system | |
CN104899132A (en) | Application software test method, apparatus and system | |
CN107608873B (en) | Software testing method and system and testing platform | |
KR20230088252A (en) | Method and apparatus for generating and applying deep learning model based on deep learning framework | |
CN107479866A (en) | The method that open terminal applies data and function are realized based on reconfiguration technique | |
CN113342702B (en) | Application program testing method, device, equipment and readable storage medium | |
CN107273298A (en) | A kind of method of testing of shell adding instrument, apparatus and system | |
CN112527312B (en) | Test method and test device for embedded system | |
CN113268426A (en) | Application testing method and device, computer equipment and storage medium | |
CN113064591A (en) | WPF page dynamic generation method, system, equipment and medium | |
CN111142861A (en) | Method and device for integrating structured comprehensive control system | |
US9710360B2 (en) | Optimizing error parsing in an integrated development environment | |
CN109582318A (en) | Processing method, device, terminal and the storage medium of Portobuf localization | |
CN116258205A (en) | Network model reasoning method and device, storage medium and electronic equipment | |
CN112527650B (en) | Test case multiplexing method and multiplexing device | |
CN109634636B (en) | Application processing method, device, equipment and medium | |
CN110795338B (en) | Front-end and back-end interaction-based automatic testing method and device and electronic equipment | |
CN111443983B (en) | Application program virtualization method and device, electronic equipment and storage medium | |
KR100916301B1 (en) | Kernel API Interactive Execution Device and Method | |
CN114124992A (en) | Method, device, equipment and system for monitoring running state of whole vehicle domain controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |