A method and device for in-situ operation and maintenance testing of a power distribution gateway, and a medium

By using a multi-protocol fusion simulation model and an OPC UA unified information model, the problems of numerous sensor types and diverse protocols in traditional testing methods are solved, realizing automated testing of power distribution gateways, improving testing efficiency and accuracy, and ensuring their safe and reliable operation.

CN118714054BActive Publication Date: 2026-03-24GUANGDONG POWER GRID CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

Traditional manual testing methods reduce testing efficiency and are subject to interference from a wide variety of sensors and protocols, making it difficult to ensure the convenience and comprehensiveness of power distribution gateway testing and affecting its safe and reliable operation.

Method used

A multi-protocol fusion simulation model is adopted, and a simulation environment is established through the OPC UA unified information model. Several protocols of the power distribution gateway are adapted to obtain actual test quantities, which are compared with benchmark test quantities to determine error values ​​to reflect operational anomalies.

Benefits of technology

It enables automated testing of power distribution gateways in a multi-protocol environment, eliminating the impact of a wide variety of sensors and protocols, improving the accuracy and efficiency of testing, and ensuring the safe and reliable operation of power distribution gateways.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714054B_ABST
    Figure CN118714054B_ABST
Patent Text Reader

Abstract

The application discloses a kind of power distribution gateway in-place operation and maintenance test method, device and medium, the method includes: to power distribution gateway is simulated, obtains actual test amount;Actual test amount is compared with benchmark test amount, and error value is obtained;Wherein, benchmark test amount is obtained by testing and calibration to power distribution gateway;If error value is not in the range of pre-set, then the running state of power distribution gateway is abnormal.The application proposes a kind of power distribution gateway in-place operation and maintenance test method, device and medium, by adapting to several protocols and simulating power distribution gateway, the actual test amount that can reflect the real operation of power distribution gateway is obtained, the influence of protocol diversification is eliminated, and the problem of numerous sensors is avoided;Again by data comparison, error value is obtained, to reflect the abnormal operating condition of power distribution gateway, can solve the problem of difficult to overcome the interference of numerous sensors and protocol diversification, the problem of automatic test to power distribution gateway.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of power distribution Internet of Things, in particular to a method and device for in-situ operation and maintenance testing of a power distribution gateway, and a medium. BACKGROUND

[0002] With the mutual penetration and integration of power distribution Internet of Things, information technology, big data technology and artificial intelligence technology, power distribution gateways that integrate collection, communication and local computing have become a trend in the development of power distribution Internet of Things. More and more power distribution gateways are connected to the power distribution network, and their safe and reliable operation directly determines the effectiveness of the power distribution network Internet of Things and the power quality and reliability of enterprises and individuals. To meet the application requirements of power distribution Internet of Things business, power distribution gateways need to be installed and tested after installation, and regular maintenance is required in the later operation and maintenance. The traditional testing method is to manually select appropriate sensors to monitor the relevant parameters of the power distribution gateway according to its characteristics, and then make necessary maintenance and adjustments to the power distribution gateway according to the monitoring results to ensure its normal operation.

[0003] However, the traditional manual testing method reduces testing efficiency and has the problems of difficulty in setting sensor values and linkage testing, making it difficult to ensure the convenience and comprehensiveness of power distribution gateway testing and ensuring its safe, reliable and stable operation. SUMMARY

[0004] The present application provides a method and device for in-situ operation and maintenance testing of a power distribution gateway, which solves the problem of automatic testing of power distribution gateways that is difficult to overcome the interference of a large number of sensors and protocol diversification.

[0005] To solve the above problems, the present application provides a method for in-situ operation and maintenance testing of a power distribution gateway, comprising:

[0006] A multi-protocol fusion simulation model is used to adapt to several protocols of the power distribution gateway, and the power distribution gateway is simulated to obtain an actual test amount; wherein the multi-protocol fusion simulation model is established according to an OPC UA unified information model;

[0007] The actual test amount is compared with a benchmark test amount to obtain an error value; wherein the benchmark test amount is obtained by testing and calibrating the power distribution gateway;

[0008] If the error value is not within a preset range, the running state of the power distribution gateway is determined to be abnormal.

[0009] In the present application, the multi-protocol fusion simulation model is established according to the OPC UA unified information model, and the OPC UA unified information model is a core component in an independent communication architecture, which defines the coding specification for exchanging data using various transmission protocols. Under the unified architecture of OPC UA, different devices and programs can exchange data and perform other operations through the unified interface function. Therefore, the multi-protocol fusion simulation model can adapt to the protocols of the power distribution gateway, which means that it can process and analyze data in different protocol formats, thereby enhancing the interoperability between the power distribution gateway and other devices and systems. By simulating the power distribution gateway, the actual test amount can be obtained by simulating the actual operating environment and various possible scenarios, which helps to accurately evaluate the power distribution gateway. By calibrating the test amount of the power distribution gateway, a reliable reference standard can be obtained, and the error value can accurately reflect the abnormal operation of the power distribution gateway.

[0010] Compared with the prior art, the present application adapts the protocols of the power distribution gateway through the multi-protocol fusion simulation model, eliminates the influence of protocol diversification, and then simulates the power distribution gateway through the multi-protocol fusion simulation model, avoiding the problem of a large number of sensors. Thus, the actual test amount reflecting the real operation of the power distribution gateway is obtained. By comparison, the error value is obtained to reflect the abnormal operation of the power distribution gateway. Therefore, the problem of automatic testing of the power distribution gateway can be solved, which is difficult to overcome the interference of a large number of sensors and protocol diversification.

[0011] As a preferred solution, the protocols of the power distribution gateway are adapted through the multi-protocol fusion simulation model, specifically:

[0012] According to the protocol unified architecture and the protocol unified auxiliary architecture of the multi-protocol fusion simulation model, the data of the protocols of the power distribution gateway are converted into a common structure form to obtain a first data set;

[0013] The first data set is encapsulated, and a corresponding unified information model is established for the devices of the power distribution gateway to obtain a unified information model set;

[0014] The first data set is mapped to the corresponding nodes of the unified information model set in the server address space;

[0015] The protocols of the power distribution gateway are adapted according to the corresponding nodes.

[0016] This preferred solution eliminates data format differences between different protocols in the power distribution gateway by converting the data of several protocols into a common structural form, achieving data standardization and unification. This allows previously independent protocol data to be processed and analyzed uniformly. Furthermore, encapsulating the first dataset ensures the integrity and security of data during transmission and processing, while also facilitating subsequent data retrieval and use. In addition, mapping the dataset to corresponding nodes in the unified information model set establishes the association between data and actual equipment. Finally, adapting different protocols based on the node information in the unified information model set ensures that different protocols can communicate and work collaboratively, thereby improving the interoperability and stability of the testing process.

[0017] As a preferred embodiment, the benchmark test quantity is obtained by testing and calibrating the power distribution gateway, specifically as follows:

[0018] The power distribution gateway is subjected to electrical quantity tests (power distribution terminal type) and non-electrical quantity tests (sensor signal type) to obtain actual test values ​​composed of electrical and non-electrical quantities;

[0019] If the deviation between the sampled voltage and current values ​​and the standard values ​​exceeds the preset allowable range, the deviation is reduced by adjusting the actual test values ​​so that the deviation is within the allowable range, thus obtaining the reference test quantity composed of the adjusted actual test values.

