Automatic testing method and system based on synchronous mapping of data space and physical entity

By adopting a method based on synchronous mapping of data space and physical entities in the automatic testing system, the shortcomings of existing systems in multi-type device testing, software and hardware coupling testing, etc. are solved, efficient and reliable automatic testing is achieved, providing transparent display of protection logic and flexible adaptability of the system.

CN119645836APending Publication Date: 2025-03-18NANJING GUODIAN NANZI WEIMEIDE AUTOMATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411592701.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

The existing automatic testing systems have shortcomings in multi-type device testing, software and hardware coupling testing, test case applicability, transparent display of protection logic, hardware architecture adaptability and portability, and are difficult to meet the complex needs of smart power systems.

Method used

Using an automatic testing method based on synchronous mapping of data space and physical entities, the closed-loop wiring between the intelligent test box and the protection device is used to analyze the configuration file to create a twin data space, and the physical entity and digital space are mapped through the resource index pointer, key data is extracted to generate test instances, and data display is performed.

Benefits of technology

It significantly improves the debugging efficiency and reliability of the relay protection automatic test system, reduces the difficulty of modifying test cases, provides visual display of protection logic, enhances the flexibility and adaptability of the system, and realizes portable design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645836A_ABST
    Figure CN119645836A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic testing method and system based on synchronous mapping of a data space and a physical entity, and relates to the field of automatic testing of an intelligent power system.The method comprises the steps that closed-loop wiring is conducted on an intelligent testing box and a protection device, and hardware testing and software testing are conducted respectively; analyzing the configuration file, and creating a twin data space; analyzing the twin data space through a resource index pointer, forming mapping between a physical entity and a digital space, extracting key data to generate a test instance, and performing data display; according to the invention, the debugging efficiency and reliability are obviously improved; rapid generation and transplantation of the test cases among different projects and models are realized by reducing the use threshold; visual protection logic display is provided, and the understanding of complex logic is enhanced; a multi-stage combined architecture design is adopted, and the capability of flexibly adapting to various test scenes is achieved; the modular design enables the system to be more miniaturized, and is convenient to carry and use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automatic testing of intelligent power systems, and in particular to an automatic testing method and system based on synchronous mapping of data space and physical entity. Background Art

[0002] With the gradual maturity of intelligent application technology of secondary equipment and the accelerated construction of intelligent power systems, the contradiction between the debugging efficiency and working capacity of relay protection devices has become increasingly prominent. The manual debugging and manual record reporting methods currently used have imposed great constraints on the efficiency of on-site regular inspection and troubleshooting, engineering renovation, and professional acceptance. The debugging process of protection devices has high requirements on the technical level of testers. Defects and hidden dangers are prone to occur in actual work. The efficiency and quality issues of protection debugging are becoming increasingly prominent, and the promotion and application of automatic testing technology is becoming more and more critical.

[0003] When compiling test cases, the existing automatic test systems can only build complex test scripts through the basic functions of the test software itself, such as the transition and state sequence. Since the test cases of different relay protection devices are very different, even if the test cases are compiled according to a certain product, when the engineering configuration, setting range, error requirements change or the test requirements of multiple devices appear, modifying the test cases also consumes a lot of energy and has very poor adaptability. The process of static model testing is also a process of constantly modifying the protection setting and the protection control word. The station control software of the traditional relay protection test system can only operate a single device. When multiple devices of the same type are tested at the same time, it takes a long time to modify the setting, control word and the pressure plate. The automatic test system is designed for the test of a single device. It is not extensible in software configuration and hardware interface, and cannot meet the needs of multi-scenario collaborative testing. The opacity of the test process has also hindered the promotion of automatic testing. Summary of the invention

[0004] In view of the above-mentioned problems, the present invention is proposed.

[0005] Therefore, the technical problem solved by the present invention is: how to improve the intelligence, generalization and portability of the relay protection automatic test system in terms of multi-type equipment testing, software and hardware coupling testing, test case applicability, transparent display of protection logic, hardware architecture adaptability and portability.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0007] In a first aspect, an embodiment of the present invention provides an automatic testing method based on synchronous mapping of data space and physical entity, comprising:

[0008] Conduct closed-loop wiring between the intelligent test box and the protection device, and perform hardware and software tests respectively;

[0009] Parse the configuration file and create a twin data space;

[0010] The twin data space is parsed through resource index pointers, the physical entity is mapped to the digital space, key data is extracted to generate test instances, and data is displayed.

[0011] As a preferred solution of the automatic testing method based on synchronous mapping of data space and physical entity, wherein:

[0012] The hardware testing includes:

[0013] Connect the input interface of the intelligent test box to the signal and output terminals of the protection device; connect the output interface to the pressure plate and input terminals of the protection device; connect the signal output interface to the analog terminals of the protection device; connect the time synchronization interface to the timing terminals of the protection device; and connect the network interface to the network port on the human-machine interaction board of the protection device.

[0014] As a preferred solution of the automatic testing method based on synchronous mapping of data space and physical entity, wherein:

[0015] The software testing includes:

[0016] Connect the smart test box to the analog tester via a network cable, and control the tester output through the secondary development interface provided by the tester manufacturer. The analog output interface of the analog tester corresponds to the AC module of the protection device. Through the secondary development control interface of the analog tester, the host computer sends test commands to control its output voltage and current analog quantities. The smart test box software automatically generates experimental plans based on the protection settings, and each protection is set as an independent module.

[0017] As a preferred solution of the automatic testing method based on synchronous mapping of data space and physical entity, wherein:

[0018] The parsing configuration file includes:

