Key power distribution signal real-time display and recording method
By using XML dynamic parameterized configuration files and an event-driven/polling mechanism, the power distribution signals of key equipment are displayed and recorded in real time, solving the problem of frequent equipment decommissioning in the ground measurement and control system. This enables real-time monitoring of equipment status and preventive maintenance, reducing operation and maintenance costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING AEROSPACE AUTOMATIC CONTROL RES INST
- Filing Date
- 2025-12-31
- Publication Date
- 2026-05-05
AI Technical Summary
In existing technologies, the key equipment of the ground-based telemetry, measurement and control system, the power distribution control equipment, needs to be decommissioned when it reaches the MTTF threshold. The actual cumulative power distribution time is significantly lower than the theoretical value, resulting in high production and maintenance costs. There is also a lack of methods for real-time display and recording of the equipment's energized working time.
A method based on XML dynamic parameterized configuration files is adopted to display key power distribution signals in real time through a GUI human-machine interface. Combined with event-driven and polling mechanisms, the connection and disconnection time of the equipment is recorded. Hash mapping and high-precision timers are used to realize real-time monitoring and data visualization of equipment status.
It enables real-time monitoring of equipment status and troubleshooting, provides data support for equipment life prediction and preventive maintenance, and reduces operation and maintenance costs.
Smart Images

