Power distribution gateway sensor operation and maintenance debugging method and system based on event driving and electronic equipment

By using an event-driven approach to automate the commissioning of power distribution gateway sensors, the problem of low efficiency in manual operation in existing technologies is solved. This enables efficient and reliable automated commissioning and real-time feedback, adapts to complex environments, and improves the system's scalability and maintainability.

CN121585546APending Publication Date: 2026-02-27SHANGHAI WISCOM SUNEST ELECTRIC POWER TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511627759.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-07
Publication Date
2026-02-27

AI Technical Summary

Technical Problem

The operation and maintenance of existing power distribution gateways and their sensors rely on manual operation, which is inefficient, lacks unified standards, makes it difficult to achieve real-time feedback and automated response, and cannot meet the safety and intelligent operation and maintenance needs of modern power distribution networks.

Method used

An event-driven approach is adopted, which enables communication between modules through an event bus. The power source module outputs electrical signals, and the sensor triggers simulate sensor operation. Combined with real-time data comparison and result judgment, a debugging report is generated. Voice and light feedback are supported to achieve automated and standardized debugging.

Benefits of technology

It enables automated commissioning of power distribution gateways and their sensors, improving commissioning efficiency, enhancing process controllability and traceability, adapting to complex environments, and providing real-time feedback and result recording functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121585546A_ABST
    Figure CN121585546A_ABST
Patent Text Reader

Abstract

The invention discloses a power distribution gateway sensor operation and maintenance debugging method and system based on event driving and electronic equipment, and belongs to the field of power system operation and maintenance. The method comprises the steps of issuing a debugging command event to an event bus in response to a debugging instruction; controlling the power source module to output an electrical quantity signal and / or generate a sensor triggering instruction; subscribing to gateway real-time data, and capturing a trigger operation to generate a corresponding event; comparing, judging and generating a debugging result event according to preset logic; and driving an interface, an indicator light or a voice module to present the result, and generating a storage structured report. The system comprises an operation and maintenance host and a sensor debugging assembly which are communicated through a wireless AP, the host comprises a man-machine interaction module, an event bus module and the like, and the assembly comprises an operation key module, a trigger module and the like. The electronic equipment comprises a processor and a memory and executes the method. According to the invention, debugging automation standardization is realized, efficiency is improved, and system expansibility and process controllability and traceability are enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of power system operation and maintenance technology, specifically relating to an automated debugging method, system, and electronic equipment for distribution substation gateways and their sensors. Background Technology

[0002] Distribution gateways play a crucial role in power systems by collecting and transmitting critical information, and their stable operation directly impacts the reliable power supply of the distribution network. Various sensors deployed within the substation, such as those for temperature, humidity, smoke, partial discharge, and noise, are used to monitor the substation environment and equipment status in real time, forming a vital foundation for ensuring the safe operation of the substation.

[0003] Currently, the operation and maintenance (O&M) of distribution gateways and their sensors mainly relies on manual operation. O&M personnel must carry relay protection testers and various physical sensor triggers, manually triggering each sensor one by one, and then checking the data uploaded by the distribution gateway through an IoT management platform to see if it is normal. This traditional O&M method has significant drawbacks: low efficiency, cumbersome and time-consuming manual operation procedures; lack of unified standards in the O&M process, making it difficult to trace operation trajectories and data changes; and inability to achieve real-time feedback and automated response of the O&M status, failing to meet the needs of modern distribution network safety and intelligent O&M. Therefore, there is an urgent need for an efficient, reliable, and automated O&M solution to address the shortcomings of existing technologies. Summary of the Invention

[0004] This invention aims to provide an event-driven method, system, and electronic device for the operation and maintenance of power distribution gateway sensors, thereby automating and standardizing the operation and maintenance of power distribution gateways and their sensors, improving debugging efficiency, enhancing process controllability and traceability, and optimizing system scalability and maintainability.