[0019] Integrate the code of the configuration file parsing module in the underlying program of the protection device into a library and transplant it into the intelligent test box software;

[0020] After the intelligent test box and the protection device have their first handshake via TCP / IP connection, the configuration file transmission process is started;

[0021] The configuration file is parsed in the smart test box and a mirror data space is opened; wherein the index of the memory data at each location in the data space is synchronously generated and saved in the smart test box.

[0022] As a preferred solution of the automatic testing method based on synchronous mapping of data space and physical entity, wherein:

[0023] The creation of the twin data space includes:

[0024] Create fixed configuration items in the data space;

[0025] Define the corresponding information structure for each configuration item;

[0026] The intelligent test box extracts the information of the data space through the row index pointer and obtains a twin data space corresponding to the data space of the protection device;

[0027] Register the resource index pointer, establish the pointing relationship between the resource index pointer and the twin data space memory, and determine the number and validity of parameters.

[0028] As a preferred solution of the automatic testing method based on synchronous mapping of data space and physical entity, wherein:

[0029] The twin data space is parsed through resource index pointers, the physical entity is mapped to the digital space, and key data is extracted to generate test instances, including:

[0030] Extract the setting parameters, signal names, outlet names, tripping modes, and pressure plate configuration information required for the test work in the twin data space, and form an intermediate information library with the protection device as the object;

[0031] According to the specific debugging task, organize the key points of the test requirements, and determine the signal status, output logic, and action results that need to be checked for the sub-project.

[0032] As a preferred solution of the automatic testing method based on synchronous mapping of data space and physical entity, wherein:

[0033] The data display comprises:

[0034] Parse the data space and draw a logic diagram based on the current item;

[0035] According to the data space index, the relative address of each node in the logic block diagram is obtained;

[0036] During the execution of the test instance, the corresponding parameters of the data space are read in real time and the parameters are displayed in the corresponding logic block diagram.

[0037] In a second aspect, an embodiment of the present invention provides an automatic testing system based on synchronous mapping of data space and physical entity, including:

[0038] Installation modules are used to perform closed-loop wiring between the intelligent test box and the protection device, and to perform hardware and software tests respectively;

[0039] Twin data space creation module, used to parse configuration files and create twin data space;

[0040] The test generation module is used to parse the twin data space through resource index pointers, map the physical entity with the digital space, extract key data to generate test instances, and display the data.

[0041] In a third aspect, an embodiment of the present invention provides a computing device, including:

[0042] Memory and processor;

[0043] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the one or more programs are executed by the one or more processors, the one or more processors implement the automatic testing method based on synchronous mapping of data space and physical entity as described in any embodiment of the present invention.

[0044] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the automatic testing method based on synchronous mapping of data space and physical entity.

[0045] The beneficial effects of the present invention are as follows: the present invention significantly improves debugging efficiency and reliability by supporting multiple closed-loop automatic testing modes and software and hardware synchronous testing; realizes rapid generation and migration of test cases between different projects and models by lowering the usage threshold; provides a visual display of protection logic and enhances the understanding of complex logic; adopts a multi-level joint architecture design and has the ability to flexibly adapt to multiple test scenarios; and the modular design makes the system more compact and easy to carry and use. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0047] Figure 1 It is an overall flow chart of the automatic testing method based on synchronous mapping of data space and physical entity according to the first embodiment of the present invention;

[0048] Figure 2 It is a schematic diagram of an intelligent test box of an automatic test method based on synchronous mapping of data space and physical entity according to the first embodiment of the present invention;

[0049] Figure 3 It is a schematic diagram of a twin data space of an automatic testing method based on synchronous mapping of data space and physical entity according to the first embodiment of the present invention;

[0050] Figure 4 It is a schematic diagram of a test instance generated by twin data space parameters in the automatic test method based on synchronous mapping of data space and physical entity described in the first embodiment of the present invention;

[0051] Figure 5 It is a schematic diagram of a twin data space tree-like test chain of the automatic testing method based on synchronous mapping of data space and physical entity described in the first embodiment of the present invention. DETAILED DESCRIPTION

[0052] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0053] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0054] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0055] Example 1

[0056] Reference Figure 1-Figure 5 , which is the first embodiment of the present invention, provides an automatic testing method based on synchronous mapping of data space and physical entity, including:

[0057] S1: Perform closed-loop wiring between the intelligent test box and the protection device, and perform hardware and software tests respectively;

[0058] S2: parse the configuration file and create a twin data space;

[0059] S3: Parse the twin data space through resource index pointers, map the physical entity with the digital space, extract key data to generate test instances, and display the data.

[0060] In the embodiment of the present application, the hardware test in the above step S1 includes:

[0061] Connect the input interface of the intelligent test box to the signal and output terminals of the protection device; connect the output interface to the pressure plate and input terminals of the protection device; connect the signal output interface to the analog terminals of the protection device; connect the IRIG-B code output interface to the timing terminals of the protection device; and connect the network interface to the network port on the human-machine interaction board of the protection device.

[0062] Specifically, for protection devices whose hardware structure includes hundreds of signal outlets, or for testing multiple protection devices that have a coordinated relationship at the same time, the smart test box can be used to achieve joint testing through wireless networking;

[0063] For ground resistance testing in special scenarios, connect the output interface of the resistance matrix to the injection / ping-pong ground measurement module of the protection device;

[0064] For the simulated circuit breaker test, connect the three-phase trip pulse input interface to the output module of the protection device;

[0065] For simulated pumped storage conditions, the auxiliary contact output interface is connected to the input module of the protection device;

[0066] For the open-in avalanche test, the PWM controlled fast-changing interface is connected to the open-in module of the protection device.