[0020] In this preferred scheme, if the deviation between the sampled voltage and current values ​​and the standard values ​​exceeds the preset allowable range, it means that there may be measurement errors or calibration problems in the power distribution gateway. By adjusting the actual test quantities to reduce this deviation, the accuracy and reliability of the test data can be ensured, providing a correct data basis for subsequent analysis and decision-making, and providing a reliable reference standard for the operation and maintenance of the power distribution gateway.

[0021] As a preferred embodiment, the deviation between the sampled voltage and current values ​​and the standard values ​​is specifically as follows:

[0022] The power distribution gateway and the standard meter are connected to the test source simultaneously, so that the power distribution gateway outputs a stable voltage and current. The standard meter is used to measure the standard voltage and current values ​​to obtain the standard values. The power distribution gateway's sampling function is used to obtain the sampled voltage and current values ​​to obtain the sampled voltage and current values.

[0023] The deviation is calculated based on the sampling voltage and current values ​​and the standard values.

[0024] This preferred solution connects the power distribution gateway and the standard meter to the test source, ensuring that both the gateway and the standard meter simultaneously receive the same voltage and current signals from the test source. Furthermore, by measuring the voltage and current using the standard meter, accurate standard voltage and current values ​​can be obtained, serving as a benchmark for subsequent comparison with the power distribution gateway's measurements. In addition, the power distribution gateway's data acquisition function allows it to acquire its own output voltage and current values. These acquired values ​​represent the gateway's own measurement results. Once the acquired values ​​from the standard meter and the gateway are obtained, the deviation can be calculated by comparing these two sets of data, thus reflecting the accuracy of the gateway's measurement results.

[0025] As a preferred approach, the power distribution gateway is simulated to obtain actual test parameters, specifically:

[0026] Under the preset protocol conditions, the SDN configuration program using the multi-protocol fusion simulation model receives the configuration information of the upper-layer SDN management device and establishes a connection with the power distribution gateway through the SDN configuration program;

[0027] By interacting with the power distribution gateway through several SDN configuration frame information of the multi-protocol fusion simulation model to perform differential testing on the power distribution gateway, the actual test quantity is obtained.

[0028] This preferred solution utilizes a multi-protocol fusion simulation model to simulate various communication protocols and data formats, thereby testing the compatibility and performance of the power distribution gateway under different protocols. This helps ensure that the power distribution gateway can adapt to diverse network environments and protocols. Using an SDN configuration program to receive configuration information from upper-layer SDN management devices and apply this information to the power distribution gateway enables flexible configuration and remote management, improving the efficiency and accuracy of power distribution gateway configuration while reducing the complexity of on-site configuration. Through command and data interaction with the power distribution gateway, differential testing can be performed, observing the gateway's performance under different conditions. This helps to comprehensively understand the power distribution gateway's response speed, processing capacity, stability, and other performance indicators in various scenarios.

[0029] As a preferred embodiment, the protocol conditions are specifically as follows:

[0030] Based on the priority architecture of the multi-protocol fusion simulation model, the data of several protocols in the power distribution gateway are prioritized to obtain the priority ranking result;

[0031] The protocols are converted from high to low according to the priority sorting result to obtain the converted protocols.

[0032] The multi-protocol fusion simulation model is controlled to prioritize the processing of specified data according to the converted protocols.

[0033] This preferred solution prioritizes data from several protocols, ensuring that data with the greatest impact on system performance or that is most critical is processed first. This helps to achieve more efficient data processing in a multi-protocol environment, reduce data processing latency, and improve system response speed.

[0034] The present invention also provides an on-site operation and maintenance testing device for a power distribution gateway, including a simulation module, an error module and a judgment module;

[0035] The simulation module is used to adapt several protocols of the power distribution gateway through a multi-protocol fusion simulation model and to simulate the power distribution gateway to obtain actual test quantities; wherein the multi-protocol fusion simulation model is established based on the OPC UA unified information model;

[0036] The error module is used to compare the actual test quantity with the benchmark test quantity to obtain an error value; wherein the benchmark test quantity is obtained by testing and calibrating the power distribution gateway;

[0037] The judgment module is used to determine that the operating status of the power distribution gateway is abnormal if the error value is not within a preset range.

[0038] As a preferred embodiment, the simulation module includes a structural unit, an encapsulation unit, a mapping unit, and an adaptation unit;

[0039] The structural unit is used to convert the data of several protocols in the power distribution gateway into a common structural form according to the protocol unified architecture and protocol unified auxiliary architecture of the multi-protocol fusion simulation model, so as to obtain the first dataset.

[0040] The encapsulation unit is used to encapsulate the first dataset and establish corresponding unified information models for several devices of the power distribution gateway to obtain a unified information model set.

[0041] The mapping unit is used to map the first dataset to the corresponding node of the unified information model set in the server address space;

[0042] The adaptation unit is used to adapt several protocols of the power distribution gateway according to the corresponding node.

[0043] As a preferred embodiment, the error module includes a testing unit and a deviation unit;

[0044] The testing unit is used to perform electrical quantity tests (power distribution terminal type) and non-electrical quantity tests (sensor signal type) on the power distribution gateway to obtain actual test values ​​composed of electrical and non-electrical quantities.

[0045] The deviation unit is used to reduce the deviation by adjusting the actual test value if the deviation between the sampled voltage and current value and the standard value exceeds a preset allowable range, so that the deviation is within the allowable range, and obtain the reference test quantity composed of the adjusted actual test value.

[0046] As a preferred embodiment, the deviation between the sampled voltage and current values ​​and the standard values ​​is specifically as follows:

[0047] The power distribution gateway and the standard meter are connected to the test source simultaneously, so that the power distribution gateway outputs a stable voltage and current. The standard meter is used to measure the standard voltage and current values ​​to obtain the standard values. The power distribution gateway's sampling function is used to obtain the sampled voltage and current values ​​to obtain the sampled voltage and current values.

[0048] The deviation is calculated based on the sampling voltage and current values ​​and the standard values.

[0049] As a preferred embodiment, the simulation module includes a connection unit and an interaction unit;

[0050] The connection unit is used to receive configuration information from the upper-layer SDN management device using the SDN configuration program of the multi-protocol fusion simulation model under preset protocol conditions, and to establish a connection with the power distribution gateway through the SDN configuration program.

[0051] The interaction unit is used to interact with the power distribution gateway through several SDN configuration frame information of the multi-protocol fusion simulation model to perform differential testing on the power distribution gateway and obtain the actual test quantity.

[0052] As a preferred embodiment, the protocol conditions are specifically as follows:

[0053] Based on the priority architecture of the multi-protocol fusion simulation model, the data of several protocols in the power distribution gateway are prioritized to obtain the priority ranking result;

[0054] The protocols are converted from high to low according to the priority sorting result to obtain the converted protocols.

[0055] The multi-protocol fusion simulation model is controlled to prioritize the processing of specified data according to the converted protocols.

[0056] The present invention also provides a storage medium storing a computer program, which is called and executed by a computer to implement the on-site operation and maintenance testing method for a power distribution gateway as described above. Attached Figure Description

[0057] Figure 1 This is a flowchart illustrating a local operation and maintenance testing method for a power distribution gateway provided in an embodiment of the present invention.