[0005] To achieve the above objectives, the present invention adopts the following technical solution: In a first aspect, the present invention provides an event-driven method for the operation, maintenance, and debugging of power distribution gateway sensors, the method comprising: In response to user-initiated debugging commands, generate and publish debugging command events to the event bus; Subscribe to and respond to the debugging command event, control the power source module to output a specified electrical quantity signal to the power distribution gateway to be debugged, and / or generate sensor trigger commands; Subscribe to real-time data from the power distribution gateway, capture sensor-triggered operations, and generate corresponding real-time data events and operation trigger events; Based on the real-time data events and operation trigger events, automatic comparison and judgment are performed according to the preset debugging logic to generate debugging result events; Subscribe to the debugging result events to drive at least one human-computer interaction interface, result indicator light, or voice module to present the debugging results to the user; and Subscribe to the debug result events to generate and store structured debug reports.

[0006] Preferably, the automatic comparison and judgment based on preset debugging logic specifically includes: If the object of debugging is an electrical quantity, the standard value of the electrical quantity output by the power source module is compared with the measured value of the electrical quantity actually reported by the power distribution gateway, and the pass or fail is determined according to the error range. If the object being debugged is a non-electrical quantity sensor, then determine whether the corresponding sensor trigger operation and corresponding sensor data are received within a preset time window.

[0007] Preferably, the event bus adopts a publish / subscribe mechanism based on a message queue on the Kafka platform, serving as the central hub for communication between modules within the system.

[0008] Preferably, communication with the power distribution gateway adopts the MQTT protocol, and data interaction is achieved by subscribing to and publishing to designated topics.

[0009] Preferably, the step of driving at least one human-computer interaction interface, result indicator light, or voice module to present the debugging results to the user includes: The control indicator light should illuminate green to indicate successful debugging and red to indicate failed debugging; and / or The voice module is controlled to broadcast voice prompts including sensor type and debugging status.

[0010] In a second aspect, the present invention provides an event-driven power distribution gateway sensor operation and maintenance debugging system for implementing the method described in any one of the first aspects, wherein the system includes an operation and maintenance host and a sensor debugging component, and the operation and maintenance host and the sensor debugging component communicate with each other via a wireless AP. The maintenance host includes: The human-computer interaction module is used to receive user commands, configure the IP address and parameter information of the gateway to be debugged, select the operation and maintenance debugging scheme, and display the debugging results. The event bus module serves as the central hub for communication between various modules within the system, and is used for event publishing and subscription. An automatic debugging module is used to subscribe to relevant events and execute the automatic comparison and judgment logic to generate debugging result events; The communication management module is used to manage the communication connection and data interaction with the power distribution gateway, and connects to the MQTT Broker of the power distribution gateway data center through an MQTT client; A power source module is used to output adjustable electrical quantity signals to the power distribution gateway according to event commands; The debug results module is used to subscribe to debug result events and generate and store debug reports. The sensor debugging component includes: Operation buttons are used by users to initiate sensor-triggered operations and publish button operation events; The sensor trigger module is used to simulate the physical triggering of various sensors and publish sensing triggering information to the event bus; The result indicator light is used to indicate the debugging results by light color, and you can subscribe to indicator light flashing events; The voice module is used to broadcast debugging results via voice and to subscribe to voice broadcast events.

[0011] Preferably, the sensor trigger module integrates at least one trigger from temperature, humidity, water immersion, smoke, partial discharge, and noise sensors.

[0012] Preferably, the power source module includes at least four independent voltage output channels and four independent current output channels, wherein the voltage output range is 0-260V and the current output range is 0-12A, and the electrical quantities are output to the gateway to be debugged through the analog output port.

[0013] Preferably, the maintenance host and the sensor debugging component communicate via a wireless access point (AP).

[0014] Preferably, the debugging report generated by the debugging result module includes test time, sensor identification, test items, expected results, actual results and test status information, and supports query, statistics and export functions.

[0015] Thirdly, the present invention provides an electronic device, comprising: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the method as described in any one of the first aspects.