[0067] When multiple smart test boxes are used for wireless expansion, one of them is used as an AP to initiate a wireless LAN hotspot, and other smart test boxes are connected to the network as expansion components and automatically generate numbers to achieve synchronous linkage control during the test process. Figure 2 shown.

[0068] In the embodiment of the present application, the software test in the above step S1 includes:

[0069] Connect the smart test box to the analog tester via a network cable, and control the tester output through the secondary development interface provided by the tester manufacturer. The analog output interface of the analog tester corresponds to the AC module of the protection device. Through the secondary development control interface of the analog tester, the host computer sends test commands to control its output voltage and current analog quantities. The smart test box software automatically generates experimental plans based on the protection settings, and each protection is set as an independent module.

[0070] It should be noted that the system can directly apply the experimental plan to the tester. The intelligent test box forms an information-feedback system with the protection device through the tester, adjusts the analog output according to the feedback results, and completes complex logic verification.

[0071] In the embodiment of the present application, parsing the configuration file in the above step S2 includes:

[0072] The code of the configuration file parsing module in the underlying program of the protection device is integrated into a library and transplanted into the intelligent test box software.

[0073] In the embodiment of the present application, the human-computer interaction module of the intelligent test box is a touch screen with an advanced system, which can perform cross-platform program transplantation.

[0074] In another possible implementation, the human-computer interaction module of the smart test box may adopt the following enhanced functions:

[0075] Enhanced touch technology: Multi-touch and high-sensitivity touch screen are used to improve the accuracy and response speed of user operations.

[0076] 3D interactive interface: The introduction of 3D interactive technology enables users to have a more intuitive and three-dimensional operating experience through gestures or specific devices.

[0077] Voice recognition and control: Integrates an advanced voice recognition system to allow users to operate through voice commands, enhancing convenience and operating efficiency.

[0078] Augmented reality (AR) support: Combined with augmented reality technology, it provides real-time information overlay and virtual guidance to enhance users' understanding and operation capabilities in complex operating environments.

[0079] Customizable interface: Provides user interface customization function, allowing users to adjust the interface layout and functions according to personal preferences and work needs.

[0080] Wireless connection and remote control: Support wireless connection technology (such as Wi-Fi, Bluetooth), allowing users to remotely monitor and control the smart test box, enhancing the flexibility and accessibility of the device.

[0081] Intelligent assistance system: Integrated intelligent assistance systems, such as automatic fault diagnosis and suggestions, help users quickly solve problems and optimize the test process.

[0082] Multi-user collaboration function: supports multi-user simultaneous operation and collaboration, suitable for teamwork and complex project management.

[0083] Cloud integration: Integrate with cloud services to achieve real-time data synchronization, remote storage and analysis, and enhance data management and usage efficiency.

[0084] After the intelligent test box and the protection device have their first handshake via TCP / IP connection, the configuration file transmission process is started.

[0085] The same method as the underlying program of the protection device is run in the smart test box to parse the configuration file and open up a mirror data space; wherein the index of the memory data at each location in the data space is synchronously generated and saved in the smart test box.

[0086] It should be noted that this system uses the intelligent test box as the core to establish a connection with the protection device and carry out the test function. The intelligent test box adopts a master-slave architecture, which effectively separates the user interface and the underlying hardware control logic, making the system more modular and easy to maintain and upgrade. The host module mainly implements the human-computer interaction function, establishes the test operation environment, executes the test process and generates test reports. When the test is running, some or all test cases can be selected according to requirements, and the test information is transparently output during the execution process. After the test case of the program that failed the test is determined, regression testing can be carried out uniformly. The slave module is responsible for hardware terminal control, interacts with the protection device under test, simulates the test environment, and implements a specific test task. At the same time, it collects the action information of the protection device under test and forwards it to the host module.

[0087] In the embodiment of the present application, creating a twin data space in the above step S2 includes:

[0088] The schematic diagram of the twin data space is as follows: Figure 3 As shown;

[0089] Create fixed configuration items in the data space.

[0090] In an embodiment of the present application, the configuration file is composed of multiple parts of protection resource configuration. The name of the resource configuration table is configuration item. In the twin data space, "configuration item" fixedly represents a type of memory area, and its types are configuration version, parameter setting, protection setting, internal setting, protection pressure plate, analog display, switch display, analog recording, switch recording, action event, alarm event, remote signal, sign, analog input, weak current input, strong current input, trip output, signal output, panel light, and action report.

[0091] In another possible implementation, the design and implementation of configuration files and twin data spaces may also allow dynamic generation or modification of configuration items in different application scenarios.

[0092] Exemplarily, based on real-time monitoring data and user feedback, protection settings and parameter settings are adaptively adjusted to optimize performance and safety.

[0093] In another possible implementation, the design and implementation of configuration files and twin data spaces may not only support standard configuration file formats (such as XML and JSON) but also introduce other formats, such as YAML or proprietary formats, to meet the needs of different systems or users and enhance flexibility and compatibility.

[0094] In another possible implementation, the design and implementation of configuration files and twin data spaces may also introduce a relationship mapping mechanism between configuration items to achieve the correlation and dependency management between different configuration items.

[0095] For example, the relationship between configuration versions and protection settings should be clear so that related parameters and settings can be automatically updated when the version changes.

[0096] Define the corresponding information structure for each configuration item.

[0097] In the embodiment of the present application, the information structure includes but is not limited to a page name string, an option code string, an index identification string, an internal name string, a value type, a maximum value, a minimum value, a default value, a unit, a step size, etc. The specific information structure depends on the configuration item type.