Figure CN121980772A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of industrial field testing, specifically relating to a method for real-time display and recording of key power distribution signals. Background Technology
[0002] In the design and implementation of ground-based telemetry, tracking, and command (TT&C) systems, the power distribution control of system instruments and equipment is typically handled by the ground-based TT&C system, specifically including the power status control of equipment such as the onboard computer and ground-based inertial navigation system. However, hardware equipment is limited by its physical lifespan and needs to be decommissioned and replaced when it reaches the MTTF (Mean Time to Failure) threshold. Since the actual cumulative power distribution time is significantly lower than the theoretical value, it is particularly important to display and record the actual energized operating time of key system equipment in real time to optimize production and maintenance costs. Summary of the Invention
[0003] The purpose of this invention is to propose a method for recording the power distribution process of key equipment based on XML dynamic parameterized configuration files. The key power distribution signals are displayed in real time through a GUI human-machine interface, including the power distribution duration during the test and the cumulative power distribution duration since its use. This allows system personnel to grasp the equipment status and test progress in real time, confirm the test status, and troubleshoot faults, thus meeting the dual requirements of engineering reliability and cost control. It also provides data support for equipment life prediction and preventive maintenance.
[0004] This invention provides a method for recording the power distribution process of key equipment based on XML dynamic parameterized configuration files. The specific steps are as follows:
[0005] Step 1: Key signal modeling;
[0006] (1) Based on Extensible Markup Language, a specialized language in the field of tree structure design, custom tags (such as "...") are used. <signalrecord>The XML configuration file describes the signal metadata and its attribute set ("SignalName", "test_id", "model", "connect_time", "disconnect_time", "duration_time", "totalDuration_time", etc.).
[0007] (2) The signal attribute set uses a hash map (HashMap) to implement the "K, V" index, where the Key is the static identifier of the signal (SignalName) and the Value is the signal entity object (SignalEntity) containing dynamic timing attributes.
[0008] (3) Ensure that reading and writing configuration files conforms to atomicity through XML serialization / deserialization.
[0009] Step 2: Software Initialization:
[0010] (1) Configuration file loading and objectification. The software parses the configuration file and constructs a "ConcurrentHashMap" upon startup.<String,SignalEntity> The thread-safe collection m_mapTimeKeeping of type "completes the instantiation of the signal entity object.
[0011] (2) Historical state recovery. Traverse m_mapTimeKeeping, extract each signal entity object, and use the value of the "totalDuration_time" field as the initial cumulative power distribution time base value for each signal.
[0012] (3) View layer binding. Based on the MVC pattern, the corresponding observer control is retrieved from the UI component registry by the signal name "SignalName" to establish a two-way data-view binding.
[0013] (4) Time unit normalization. The time unit conversion is implemented using the Strategy Pattern.
[0014] (5) Interface redraw. Based on the system's requirements for the display unit of each signal's power distribution time, and in conjunction with steps (2), (3), and (4), the second-level timestamps of the initial cumulative power distribution time of each signal are converted into formatted strings such as hours / minutes / seconds, and each UI component is refreshed.
[0015] (6) Timer Management. High-precision timers are created based on a thread pool. Each "SignalName" is associated with an independent timer instance, supporting millisecond-level time slice polling.
[0016] Step 3: Signal State Machine and Event Handling
[0017] Based on the "model" attribute of the signal entity object, the signal "on" and "off" times are recorded in the following two ways.
[0018] (1) Automatic signal connection / disconnection mode. In the automated testing framework, if the power distribution status of the equipment is driven and controlled by the test process, the test step sequence events (such as the "ON_CONNECT" and "ON_DISCONNECT" events of the corresponding equipment) are listened to in an event-driven manner. The signal status change callback function is injected through the Hook mechanism to record the signal entity object attributes "connect_time" and "disconnect_time".
[0019] (2) Manual signal connection / disconnection mode. Based on the connection established with the device where the key signal is located, the detector is polled to request and receive the device's response at a fixed frequency (e.g., 100ms). The device's connection and disconnection status are periodically obtained, and the signal entity object attributes "connect_time" and "disconnect_time" are recorded based on the differential trigger of the status change.
[0020] Each time the signal switches between "on" and "off" states, a new SignalRecord object is generated using copy-on-write and appended to the XML configuration file. <signalrecord>Nodes ensure the atomicity of operations.
[0021] Step 4: Real-time monitoring and data visualization:
[0022] (1) Incremental time calculation. When the signal is turned on, a high-precision timer is started. When the signal is turned off, the signal distribution time duration_time maintained by test_id and the cumulative distribution time totalDuration_time are calculated.
[0023] duration_time=disconnect_time-connect_time;
[0024] totalDuration_time=totalDuration_time+duration_time;
[0025] (2) Dynamic rendering optimization. Double buffering technology is used to reduce UI refresh lag and partially update the timing control to display the current power distribution time and the cumulative power distribution time.
[0026] (3) Convert the time unit according to the design requirements of the display control, such as XX hours, XX minutes or XX seconds, and refresh the total power distribution time of each key signal displayed on the interface control.
[0027] The beneficial effects of this invention are as follows:
[0028] 1. The present invention provides a hybrid power distribution mode status detection: it integrates event-driven and polling mechanisms, supports automatic / manual mode equipment power distribution signal detection, and ensures the completeness of equipment power distribution statistics;
[0029] 2. This invention uses configuration files to construct equipment power distribution time data logs, and statistically analyzes and displays the cumulative power distribution duration based on historical status statistical signals, providing data-driven decision-making for equipment life prediction and preventive maintenance. Attached Figure Description
[0030] The accompanying drawings, which form part of this application, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an improper limitation of the invention.
[0031] Figure 1 This is a flowchart of the configuration file parsing process of this invention;
[0032] Figure 2 This is a flowchart of the signal power distribution timing process of the present invention. Detailed Implementation
[0033] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0034] This embodiment provides a method for recording the power distribution process of key equipment based on XML dynamic parameterized configuration files. The specific steps are as follows: Figure 1-2 As shown:
[0035] Step 1: Key signal modeling;
[0036] (1) Based on Extensible Markup Language, a specialized language for tree structure design, custom tags (such as "...") are used. <signalrecord>The XML configuration file describes the signal metadata and its attribute set ("SignalName", "test_id", "model", "connect_time", "disconnect_time", "duration_time", "totalDuration_time", etc.).
[0037] (2) The signal attribute set uses a hash map (HashMap) to implement the "K, V" index, where the Key is the static identifier of the signal (SignalName) and the Value is the signal entity object (SignalEntity) containing dynamic timing attributes.
[0038] (3) Ensure that reading and writing configuration files conforms to atomicity through XML serialization / deserialization.
[0039] Step 2: Software Initialization:
[0040] (1) Configuration file loading and objectification. The software parses the configuration file and constructs a "ConcurrentHashMap" upon startup.<String,SignalEntity> The thread-safe collection m_mapTimeKeeping of type "completes the instantiation of the signal entity object.
[0041] (2) Historical state recovery. Traverse m_mapTimeKeeping, extract each signal entity object, and use the value of the "totalDuration_time" field as the initial cumulative power distribution time base value for each signal.
[0042] (3) View layer binding. Based on the MVC pattern, the corresponding observer control is retrieved from the UI component registry by the signal name "SignalName" to establish a two-way data-view binding.
[0043] (4) Time unit normalization. The time unit conversion is implemented using the Strategy Pattern.
[0044] (5) Interface redraw. Based on the system's requirements for the display unit of each signal's power distribution time, and in conjunction with steps (2), (3), and (4), the second-level timestamps of the initial cumulative power distribution time of each signal are converted into formatted strings such as hours / minutes / seconds, and each UI component is refreshed.
[0045] (6) Timer Management. High-precision timers are created based on a thread pool. Each "SignalName" is associated with an independent timer instance, supporting millisecond-level time slice polling.
[0046] Step 3: Signal State Machine and Event Handling
[0047] Based on the "model" attribute of the signal entity object, the signal "on" and "off" times are recorded in the following two ways.
[0048] (1) Automatic signal connection / disconnection mode. In the automated testing framework, if the power distribution status of the equipment is driven and controlled by the test process, the test step sequence events (such as the "ON_CONNECT" and "ON_DISCONNECT" events of the corresponding equipment) are listened to in an event-driven manner. The signal status change callback function is injected through the Hook mechanism to record the signal entity object attributes "connect_time" and "disconnect_time".
[0049] (2) Manual signal connection / disconnection mode. Based on the connection established with the device where the key signal is located, the detector is polled to request and receive the device's response at a fixed frequency (e.g., 100ms). The device's connection and disconnection status are periodically obtained, and the signal entity object attributes "connect_time" and "disconnect_time" are recorded based on the differential trigger of the status change.
[0050] Each time the signal switches between "on" and "off" states, a new SignalRecord object is generated using copy-on-write and appended to the XML configuration file. <signalrecord>Nodes ensure the atomicity of operations.
[0051] Step 4: Real-time monitoring and data visualization
[0052] (1) Incremental time calculation. When the signal is turned on, a high-precision timer is started. When the signal is turned off, the signal distribution time duration_time maintained by test_id and the cumulative distribution time totalDuration_time are calculated.
[0053] duration_time=disconnect_time-connect_time;
[0054] totalDuration_time=totalDuration_time+duration_time;
[0055] (2) Dynamic rendering optimization. Double buffering technology is used to reduce UI refresh lag and partially update the timing control to display the current power distribution time and the cumulative power distribution time.
[0056] (3) Convert the time unit according to the design requirements of the display control, such as XX hours, XX minutes or XX seconds, and refresh the total power distribution time of each key signal displayed on the interface control.
[0057] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.< / signalrecord> < / signalrecord> < / signalrecord> < / signalrecord>
Claims
1. A method for real-time display and recording of key power distribution signals, characterized in that, Includes the following steps: Step 1: Key signal modeling; Step 2: Software initialization; Step 3: Signal State Machine and Event Handling; Step 4: Real-time monitoring and data visualization.
2. The method for real-time display and recording of key power distribution signals according to claim 1, characterized in that, The specific process of step 1 is as follows: (1) Based on Extensible Markup Language, a specialized language for tree structure design, custom tags and attribute sets are used to describe signal metadata and form an XML configuration file; (2) The signal attribute set uses a hash mapping to implement the "K, V" index, where K is the static identifier of the signal and V is the signal entity object containing dynamic timing attributes; (3) Ensure that reading and writing configuration files conforms to atomicity through XML serialization / deserialization.
3. The method for real-time display and recording of key power distribution signals according to claim 2, characterized in that, The attribute set includes: "SignalName", "test_id", "model", "connect_time", "disconnect_time", "duration_time", and "totalDuration_time".
4. The method for real-time display and recording of key power distribution signals according to claim 3, characterized in that, The specific process of step 2 is as follows: (1) Configuration file loading and objectification: The software parses the configuration file and constructs a "ConcurrentHashMap" when it starts up.<String,SignalEntity> The thread-safe collection m_mapTimeKeeping of type "completes the instantiation of the signal entity object; (2) Historical state recovery; Iterate through m_mapTimeKeeping, extract each signal entity object, and use the value of the field "totalDuration_time" as the initial cumulative power distribution time base value for each signal; (3) View layer binding; Based on the MVC pattern, the corresponding observer widget is retrieved from the UI component registry by the signal name "SignalName" to establish a two-way data-view binding. (4) Standardization of time units; Implement time unit conversion using the strategy pattern; (5) Interface redraw; Based on the system's requirements for displaying the power distribution time of each signal, and in conjunction with steps (2), (3), and (4), convert the second-level timestamp of the initial cumulative power distribution time of each signal into hour, minute, and second formatted strings, and refresh each UI component; (6) Timer management; High-precision timers are created based on thread pools, and each "SignalName" is associated with an independent timer instance, supporting millisecond-level time slice polling.
5. The method for real-time display and recording of key power distribution signals according to claim 4, characterized in that, Step 3 specifically involves: recording the signal "on" and "off" times in two ways based on the signal entity object's "model" attribute: automatic signal on / off mode and manual signal on / off mode; each time the signal "on" and "off" states switch, a new SignalRecord object is generated using copy-on-write and appended to the XML configuration file. <signalrecord> Nodes ensure the atomicity of operations.< / signalrecord> 6. The method for real-time display and recording of key power distribution signals according to claim 5, characterized in that, The automatic signal connection and disconnection mode is as follows: In the automated testing framework, if the power distribution status of the equipment is driven and controlled by the test process, the test step sequence event is listened to in an event-driven manner, and the signal status change callback function is injected through the Hook mechanism to record the signal entity object attributes "connect_time" and "disconnect_time".
7. The method for real-time display and recording of key power distribution signals according to claim 5, characterized in that, The manual signal connection and disconnection mode is as follows: Based on establishing a connection with the device where the key signal is located, the detector is polled to request and receive the device's response at a fixed frequency, the device's connection and disconnection status is periodically obtained, and the signal entity object attributes "connect_time" and "disconnect_time" are recorded based on the differential trigger of the status change.
8. The method for real-time display and recording of key power distribution signals according to claim 7, characterized in that, Step 4 specifically involves: (1) Incremental time calculation: When the signal is connected, a high-precision timer is started; when the signal is disconnected, the signal distribution time duration_time maintained by test_id and the cumulative distribution time totalDuration_time are calculated. (2) Dynamic rendering optimization; reduce UI refresh lag by using double buffering technology, partially update the timing control, and display the current power distribution time and cumulative power distribution time; (3) Convert the time unit according to the design requirements of the display control and refresh the total power distribution time of each key signal displayed on the interface control.
9. A method for real-time display and recording of key power distribution signals according to claim 8, characterized in that, duration_time=disconnect_time-connect_time; totalDuration_time=totalDuration_time+duration_time.