[0016] Compared with the prior art, the present invention has the following beneficial effects: 1. To automate and standardize the commissioning of power distribution gateways and their sensors, reduce manual intervention, and significantly improve commissioning efficiency; 2. By using an event bus to decouple module functions, each module interacts through events, enhancing system scalability and maintainability, and facilitating subsequent function upgrades and module additions; 3. It has real-time feedback and result recording functions, and provides real-time feedback on the debugging status through indicator lights and voice modules. The debugging report is archived throughout the process, which improves the controllability and traceability of the debugging process; 4. Supports extended sensor triggering tools, providing dual interaction methods of voice and light, adapting to complex on-site environments such as noisy and poor visibility, and improving the system's usability. Attached Figure Description

[0017] Figure 1 This is a diagram showing the overall functional structure of the system of the present invention; Figure 2 This is the event-driven flowchart of the present invention. Detailed Implementation

[0018] The following detailed description, in conjunction with the accompanying drawings (Figure 1 is the overall functional structure diagram of the system, and Figure 2 is the event-driven flowchart), provides a detailed explanation of the specific implementation methods, systems, and electronic devices of the event-driven power distribution gateway sensor operation and maintenance debugging method of the present invention, to ensure that the technical solution is reproducible, while also echoing the protection scope of the claims.

[0019] I. System Deployment and Debugging Preparation In this embodiment, the event-driven power distribution gateway sensor operation and maintenance debugging system includes two core components: an operation and maintenance host and a sensor debugging component. The two establish a stable network communication connection through a wireless AP to ensure real-time transmission of event information between modules.

[0020] 1. Hardware Connection and Parameter Configuration Physical connection: First, connect the network port of the maintenance host to the Ethernet port of the power distribution gateway to be debugged using a Cat5e network cable to ensure network connectivity between the two; then connect the output terminal of the power source module built into the maintenance host to the electrical quantity acquisition port of the power distribution gateway using a dedicated electrical connection cable. The power source module has 4 independent voltage output channels (output range 0-260V) and 4 independent current output channels (output range 0-12A), which can meet the debugging requirements of common electrical quantities of the power distribution gateway (such as A-phase voltage, B-phase current, etc.).

[0021] Sensor inspection: Confirm that the installation location of each sensor to be tested in the substation (temperature, humidity, water immersion, smoke, partial discharge, noise sensor) meets the specifications, and that the signal connection between the sensor and the power distribution gateway is secure, to ensure that the sensor trigger signal can be accurately transmitted to the gateway.

[0022] Parameter Configuration: Maintenance personnel complete two core configurations through the human-machine interface module of the maintenance host (the software interface is developed using Qt / C++ under Windows system and supports 1080P resolution display): First, input the IP address of the gateway to be debugged (e.g., 192.168.1.100) and the gateway communication parameters (baud rate 9600bps, data bits 8 bits, stop bits 1 bit); Second, select the maintenance debugging scheme. The scheme is preset with "electrical quantity debugging scheme" (for gateway voltage and current acquisition function) and "non-electrical quantity sensor debugging scheme" (for temperature, humidity, smoke and other sensors). This embodiment enables both schemes at the same time, covering the full-function debugging of the power distribution gateway and sensors.

[0023] 2. Event Bus and Communication Protocol Initialization Event Bus Startup: The event bus module on the operations and maintenance host uses Kafka version 2.8.0 to build a message bus, creating a topic named "gateway_debug_topic" to receive and forward all debugging-related events (such as debug command events, real-time data events, debug result events, etc.). After system startup, the event bus automatically initializes the connections between producers (such as the human-machine interaction module and operation buttons) and consumers (such as the power source module and automatic debugging module), ensuring that events published by event producers can be accurately subscribed to by the corresponding consumers.