[0098] The intelligent test box extracts the information of the data space through the row index pointer to obtain a twin data space corresponding to the data space of the protection device.

[0099] It should be noted that the data space structure of the intelligent test box corresponds to the data space structure of the protection device, and the twin data space contains the storage location and data format of all protection device configuration parameters.

[0100] Register the resource index pointer, establish the pointing relationship between the resource index pointer and the twin data space memory, and determine the number and validity of parameters.

[0101] Specifically, a resource index pointer pool is created to uniformly manage the resource index pointers of all configuration items. All configuration items in the twin data space are traversed, and a resource index table is created for each configuration item; the resource index table of each configuration item is initialized, and a mapping relationship is established between it and the corresponding memory address in the twin data space; the resource index table of each configuration item is traversed, and the resource index pointer is registered in the resource index pointer pool; a direct pointing relationship between the resource index pointer and the twin data space memory is established; and the validity of the registered resource index pointer is verified.

[0102] Furthermore, all pointers in the resource index pointer pool are traversed; the memory address of each resource index pointer is checked to see if it is within the valid range, and whether the data structure pointed to by the resource index pointer conforms to the predefined format; the read and write permissions of the resource index pointer are tested, and a null pointer check is performed on each resource index pointer; the consistency of the resource index pointer with the corresponding data in the twin data space is verified; the type match of the resource index pointer is checked to see if it is correct; invalid or abnormal resource index pointers are recorded, and invalid resource index pointers are marked or removed.

[0103] The process of parsing the data space to generate test instances is as follows: Figure 4 shown.

[0104] It should be noted that this system uses a data parsing module that is exactly the same as the underlying program of the relay protection device to parse the configuration file, open up a twin data space, send communication frames to update the data in the form of continuous memory blocks, synchronize the operating space of the test system with that of the device under test, extract the required parameters for visualization, and use them as the basic data for generating test cases.

[0105] In the embodiment of the present application, in the above step S3, the twin data space is parsed through the resource index pointer, the physical entity is mapped to the digital space, and the key data is extracted to generate the test instance, including:

[0106] In the twin data space, the fixed value parameters, signal names, outlet names, tripping modes, pressure plate configurations and other information required for the test are extracted to form an intermediate information library with the protection device as the object.

[0107] According to the specific debugging task, organize the key points of the test requirements, and determine the signal status, output logic, and action results that need to be checked for the sub-project.

[0108] Specifically, the storage and management of test cases adopts a tree structure. By extracting the parameters of the data space as common nodes, the data in the test data file and the device configuration data information are decoupled, and the test cases are combined with the common parameters to generate specific test instances. Figure 5 shown.

[0109] It should be noted that the test process data perspective and parameter visualization. The logic block diagram is a general principle description of relay protection, that is, the design basis of each protection module. This embodiment parses the internal flag set of the twin data space, reads the device memory data in real time, and displays the execution results of each node of the logic diagram to the user in an intuitive way, realizing the visualization of the protection logic and test process. The test system visualizes the various parameters of the protection device memory according to the parameter items of the data space.

[0110] It should also be noted that the mapping technology is used to decouple the underlying test data, so that the device data and test data required for the relay protection R&D process test tend to be independent, thus forming a low-coupling test data file, namely the device configuration data and device test data, and then the mapping technology is used to achieve efficient reuse of analog quantity, switch quantity and device setting data. The storage and management of test cases adopts a tree structure, and by extracting the parameters of the data space as common nodes, the data in the test data file and the device configuration data information are also decoupled, and the test cases are combined with the common parameters to generate specific test instances.

[0111] In the embodiment of the present application, the data display in the above step S3 includes:

[0112] Parse the data space and draw a logic block diagram based on the current item; obtain the relative address of each node in the logic block diagram based on the data space index; during the execution of the test instance, read the corresponding parameters of the data space in real time and display the parameters in the corresponding logic block diagram.

[0113] In an embodiment of the present application, the physical model of each plug-in of the relay protection device is defined, and the physical location and functional information of the protection device itself and its components are described. After the intelligent test box applies the test quantity according to the requirements of the test instance, the real-time value of the memory data of the corresponding test quantity in the twin data space is synchronously read, and the actual on-off status of the circuits such as the tripping and signal of the protection device is read, and the test results are comprehensively judged from the software and hardware perspectives. The feedback results of a single type of test instance are monitored. When an abnormality occurs during the test process, the data space abnormal parameters and the graphical interface of the relay protection device are automatically popped up, and the abnormal components and their abnormal data are highlighted in the graphics to assist the debugging personnel in locating the equipment fault, thereby achieving the purpose of rapid diagnosis and location of relay protection equipment faults.

[0114] In the embodiment of the present application, the system adopts hardware redundancy and multiplexing design. The intelligent test box hardware terminal integrates multiple relays, binary input modules, analog modules, PWM modules, expansion interfaces, etc. Through hardware multiplexing, testing in various scenarios can be realized and various special testing requirements can be met.

[0115] For example, by controlling the relay matrix, the on and off of the auxiliary nodes at different positions of the pumped storage power station are simulated, and one-button quick switching of different working conditions is realized, various actual scenarios are simulated, and the logical combination of the on-site working conditions can be edited, read, and saved; through the combination of multiple electronic switches, the impedance matrix output of any value can be wirelessly controlled; the MCU detects the external tripping pulse and closing pulse signals and the manual tripping and closing signals in an interrupt manner, keeps the tripping and closing indicator lights corresponding to the tripping and closing states in real time, and ensures that the tripping and closing position contacts are flipped on time when the tripping time and closing time are reached, so as to realize the simulation of the circuit breaker function; the system can also be configured with an expansion interface to adapt to more complex functions through the wireless combination of multiple devices.