[0058] Figure 2 This is a diagram illustrating the multi-protocol fusion technology provided in an embodiment of the present invention;

[0059] Figure 3 This is a structural diagram of the operation and maintenance testing system and its hardware composition provided in the embodiments of the present invention;

[0060] Figure 4 This is a system structure diagram provided in an embodiment of the present invention;

[0061] Figure 5 This is a software flowchart provided in an embodiment of the present invention;

[0062] Figure 6 This is a schematic diagram of the structure of a local operation and maintenance testing device for a power distribution gateway provided in an embodiment of the present invention. Detailed Implementation

[0063] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0064] In the description of this application, it should be understood that the term "first" is used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "several" means two or more.

[0065] The on-site operation and maintenance testing method for a power distribution gateway provided in this embodiment of the invention is mainly applied to situations where manual testing methods would greatly reduce testing efficiency and where sensor values ​​are difficult to set and linkage testing is challenging.

[0066] Example 1:

[0067] Please see Figure 1The present invention provides a local operation and maintenance testing method for a power distribution gateway, including S1 to S3, and the specific implementation steps are as follows:

[0068] S1. Adapt several protocols of the power distribution gateway through a multi-protocol fusion simulation model, and simulate the power distribution gateway to obtain actual test quantities; wherein, the multi-protocol fusion simulation model is established based on the OPC UA unified information model.

[0069] In this embodiment of the invention, step S1 includes S1.1 to S1.4, wherein S1.1 is the process of constructing a multi-protocol fusion simulation APP, S1.2 is the process of protocol adaptation, S1.3 is the process of constructing protocol conditions, and S1.4 is the process of performing simulation to obtain actual test data. Specifically:

[0070] S1.1 Establish a multi-protocol fusion simulation APP (i.e., multi-protocol fusion simulation model) based on the protocol unified architecture, differential testing architecture, protocol unified auxiliary architecture, and priority architecture;

[0071] The unified protocol architecture is used to unify the format of various protocol data of the simulation implementation end device. It completes the data encapsulation through the unified information model of OPC UA. In the OPC UA server, a corresponding OPC UA unified information model is established for each device, and the specific device, parameters and operations are mapped to object nodes, variable nodes and method nodes in the address space of the OPC UA server. The simulation of the terminal device and the adaptation of various protocols are realized through the nodes.

[0072] The differential testing architecture is used to simulate functions such as acquiring control information and transmitting data. It uses an SDN configuration program to receive configuration information from upper-layer SDN management devices, establishes a connection with the gateway through the SDN configuration program, and interacts with the gateway with commands and data through different SDN configuration frame information to complete the differential testing of the gateway.

[0073] The protocol unification auxiliary architecture is used to simulate and implement functions such as protocol conversion. It is implemented using multi-threading and multi-task multiplexing technology. Each thread listens for the ports of interconnected devices and achieves the unification of different protocols through the protocol conversion program, thus shielding the heterogeneity of data formats.

[0074] The priority architecture is used to simulate and implement dynamic priority functions. It uses a fuzzy control program to sort the real-time dynamic priorities of data from multiple concurrent protocols. According to the priority sorting, the protocol is converted from high to low, thereby realizing the priority processing of important data.

[0075] Furthermore, through multi-protocol fusion technology, a qualitative leap from single to multiple has been achieved. By configuring functional description files, such as the communication parameters of the power distribution gateway, the uplink communication protocol of the power distribution gateway, the communication parameters of the end device, and the communication protocol of the end device, effective testing of protocol-level aspects such as protocol interoperability and protocol consistency of a single network port or serial port to multiple complex communication protocols of the smart gateway can be completed.

[0076] For the uplink communication protocol of the power distribution gateway, it can parse standard IEC104 and IEC101 acquisition protocols, multiple MQTT acquisition protocols based on different manufacturers and gateway models based on the MQTT communication mechanism, and acquisition and parsing based on the HTTP protocol. It performs protocol access, protocol parsing, and protocol packet assembly on the acquired data frames, and saves the parsed data to the real-time acquisition data database for comparison and analysis with theoretical protocol data.

[0077] For the downlink communication protocol of the power distribution gateway, it supports the access of end devices including protocols such as DL / T698.44, DL / T 698.45-2017, DL / T645-2007, Modbus, 1376.1, and CoAP. It also supports the simulation of terminals using the above communication protocols and supports protocol extensions.

[0078] To apply this embodiment, please refer to Figure 2 , Figure 2 This is a diagram illustrating the multi-protocol fusion technology provided in this embodiment of the invention. It shows the multi-protocol fusion simulation APP technology implemented when applied in this embodiment of the invention. Specifically, it involves: firstly, generating protocol parsing packets by aggregating and integrating commonly used IoT communication protocols; then, deduplication by comparing repeated data from different sources, and data filtering by setting data thresholds to achieve data screening; finally, classifying and identifying data by adding flag bits, and enabling multi-threading by allocating the optimal number of threads based on server performance to achieve data aggregation and fusion processing.

[0079] S1.2. Based on the unified protocol architecture and unified protocol auxiliary architecture of the multi-protocol fusion simulation APP, the data of several protocols in the power distribution gateway are converted into a common structural form to obtain the first dataset;

[0080] The first dataset is encapsulated, and a unified information model is established for several devices of the power distribution gateway to obtain a unified information model set.

[0081] Map the first dataset to the corresponding node in the unified information model set in the server address space;

[0082] Adapt several protocols of the power distribution gateway according to the corresponding nodes.

[0083] In this embodiment S1.2, by converting the data of several protocols in the power distribution gateway into a common structural form, the differences in data format between different protocols in the power distribution gateway can be eliminated, achieving data standardization and unification. This allows the originally independent protocol data to be processed and analyzed uniformly. Furthermore, encapsulating the first dataset ensures the integrity and security of the data during transmission and processing, while also facilitating subsequent data retrieval and use. In addition, by mapping the dataset to the corresponding nodes of the unified information model set, the association between the data and the actual equipment is realized. Finally, based on the node information in the unified information model set, adaptation processing is performed on different protocols, ensuring that different protocols can communicate and work together, thereby improving the interoperability and stability of the testing process.

[0084] S1.3. Based on the priority architecture of the multi-protocol fusion simulation APP, prioritize the data of several protocols in the power distribution gateway and obtain the priority ranking result.

[0085] The protocols are converted from high to low priority according to the priority ranking results, resulting in several converted protocols.

[0086] The control multi-protocol fusion simulation APP prioritizes the processing of designated important data according to several converted protocols, thus forming protocol conditions.

[0087] In this embodiment S1.3, by prioritizing the data of several protocols, it can ensure that the data that has the greatest impact on system performance or is the most critical is processed first. This helps to achieve more efficient data processing in a multi-protocol environment, reduce data processing latency, and improve system response speed.

[0088] S1.4 Under the protocol conditions, based on the differentiated test architecture of the multi-protocol fusion simulation APP, the SDN configuration program of the multi-protocol fusion simulation APP is used to receive the configuration information of the upper-layer SDN management device, and a connection is established with the power distribution gateway through the SDN configuration program;

[0089] By using a multi-protocol fusion simulation APP to exchange commands and data with the power distribution gateway through several SDN configuration frame information, differential tests are performed on the power distribution gateway to obtain the actual test quantity.