[0024] MQTT Communication Configuration: The communication management module initializes the MQTT client (using the Eclipse Paho client library), connects to the MQTT Broker in the power distribution gateway data center (address: mqtt: / / 192.168.0.1:1883), and subscribes to and publishes data according to preset topics: the control command publishing topic is set to " / v1 / devices / GW001 / commands" (where "GW001" is the unique identifier gatewayId of the gateway to be debugged), used to send debugging control commands to the gateway; the gateway data subscription topic is set to " / v1 / devices / GW001 / datas", used to receive electrical quantity measurement values ​​and sensor acquisition values ​​uploaded by the gateway in real time. Simultaneously, the communication management module loads the power distribution gateway's physical model file (JSON format), which defines the data type (e.g., voltage as floating point, temperature as integer) and unit of each acquisition point of the gateway, ensuring that the received gateway data can be accurately interpreted as "data change events" (e.g., "phase A voltage changes from 220V to 100V").

[0025] II. Debugging process execution (combined with event-driven logic) This embodiment takes "phase A voltage debugging of power distribution gateway" and "temperature sensor debugging" as examples to explain the debugging process in detail, covering all the limitations of the aforementioned event-driven power distribution gateway sensor operation and maintenance debugging method, while also demonstrating the asynchronous parallel processing characteristics of event-driven processing.

[0026] 1. Initiate debugging commands (event publication phase) On the software interface of the human-machine interface module, the maintenance personnel select the configured "Electrical Quantity + Non-Electrical Quantity Joint Debugging Scheme" and click the "Start Automatic Debugging" button. At this time, the human-machine interface module, as an event producer, publishes a "Debug Command Event" to the "gateway_debug_topic" of the Kafka event bus. The event content includes parameters such as the debugging object ("Phase A Voltage" and "Temperature Sensor"), the standard value of the electrical quantity (Phase A Voltage 100V), and the preset time window (30 seconds for debugging non-electrical quantity sensors).

[0027] 2. Module Response and Event Handling (Event Subscription and Execution Phase) Power source module response: As a consumer of the "debugging command event", the power source module subscribes to the event, parses the electrical quantity parameters in the event, and controls its first voltage output channel to output a 100V standard voltage. This voltage is transmitted to the A-phase voltage acquisition port of the power distribution gateway through the electrical connection line. At the same time, the power source module records the output time (accurate to milliseconds) for subsequent error comparison.

[0028] Sensor Trigger Operation: Simultaneously, the maintenance personnel hold the sensor debugging component and press the "Temperature Sensor Trigger" operation button on the component (the operation button uses a waterproof tactile switch to adapt to the humid environment of the station). At this time, the operation button publishes a "button operation event" to the event bus, which carries the trigger sensor type ("temperature sensor") and trigger time. At the same time, the sensor trigger module of the sensor debugging component simulates the physical signal of the temperature rising to 50°C and sends it to the temperature sensor wirelessly, triggering the sensor to upload the "temperature 50°C" collected data to the power distribution gateway.

[0029] 3. Data Collection and Result Judgment (Automatic Comparison Stage) Real-time data event generation: The communication management module continuously subscribes to the topic " / v1 / devices / GW001 / datas". When the power distribution gateway collects a 100V voltage signal output from the power source module, it uploads "Phase A voltage measurement: 99.8V" to this topic. Simultaneously, after receiving 50℃ data from the temperature sensor, the gateway uploads "Temperature measurement: 50℃". After parsing these two sets of data, the communication management module generates "Real-time data event (Phase A voltage)" and "Real-time data event (Temperature)" respectively, and publishes them to the Kafka event bus.

[0030] Automatic comparison and result generation: The automatic debugging module subscribes to both "real-time data events" and "button operation events" and performs judgments based on preset debugging logic. For phase A voltage (electrical quantity debugging): extract the 100V standard value output by the power source module and the 99.8V measured value reported by the gateway. The calculated error is 0.2V, and the error rate is 0.2%, which is less than the preset 1% error threshold. Therefore, it is determined that "phase A voltage debugging is passed". For temperature sensors (non-electrical quantity debugging): if both "button operation event" (temperature trigger) and "real-time data event (temperature 50℃)" are received simultaneously within a 30-second preset time window, and the data is within the normal acquisition range of the sensor, it is determined that "temperature sensor debugging is successful".

[0031] The automatic debugging module integrates the above two results into a "debugging result event" and publishes it to the event bus. The event content includes the debugging object, standard value, measured value, error, and judgment result (pass / fail).