[0116] In another possible implementation, the system may be designed in an intelligent modular manner: each functional module may be further subdivided, such as implementing a more compact and portable test module, so as to facilitate rapid deployment at different sites.

[0117] Each module supports plug-and-play, and users can flexibly combine various modules according to their needs to create a customized test system.

[0118] In another possible implementation, the system may also be equipped with adaptive functions and scene recognition: by integrating sensors and intelligent algorithms, the test system can adaptively identify the current test scene and dynamically adjust module configuration and test parameters according to real-time data.

[0119] Exemplarily, when a specific load type or operating condition change is detected, it automatically switches to an appropriate test mode.

[0120] It should be noted that the synchronized data space in this test system is a mirror image of the protection device's operating space, and parsing the parameters therein is equivalent to reading all the memory data of the device in real time at the same time section. The test system generates a human-computer interaction interface based on the parameter items in the data space, and visualizes the various parameters in the memory of the protection device. The logic block diagram is a general principle description of relay protection, which is the design basis of each protection module. This system parses the internal flag set of the twin data space, reads the device memory data in real time, and displays the execution results of each node of the logic diagram to the user in an intuitive manner, thereby realizing the visualization of the protection logic and test process;

[0121] It should also be noted that the software and hardware synchronously test and judge the results, define the physical models of various plug-ins, panels, terminal blocks, terminals, optical fiber interfaces, network interfaces, panel indicators, buttons and other components of the relay protection device, and describe the physical location and functional information of the intelligent relay protection device itself and its components. After the intelligent test box applies the test quantity according to the requirements of the test instance, it synchronously reads the memory data of the corresponding test quantity in the twin data space, and reads the actual on-off status of the protection device output, signal and other circuits through wiring, and comprehensively judges the test results from the software and hardware perspectives; this system adopts hardware redundancy and multiplexing design, and the device hardware terminal integrates multi-channel relays, input modules, analog modules, PWM modules, expansion interfaces, etc., and realizes testing in various scenarios through hardware multiplexing, and meets various special testing requirements. Taking the built-in 32-channel relay as an example, in addition to realizing conventional switch quantity testing, it also acts as a switch between the nodes of the resistance matrix, and realizes different resistance outputs through on-off combinations. The pumped storage unit has a total of 18 working condition conversion processes, including steady state, transient state, and intermediate state. The on-site protection device identifies the working condition logic by identifying the combination of auxiliary nodes. Through the reuse of the relay matrix, it supports one-key switching of the pumped storage working condition; through the combination, it can adapt to more complex test requirements, such as protection equipment equipped with hundreds of signals, connected by wired or wireless means through multiple test box expansion interfaces, and complete all signal transmission tests at one time. For test requirements in special scenarios, such as grounding tests in live environments, small circuit breaker modules can be connected externally to ensure the safety of the test process.

[0122] The above is a schematic scheme of the automatic test method based on synchronous mapping of data space and physical entity in this embodiment. It should be noted that the technical scheme of the automatic test system based on synchronous mapping of data space and physical entity and the technical scheme of the automatic test method based on synchronous mapping of data space and physical entity above belong to the same concept, and the details of the technical scheme of the automatic test system based on synchronous mapping of data space and physical entity in this embodiment that are not described in detail can all be referred to the description of the technical scheme of the automatic test method based on synchronous mapping of data space and physical entity above.

[0123] The automatic test system based on synchronous mapping of data space and physical entity in this embodiment includes:

[0124] Installation modules are used to perform closed-loop wiring between the intelligent test box and the protection device, and to perform hardware and software tests respectively;

[0125] Twin data space creation module, used to parse configuration files and create twin data space;

[0126] The test generation module is used to parse the twin data space through resource index pointers, map the physical entity with the digital space, extract key data to generate test instances, and display the data.

[0127] This embodiment further provides a computing device, which is applicable to the case of an automatic testing method based on synchronous mapping of data space and physical entity, including:

[0128] A memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the automatic testing method based on synchronous mapping of data space and physical entity as proposed in the above embodiment.

[0129] This embodiment further provides a storage medium on which a computer program is stored. When the program is executed by a processor, the automatic testing method based on synchronous mapping of data space and physical entity as proposed in the above embodiment is implemented.

[0130] The storage medium proposed in this embodiment and the automatic testing method based on synchronous mapping of data space and physical entity proposed in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0131] Example 2

[0132] The following is an embodiment of the present invention, which provides an automatic testing method based on synchronous mapping of data space and physical entity. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through simulation experiments.

[0133] 1) The intelligent test box and the protection device are connected in a closed loop. This system uses the intelligent test box as the core to establish a connection with the protection device and perform test functions. The intelligent test box adopts a master-slave architecture, which effectively separates the user interface and the underlying hardware control logic, making the system more modular and easy to maintain and upgrade. The host module mainly implements human-computer interaction functions, establishes a test operation environment, executes the test process, and generates test reports. During the test run, some or all test cases can be selected according to requirements, and the test information is transparently output during the execution process. For the test cases of the program that failed the test, regression testing can be performed uniformly after the cause is determined. The slave module is responsible for hardware terminal control, and interacts with the protection device under test, simulates the test environment, and implements a specific test task. At the same time, it collects the action information of the protection device under test and forwards it to the host module;

[0134] 2) Open up a twin data space. This system uses a data parsing module that is exactly the same as the underlying program of the relay protection device to parse the configuration file, open up a twin data space, send communication frames to update data in the form of continuous memory blocks, synchronize the operating space of the test system with that of the device under test, extract the required parameters for visualization, and use them as the basic data for generating test cases.