[0090] In this embodiment, S1.4 utilizes a multi-protocol fusion simulation app to simulate various communication protocols and data formats, thereby testing the compatibility and performance of the power distribution gateway under different protocols. This helps ensure that the power distribution gateway can adapt to diverse network environments and protocols. Using an SDN configuration program to receive configuration information from upper-layer SDN management devices and apply this information to the power distribution gateway enables flexible configuration and remote management, improving the efficiency and accuracy of power distribution gateway configuration while reducing the complexity of on-site configuration. Through command and data interaction with the power distribution gateway, differential testing can be performed, observing the gateway's performance under different conditions. This helps to comprehensively understand the power distribution gateway's response speed, processing capacity, stability, and other performance indicators in various scenarios.

[0091] S2. Compare the actual test quantity with the benchmark test quantity to obtain the error value; the benchmark test quantity is obtained by testing and calibrating the power distribution gateway.

[0092] In this embodiment of the invention, step S2 includes S2.1 to S2.3, wherein S2.1 is the process of obtaining the deviation, S2.2 is the process of obtaining the benchmark test quantity, and S2.3 is the process of obtaining the error value, specifically as follows:

[0093] S2.1 Connect the power distribution gateway and the standard meter to the test source simultaneously, so that the power distribution gateway outputs a stable voltage and current, and use the standard meter to measure the standard voltage and standard current values ​​to obtain the standard values; and obtain the sampled voltage and current values ​​through the sampling function of the power distribution gateway to obtain the sampled voltage and current values.

[0094] The deviation is calculated based on the difference between the mining voltage and current values ​​and the standard values.

[0095] In this embodiment, S2.1 connects the power distribution gateway and the standard meter to the test source, ensuring that both the power distribution gateway and the standard meter simultaneously receive the same voltage and current signals from the test source. Furthermore, by measuring the standard values ​​of voltage and current using the standard meter, accurate standard voltage and current values ​​can be obtained, serving as a benchmark for subsequent comparison with the power distribution gateway's measurements. In addition, the power distribution gateway's data acquisition function allows it to acquire its own output voltage and current values. These acquired voltage and current values ​​represent the power distribution gateway's own measurement results. Once the acquired values ​​from the standard meter and the power distribution gateway are obtained, the deviation can be calculated by comparing these two sets of data, thus reflecting the accuracy of the power distribution gateway's measurement results.

[0096] S2.2 Perform electrical quantity tests on the power distribution gateway (power distribution terminal type) and non-electrical quantity tests on sensor signals (sensor type) to obtain the actual test values ​​composed of electrical and non-electrical quantities;

[0097] If the deviation between the voltage and current values collected during mining and the standard values exceeds the preset allowable range, the deviation is reduced by adjusting the actual test values so that the deviation is within the allowable range, and a reference test quantity composed of the adjusted actual test values is obtained.

[0098] In this embodiment S2.2, if the deviation between the voltage and current values collected during mining and the standard values exceeds the preset allowable range, this means that there may be measurement errors or calibration problems in the distribution network gateway; by adjusting the actual test quantity to reduce this deviation, the accuracy and reliability of the test data can be ensured, providing a correct data basis for subsequent analysis and decision-making, and providing a reliable reference standard for the operation and maintenance of the distribution network gateway.

[0099] S2.3. Compare the actual test quantity with the reference test quantity to obtain an error value.

[0100] S3. If the error value is not within the preset range, determine that the operating state of the distribution network gateway is abnormal.

[0101] Step S3 of the embodiment of the present invention is specifically as follows:

[0102] If the error value is not within the preset range, determine that the operating state of the distribution network gateway is abnormal.

[0103] It should be noted that the on-site operation and maintenance test method for a distribution network gateway described in this embodiment is completed in an operation and maintenance test system; among them, the construction process and composition of the operation and maintenance test system are as follows:

[0104] An operation and maintenance test system is established according to an intelligent battery pack, an industrial control computer, an input / output board, a high-precision analog quantity output module, and a core CPU board;

[0105] Among them, the intelligent battery pack is used to provide AC and DC power required for the normal operation of the industrial control computer, the input / output board, the CPU board, and the high-precision analog quantity output module to ensure its stable operation;

[0106] The industrial control computer is used to provide an operating environment for the upper computer and a user-friendly man-machine interaction interface, edit test cases with one key, perform data interaction with the CPU board, automatically analyze test data, automatically generate test reports, simulate sensors, etc.; specifically: the industrial control computer supports touch screen operation and keyboard and mouse operation, provides an operating environment for the upper computer, thereby completing the one-key editing of test cases, sending test instructions to the CPU board, receiving the standard quantity and test quantity sent by the CPU board, if the deviation between the test quantity and the standard quantity is within the set range, it is determined to be qualified, and the test results are automatically saved, automatically filled in the test report, and output to the display interface. The industrial control computer also includes an end device simulation APP, which can receive test case instructions, output sensor simulation signals, and complete the test of the sensor values and linkage signals collected by the distribution network gateway;

[0107] The output of the input / output board is in the form of relay dry contacts, and it also has a logic interlocking function. The input accepts dry contact signals or active node signals, which are used to complete the test of the power distribution gateway's transmission of input / output signals.

[0108] The high-precision analog output module improves output accuracy through internal software and hardware closed-loop technology. It is used to output high-precision analog quantities required for testing by receiving CPU instructions. Specifically, the data from the high-precision analog output module is converted into analog signals by a 16-bit high-precision DA converter and signal conditioning circuit. The output analog signal is then transmitted to the CPU board after signal conditioning circuit and AD conversion. The industrial control computer software issues a self-test command, compares the sampled voltage and current values ​​with the standard values ​​measured by the standard meter, and performs recalibration. Finally, it outputs high-precision voltage and current values ​​with an accuracy of 0.05%.

[0109] The core CPU board is used to interact with the host computer running the industrial control computer, receive test commands from the host computer, control the input / output boards and high-precision analog output modules to output the electrical quantities required for the test, control the trigger to output the trigger signal to the signal generator to output the non-electrical quantities required for the test, and at the same time, the core CPU board transmits the output standard quantities to the host computer and collects the measured values ​​of the power distribution gateway of the object under test and sends them to the host computer for analysis. In addition, when the core CPU board completes the GPS signal reception, it receives the actual test data returned by the power distribution gateway through the communication protocol and sends it to the host computer.

[0110] To apply this embodiment, please refer to Figure 3 , Figure 3 This is a structural diagram of the operation and maintenance testing system and its hardware composition provided in the embodiments of the present invention, showing the composition and specific structure of the operation and maintenance testing system.

[0111] The following section, in conjunction with an operation and maintenance testing system, explains the closed-loop testing process constituted by the on-site operation and maintenance testing method for a power distribution gateway provided in this embodiment:

[0112] (1) Connect the local testing system with the power distribution gateway, multi-protocol fusion simulation APP, signal generator and other equipment.

[0113] (2) Select sensor working mode: simulation or actual sensor; simulation is suitable for environmental quantities such as linkage test, SF6 sensor test signal simulation, and situations where it is difficult to test with actual sensors for various reasons; actual sensor is suitable for software to trigger the controller to control the signal generator to send out the test status quantity for the gateway device to collect and upload.