[0032] 4. Results Feedback and Report Generation (Event Closure Phase) Multiple ways to provide results feedback: After the sensor debugging component subscribes to the "Debugging Result Event", it publishes the "Voice Broadcast Event" and the "Indicator Light Flashing Event" respectively: After the voice module (using the TS826 voice chip, supporting 110dB volume) subscribes to the "Voice Broadcast Event", it broadcasts "Phase A voltage debugging passed, temperature sensor debugging passed"; After the result indicator light (using RGB LEDs) subscribes to the "Indicator Light Flashing Event", it lights up a stable green light (if the debugging fails, it lights up a red light and flashes), providing intuitive feedback on the debugging results; After the human-computer interaction module subscribes to the "debugging result event", it displays detailed data (standard value, measured value, error, and judgment result) of the two debugging items in real time in the "debugging result area" of the software interface, which is convenient for maintenance personnel to view in real time.

[0033] Structured report generation: After the debug results module subscribes to the "Debug Results Event", it automatically generates a structured test report, which includes the following fields: Test time Sensor / Gateway Identifier Test Project Overdue results Actual results Test status 2024-10-20 09:30:15 GW001-A Phase Voltage Phase A voltage acquisition accuracy Output 100V, measurement error ≤1% Output 100V, measured 99.8V, error 0.2%. pass 2024-10-20 09:30:20 TEMP-001 (Temperature) Temperature data upload Receive 50°C data within 30 seconds of triggering. Receive 50℃ data 5 seconds after triggering pass The report is stored in JSON format in the local database (MySQL 8.0) of the operation and maintenance host. It supports queries by "test time" and "sensor identifier" and statistics by "test status" (such as "98% of sensors passed debugging this month") through the human-machine interaction module. It can also be exported to Excel or PDF format, providing data support for distribution network operation and maintenance decisions (such as gateway maintenance cycle setting) and equipment quality assessment (such as sensor batch pass rate).

[0034] III. Implementation Methods of Electronic Devices In this embodiment, the electronic device executing the above-described operation and maintenance debugging method is an operation and maintenance host, with the following hardware configuration: The processor is an Intel Core i7-12700H (14 cores, 20 threads) to ensure computational efficiency when multiple modules asynchronously process events; the memory configuration includes 16GB DDR4 RAM + 1TB SSD solid-state drive for storing the operating system, debugging software, object model files, and debugging report database; the software uses Windows 10 Professional operating system, and the debugging software is developed based on Qt / C++, integrating a Kafka client, MQTT client, and data visualization module. When the operation and maintenance personnel start the debugging software, the "event-driven debugging program" stored in the memory is loaded and executed by the processor, sequentially completing event bus initialization, module communication establishment, debugging process control, and result processing, ultimately realizing all the steps of the above-described event-driven power distribution gateway sensor operation and maintenance debugging method.

[0035] IV. Special Scenarios Adaptation Instructions Noisy Environment Adaptation: If the equipment in the substation is operating noisily (such as fan or transformer noise), the voice module supports adjusting the broadcast volume (50-110dB) through the software interface to ensure that maintenance personnel can clearly hear the debugging results; at the same time, the flashing frequency of the result indicator light can be set (1 time / second or 2 times / second) to avoid visual oversight.

[0036] Batch debugging of multiple gateways: When multiple power distribution gateways need to be debugged simultaneously, the human-machine interaction module supports importing a list of gateway IPs (Excel format), batch issuing debugging command events, and the event bus distinguishes the events of each gateway by different gatewayId. The automatic debugging module processes the debugging results according to the gateway ID, realizing parallel debugging and greatly improving operation and maintenance efficiency.

[0037] This embodiment fully reproduces the technical solution of the present invention through specific hardware parameters, software configuration, event content, and operation steps. It retains the core content of "module function" and "debugging process" in the technical disclosure, and strictly corresponds to the scope of the claims, ensuring the practicality of the technical solution and the consistency of patent protection.

Claims