[0135] 3) The digital model is mapped to the physical entity, and the underlying test data is decoupled through mapping technology, so that the device data and test data required for the relay protection R&D process test tend to be independent, thereby forming a low-coupling test data file, namely the device configuration data and device test data, and then the mapping technology is used to achieve efficient reuse of analog quantity, switch quantity and device setting data. The storage and management of test cases adopts a tree structure, and by extracting the parameters of the data space as public nodes, the data in the test data file and the device configuration data information are decoupled, and the test case generates a specific test instance in combination with the public parameters;

[0136] 4) Data perspective and logic display. The synchronized data space in this test system is a mirror image of the protection device's operating space. Parsing the parameters therein is equivalent to reading all the memory data of the device in real time at the same time section. The test system generates a human-computer interaction interface based on the parameter items in the data space, and visualizes the various parameters in the memory of the protection device. The logic block diagram is a general principle description of relay protection, which is the design basis of each protection module. This system parses the internal flag set of the twin data space, reads the device memory data in real time, and displays the execution results of each node of the logic diagram to the user in an intuitive manner, thereby realizing the visualization of the protection logic and test process;

[0137] 5) Software and hardware are tested synchronously and the results are judged. The physical models of the various plug-ins, panels, terminal blocks, terminals, optical fiber interfaces, network interfaces, panel indicators, buttons and other components of the relay protection device are defined, and the physical location and functional information of the intelligent relay protection device itself and its components are described. After the intelligent test box applies the test quantity according to the requirements of the test instance, the memory data of the corresponding test quantity in the twin data space is read synchronously, and the actual on-off status of the protection device output, signal and other circuits is read through wiring, and the test results are comprehensively judged from the perspectives of software and hardware.

[0138] 6) Multi-application scenario simulation. This system adopts hardware redundancy and reuse design. The device hardware terminal integrates multi-channel relays, binary input modules, analog modules, PWM modules, expansion interfaces, etc. Through hardware reuse, it can realize testing in multiple scenarios and meet various special testing requirements. Taking the built-in 32-channel relay as an example, in addition to realizing conventional switch quantity testing, it also acts as a switch between the nodes of the resistance matrix, and realizes different resistance outputs through on-off combinations. The pumped storage unit has a total of 18 working condition conversion processes including steady state, transient state, and intermediate state. The on-site protection device identifies the working condition logic by identifying the combination of auxiliary nodes. Through the reuse of the relay matrix, it supports one-key switching of the pumped storage working condition.

[0139] 7) Configure expansion interfaces to meet more complex test requirements through combination. For example, for protection equipment with hundreds of signals, multiple test boxes can be connected through expansion interfaces in a wired or wireless manner to complete all signal transmission tests at one time. For test requirements in special scenarios, such as grounding tests in live environments, small circuit breaker modules can be connected externally to ensure the safety of the test process.

[0140] The master-slave architecture designed in step 1) refers to the upper layer of the intelligent test box in this system using a display screen equipped with a Linux operating system, which is responsible for human-computer interaction. This design replaces the traditional host computer software and provides users with an intuitive and friendly operating interface, including a graphical interface, touch operation, etc., which can complete test data editing, management, monitoring and test process control. The hardware terminal of the lower layer is controlled by an STM32F407 microcontroller, which interprets the command data and performs synchronous output of analog and switch quantities as required, and immediately feedbacks the hardware status. The lower layer MCU, with its high performance and low power consumption characteristics, ensures efficient information processing and stable hardware control. The upper and lower layers can communicate through serial ports, and fast command processing and instant status feedback can be performed, which improves the response speed and accuracy of the test process.

[0141] Step 2) The method of parsing the configuration file designed using the same underlying program of the protection device refers to the function of parsing the configuration file and initializing the data space of the protection device being implanted in the software structure of the smart test box in the form of a library. When the test box and the protection device establish a TCP / IP connection for the first time, the configuration file transmission process is started. After obtaining the complete configuration file, the smart test box can open up a data space that is exactly the same as the protection device through the implanted parsing module, laying the foundation for subsequent data mapping. A heartbeat timer is designed to send a data synchronization communication frame at each timing interrupt, and transfer continuous memory fragments in the data space to keep the two data spaces updated and synchronized. As a result, a data space that is exactly the same as the protection device is created in the memory of the smart test box, and the data space contains the storage index and data information of all protection device configuration parameters.

[0142] The data space parameters of the real-time operation of the protection device are classified by the software configuration items of the protection device, including configuration version, parameter setting, protection setting, internal setting, protection pressure plate, analog quantity, switch quantity, analog recording, switch recording, action event, alarm event, remote signal, judgment mark, weak current input, strong current input, trip output, signal output, and panel light. Each part exists in a different position of the data space, and the test system establishes an index for each area.

[0143] For the configuration version area, this system is used to extract device model, name, version and other information for naming and archiving test projects.

[0144] For parameter setting area, protection setting area and internal setting area, this system extracts setting information based on protection module and derives test methods. By extracting control words and mode words, judging the activation and deactivation of protection module functions and the adopted algorithms, a standard test plan is generated according to the requirements of the regulations.

[0145] For the protection pressure plate area, the system extracts the association information between each pressure plate and the protection module, realizes the automatic activation and deactivation of the protection module and the specific functions within the protection module during the execution phase of the automatic test, and generates an automatic test plan for the protection pressure plate.

[0146] For the analog area, the system monitors its parameters to determine the real-time execution of the protection module and records it in the experimental report. In the protection parameter visualization module, the analog quantity is drawn on the protection image (such as impedance complex plane, Id-Iz braking plane, etc.) to realize the visualization of experimental parameters.