[0114] (3) One-click editing of test cases and one-click control of test start on the industrial control computer.

[0115] (4) After the test is started, the operation and maintenance test system controls the high-precision analog output module and the input and output board to output the actual electrical quantity required for the test, controls the multi-protocol fusion simulation APP to output the simulated non-electrical quantity or controls the trigger to output the trigger signal to various signal generators to output the actual non-electrical quantity, and the actual electrical quantity and the actual non-electrical quantity constitute the actual test quantity.

[0116] The actual test data is collected by the terminal equipment simulation APP and sent to the power distribution gateway. The power distribution gateway completes the collection, analysis and processing of all test signals and sends them to the operation and maintenance test system.

[0117] (5) Automatic analysis of test data is completed by the operation and maintenance testing system:

[0118] The actual test quantity is automatically compared with the benchmark test quantity to obtain the error value;

[0119] If the error value is within the preset range, the test is considered passed and the power distribution gateway is operating normally; if the error value is outside the preset range, the test is considered failed and the power distribution gateway is operating abnormally, and the test results will be automatically filled in.

[0120] (6) The host computer automatically generates a full-process test report based on the test results, forming a physical and data closed loop;

[0121] To apply this embodiment, please refer to Figure 4 , Figure 4 This is a system structure diagram provided in an embodiment of the present invention, illustrating the general process of data interaction between the operation and maintenance testing system, the power distribution gateway, the terminal equipment, and the signal generator when implementing this embodiment.

[0122] To apply this embodiment, please refer to Figure 5 , Figure 5 This is a software flowchart provided in an embodiment of the present invention, which shows the general process of executing this embodiment through the operation and maintenance testing system. Specifically, after the test project starts execution, the test software calls the test script to execute. After the test project is completed, the test start index moves to the next test project. When the test project switches from the start state to the paused state, the test device stops executing the test case and saves the current test section data. After clicking start execution, the test case can continue to be executed.

[0123] Overall, this embodiment has the following beneficial effects:

[0124] In this embodiment of the invention, the multi-protocol fusion simulation application is built upon a unified protocol architecture including the OPC UA unified information model. The OPC UA unified information model, as a core component of an independent communication architecture, defines the encoding specifications for exchanging data using various transmission protocols. Under the unified architecture of OPC UA, different devices and programs can exchange data and perform other operations through this unified interface function. Therefore, the multi-protocol fusion simulation model can adapt to several protocols of the power distribution gateway. This means it can process and parse data in different protocol formats, thereby enhancing the interoperability between the power distribution gateway and other devices and systems, and eliminating the impact of protocol diversity. By simulating the power distribution gateway, the actual operating environment and various possible scenarios can be simulated to obtain actual test quantities, which helps to accurately evaluate it and avoids the problem of a wide variety of sensors. Because the sampling function of the power distribution gateway allows it to obtain its own output voltage and current values, these sampled voltage and current values ​​represent the measurement results of the power distribution gateway itself. Once the sampled values ​​of the standard meter and the power distribution gateway are obtained, the accuracy of the measurement results can be obtained by comparing these two sets of data. Therefore, the actual test values ​​can be calibrated in this way to ensure that the obtained benchmark test quantity is a reliable reference standard, so that the final error value can accurately reflect the abnormal operation of the power distribution gateway.

[0125] In summary, the operation and maintenance testing system and the local operation and maintenance testing method for power distribution gateways provided in this embodiment solve the problems of numerous sensor types and diverse protocols, realize closed-loop data flow transmission for operation and maintenance testing, and the automated testing process effectively reduces the difficulty of operation and maintenance testing and improves testing efficiency and accuracy.

[0126] Example 2:

[0127] Please see Figure 6 The present invention provides an on-site operation and maintenance testing device for a power distribution gateway, including a simulation module 10, an error module 20 and a judgment module 30;

[0128] The simulation module 10 is used to adapt several protocols of the power distribution gateway through a multi-protocol fusion simulation APP and to simulate the power distribution gateway to obtain actual test quantities. The multi-protocol fusion simulation APP is built according to the protocol unified architecture and priority architecture.

[0129] Error module 20 is used to compare the actual test quantity with the benchmark test quantity to obtain the error value; wherein, the benchmark test quantity is obtained by testing the power distribution gateway to obtain the actual test value, and then calibrating the actual test value by comparing the sampled voltage and current values ​​with the standard values;

[0130] The judgment module 30 is used to determine that the operating status of the power distribution gateway is abnormal if the error value is not within the preset range.

[0131] In one embodiment, the simulation module 10 includes an architecture unit, a structure unit, an encapsulation unit, a mapping unit, an adaptation unit, a condition unit, a connection unit, and an interaction unit. The architecture unit is responsible for building a multi-protocol fusion simulation app; the structure unit, encapsulation unit, mapping unit, and adaptation unit are responsible for protocol adaptation; the condition unit is responsible for building protocol conditions; and the connection unit and interaction unit are responsible for performing simulation to obtain actual test data. Specifically:

[0132] Architecture unit, used to build multi-protocol fusion simulation APP (i.e., multi-protocol fusion simulation model) based on protocol unified architecture, differential testing architecture, protocol unified auxiliary architecture and priority architecture;

[0133] The unified protocol architecture is used to unify the format of various protocol data of the simulation implementation end device. It completes the data encapsulation through the unified information model of OPC UA. In the OPC UA server, a corresponding OPC UA unified information model is established for each device, and the specific device, parameters and operations are mapped to object nodes, variable nodes and method nodes in the address space of the OPC UA server. The simulation of the terminal device and the adaptation of various protocols are realized through the nodes.

[0134] The differential testing architecture is used to simulate functions such as acquiring control information and transmitting data. It uses an SDN configuration program to receive configuration information from upper-layer SDN management devices, establishes a connection with the gateway through the SDN configuration program, and interacts with the gateway with commands and data through different SDN configuration frame information to complete the differential testing of the gateway.

[0135] The protocol unification auxiliary architecture is used to simulate and implement functions such as protocol conversion. It is implemented using multi-threading and multi-task multiplexing technology. Each thread listens for the ports of interconnected devices and achieves the unification of different protocols through the protocol conversion program, thus shielding the heterogeneity of data formats.

[0136] The priority architecture is used to simulate and implement dynamic priority functions. It uses a fuzzy control program to sort the real-time dynamic priorities of data from multiple concurrent protocols. According to the priority sorting, the protocol is converted from high to low, thereby realizing the priority processing of important data.

[0137] Furthermore, through multi-protocol fusion technology, a qualitative leap from single to multiple has been achieved. By configuring functional description files, such as the communication parameters of the power distribution gateway, the uplink communication protocol of the power distribution gateway, the communication parameters of the end device, and the communication protocol of the end device, effective testing of protocol-level aspects such as protocol interoperability and protocol consistency of a single network port or serial port to multiple complex communication protocols of the smart gateway can be completed.

[0138] For the uplink communication protocol of the power distribution gateway, it can parse standard IEC104 and IEC101 acquisition protocols, multiple MQTT acquisition protocols based on different manufacturers and gateway models based on the MQTT communication mechanism, and acquisition and parsing based on the HTTP protocol. It performs protocol access, protocol parsing, and protocol packet assembly on the acquired data frames, and saves the parsed data to the real-time acquisition data database for comparison and analysis with theoretical protocol data.