1. An event-driven method for the operation, maintenance, and debugging of power distribution gateway sensors, characterized in that, The method includes: In response to user-initiated debugging commands, generate and publish debugging command events to the event bus; Subscribe to and respond to the debugging command event, control the power source module to output a specified electrical quantity signal to the power distribution gateway to be debugged, and / or generate sensor trigger commands; Subscribe to real-time data from the power distribution gateway, capture sensor-triggered operations, and generate corresponding real-time data events and operation trigger events; Based on the real-time data events and operation trigger events, automatic comparison and judgment are performed according to the preset debugging logic to generate debugging result events; Subscribe to the debugging result events to drive at least one human-computer interaction interface, result indicator light, or voice module to present the debugging results to the user; and Subscribe to the debug result events to generate and store structured debug reports.

2. The method according to claim 1, characterized in that, The automatic comparison and judgment based on the preset debugging logic specifically includes: If the object of debugging is an electrical quantity, the standard value of the electrical quantity output by the power source module is compared with the measured value of the electrical quantity actually reported by the power distribution gateway, and the pass or fail is determined according to the error range. If the object being debugged is a non-electrical quantity sensor, then determine whether the corresponding sensor trigger operation and corresponding sensor data are received within a preset time window.

3. The method according to claim 1, characterized in that, The event bus uses a message queue based on the Kafka platform to implement a publish / subscribe mechanism, serving as the central hub for communication between various modules within the system.

4. The method according to claim 1, characterized in that, Communication with the power distribution gateway uses the MQTT protocol, and data interaction is achieved by subscribing to and publishing to specified topics.

5. The method according to claim 1, characterized in that, The process of presenting debugging results to the user through at least one human-computer interaction interface, result indicator light, or voice module includes: The control indicator light should illuminate green to indicate successful debugging and red to indicate failed debugging; and / or The voice module is controlled to broadcast voice prompts including sensor type and debugging status.

6. An event-driven power distribution gateway sensor operation and maintenance debugging system, used to implement the method described in any one of claims 1-5, characterized in that, The system includes an operation and maintenance host and a sensor debugging component, and the operation and maintenance host and the sensor debugging component communicate with each other via a wireless AP; The maintenance host includes: The human-computer interaction module is used to receive user commands, configure the IP address and parameter information of the gateway to be debugged, select the operation and maintenance debugging scheme, and display the debugging results. The event bus module serves as the central hub for communication between various modules within the system, and is used for event publishing and subscription. An automatic debugging module is used to subscribe to relevant events and execute the automatic comparison and judgment logic to generate debugging result events; The communication management module is used to manage the communication connection and data interaction with the power distribution gateway, and connects to the MQTT Broker of the power distribution gateway data center through an MQTT client; A power source module is used to output adjustable electrical quantity signals to the power distribution gateway according to event commands; The debug results module is used to subscribe to debug result events and generate and store debug reports. The sensor debugging component includes: Operation buttons are used by users to initiate sensor-triggered operations and publish button operation events; The sensor trigger module is used to simulate the physical triggering of various sensors and publish sensing triggering information to the event bus; The result indicator light is used to indicate the debugging results by light color, and you can subscribe to indicator light flashing events; The voice module is used to broadcast debugging results via voice and to subscribe to voice broadcast events.

7. The system according to claim 6, characterized in that, The sensor trigger module integrates at least one trigger from temperature, humidity, water immersion, smoke, partial discharge, and noise sensors.

8. The system according to claim 6, characterized in that, The power source module includes at least four independent voltage output channels and four independent current output channels, with a voltage output range of 0-260V and a current output range of 0-12A. It outputs electrical quantities to the gateway to be debugged through analog output ports.

9. The system according to claim 6, characterized in that, The maintenance host and the sensor debugging component communicate with each other via a wireless access point (AP).

10. The system according to claim 6, characterized in that, The debugging report generated by the debugging results module includes test time, sensor identification, test items, expected results, actual results, and test status information, and supports query, statistics, and export functions.

11. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the method as described in any one of claims 1-5.