[0147] For weak current input and strong current input areas, the system extracts their parameters and generates an automatic test plan for input quantity. For pumped storage unit protection, the input quantity is associated with the auxiliary node, and through the combination of different nodes, one-key switching of pumped storage working conditions is achieved.

[0148] For the analog recording area and the switch recording area, this system extracts the original recording data, draws and analyzes the waveform of the action event, and can also choose to convert it into a universal recording format for export and storage.

[0149] For the action event area and the alarm event area, this system extracts their parameters, determines the action results of each protection module during the test, and records them in the corresponding position of the experimental report in conjunction with the analog parameters.

[0150] For the telesignaling area, this system extracts its parameters to generate the telesignaling automatic test interface.

[0151] For the criterion mark area, this system identifies the node criterion status of the logic block diagram of each protection module. Through the built-in logic simulation system, this system parses the memory address of each node in the logic diagram, reads the device memory data in real time, and displays the execution results of the logic diagram to the user in an intuitive manner, thereby realizing the visualization of the protection logic.

[0152] For the tripping exit area, this system extracts the parameters and generates an automatic test plan for the exit transmission. Combined with the corresponding data of the tripping matrix control word in the protection setting area, the system performs relevant tests on the exit tripping.

[0153] For the signal output area, the system extracts the parameters and generates an automatic test plan for signal transmission.

[0154] For the panel light area, the system extracts the parameters and generates an automatic test plan for the panel lights of the protection device.

[0155] Step 3) The mapping of the designed data space and the physical entity refers to the process of combining the physical entity of the protection device in the process of generating test instances and executing automatic tests. A good mapping mechanism needs to be established between the data space and the physical entity to ensure the accuracy of the automatic test results. After the intelligent test box applies analog quantities, test levels and other test steps to the physical entity of the protection device, the real-time operating space data of the protection device will change. By retrieving and parsing its twin data space data, the logical judgment of the function of the protection device board under the relevant test mode can be obtained. The test process is transparent, and the system can display the execution process and execution results of each test case during the test.

[0156] Step 4) The data perspective and logic display of the design refers to the system that feeds back the current state of the protection device and the execution results of the test instance to the user in an intuitive way by parsing the memory data of each node in the data space, thus realizing the visualization of the protection logic. For the index of each parameter, the mapping symbol table of the configuration file is parsed to obtain the first address of each state quantity and logic node in the two memory spaces synchronously expanded by the protection device and the test system, and the mapping relationship between the state quantity and the memory address is established with the number of lines of the configuration file as the index.

[0157] In order to ensure the accuracy and real-time performance of data perspective, a special communication frame is designed to update the data space in real time. Taking the communication frame for transmitting analog quantity and fixed value memory area data as an example, its structure is as follows:

[0158] Data space synchronization request

[0159]

[0160] Data Space Synchronous Acknowledgement

[0161]

[0162]

[0163] The effective data area of ​​the above communication frame transmits continuous memory fragments, which are sent at the interval of the heartbeat timer. The intelligent test box sends a request frame with a memory index according to the current test item or the needs of human-machine interface data display, and the protection device transmits the memory parameter in the response frame, and a question-and-answer response mechanism is adopted between the two.

[0164] It should be noted that the present invention defines the data space synchronization communication frame format and specification between the automatic test system and the protection device. It mainly includes: switching fixed value area frame, which is used to set the fixed value area applied by the automatic test system; frames of multiple memory data such as synchronous analog quantity, protection fixed value, parameter fixed value, internal fixed value, etc.; frames of synchronous soft pressure plate, hard pressure plate, input and output, signal, indicator light and other memory data; and frames related to synchronous action event, alarm event, and fault recording memory data.

[0165] The synchronous testing of software and hardware described in step 5) is a quick means of troubleshooting equipment from multiple angles during the debugging phase. In the initialization phase of the relay protection test instance, by establishing an information-physical fusion model in the relay protection device, it has the ability to monitor the operating status of the protection device software and hardware at the same time, and combines the real-time data interaction between the relay protection device and the intelligent test system during operation to display the operating status of the relay protection device's own data space and its various physical components in real time. For the feedback result monitoring of a single type of test instance, when an abnormality occurs during the test process, the data space abnormality parameters and the graphical interface of the relay protection device are automatically popped up, and the abnormal components and their abnormal data are highlighted in the graph to assist the debugging personnel in locating the equipment fault, thereby achieving the purpose of rapid diagnosis and location of relay protection equipment faults.

[0166] The multi-application scenario simulation described in step 6) refers to the simulation technology that supports multi-condition test applications, such as the interval control unit, the main equipment of the plant, such as circuit breakers, isolators, etc., can all be simulated through the smart test box. Support one-key switching of the pumped storage unit operating condition conversion process; support simulation of circuit breakers to verify the combination logic between protection equipment and circuit breakers; support simulation of non-metallic grounding conditions.

[0167] The pumped storage unit has six steady states, including shutdown, rotating standby, power generation, power generation phase adjustment, pumping, and pumping phase adjustment, and three transient states, including line charging, back-to-back dragging, and black start, with a total of 18 working condition conversion processes. The working condition switching is closely related to the protection logic of the pumped storage unit. The working condition interlocking and abnormal interlocking during the routine debugging process are manually short-circuited or the external line is led out to the experimental hard pressure plate for simulation verification, which has a great impact on work efficiency. This system supports simulating the on-off of auxiliary nodes at different locations of the pumped storage power station by controlling the relay matrix, realizing one-button rapid switching of different working conditions, simulating various actual scenarios, and the logical combination of on-site working conditions can be edited, read, and saved.