[0139] For the downlink communication protocol of the power distribution gateway, it supports the access of end devices including protocols such as DL / T698.44, DL / T 698.45-2017, DL / T645-2007, Modbus, 1376.1, and CoAP. It also supports the simulation of terminals using the above communication protocols and supports protocol extensions.

[0140] To apply this embodiment, please refer to Figure 2 , Figure 2 This is a diagram illustrating the multi-protocol fusion technology provided in this embodiment of the invention. It shows the multi-protocol fusion simulation APP technology implemented when applied in this embodiment of the invention. Specifically, it involves: firstly, generating protocol parsing packets by aggregating and integrating commonly used IoT communication protocols; then, deduplication by comparing repeated data from different sources, and data filtering by setting data thresholds to achieve data screening; finally, classifying and identifying data by adding flag bits, and enabling multi-threading by allocating the optimal number of threads based on server performance to achieve data aggregation and fusion processing.

[0141] The structural unit is used to convert the data of several protocols in the power distribution gateway into a common structural form based on the protocol unified architecture and protocol unified auxiliary architecture of the multi-protocol fusion simulation APP, so as to obtain the first dataset.

[0142] The encapsulation unit is used to encapsulate the first dataset and establish corresponding unified information models for several devices of the power distribution gateway to obtain a unified information model set.

[0143] The mapping unit is used to map the first dataset to the corresponding node in the unified information model set in the server address space;

[0144] The adaptation unit is used to adapt several protocols of the power distribution gateway according to the corresponding node.

[0145] This embodiment's structural unit, encapsulation unit, mapping unit, and adaptation unit convert data from several protocols in the power distribution gateway into a common structural form. This eliminates data format differences between different protocols in the power distribution gateway, achieving data standardization and unification, allowing previously independent protocol data to be processed and analyzed uniformly. Furthermore, encapsulating the first dataset ensures data integrity and security during transmission and processing, while also facilitating subsequent data retrieval and use. In addition, mapping the dataset to corresponding nodes in the unified information model set establishes the association between data and actual devices. Finally, adapting different protocols based on node information in the unified information model set ensures that different protocols can communicate and collaborate, thereby improving the interoperability and stability of the testing process.

[0146] The condition unit is used to prioritize the data of several protocols in the power distribution gateway according to the priority architecture of the multi-protocol fusion simulation APP, and obtain the priority ranking result.

[0147] The condition unit is also used to convert several protocols from high to low according to the priority sorting result, so as to obtain several converted protocols.

[0148] The condition unit is also used to control the multi-protocol fusion simulation APP to prioritize the processing of specified important data according to several converted protocols, thus forming protocol conditions.

[0149] The condition unit in this embodiment prioritizes data from several protocols, ensuring that data that has the greatest impact on system performance or is the most critical is processed first. This helps to achieve more efficient data processing in a multi-protocol environment, reduce data processing latency, and improve system response speed.

[0150] The connection unit is used to accept the configuration information of the upper-layer SDN management device through the SDN configuration program of the multi-protocol fusion simulation APP under the protocol conditions and according to the differential test architecture of the multi-protocol fusion simulation APP, and establish a connection with the power distribution gateway through the SDN configuration program.

[0151] The interaction unit is used to exchange commands and data with the power distribution gateway through several SDN configuration frame information of the multi-protocol fusion simulation APP, to perform differential testing on the power distribution gateway and obtain the actual test quantity.

[0152] In this embodiment, the connection unit and interaction unit utilize a multi-protocol fusion simulation app to simulate various communication protocols and data formats. This allows for testing the compatibility and performance of the power distribution gateway under different protocols, helping to ensure the gateway can adapt to diverse network environments and protocols. Using an SDN configuration program to receive configuration information from upper-layer SDN management devices and apply this information to the power distribution gateway enables flexible configuration and remote management, improving configuration efficiency and accuracy while reducing the complexity of on-site configuration. Through command and data interaction with the power distribution gateway, differential testing can be performed, observing its performance under different conditions. This provides a comprehensive understanding of the gateway's response speed, processing capacity, and stability across various scenarios.

[0153] In one embodiment, the error module 20 includes a deviation unit, a test unit, a deviation unit, and an error unit. The deviation unit is the process of acquiring the deviation; the test unit and the deviation unit are the process of acquiring the benchmark test quantity; and the error unit is the process of acquiring the error value. Specifically:

[0154] The deviation unit is used to connect the power distribution gateway and the standard meter to the test source simultaneously, so that the power distribution gateway outputs stable voltage and current, and uses the standard meter to measure the standard voltage and current values ​​to obtain the standard values; and obtains the sampled voltage and current values ​​through the power distribution gateway's sampling function to obtain the sampled voltage and current values.

[0155] The deviation unit is also used to calculate the deviation based on the difference between the sampling voltage and current values ​​and the standard values.

[0156] In this embodiment, the deviation unit connects the power distribution gateway and the standard meter to the test source, ensuring that both the power distribution gateway and the standard meter simultaneously receive the same voltage and current signals from the test source. Furthermore, by measuring the standard values ​​of voltage and current using the standard meter, accurate standard voltage and current values ​​can be obtained, serving as a benchmark for subsequent comparison with the power distribution gateway's measurements. In addition, the power distribution gateway's data acquisition function allows it to acquire its own output voltage and current values. These acquired voltage and current values ​​represent the power distribution gateway's own measurement results. Once the acquired values ​​from the standard meter and the power distribution gateway are obtained, the deviation can be calculated by comparing these two sets of data, thus reflecting the accuracy of the power distribution gateway's measurement results.

[0157] The test unit is used to perform electrical quantity tests (power distribution terminal type) and non-electrical quantity tests (sensor signal type) on the power distribution gateway, and obtain the actual test values ​​composed of electrical and non-electrical quantities.

[0158] A deviation unit, which is used to reduce the deviation by adjusting the actual test value if the deviation between the mined voltage and current values and the standard value exceeds the preset allowable range, so that the deviation is within the allowable range, and a reference test quantity composed of the adjusted actual test values is obtained.

[0159] In the test unit and the deviation unit of this embodiment, if the deviation between the mined voltage and current values and the standard value exceeds the preset allowable range, this means that there may be measurement errors or calibration problems in the distribution network gateway; by adjusting the actual test quantity to reduce this deviation, the accuracy and reliability of the test data can be ensured, providing a correct data basis for subsequent analysis and decision-making, and providing a reliable reference standard for the operation and maintenance of the distribution network gateway.

[0160] An error unit, which is used to compare the actual test quantity with the reference test quantity to obtain an error.

[0161] In one embodiment, the determination module 30 is specifically:

[0162] If the error value is not within the preset range, it is determined that the operating state of the distribution network gateway is abnormal.

[0163] It should be noted that the in-situ operation and maintenance test device for a distribution network gateway described in this embodiment is completed in an operation and maintenance test system; among them, the construction process and composition of the operation and maintenance test system are:

[0164] An operation and maintenance test system is established according to an intelligent battery pack, an industrial control computer, an input / output board, a high-precision analog quantity output module, and a core CPU board;

[0165] Among them, the intelligent battery pack is used to provide AC and DC power required for the normal operation of the industrial control computer, the input / output board, the CPU board, and the high-precision analog quantity output module to ensure its stable operation;

[0166] The industrial control computer is used to provide an operating environment for the upper computer and a user-friendly man-machine interface, such as one-key editing of test cases, data interaction with the CPU board, automatic analysis of test data, automatic generation of test reports, simulation of sensors, etc.; specifically: the industrial control computer supports touch-screen operation and keyboard and mouse operation, provides an operating environment for the upper computer, thereby completing one-key editing of test cases, sending test instructions to the CPU board, receiving the standard quantity and test quantity sent by the CPU board, if the deviation between the test quantity and the standard quantity is within the set range, it is determined to be qualified, and the test result is automatically saved, automatically filled in the test report, and output to the display interface. The industrial control computer also includes an end device simulation APP, which can receive test case instructions, output sensor simulation signals, and complete the test of the distribution network gateway to collect sensor values and linkage signals;

[0167] The output of the input / output board is in the form of relay dry contacts, and it also has a logic interlocking function. The input accepts dry contact signals or active node signals, which are used to complete the test of the power distribution gateway's transmission of input / output signals.

[0168] The high-precision analog output module improves output accuracy through internal software and hardware closed-loop technology. It is used to output high-precision analog quantities required for testing by receiving CPU instructions. Specifically, the data from the high-precision analog output module is converted into analog signals by a 16-bit high-precision DA converter and signal conditioning circuit. The output analog signal is then transmitted to the CPU board after signal conditioning circuit and AD conversion. The industrial control computer software issues a self-test command, compares the sampled voltage and current values ​​with the standard values ​​measured by the standard meter, and performs recalibration. Finally, it outputs high-precision voltage and current values ​​with an accuracy of 0.05%.

[0169] The core CPU board is used to interact with the host computer running the industrial control computer, receive test commands from the host computer, control the input / output boards and high-precision analog output modules to output the electrical quantities required for the test, control the trigger to output the trigger signal to the signal generator to output the non-electrical quantities required for the test, and at the same time, the core CPU board transmits the output standard quantities to the host computer and collects the measured values ​​of the power distribution gateway of the object under test and sends them to the host computer for analysis. In addition, when the core CPU board completes the GPS signal reception, it receives the actual test data returned by the power distribution gateway through the communication protocol and sends it to the host computer.

[0170] To apply this embodiment, please refer to Figure 3 , Figure 3 This is a structural diagram of the operation and maintenance testing system and its hardware composition provided in the embodiments of the present invention, showing the composition and specific structure of the operation and maintenance testing system.

[0171] The following section, in conjunction with an operation and maintenance testing system, explains the closed-loop testing process constituted by the local operation and maintenance testing device for a power distribution gateway provided in this embodiment:

[0172] (1) Connect the local testing system with the power distribution gateway, multi-protocol fusion simulation APP, signal generator and other equipment.

[0173] (2) Select sensor working mode: simulation or actual sensor; simulation is suitable for environmental quantities such as linkage test, SF6 sensor test signal simulation, and situations where it is difficult to test with actual sensors for various reasons; actual sensor is suitable for software to trigger the controller to control the signal generator to send out the test status quantity for the gateway device to collect and upload.

[0174] (3) One-click editing of test cases and one-click control of test start on the industrial control computer.

[0175] (4) After the test is started, the operation and maintenance test system controls the high-precision analog output module and the input and output board to output the actual electrical quantity required for the test, controls the multi-protocol fusion simulation APP to output the simulated non-electrical quantity or controls the trigger to output the trigger signal to various signal generators to output the actual non-electrical quantity, and the actual electrical quantity and the actual non-electrical quantity constitute the actual test quantity.

[0176] The actual test data is collected by the terminal equipment simulation APP and sent to the power distribution gateway. The power distribution gateway completes the collection, analysis and processing of all test signals and sends them to the operation and maintenance test system.

[0177] (6) Automatic analysis of test data is completed by the operation and maintenance testing system:

[0178] The actual test quantity is automatically compared with the benchmark test quantity to obtain the error value;

[0179] If the error value is within the preset range, the test is considered passed and the power distribution gateway is operating normally; if the error value is outside the preset range, the test is considered failed and the power distribution gateway is operating abnormally, and the test results will be automatically filled in.

[0180] (6) The host computer automatically generates a full-process test report based on the test results, forming a physical and data closed loop;

[0181] To apply this embodiment, please refer to Figure 4 , Figure 4 This is a system structure diagram provided in an embodiment of the present invention, illustrating the general process of data interaction between the operation and maintenance testing system, the power distribution gateway, the terminal equipment, and the signal generator when implementing this embodiment.

[0182] To apply this embodiment, please refer to Figure 5 , Figure 5 This is a software flowchart provided in an embodiment of the present invention, which shows the general process of executing this embodiment through the operation and maintenance testing system. Specifically, after the test project starts execution, the test software calls the test script to execute. After the test project is completed, the test start index moves to the next test project. When the test project switches from the start state to the paused state, the test device stops executing the test case and saves the current test section data. After clicking start execution, the test case can continue to be executed.

[0183] Overall, this embodiment has the following beneficial effects:

[0184] In this embodiment of the invention, the multi-protocol fusion simulation application is built upon a unified protocol architecture including the OPC UA unified information model. The OPC UA unified information model, as a core component of an independent communication architecture, defines the encoding specifications for exchanging data using various transmission protocols. Under the unified architecture of OPC UA, different devices and programs can exchange data and perform other operations through this unified interface function. Therefore, the multi-protocol fusion simulation model can adapt to several protocols of the power distribution gateway. This means it can process and parse data in different protocol formats, thereby enhancing the interoperability between the power distribution gateway and other devices and systems, and eliminating the impact of protocol diversity. By simulating the power distribution gateway, the actual operating environment and various possible scenarios can be simulated to obtain actual test quantities, which helps to accurately evaluate it and avoids the problem of a wide variety of sensors. Because the sampling function of the power distribution gateway allows it to obtain its own output voltage and current values, these sampled voltage and current values ​​represent the measurement results of the power distribution gateway itself. Once the sampled values ​​of the standard meter and the power distribution gateway are obtained, the accuracy of the measurement results can be obtained by comparing these two sets of data. Therefore, the actual test values ​​can be calibrated in this way to ensure that the obtained benchmark test quantity is a reliable reference standard, so that the final error value can accurately reflect the abnormal operation of the power distribution gateway.

[0185] In summary, the operation and maintenance testing system and the local operation and maintenance testing device for a power distribution gateway provided in this embodiment solve the problems of numerous sensor types and diverse protocols, realize closed-loop data flow transmission for operation and maintenance testing, and effectively reduce the difficulty of operation and maintenance testing and improve testing efficiency and accuracy through automated testing processes.

[0186] Example 3:

[0187] This invention provides a computer-readable storage medium, which includes a stored computer program, wherein the computer program, when running, controls the device where the computer-readable storage medium is located to execute the local operation and maintenance testing method for a power distribution gateway.