[0168] The simulated circuit breaker is a commonly used test equipment for debugging relay protection devices on site. It plays an important role as a temporary replacement device for the actual circuit breaker in the transmission test of the whole system with switches. This system supports the simulated circuit breaker function. The MCU detects the external trip pulse and closing pulse signals and the manual trip and closing signals in an interrupt mode, keeps the trip and closing indicator lights corresponding to the trip and closing states in real time, and ensures that the trip and closing position contacts are flipped on time when the trip time and closing time are reached. The digital circuit part is electrically isolated from the high-voltage trip and closing input circuit, which improves the device's anti-interference ability and operational reliability. In terms of hardware design, pulse and closing pulse input, multiplexed open-in circuit implementation, trip position relay, closing position contact, multiplexed output relay implementation, three-way manual trip / manual closing buttons, trip / closing indicator lights, trip and closing voltage value settings, etc., are implemented on the touch screen in a virtual control mode.

[0169] Conventional non-metallic grounding tests are not suitable for manual switching under live conditions. This system is designed with a ground impedance simulation function. Through the combination of multiple electronic switches, the impedance matrix output of any value can be wirelessly controlled. The digital impedance matrix module, which is designed with a mixture of digital circuits and analog circuits, is small in size, high in accuracy, and has a complete self-protection function, which is convenient for protection verification. It is used for ground resistance experiments and eliminates manual contact under live conditions. It is combined with overcurrent detection and small circuit breaker modules to ensure the safety of the test process.

[0170] The wireless combination designed in step 7) refers to networking multiple smart test boxes in a wired or wireless manner, which can achieve point-to-point testing of hundreds of signals and adapt to more complex testing requirements by expanding interfaces.

[0171] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the 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 spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. An automatic testing method based on synchronous mapping of data space and physical entity, characterized in that: include: Conduct closed-loop wiring between the intelligent test box and the protection device, and perform hardware and software tests respectively; Parse the configuration file and create a twin data space; The twin data space is parsed through resource index pointers, the physical entity is mapped to the digital space, key data is extracted to generate test instances, and data is displayed.

2. The automatic testing method based on synchronous mapping of data space and physical entity according to claim 1, characterized in that: The hardware testing includes: Connect the input interface of the intelligent test box to the signal and output terminals of the protection device; connect the output interface to the pressure plate and input terminals of the protection device; connect the signal output interface to the analog terminals of the protection device; connect the time synchronization interface to the timing terminals of the protection device; and connect the network interface to the network port on the human-machine interaction board of the protection device.

3. The automatic testing method based on synchronous mapping of data space and physical entity as claimed in claim 2, characterized in that: The software testing includes: Connect the smart test box to the analog tester via a network cable, and control the tester output through the secondary development interface provided by the tester manufacturer. The analog output interface of the analog tester corresponds to the AC module of the protection device. Through the secondary development control interface of the analog tester, the host computer sends test commands to control its output voltage and current analog quantities. The smart test box software automatically generates experimental plans based on the protection settings, and each protection is set as an independent module.

4. The automatic testing method based on synchronous mapping of data space and physical entity as claimed in claim 3, characterized in that: The parsing configuration file includes: Integrate the code of the configuration file parsing module in the underlying program of the protection device into a library and transplant it into the intelligent test box software; After the intelligent test box and the protection device have their first handshake via TCP / IP connection, the configuration file transmission process is started; The configuration file is parsed in the smart test box and a mirror data space is opened; wherein the index of the memory data at each location in the data space is synchronously generated and saved in the smart test box.

5. The automatic testing method based on synchronous mapping of data space and physical entity as claimed in claim 4, characterized in that: The creation of the twin data space includes: Create fixed configuration items in the data space; Define the corresponding information structure for each configuration item; The intelligent test box extracts the information of the data space through the row index pointer and obtains a twin data space corresponding to the data space of the protection device; Register the resource index pointer, establish the pointing relationship between the resource index pointer and the twin data space memory, and determine the number and validity of parameters.

6. The automatic testing method based on synchronous mapping of data space and physical entity as claimed in claim 5, characterized in that: The twin data space is parsed through resource index pointers, the physical entity is mapped to the digital space, and key data is extracted to generate test instances, including: Extract the setting parameters, signal names, outlet names, tripping modes, and pressure plate configuration information required for the test work in the twin data space, and form an intermediate information library with the protection device as the object; According to the specific debugging task, organize the key points of the test requirements, and determine the signal status, output logic, and action results that need to be checked for the sub-project.

7. The automatic testing method based on synchronous mapping of data space and physical entity according to claim 6, characterized in that: The data display comprises: Parse the data space and draw a logic diagram based on the current item; According to the data space index, the relative address of each node in the logic block diagram is obtained; During the execution of the test instance, the corresponding parameters of the data space are read in real time and the parameters are displayed in the corresponding logic block diagram.

8. A system using the automatic testing method based on synchronous mapping of data space and physical entity as claimed in any one of claims 1 to 7, characterized in that: include: Installation modules are used to perform closed-loop wiring between the intelligent test box and the protection device, and to perform hardware and software tests respectively; Twin data space creation module, used to parse configuration files and create twin data space; The test generation module is used to parse the twin data space through resource index pointers, map the physical entity with the digital space, extract key data to generate test instances, and display the data.

9. A computing device comprising: Memory and processor; The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the automatic testing method based on synchronous mapping of data space and physical entity as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the automatic testing method based on synchronous mapping of data space and physical entity as described in any one of claims 1 to 7.