[0188] The on-site operation and maintenance testing method for a power distribution gateway, if implemented as a software functional unit and used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0189] The above are preferred embodiments of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for on-site operation and maintenance testing of a power distribution gateway, characterized in that, include: Several protocols of the power distribution gateway are adapted using a multi-protocol fusion simulation model, and the power distribution gateway is simulated to obtain actual test quantities. Specifically, simulating the power distribution gateway to obtain actual test quantities involves: under preset protocol conditions, using the SDN configuration program of the multi-protocol fusion simulation model to receive configuration information from the upper-layer SDN management device, and establishing a connection with the power distribution gateway through the SDN configuration program; interacting with the power distribution gateway through several SDN configuration frame information from the multi-protocol fusion simulation model to perform differential testing on the power distribution gateway, thereby obtaining the actual test quantities. The multi-protocol fusion simulation model is established based on the OPC UA unified information model, specifically: the multi-protocol fusion simulation model is established based on a protocol unified architecture, a differential testing architecture, a protocol unified auxiliary architecture, and a priority architecture based on the OPC UA unified information model; the differential testing architecture involves using the SDN configuration program to receive configuration information from the upper-layer SDN management device, establishing a connection with the gateway through the SDN configuration program, and interacting with the gateway through different SDN configuration frame information to complete the differential testing of the gateway. The actual test quantity is compared with the benchmark test quantity to obtain the error value; If the error value is not within the preset range, the operating status of the power distribution gateway is determined to be abnormal. The benchmark test quantity is obtained by testing and calibrating the power distribution gateway, specifically as follows: The power distribution gateway is subjected to electrical quantity tests (power distribution terminal type) and non-electrical quantity tests (sensor signal type) to obtain actual test values ​​composed of electrical and non-electrical quantities; If the deviation between the sampled voltage and current values ​​and the standard values ​​exceeds the preset allowable range, the deviation is reduced by adjusting the actual test values ​​so that the deviation is within the allowable range, and the reference test quantity composed of the adjusted actual test values ​​is obtained. The method for obtaining the sampled voltage and current values ​​and the standard values ​​is as follows: the power distribution gateway and the standard meter are connected to the test source simultaneously, so that the power distribution gateway outputs a stable voltage and current, and the standard meter is used to measure the standard voltage value and the standard current value to obtain the standard value. The sampled voltage and current values ​​are obtained through the sampling function of the power distribution gateway to obtain the sampled voltage and current values.

2. The on-site operation and maintenance testing method for a power distribution gateway as described in claim 1, characterized in that, Several protocols of the power distribution gateway are adapted using a multi-protocol fusion simulation model, specifically as follows: Based on the unified protocol architecture and unified protocol auxiliary architecture of the multi-protocol fusion simulation model, the data of several protocols in the power distribution gateway are converted into a common structural form to obtain the first dataset. The first dataset is encapsulated, and a corresponding unified information model is established for several devices of the power distribution gateway to obtain a unified information model set; Map the first dataset to the corresponding node of the unified information model set in the server address space; The power distribution gateway is adapted to several protocols according to the corresponding nodes.

3. The on-site operation and maintenance testing method for a power distribution gateway as described in claim 1, characterized in that, The specific terms of the agreement are as follows: Based on the priority architecture of the multi-protocol fusion simulation model, the data of several protocols in the power distribution gateway are prioritized to obtain the priority ranking result; The protocols are converted from high to low according to the priority sorting result to obtain the converted protocols. The multi-protocol fusion simulation model is controlled to prioritize the processing of specified data according to the converted protocols.

4. A local operation and maintenance testing device for a power distribution gateway, characterized in that, It includes a simulation module, an error module, and a judgment module; The simulation module is used to adapt several protocols of the power distribution gateway using a multi-protocol fusion simulation model, and to simulate the power distribution gateway to obtain actual test quantities. Specifically, simulating the power distribution gateway to obtain actual test quantities involves: under preset protocol conditions, using the SDN configuration program of the multi-protocol fusion simulation model to receive configuration information from the upper-layer SDN management device, and establishing a connection with the power distribution gateway through the SDN configuration program; interacting with the power distribution gateway through several SDN configuration frame information from the multi-protocol fusion simulation model to perform differential testing on the power distribution gateway, and obtaining the actual test quantities. The multi-protocol fusion simulation model is established based on the OPCUA unified information model, specifically: the multi-protocol fusion simulation model is based on OPC... The unified information model of UA establishes a unified protocol architecture, a differential testing architecture, a unified protocol auxiliary architecture, and a priority architecture. The differential testing architecture uses an SDN configuration program to receive configuration information from the upper-layer SDN management device, establishes a connection with the gateway through the SDN configuration program, and interacts with the gateway with commands and data through different SDN configuration frame information to complete the differential testing of the gateway. The error module is used to compare the actual test quantity with the benchmark test quantity to obtain an error value; wherein the benchmark test quantity is obtained by testing and calibrating the power distribution gateway; The judgment module is used to determine that the operating status of the power distribution gateway is abnormal if the error value is not within a preset range. The benchmark test quantity is obtained by testing and calibrating the power distribution gateway, specifically as follows: The power distribution gateway is subjected to electrical quantity tests (power distribution terminal type) and non-electrical quantity tests (sensor signal type) to obtain actual test values ​​composed of electrical and non-electrical quantities; If the deviation between the sampled voltage and current values ​​and the standard values ​​exceeds the preset allowable range, the deviation is reduced by adjusting the actual test values ​​so that the deviation is within the allowable range, and the reference test quantity composed of the adjusted actual test values ​​is obtained. The method for obtaining the sampled voltage and current values ​​and the standard values ​​is as follows: the power distribution gateway and the standard meter are connected to the test source simultaneously, so that the power distribution gateway outputs a stable voltage and current, and the standard meter is used to measure the standard voltage value and the standard current value to obtain the standard value. The sampled voltage and current values ​​are obtained through the sampling function of the power distribution gateway to obtain the sampled voltage and current values.

5. The local operation and maintenance testing device for a power distribution gateway as described in claim 4, characterized in that, The simulation module includes structural units, encapsulation units, mapping units, and adaptation units; The structural unit is used to convert the data of several protocols in the power distribution gateway into a common structural form according to the protocol unified architecture and protocol unified auxiliary architecture of the multi-protocol fusion simulation model, so as to obtain the first dataset. The encapsulation unit is used to encapsulate the first dataset and establish corresponding unified information models for several devices of the power distribution gateway to obtain a unified information model set. The mapping unit is used to map the first dataset to the corresponding node of the unified information model set in the server address space; The adaptation unit is used to adapt several protocols of the power distribution gateway according to the corresponding node.

6. The local operation and maintenance testing device for a power distribution gateway as described in claim 4, characterized in that, The specific terms of the agreement are as follows: Based on the priority architecture of the multi-protocol fusion simulation model, the data of several protocols in the power distribution gateway are prioritized to obtain the priority ranking result; The protocols are converted from high to low according to the priority sorting result to obtain the converted protocols. The multi-protocol fusion simulation model is controlled to prioritize the processing of specified data according to the converted protocols.

7. A storage medium, characterized in that, The storage medium stores a computer program, which is called and executed by a computer to implement the local operation and maintenance testing method for any one of the power distribution gateways as described in claims 1 to 3.

Citation Information

Patent Citations

  • Online closed-loop debugging system and method for power distribution internet-of-things sensing device

    CN116437375A

  • Avionics test equipment management and control system based on OPC UA protocol gateway

    CN117240835A