Abnormality repairing method, device, equipment and product based on power distribution automation terminal

By generating a trusted startup log when the power distribution automation terminal starts up and sending it to the operation and maintenance platform in real time, the problem of independent trusted startup and operation and maintenance management is solved, enabling remote anomaly detection and repair, and improving operation and maintenance efficiency.

CN123163208APending Publication Date: 2026-11-24YUNNAN POWER GRID CO LTD KUNMING POWER SUPPLY BUREAU
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611313305.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-27
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

The trusted startup and operation and maintenance management of existing power distribution automation terminals are independent of each other, which makes it impossible to remotely monitor the startup safety status in real time and results in low efficiency of abnormal operation and maintenance.

Method used

When the power distribution automation terminal starts up, a trusted startup verification is performed to generate a trusted startup log, which is then sent to the terminal operation and maintenance platform in real time via a preset communication protocol. The platform performs anomaly detection and location, generates repair instructions, and the terminal executes the repair operation.

Benefits of technology

It enables remote, real-time monitoring of terminal startup security status, improves the efficiency of abnormal operation and maintenance, and reduces the manpower and time costs of on-site troubleshooting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123163208A_ABST
    Figure CN123163208A_ABST
Patent Text Reader

Abstract

This application discloses an anomaly repair method, device, equipment, and product based on a power distribution automation terminal, relating to the field of power distribution equipment operation and maintenance technology. The method is applied to a power distribution automation terminal, performing a trusted startup verification and generating a log when the terminal starts up. The log is then sent to the operation and maintenance platform in real time via a preset communication protocol, breaking down the information silos between trusted startup and operation and maintenance management. This allows operation and maintenance personnel to remotely monitor the terminal's startup safety status in real time. Furthermore, after the platform detects an anomaly, it generates a troubleshooting instruction and sends it to the terminal. The terminal responds to the instruction by collecting and transmitting operating parameters. Based on the parameters, the platform locates the root cause of the anomaly and issues a repair instruction. The terminal then performs the repair operation. The entire process requires no on-site personnel, thus significantly improving the efficiency of anomaly maintenance. This solves the problem that the trusted startup and operation and maintenance management of existing power distribution automation terminals are independent, leading to the inability to remotely monitor the startup safety status in real time and resulting in low efficiency in anomaly maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power distribution equipment operation and maintenance technology, and in particular to an anomaly repair method, device, equipment and product based on power distribution automation terminal. Background Technology

[0002] Currently, power distribution automation terminals generally adopt trusted boot technology based on hardware root of trust. Through step-by-step measurement and verification, the integrity of the system boot process is ensured. Common trusted boot schemes include a four-level verification mechanism based on TPM / TCM chips, firmware, boot program, operating system kernel and application layer, which can effectively detect illegal tampering.

[0003] However, these trusted boot functions typically operate as an independent security module on the terminal itself. The verification logs and abnormal alarms they generate are stored only on the terminal and do not establish a real-time communication channel with the upper-level power distribution operation and maintenance management system. In terms of operation and maintenance management, the traditional approach relies on maintenance personnel to conduct regular inspections or go to the site after receiving a fault report to manually troubleshoot and repair the problem through serial ports or dedicated debugging tools. The entire operation and maintenance process lacks the ability to automatically link with the terminal's boot security status.

[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention

[0005] The main purpose of this application is to provide an anomaly repair method, device, equipment and product based on power distribution automation terminals, which aims to solve the technical problem that the reliable startup and operation and maintenance management of existing power distribution automation terminals are independent of each other, resulting in the inability to remotely monitor the startup security status in real time and the low efficiency of anomaly operation and maintenance.

[0006] To achieve the above objectives, this application proposes an anomaly repair method based on a distribution automation terminal. The anomaly repair method is applied to the distribution automation terminal, and the method includes: When the power distribution automation terminal is detected to be started, a trusted start verification is performed on the power distribution automation terminal to obtain a trusted start log; The trusted startup log is sent to the terminal operation and maintenance platform through a preset communication protocol. The terminal operation and maintenance platform performs anomaly detection based on the trusted startup log, obtains the detection result, and generates a troubleshooting instruction and sends it to the power distribution automation terminal if the detection result indicates that an anomaly exists. Based on the troubleshooting instructions, data is collected from the power distribution automation terminal to obtain terminal operating parameters. The terminal operating parameters are then sent to the terminal operation and maintenance platform, which performs anomaly location based on the terminal operating parameters, obtains the anomaly location result, and sends a repair instruction to the power distribution automation terminal based on the anomaly location result. Based on the repair instructions, the power distribution automation terminal is repaired to correct the anomaly, and the repair result is obtained.

[0007] In one embodiment, the step of performing trusted startup verification on the distribution automation terminal to obtain a trusted startup log includes: The bootloader code is hashed using the hardware root of trust built into the power distribution automation terminal to obtain a first calculation result. The calculation result is then compared with the code baseline value to obtain a first-level verification result. If the first-level verification result is passed, the kernel code of the power distribution automation terminal is hashed by the boot program to obtain the second calculation result. The second calculation result is then verified by the hardware root of trust to obtain the second-level verification result. If the second-level verification result is passed, the code of the key components of the system is hashed by the power distribution automation terminal to obtain the third calculation result. The third calculation result is then verified by the hardware root of trust through a trust measurement to obtain the third-level verification result. If the third-level verification result is passed, the power distribution business application is hashed by the trust measurement software in the key components of the system to obtain the fourth calculation result. The fourth calculation result is then verified by the trust measurement through the hardware root of trust to obtain the fourth-level verification result. A trusted boot log is generated based on the first verification result, the second verification result, the third verification result, and the fourth verification result, and the trusted boot log is digitally signed by the hardware root of trust.

[0008] In one embodiment, the step of collecting data from the distribution automation terminal based on the investigation command to obtain the terminal operating parameters includes: Parse the investigation command to obtain a list of parameter types to be collected; Data is collected from the power distribution automation terminal according to the parameter type list to obtain the target parameters corresponding to the parameter type list; The target parameters are packaged into structured data, and the structured data is digitally signed by the hardware root of trust of the power distribution automation terminal to obtain the terminal operating parameters.

[0009] In one embodiment, the step of performing anomaly repair on the distribution automation terminal based on the repair instruction to obtain the repair result includes: The repair command is parsed to obtain the repair level and repair data; If the repair level is Level 1 repair, the correct baseline value is extracted from the repair data and verified by the hardware root trust signature of the power distribution automation terminal. After successful verification, the correct baseline value is written into the secure storage area of ​​the power distribution automation terminal to obtain the Level 1 repair result. If the repair level is level 2 repair, then extract the file patch package from the repair data, perform signature verification and integrity verification on the file patch package, and replace the original module file with the file patch package to obtain the level 2 repair result; If the repair level is level three, then the trusted image in the repair data is extracted, the trusted image is stored in the backup partition, the trusted image is booted in the backup partition, and a boot verification is performed based on the trusted image. After the verification is passed, the backup partition is switched to the primary partition to obtain the level three repair result.

[0010] Furthermore, to achieve the above objectives, this application also proposes an anomaly repair method based on a distribution automation terminal. This anomaly repair method is applied to a terminal operation and maintenance platform, and the method includes: The trusted startup log is received from the power distribution automation terminal according to the preset communication protocol. The trusted startup log is obtained by the power distribution automation terminal when it detects that the power distribution automation terminal has started. Anomaly detection is performed based on the trusted startup log to obtain the detection result. If the detection result indicates that an anomaly exists, a troubleshooting instruction is generated and sent to the power distribution automation terminal. The power distribution automation terminal then collects data based on the troubleshooting instruction to obtain terminal operating parameters and sends the terminal operating parameters to the terminal operation and maintenance platform. Anomaly location is performed based on the terminal's operating parameters to obtain anomaly location results. A repair command is then sent to the distribution automation terminal based on the anomaly location results. The distribution automation terminal then performs anomaly repair based on the repair command to obtain a repair result.

[0011] In one embodiment, the step of performing anomaly detection based on the trusted startup log, obtaining a detection result, and generating a troubleshooting instruction to be sent to the distribution automation terminal if the detection result indicates an anomaly exists includes: The trusted boot log is parsed to obtain exception records, and the exception records are classified into at least one of the following categories according to the exception type encoding: boot program integrity verification failure, kernel signature verification failure, system component hash mismatch, application version exception, or boot timeout. Based on the classification results of the abnormal records, the corresponding investigation strategy is matched through diagnostic rules, and the type of terminal operating parameters to be collected is determined according to the investigation strategy. A parameter acquisition instruction set is generated based on the parameter type, the parameter acquisition instruction set is encapsulated into a troubleshooting instruction, and sent to the power distribution automation terminal.

[0012] In one embodiment, the step of performing anomaly location based on the terminal operating parameters, obtaining anomaly location results, and sending a repair command to the distribution automation terminal based on the anomaly location results includes: The abnormal module hash value is obtained by parsing the terminal's operating parameters. The hash value of the abnormal module is then compared with that of the benchmark library to obtain hash value difference information. Based on the hash value difference information, multi-level diagnosis is performed to obtain the anomaly root cause type and repair level, and anomaly location result is generated based on the anomaly root cause type and repair level. A repair instruction is generated based on the anomaly location result, and the repair instruction is sent to the power distribution automation terminal.

[0013] Furthermore, to achieve the above objectives, this application also proposes an anomaly repair device based on a distribution automation terminal. The anomaly repair device based on the distribution automation terminal is applied to the distribution automation terminal, and the device includes: The verification module is used to perform a trusted startup verification on the power distribution automation terminal when the startup of the power distribution automation terminal is detected, and to obtain a trusted startup log. The detection module is used to send the trusted startup log to the terminal operation and maintenance platform through a preset communication protocol. The terminal operation and maintenance platform performs anomaly detection based on the trusted startup log, obtains the detection result, and generates a troubleshooting instruction to send to the power distribution automation terminal if the detection result indicates that there is an anomaly. The positioning module is used to collect data from the power distribution automation terminal based on the troubleshooting instruction, obtain terminal operating parameters, send the terminal operating parameters to the terminal operation and maintenance platform, and the terminal operation and maintenance platform performs anomaly positioning based on the terminal operating parameters, obtains anomaly positioning results, and sends a repair instruction to the power distribution automation terminal based on the anomaly positioning results. The repair module is used to perform anomaly repair on the power distribution automation terminal based on the repair instructions and obtain the repair result.

[0014] In addition, to achieve the above objectives, this application also proposes an anomaly repair device based on a power distribution automation terminal. The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. The computer program is configured to implement the steps of the anomaly repair method based on the power distribution automation terminal as described above.

[0015] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the anomaly repair method based on the power distribution automation terminal described above.

[0016] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the anomaly repair method based on a power distribution automation terminal as described above.

[0017] One or more technical solutions proposed in this application have at least the following technical effects: This application proposes an anomaly repair method, apparatus, device, and product based on a distribution automation terminal. Upon detecting the startup of the distribution automation terminal, a trusted startup verification is performed on the terminal to obtain a trusted startup log. This trusted startup log is then sent to a terminal maintenance platform via a preset communication protocol. The terminal maintenance platform performs anomaly detection based on the trusted startup log, obtains a detection result, and generates a troubleshooting instruction if an anomaly is detected. Based on the troubleshooting instruction, data is collected from the distribution automation terminal to obtain terminal operating parameters, which are then sent to the terminal maintenance platform. The terminal maintenance platform performs anomaly location based on the terminal operating parameters, obtains anomaly location results, and sends a repair instruction to the distribution automation terminal based on the anomaly location results. Finally, the anomaly is repaired based on the repair instruction to obtain a repair result. Therefore, a trusted startup verification is performed and a log is generated when the terminal starts up. The log is sent to the operation and maintenance platform in real time through a preset communication protocol, breaking down the information silos between trusted startup and operation and maintenance management. This allows operation and maintenance personnel to remotely monitor the terminal's startup security status in real time. Secondly, after the platform detects an anomaly, it generates a troubleshooting command and sends it to the terminal. The terminal responds to the command, collects operating parameters, and sends them back. Based on the parameters, the platform locates the root cause of the anomaly and issues a repair command. The terminal then performs the repair operation. The entire process does not require on-site personnel, thus significantly improving the efficiency of anomaly maintenance and reducing the manpower and time costs of on-site troubleshooting. This solves the problem that the trusted startup and operation and maintenance management of existing power distribution automation terminals are independent, resulting in the inability to remotely monitor the startup security status in real time and low efficiency of anomaly maintenance. This improves the efficiency of anomaly repair based on power distribution automation terminals. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a flowchart illustrating an embodiment of the anomaly repair method based on a power distribution automation terminal provided in this application. Figure 2 This is a flowchart illustrating Embodiment 2 of the anomaly repair method based on a power distribution automation terminal in this application; Figure 3A simplified flowchart illustrating the anomaly repair method based on a power distribution automation terminal provided in Embodiment 2 of this application; Figure 4 This is a schematic diagram of the module structure of the fault repair device based on the power distribution automation terminal in an embodiment of this application; Figure 5 This is a schematic diagram of the equipment structure of the hardware operating environment involved in the anomaly repair method based on the power distribution automation terminal in the embodiments of this application.

[0021] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0022] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0023] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0024] The main solution of this application embodiment is as follows: The bootloader code is hashed using the hardware root of trust built into the distribution automation terminal to obtain a first calculation result. The calculation result is then compared with a code benchmark value to obtain a first-level verification result. If the first-level verification result passes, the kernel code of the distribution automation terminal is hashed using the bootloader to obtain a second calculation result. The second calculation result is then verified using a trust measurement using the hardware root of trust to obtain a second-level verification result. If the second-level verification result passes, the code of key system components is hashed using the distribution automation terminal to obtain a third calculation result. The third calculation result is then verified using a trust measurement using the hardware root of trust to obtain a third-level verification result. If the third-level verification result passes, the distribution business application is hashed using the trust measurement software in the key system components to obtain a fourth calculation result. The fourth calculation result is then verified using a trust measurement using the hardware root of trust to obtain a fourth-level verification result. A trusted boot log is generated based on the first verification result, the second verification result, the third verification result, and the fourth-level verification result, and the trusted boot log is digitally signed using the hardware root of trust. The process involves parsing the investigation command to obtain a list of parameter types to be collected; collecting data from the distribution automation terminal based on the parameter type list to obtain the target parameters corresponding to the parameter type list; packaging the target parameters into structured data and digitally signing the structured data through the hardware root of trust of the distribution automation terminal to obtain the terminal operating parameters. The repair command is parsed to obtain the repair level and repair data. If the repair level is Level 1, the correct baseline value is extracted from the repair data and verified using the hardware root trust signature of the power distribution automation terminal. After successful verification, the correct baseline value is written to the secure storage area of ​​the power distribution automation terminal to obtain a Level 1 repair result. If the repair level is Level 2, the file patch package is extracted from the repair data. After signature and integrity verification of the file patch package, the original module file is replaced with the file patch package to obtain a Level 2 repair result. If the repair level is Level 3, the trusted image is extracted from the repair data, stored in the backup partition, and the trusted image is booted in the backup partition. A boot verification is performed based on the trusted image. After successful verification, the backup partition is switched to the primary partition to obtain a Level 3 repair result.The system receives a trusted startup log sent by a distribution automation terminal according to a preset communication protocol. This trusted startup log is obtained by the distribution automation terminal upon detecting startup and performing a trusted startup verification. Based on the trusted startup log, anomaly detection is performed, and if an anomaly is detected, a troubleshooting instruction is generated and sent to the distribution automation terminal. The distribution automation terminal then collects data based on the troubleshooting instruction to obtain terminal operating parameters, which are sent to the terminal maintenance platform. Based on the terminal operating parameters, anomaly localization is performed, and a repair instruction is sent to the distribution automation terminal based on the anomaly localization result. The distribution automation terminal then repairs the anomaly based on the repair instruction, resulting in a repair result. The trusted boot log is parsed to obtain anomaly records, and these records are categorized according to their anomaly type codes into at least one of the following categories: boot program integrity verification failure, kernel signature verification failure, system component hash mismatch, application version anomaly, or boot timeout. Based on the categorization results, a corresponding troubleshooting strategy is matched using diagnostic rules, and the type of terminal operating parameters to be collected is determined according to the troubleshooting strategy. A parameter collection instruction set is generated based on the parameter type, encapsulated into a troubleshooting instruction, and sent to the distribution automation terminal. The terminal operating parameters are parsed to obtain the hash value of the abnormal module, and the hash value is compared with the hash value of the abnormal module using a benchmark library to obtain hash value difference information. Multi-level diagnosis is performed based on the hash value difference information to obtain the anomaly root cause type and repair level, and anomaly location results are generated based on the anomaly root cause type and repair level. A repair instruction is generated based on the anomaly location results and sent to the distribution automation terminal. This invention solves the problem that the trusted startup and operation and maintenance management of existing distribution automation terminals are independent, resulting in the inability to remotely monitor the startup safety status and low efficiency of abnormal operation and maintenance. It enables the abnormal repair of distribution automation terminals, improving the efficiency of abnormal repair. Based on this invention, addressing the problem that traditional methods rely on maintenance personnel conducting regular inspections or going to the site after receiving fault reports, manually troubleshooting and repairing via serial ports or dedicated debugging tools, the entire operation and maintenance process lacks automatic linkage with the terminal's startup safety status, leading to low efficiency, this invention designs an abnormal repair method based on distribution automation terminals. The effectiveness of this method was verified during abnormal repair of distribution automation terminals, and the efficiency of abnormal repair using this method was significantly improved.

[0025] In this embodiment, for ease of description, the following description will focus on an anomaly repair device based on a power distribution automation terminal.

[0026] Due to limitations in existing trusted boot technology and operation and maintenance management technology, the efficiency of anomaly repair based on distribution automation terminals needs improvement. One issue is the information silo problem: verification logs and anomaly alarms generated by trusted boot are only stored locally on the terminal and cannot be shared with the operation and maintenance management system in real time. This prevents operation and maintenance personnel from remotely monitoring the terminal's boot security status, leading to decreased anomaly repair efficiency. Another issue is on-site dependency: when boot anomalies occur, traditional methods rely on operation and maintenance personnel to go to the site to manually troubleshoot and repair via serial port or debugging tools. The lack of remote diagnostic methods also significantly reduces anomaly repair efficiency. Furthermore, there is the issue of security conflicts: system upgrades and patch updates during operation and maintenance can easily disrupt the existing trusted boot verification system, causing boot security failure and potentially leading to terminal loss of control or data leakage. This also affects the anomaly repair efficiency based on distribution automation terminals. Therefore, current distribution automation operation and maintenance also faces challenges in system linkage. Because trusted boot and operation and maintenance management operate independently and lack a deep linkage mechanism, if the boot security status and operation and maintenance operations cannot be managed collaboratively, anomaly repair efficiency will also decrease.

[0027] This application provides a solution that performs trusted startup verification and generates logs upon terminal startup. These logs are then sent to the operation and maintenance platform in real time via a preset communication protocol, breaking down the information silos between trusted startup and operation and maintenance management. This allows operation and maintenance personnel to remotely monitor the terminal's startup security status in real time. Furthermore, upon detecting an anomaly, the platform generates troubleshooting instructions and sends them to the terminal. The terminal responds by collecting and transmitting operating parameters. Based on these parameters, the platform locates the root cause of the anomaly and issues repair instructions. The terminal then performs the repair operation. The entire process requires no on-site personnel, significantly improving anomaly maintenance efficiency and reducing the manpower and time costs associated with on-site troubleshooting. This solution addresses the problem of existing power distribution automation terminals having independent trusted startup and operation and maintenance management, which prevents remote real-time monitoring of startup security status and results in low anomaly maintenance efficiency. This improves the efficiency of anomaly repair based on power distribution automation terminals.

[0028] Based on this, embodiments of this application provide an anomaly repair method based on a power distribution automation terminal, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the anomaly repair method based on a power distribution automation terminal in this application.

[0029] In this embodiment, the anomaly repair method based on the distribution automation terminal is applied to the distribution automation terminal, and the method includes steps S01~S04: Step S01: When the power distribution automation terminal is detected to be started, a trusted start verification is performed on the power distribution automation terminal to obtain a trusted start log; Before the implementation of this embodiment, it should be clear that the trusted startup function usually operates as an independent security module on the local terminal. The verification logs, abnormal alarms and other information generated by it are only stored locally on the terminal and do not establish a real-time communication channel with the upper-level power distribution operation and maintenance management system. In terms of operation and maintenance management, the traditional method relies on operation and maintenance personnel to conduct regular inspections or go to the site after receiving a fault report, and manually check and repair through serial port or dedicated debugging tools. The entire operation and maintenance process lacks the ability to automatically link with the terminal startup security status.

[0030] Therefore, in order to solve the above problems, this embodiment uses a lightweight domestic power distribution automation terminal to perform comprehensive and reliable verification of hardware, firmware, system kernel, and business applications throughout the entire power-on process of the terminal. It synchronously collects full-dimensional data such as the execution status, matching results, anomaly details, and startup time of each verification level, and integrates them to generate a standardized and structured reliable startup log to fully record the security status of the terminal during this startup. The operating system in this embodiment adopts a lightweight and customized design, which can be adapted to the hardware configuration of different models of power distribution automation terminals and meet the resource constraints of outdoor terminals.

[0031] Step S02: The trusted startup log is sent to the terminal operation and maintenance platform through a preset communication protocol. The terminal operation and maintenance platform performs anomaly detection based on the trusted startup log, obtains the detection result, and generates a troubleshooting instruction and sends it to the power distribution automation terminal if the detection result indicates that an anomaly exists. Based on a pre-built Ethernet communication link integrating the power distribution automation terminal, the power distribution automation terminal and the terminal operation and maintenance platform, the generated trusted startup log is securely transmitted using the encrypted MQTT preset communication protocol. Before the log is transmitted, it is digitally signed by the terminal hardware root of trust to ensure the integrity and non-repudiation of the transmitted data.

[0032] The operation and maintenance platform receives and parses the pushed log data in real time, automatically identifies various startup anomaly information contained in the logs, accurately determines the startup status of the terminal, and immediately matches the corresponding troubleshooting strategy and generates a dedicated troubleshooting instruction, which is then sent to the terminal power distribution automation terminal in real time.

[0033] Step S03: Based on the troubleshooting instruction, data is collected from the distribution automation terminal to obtain terminal operating parameters. The terminal operating parameters are then sent to the terminal operation and maintenance platform. The terminal operation and maintenance platform performs anomaly location based on the terminal operating parameters to obtain anomaly location results. Based on the anomaly location results, a repair instruction is sent to the distribution automation terminal. The power distribution automation terminal listens in real time to the troubleshooting instructions issued by the operation and maintenance platform, automatically parses the preset parameter collection list in the instructions, and collects key operating data such as the current system operating status, core file hash value, trusted startup benchmark library version, and abnormal module attributes. The collected raw data is then structured, packaged, encrypted again by hardware root of trust digital signature, and sent back to the operation and maintenance platform.

[0034] The operation and maintenance platform relies on built-in multi-level diagnostic logic to conduct comprehensive comparison and analysis of the returned operating parameters, accurately locate the root cause of the anomaly, determine the level of anomaly risk, generate appropriate repair solutions and corresponding repair instructions based on standardized operation and maintenance rules, and complete the issuance.

[0035] Step S04: Perform anomaly repair on the power distribution automation terminal based on the repair instruction to obtain the repair result.

[0036] After receiving the repair instructions from the operation and maintenance platform, the distribution automation terminal identifies the repair risk level and repair data corresponding to the instructions, and performs corresponding repair operations such as benchmark library correction, module patch replacement, and complete image reinstallation in a differentiated manner. The entire repair process strictly follows the trusted security verification rules. After the repair is completed, the trusted verification of the corresponding link is automatically triggered to confirm the repair effect, and the repair execution log is recorded synchronously. The final repair result is generated and sent back to the operation and maintenance platform for archiving, realizing closed-loop repair of terminal startup anomalies.

[0037] This system performs trusted startup verification and generates logs upon terminal startup. These logs are then sent to the operation and maintenance platform in real time via a pre-defined communication protocol, breaking down the information silos between trusted startup and operation and maintenance management. This allows operation and maintenance personnel to remotely monitor the terminal's startup security status in real time. Secondly, when the platform detects an anomaly, it generates troubleshooting instructions and sends them to the terminal. The terminal responds by collecting and transmitting operating parameters. Based on these parameters, the platform locates the root cause of the anomaly and issues repair instructions. The terminal then performs the repair operation. The entire process requires no on-site personnel, significantly improving anomaly maintenance efficiency and reducing the manpower and time costs associated with on-site troubleshooting. This solves the problem of existing power distribution automation terminals having independent trusted startup and operation and maintenance management, which prevents remote real-time monitoring of startup security status and results in low anomaly maintenance efficiency. This system improves the efficiency of anomaly repair based on power distribution automation terminals.

[0038] Specifically, step S01 above, which involves performing a trusted startup verification on the power distribution automation terminal to obtain a trusted startup log, includes the following steps: Step S011: The boot program code is hashed using the hardware root of trust built into the power distribution automation terminal to obtain the first calculation result. The calculation result is then compared with the code benchmark value to obtain the first-level verification result. Step S012: If the first-level verification result is passed, the kernel code of the power distribution automation terminal is hashed by the boot program to obtain the second calculation result. The second calculation result is verified by the hardware root of trust to obtain the second-level verification result. Step S013: If the second-level verification result is passed, the code of the key components of the system is hashed through the power distribution automation terminal to obtain the third calculation result. The third calculation result is verified by the trust measurement through the hardware root of trust to obtain the third-level verification result. Step S014: If the third-level verification result is passed, the power distribution business application is hashed by the trust measurement software in the key components of the system to obtain the fourth calculation result. The fourth calculation result is then verified by the trust measurement through the hardware root of trust to obtain the fourth-level verification result. Step S015: Generate a trusted boot log based on the first verification result, the second verification result, the third verification result, and the fourth-level verification result, and digitally sign the trusted boot log through the hardware root of trust.

[0039] After the terminal is powered on, the built-in embedded security module or trusted cryptographic module is activated as the hardware root of trust, and the first-level hardware-level verification is initiated. The national cryptographic hash operation is performed on all the code of the terminal boot program. The first operation result obtained in real time is compared byte by byte with the local pre-stored legal boot program base hash value. If they match completely, the first-level verification is deemed to have passed; otherwise, the verification failure and hash mismatch exception information are recorded.

[0040] After the first-level verification passes, the bootloader gains control of the system and initiates the second-level firmware kernel verification. It performs a hash operation on the kernel code of the power distribution automation terminal that is about to be loaded, generates a second operation result, and submits it to the hardware root of trust to complete the trust measurement verification. After verifying that the kernel code has not been tampered with and that the version is valid, the second-level verification is deemed to have passed.

[0041] After the kernel successfully boots up, it performs the third-level system component verification. The power distribution automation terminal automatically performs code hash calculations on core system components such as trusted measurement software and hardware drivers, and completes integrity and legality verification based on the hardware root of trust to ensure the security and trustworthiness of the basic components for system operation, thus obtaining the third-level verification result.

[0042] After the system components pass the verification, the fourth-level business application verification is initiated. The built-in trust measurement software performs hash operations on all power distribution business applications, such as power distribution monitoring, data interaction, and remote control, to complete the final application layer trust verification and obtain the fourth-level verification result.

[0043] The entire process records the pass / fail status of the four-level verification, the location of the startup program tampering, the hash value mismatch site, the startup time of each level, and other information in real time. This information is then integrated to generate a structured and trusted startup log. The log contains complete terminal startup security status data. Finally, the hardware root of trust digitally signs the entire log to prevent log tampering and data forgery, ensuring the authenticity and validity of the log data.

[0044] More specifically, step S03 above, which involves collecting data from the distribution automation terminal based on the investigation command to obtain the terminal's operating parameters, includes: Step S031: Parse the investigation command to obtain a list of parameter types to be collected; Step S032: Collect data from the power distribution automation terminal according to the parameter type list to obtain the target parameters corresponding to the parameter type list; Step S033: Package the target parameters into structured data, and digitally sign the structured data through the hardware root of trust of the power distribution automation terminal to obtain the terminal operating parameters.

[0045] After receiving the troubleshooting instructions from the terminal operation and maintenance platform, the distribution automation terminal decrypts and parses the instruction data packet to accurately extract the preset list of parameter types to be collected in the instruction. The parameter types cover core operation and maintenance diagnostic data such as the terminal's current system status identifier, the real-time hash value of the abnormal module, the current version number of the trusted startup benchmark library, the timestamp and access permissions of the abnormal file, the terminal hardware model and firmware version, and historical successful startup log records.

[0046] Based on the parameter type list, the terminal's built-in data acquisition interface is invoked to selectively read the corresponding target parameters from the terminal's local storage, hardware registers, and system processes, avoiding invalid data collection and ensuring that the collected data is highly matched with the needs of anomaly diagnosis.

[0047] The collected multi-dimensional target parameters are organized, classified, and integrated according to a preset data format to generate standardized structured data messages. The messages contain complete fields such as parameter collection time, terminal unique identifier, parameter type, parameter value, and data status.

[0048] Finally, the structured data packets are globally digitally signed by the terminal hardware root of trust, and the data transmission content is encrypted to ensure that the terminal operation parameters uploaded to the operation and maintenance platform have integrity, authenticity and non-repudiation, providing reliable data support for the platform to accurately diagnose anomalies.

[0049] Further, step S04 above, which involves performing anomaly repair on the distribution automation terminal based on the repair instruction to obtain the repair result, includes: Step S041: Parse the repair instruction to obtain the repair level and repair data; Step S042: If the repair level is Level 1 repair, the correct reference value is extracted from the repair data and verified by the hardware root trust signature of the distribution automation terminal. After verification, the correct reference value is written into the secure storage area of ​​the distribution automation terminal to obtain the Level 1 repair result. Step S043: If the repair level is Level 2 repair, then extract the file patch package from the repair data, perform signature verification and integrity verification on the file patch package, and replace the original module file with the file patch package to obtain the Level 2 repair result; Step S044: If the repair level is level three repair, extract the trusted image from the repair data, store the trusted image in the backup partition, boot the trusted image in the backup partition, and perform a boot verification based on the trusted image. After the verification is successful, switch the backup partition to the primary partition to obtain the level three repair result.

[0050] After receiving the repair instructions from the operation and maintenance platform, the distribution automation terminal prioritizes parsing the repair risk level identifier and supporting repair data carried in the instructions, distinguishes between level one, level two, and level three differentiated repair strategies, and adapts to terminal startup anomalies of different severity.

[0051] For low-risk Level 1 repair scenarios with no core system modifications, the standard trusted benchmark values ​​are accurately extracted from the repair data. The legality and authenticity of the benchmark values ​​are verified by signature through the hardware root of trust. After confirmation, the correct benchmark values ​​are written into the corresponding entries of the trusted boot benchmark library in the terminal hardware secure storage area. After writing, the trusted measurement verification is performed on the corresponding modules immediately to confirm that the benchmark value update is effective. This completes the repair of minor anomalies such as benchmark library corruption and parameter abnormalities, and generates a successful Level 1 repair result.

[0052] For secondary repair scenarios involving single module corruption or local program anomalies, the dedicated file patch package carried by the instruction is extracted. The patch package digital signature traceability verification and hash integrity verification are completed sequentially to prevent malicious or tampered patch implantation. After verification, the abnormal application module or driver file on the terminal is overwritten and replaced. The measurement benchmark value of the corresponding module in the trusted boot benchmark library is updated synchronously. Trust verification is performed on the repair module separately. If the module runs normally, a secondary repair result is generated.

[0053] For high-risk Level 3 repair scenarios involving system core damage, widespread tampering, and terminal failure to boot, an encrypted trusted system image is extracted and stored in an independent backup partition on the terminal to avoid data interference on the main partition. The terminal is then restarted and booted from the backup partition. Based on the new trusted image, a full-process Level 4 trusted boot verification is performed from hardware to application. After all four verifications pass, the backup partition is switched to the primary system partition to complete the overall system repair. If the verification fails, the original primary partition system is automatically retained to avoid the risk of the terminal becoming bricked. Finally, a complete Level 3 repair result is generated.

[0054] For critical anomalies requiring urgent handling, an emergency repair mode that skips the routine diagnostic process is supported, specifically including two types: The first is the forced image push mode, which does not require the execution of pre-parameter collection and diagnosis processes. It directly receives the trusted image pushed by the terminal operation and maintenance platform and performs backup partition reinstallation and partition switching. It is suitable for scenarios where the terminal cannot start normally or the core components of the system are severely damaged.

[0055] The second is the emergency benchmark library reset mode, which obtains a complete copy of the standard benchmark library for this model of terminal from the platform and directly replaces the currently effective benchmark library in the terminal. This mode is suitable for scenarios where the benchmark library is extensively damaged or has been modified without authorization.

[0056] After both emergency repair modes are completed, a full-process trusted startup verification is forcibly triggered, and the verification results are reported to the terminal operation and maintenance platform in real time.

[0057] After all repair operations are completed, repair process data is recorded synchronously to form a traceable repair log. The operation and maintenance log is stored in association with the trusted startup log to form a complete anomaly handling chain record, including the anomaly discovery time, diagnostic process data, repair decision source, repair operation type, repair execution result, and the first startup verification result after repair.

[0058] The terminal operation and maintenance platform supports retrieving complete handling chain records by terminal identifier or abnormal event identifier to meet subsequent audit and analysis needs.

[0059] For anomalies that persist after repair, the platform automatically marks the terminal as requiring on-site maintenance and pushes the anomaly status and maintenance suggestions to the operations and maintenance personnel's to-do list, ensuring that all anomalies have a clear handling path.

[0060] In the scenario of system upgrades or patch updates for distribution automation terminals, the distribution automation terminals achieve deep linkage between the upgrade operation and the trusted boot system through an atomic upgrade verification mechanism. The specific execution process is as follows: After the upgrade task is triggered, the distribution automation terminal first performs legality and integrity checks on the received upgrade package. The legality check uses the national cryptographic algorithm to verify the digital signature of the upgrade package and confirm that the upgrade package comes from the authorized publisher. The integrity check calculates the hash value of the upgrade package and compares it with the digest information carried by the upgrade package to confirm that the upgrade package has not been tampered with during transmission.

[0061] After the upgrade package verification is passed, the power distribution automation terminal parses the file list in the upgrade package, which covers all modules to be updated, including the kernel, drivers, and applications. Based on the expected state of each module of the upgraded system, it calculates new benchmark values, including the upgraded operating system kernel hash value, the hash values ​​of key system components, and the hash values ​​of power distribution business applications. These new benchmark values ​​are stored in the pre-update area of ​​the hardware trust root security storage area. During this process, the currently effective benchmark library remains unchanged to avoid affecting the existing trusted boot system during the upgrade process.

[0062] Subsequently, the distribution automation terminal performs a system upgrade operation based on the upgrade package. After the upgrade is completed, the system does not immediately switch to normal business mode, but automatically triggers a full-process trusted start verification based on the new benchmark value of the pre-updated area. That is, it fully executes the four-level verification process from the hardware root of trust to the business application, and uses the new benchmark value for comparison and verification.

[0063] If all verifications pass, the new baseline values ​​for the pre-updated region will be officially submitted as the current effective baseline library, the system will enter the normal business operation mode, and report the result "upgrade successful and trusted startup verification passed" to the terminal operation and maintenance platform. If any step of the verification fails, the system will automatically roll back to the old system partition, discard the new baseline values ​​in the pre-updated area, maintain the original baseline library, and report the result "Upgrade failed, automatic rollback has been completed, and the trusted boot system has not been affected" to the terminal operation and maintenance platform.

[0064] The above-mentioned atomic upgrade-verify-commit transaction mechanism ensures that system version updates and trusted boot baseline value updates are strictly synchronized, completely avoiding the upgrade operation from damaging the terminal trusted boot verification system and eliminating the risk of terminal failure after upgrade.

[0065] This embodiment, through the above-described scheme, specifically involves: upon detecting the startup of a distribution automation terminal, performing a trusted startup verification on the terminal to obtain a trusted startup log; sending the trusted startup log to the terminal operation and maintenance platform via a preset communication protocol; the terminal operation and maintenance platform performing anomaly detection based on the trusted startup log, obtaining detection results, and generating a troubleshooting instruction and sending it to the distribution automation terminal if the detection results indicate an anomaly; collecting data from the distribution automation terminal based on the troubleshooting instruction to obtain terminal operating parameters, sending these parameters to the terminal operation and maintenance platform; the terminal operation and maintenance platform performing anomaly location based on the terminal operating parameters, obtaining anomaly location results, and sending a repair instruction to the distribution automation terminal based on the anomaly location results; and performing anomaly repair on the distribution automation terminal based on the repair instruction to obtain a repair result. Therefore, a trusted startup verification is performed and a log is generated when the terminal starts up. The log is sent to the operation and maintenance platform in real time through a preset communication protocol, breaking down the information silos between trusted startup and operation and maintenance management. This allows operation and maintenance personnel to remotely monitor the terminal's startup security status in real time. Secondly, after the platform detects an anomaly, it generates a troubleshooting command and sends it to the terminal. The terminal responds to the command, collects operating parameters, and sends them back. Based on the parameters, the platform locates the root cause of the anomaly and issues a repair command. The terminal then performs the repair operation. The entire process does not require on-site personnel, thus significantly improving the efficiency of anomaly maintenance and reducing the manpower and time costs of on-site troubleshooting. This solves the problem that the trusted startup and operation and maintenance management of existing power distribution automation terminals are independent, resulting in the inability to remotely monitor the startup security status in real time and low efficiency of anomaly maintenance. This improves the efficiency of anomaly repair based on power distribution automation terminals.

[0066] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 2 In this embodiment, the anomaly repair method based on the distribution automation terminal is applied to the terminal operation and maintenance platform, and the method includes steps S05~S07: Step S05: Receive the trusted startup log sent by the power distribution automation terminal according to the preset communication protocol. The trusted startup log is obtained by the power distribution automation terminal performing trusted startup verification on the power distribution automation terminal when it detects that the power distribution automation terminal has started. Step S06: Perform anomaly detection based on the trusted startup log to obtain the detection result. If the detection result indicates that an anomaly exists, generate a troubleshooting instruction and send it to the power distribution automation terminal. The power distribution automation terminal then collects data based on the troubleshooting instruction to obtain terminal operating parameters and sends the terminal operating parameters to the terminal operation and maintenance platform. Step S07: Based on the terminal operating parameters, perform anomaly location to obtain anomaly location results. Based on the anomaly location results, send a repair command to the power distribution automation terminal. The power distribution automation terminal then performs anomaly repair based on the repair command to obtain a repair result.

[0067] The terminal operation and maintenance platform monitors the preset encrypted communication channel throughout the process, receives trusted startup log data uploaded by each power distribution automation terminal in real time, automatically completes log signature verification, format parsing and data cleaning, removes invalid and duplicate data, and accurately extracts core content such as terminal startup verification status, abnormal information and startup duration recorded in the log.

[0068] The platform relies on its built-in anomaly identification rule library to conduct comprehensive screening and detection of the parsed log data, accurately distinguishing between different states such as normal terminal startup, slightly abnormal startup, and serious fault startup. If no anomalies are found, the terminal is marked as running normally and the logs are archived. If anomalies are detected, an automated troubleshooting process is immediately initiated.

[0069] In addition to the automated troubleshooting mode, it also supports the manual operation and maintenance mode: operation and maintenance personnel can view the trusted startup logs of each terminal in real time through the terminal operation and maintenance platform. After discovering startup anomalies, they can manually select the target terminal, customize the configuration parameter collection range, and issue remote troubleshooting instructions to flexibly adapt to the operation and maintenance needs of special scenarios.

[0070] Based on the type, scope, and severity of the anomaly, a built-in standardized investigation strategy is matched to generate a targeted parameter collection instruction set and encapsulate it into an investigation instruction. This instruction is then sent to the corresponding power distribution automation terminal in real time, driving the terminal to complete refined data collection and parameter feedback.

[0071] After receiving the signed terminal operating parameters from the terminal, the platform verifies the integrity and authenticity of the parameters again, calls multi-level intelligent diagnostic logic, compares the terminal's historical operating data, standard image parameters, and benchmark library standard data, and investigates the causes of anomalies layer by layer. It accurately distinguishes different root causes such as benchmark library corruption, program tampering, version anomalies, and configuration errors, and simultaneously determines the anomaly risk level. It then generates a diagnostic report that includes anomaly location conclusions, risk level, repair suggestions, estimated execution time, and scope of impact.

[0072] Based on the diagnostic report, an appropriate repair solution is automatically matched and generated. Standardized repair instructions of the corresponding level are issued to the terminal power distribution automation terminal. The terminal repair execution progress is tracked throughout the process. The final repair results returned by the terminal are received and archived, forming a closed-loop operation and maintenance management process of log monitoring, anomaly investigation, root cause location, instruction issuance and repair implementation.

[0073] Specifically, step S06 above, which involves performing anomaly detection based on the trusted startup log, obtaining a detection result, and generating a troubleshooting instruction to the distribution automation terminal if the detection result indicates an anomaly, includes the following steps: Step S061: Parse the trusted boot log to obtain anomaly records, and classify the anomaly records into at least one of the following categories according to the anomaly type code: boot program integrity verification failure, kernel signature verification failure, system component hash mismatch, application version anomaly, or boot timeout. Step S062: Based on the classification results of the abnormal records, match the corresponding investigation strategy through diagnostic rules, and determine the type of terminal operating parameters to be collected according to the investigation strategy. Step S063: Generate a parameter acquisition instruction set according to the parameter type, encapsulate the parameter acquisition instruction set into a troubleshooting instruction, and send it to the power distribution automation terminal.

[0074] The operation and maintenance platform performs in-depth analysis of the received trusted startup logs, accurately extracts various abnormal events recorded in the logs and their corresponding preset abnormal type codes, and completes the abnormal classification and organization according to the coding rules. All startup abnormalities are accurately divided into five core abnormal categories, namely, failure of integrity verification of startup programs such as boot programs, failure of operating system kernel signature verification, hash value mismatch of key system components, abnormal version of power distribution business application, and overall startup timeout of the terminal. It supports the synchronous classification and statistics of single abnormalities or multiple compound abnormalities.

[0075] After anomaly classification, the platform's built-in operation and maintenance diagnostic rule knowledge base is invoked. Different anomaly categories correspond to specific standardized troubleshooting logic and data collection dimensions. The system automatically matches a troubleshooting strategy that precisely suits the current anomaly type, avoiding ineffective troubleshooting processes. Based on the matched troubleshooting strategy, the core parameter dimensions required for the current anomaly diagnosis are identified, and the types of terminal operating parameters to be collected are accurately pinpointed, covering differentiated data such as anomaly module hash parameters, baseline library version parameters, system status parameters, hardware firmware parameters, and historical operating log parameters.

[0076] Following the standardized instruction format, all parameter types to be collected are integrated into a structured parameter collection instruction set. Supplementary rules such as instruction execution permissions, timeout mechanisms, and data encryption requirements are added, and the whole set is packaged into a compliance inspection instruction. This instruction is then sent to the terminal power distribution automation terminal in real time through an encrypted communication link to ensure that the inspection instructions are implemented accurately, effectively, and securely.

[0077] More specifically, step S07 above, which involves performing anomaly location based on the terminal operating parameters to obtain anomaly location results, and sending a repair command to the distribution automation terminal based on the anomaly location results, includes: Step S071: Parse the terminal operating parameters to obtain the hash value of the abnormal module, and compare the hash value of the abnormal module with the benchmark library to obtain hash value difference information; Step S072: Perform multi-level diagnosis based on the hash value difference information to obtain the anomaly root cause type and repair level, and generate anomaly location results based on the anomaly root cause type and repair level. Step S073: Generate a repair instruction based on the anomaly location result and send the repair instruction to the power distribution automation terminal.

[0078] After receiving the structured terminal operation parameters returned by the terminal, the operation and maintenance platform decrypts and parses the parameter messages, accurately extracts the core data such as the real-time hash value, file attributes, and version information of the corresponding module in case of an anomaly, retrieves the standard hash value of the local trusted benchmark library of the terminal and the standard image benchmark data of the same model terminal stored on the platform, completes the byte-by-byte comparison between the real-time parameters and the dual standard data, accurately locates the hash value difference points, difference ranges and differences, and generates detailed hash value difference comparison information.

[0079] Based on the difference information, a multi-level progressive intelligent diagnostic logic is initiated: First, the actual hash value of the abnormal module is compared byte by byte with the benchmark value stored in the benchmark library to identify the difference. Then, the file timestamp and access permission attributes are used to determine whether the difference is related to the most recent operation and maintenance records.

[0080] At the same time, the terminal's historical anomaly database is queried. If the anomaly module has had the same type of verification failure record within a set time period in the past and was marked as an instantaneous anomaly, then the current anomaly inherits the previous judgment result and will not trigger an alarm again.

[0081] If the hash value of the abnormal module is consistent with the hash value of the corresponding module in the standard image of the terminal model stored on the platform side, but inconsistent with the value in the terminal's own benchmark library, it is determined that the benchmark library is partially damaged rather than the program has been tampered with, and the repair strategy is adjusted to restore the benchmark library rather than replace the image.

[0082] If the hash value of the abnormal module does not match the standard image and the baseline library, the matching degree of the hash value with the known set of historical version hash values ​​of the module is further calculated. If it can be matched with a certain historical version, it is determined to be a version rollback abnormality. If it cannot be matched with any known version, it is determined to be an unknown tampering, and the highest level of repair strategy is adopted.

[0083] By using multi-level diagnosis to accurately identify the root cause type of anomalies, and based on the scope of impact, severity, and difficulty of repair, all anomalies are classified into three risk repair levels: Level 1 (mild), Level 2 (moderate), and Level 3 (severe). The root cause conclusion, risk level, anomaly details, repair feasibility, estimated impact scope, and execution time are integrated to generate a complete and standardized anomaly localization result.

[0084] Finally, based on the anomaly location results, a standardized repair plan corresponding to the risk level is matched, and a unique repair instruction containing repair operation type, repair data, execution permissions, verification rules, and rollback mechanism is generated. After encryption, the instruction is sent to the terminal power distribution automation terminal to ensure that the repair instruction is highly adapted to the terminal anomaly scenario.

[0085] This embodiment receives a trusted startup log sent by a distribution automation terminal according to a preset communication protocol. The trusted startup log is obtained by the distribution automation terminal when it detects startup, performing a trusted startup verification. Anomaly detection is performed based on the trusted startup log, and if an anomaly is detected, a troubleshooting instruction is generated and sent to the distribution automation terminal. The distribution automation terminal then collects data based on the troubleshooting instruction to obtain terminal operating parameters, which are sent to the terminal maintenance platform. Anomaly location is performed based on the terminal operating parameters, and a repair instruction is sent to the distribution automation terminal based on the anomaly location result. The distribution automation terminal then repairs the anomaly based on the repair instruction, obtaining a repair result. Therefore, a trusted startup verification is performed and a log is generated when the terminal starts up. The log is sent to the operation and maintenance platform in real time through a preset communication protocol, breaking down the information silos between trusted startup and operation and maintenance management. This allows operation and maintenance personnel to remotely monitor the terminal's startup security status in real time. Secondly, after the platform detects an anomaly, it generates a troubleshooting command and sends it to the terminal. The terminal responds to the command, collects operating parameters, and sends them back. Based on the parameters, the platform locates the root cause of the anomaly and issues a repair command. The terminal then performs the repair operation. The entire process does not require on-site personnel, thus significantly improving the efficiency of anomaly maintenance and reducing the manpower and time costs of on-site troubleshooting. This solves the problem that the trusted startup and operation and maintenance management of existing power distribution automation terminals are independent, resulting in the inability to remotely monitor the startup security status in real time and low efficiency of anomaly maintenance. This improves the efficiency of anomaly repair based on power distribution automation terminals.

[0086] For example, to help understand the implementation process of the anomaly repair method based on a distribution automation terminal obtained by combining this embodiment with the above embodiment one, please refer to... Figure 3 , Figure 3A simplified flowchart of an anomaly repair method based on a power distribution automation terminal is provided, specifically: The overall architecture of this embodiment covers three core components: a power distribution automation terminal, an operation and maintenance system equipped with a lightweight domestic operating system, and a cloud terminal operation and maintenance platform. It relies on an Ethernet encrypted communication link to achieve full-process data interoperability and capability linkage, and completely breaks down the technical barriers between the terminal trusted boot security system and the cloud operation and maintenance management system.

[0087] In the overall implementation process, the power distribution automation terminal first automatically performs a four-level full-dimensional trusted startup verification of the hardware root of trust, boot program, system kernel, and business application during the power-on startup phase. It collects verification data and abnormal information throughout the process and generates a trusted startup log with hardware signature to eliminate the risk of log data tampering.

[0088] After logs are generated, they are pushed to the terminal operation and maintenance platform in real time via a preset encrypted MQTT communication protocol. The platform automatically completes log parsing, anomaly classification, and preliminary screening to accurately identify potential terminal startup anomalies. For anomalies detected during screening, the platform automatically matches a dedicated troubleshooting strategy and generates parameter collection instructions, which are then sent to the terminal operation and maintenance system to complete refined collection of operational parameters. The terminal then packages, signs, and encrypts the collected parameters before sending them back to the platform.

[0089] The platform relies on multi-level intelligent diagnostic logic, combined with terminal benchmark library, standard mirror data, and historical operation and maintenance data to accurately locate the root cause of anomalies and determine the risk level, thus generating a standardized diagnostic report.

[0090] Subsequently, based on the anomaly level, level 1, 2, and 3 repair instructions are generated to drive the terminal operation and maintenance system to perform corresponding repair operations such as base library correction, module patch replacement, and complete image reinstallation. After the repair is completed, a trusted verification is automatically triggered to verify the repair effect.

[0091] Meanwhile, in scenarios involving terminal system upgrades and patch updates, the system automatically verifies the legality and integrity of the upgrade package using national cryptographic algorithms. It employs an atomic mechanism that includes pre-storing new baseline values ​​in the pre-update area, full-process verification after the upgrade, submission of updates upon successful verification, and automatic rollback upon failure, ensuring that system upgrades do not disrupt the trusted boot system.

[0092] Throughout the entire process, the terminal and the platform synchronously record operation and maintenance logs, verification logs, and repair logs, forming a complete anomaly handling chain. This supports subsequent auditing and tracing, and achieves automation, standardization, and security of the operation and maintenance process while retaining human decision-making authority. It effectively solves the industry pain points of high difficulty and cost of outdoor power distribution terminal operation and maintenance, easy failure of upgrades, and delayed anomaly investigation.

[0093] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the abnormal repair method based on the distribution automation terminal of this application. Any simple modifications based on this technical concept are within the protection scope of this application.

[0094] This application also provides an anomaly repair device based on a power distribution automation terminal, please refer to... Figure 4 The fault repair device based on the distribution automation terminal is applied to the distribution automation terminal, and the device includes: Verification module 10 is used to perform a trusted startup verification on the power distribution automation terminal when the startup of the power distribution automation terminal is detected, and to obtain a trusted startup log. The detection module 20 is used to send the trusted startup log to the terminal operation and maintenance platform through a preset communication protocol. The terminal operation and maintenance platform performs anomaly detection based on the trusted startup log, obtains the detection result, and generates a troubleshooting instruction to send to the power distribution automation terminal if the detection result indicates that there is an anomaly. The positioning module 30 is used to collect data from the power distribution automation terminal based on the troubleshooting instruction, obtain terminal operating parameters, send the terminal operating parameters to the terminal operation and maintenance platform, and the terminal operation and maintenance platform performs anomaly positioning based on the terminal operating parameters, obtain anomaly positioning results, and send a repair instruction to the power distribution automation terminal based on the anomaly positioning results. Repair module 40 is used to perform abnormal repair on the power distribution automation terminal based on the repair instruction and obtain the repair result.

[0095] The anomaly repair device based on a distribution automation terminal provided in this application employs the anomaly repair method based on a distribution automation terminal in the above embodiments. This solves the technical problem that existing distribution automation terminals have independent reliable startup and operation and maintenance management, resulting in the inability to remotely monitor the startup security status in real time and low efficiency in anomaly maintenance. Compared with the prior art, the beneficial effects of the anomaly repair device based on a distribution automation terminal provided in this application are the same as those of the anomaly repair method based on a distribution automation terminal provided in the above embodiments. Furthermore, other technical features in the anomaly repair device based on a distribution automation terminal are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0096] This application provides an anomaly repair device based on a power distribution automation terminal. The anomaly repair device based on a power distribution automation terminal includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the anomaly repair method based on a power distribution automation terminal in the above embodiment 1.

[0097] The following is for reference. Figure 5 This document illustrates a structural schematic diagram of an anomaly repair device based on a power distribution automation terminal, suitable for implementing embodiments of this application. The anomaly repair device based on a power distribution automation terminal in these embodiments may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 5 The anomaly repair device based on the power distribution automation terminal shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0098] like Figure 5 As shown, the fault repair device based on the power distribution automation terminal may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory 1002 or the program loaded from the storage device 1003 into the random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the fault repair device based on the power distribution automation terminal. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows the fault repair equipment based on the distribution automation terminal to communicate wirelessly or wiredly with other devices to exchange data. Although the figure shows fault repair equipment based on the distribution automation terminal with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.

[0099] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0100] The anomaly repair device based on a distribution automation terminal provided in this application employs the anomaly repair method based on a distribution automation terminal in the above embodiments. This solves the technical problem that existing distribution automation terminals have independent reliable startup and operation and maintenance management, resulting in the inability to remotely monitor startup security status in real time and low efficiency in anomaly maintenance. Compared with the prior art, the beneficial effects of the anomaly repair device based on a distribution automation terminal provided in this application are the same as those of the anomaly repair method based on a distribution automation terminal provided in the above embodiments. Furthermore, other technical features of this anomaly repair device based on a distribution automation terminal are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0101] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0102] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0103] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the anomaly repair method based on the power distribution automation terminal in the above embodiments.

[0104] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0105] The aforementioned computer-readable storage medium may be included in the anomaly repair device based on the power distribution automation terminal; or it may exist independently and not be assembled into the anomaly repair device based on the power distribution automation terminal.

[0106] The aforementioned computer-readable storage medium carries one or more programs. When these programs are executed by an anomaly repair device based on a distribution automation terminal, the anomaly repair device performs the following actions: upon detecting the startup of the distribution automation terminal, it performs a trusted startup verification on the terminal to obtain a trusted startup log; it sends the trusted startup log to a terminal maintenance platform via a preset communication protocol; the terminal maintenance platform performs anomaly detection based on the trusted startup log, obtains a detection result, and, if the detection result indicates an anomaly, generates a troubleshooting instruction and sends it to the distribution automation terminal; based on the troubleshooting instruction, it collects data from the distribution automation terminal to obtain terminal operating parameters, sends these parameters to the terminal maintenance platform, the terminal maintenance platform performs anomaly location based on the operating parameters, obtains anomaly location results, and sends a repair instruction to the distribution automation terminal based on the anomaly location results; and based on the repair instruction, it performs anomaly repair on the distribution automation terminal to obtain a repair result.

[0107] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0108] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0109] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0110] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described anomaly repair method based on a distribution automation terminal. This solves the technical problem that the trusted startup and operation and maintenance management of existing distribution automation terminals are independent, resulting in the inability to remotely monitor the startup security status in real time and low efficiency in anomaly maintenance. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the anomaly repair method based on a distribution automation terminal provided in the above embodiments, and will not be repeated here.

[0111] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described anomaly repair method based on a power distribution automation terminal.

[0112] The computer program product provided in this application can solve the technical problem that the trusted startup and operation and maintenance management of existing power distribution automation terminals are independent, resulting in the inability to remotely monitor the startup security status in real time and low efficiency of abnormal operation and maintenance. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the abnormal repair method based on power distribution automation terminals provided in the above embodiments, and will not be repeated here.

[0113] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A method for anomaly recovery based on a power distribution automation terminal, characterized in that, The anomaly repair method based on the distribution automation terminal is applied to the distribution automation terminal, and the method includes: When the power distribution automation terminal is detected to be started, a trusted start verification is performed on the power distribution automation terminal to obtain a trusted start log; The trusted startup log is sent to the terminal operation and maintenance platform through a preset communication protocol. The terminal operation and maintenance platform performs anomaly detection based on the trusted startup log, obtains the detection result, and generates a troubleshooting instruction and sends it to the power distribution automation terminal if the detection result indicates that an anomaly exists. Based on the troubleshooting instructions, data is collected from the power distribution automation terminal to obtain terminal operating parameters. The terminal operating parameters are then sent to the terminal operation and maintenance platform, which performs anomaly location based on the terminal operating parameters, obtains the anomaly location result, and sends a repair instruction to the power distribution automation terminal based on the anomaly location result. Based on the repair instructions, the power distribution automation terminal is repaired to correct the anomaly, and the repair result is obtained.

2. The power distribution automation terminal based anomaly remediation method as claimed in claim 1, wherein, The step of performing trusted startup verification on the power distribution automation terminal to obtain a trusted startup log includes: The bootloader code is hashed using the hardware root of trust built into the power distribution automation terminal to obtain a first calculation result. The calculation result is then compared with the code baseline value to obtain a first-level verification result. If the first-level verification result is passed, the kernel code of the power distribution automation terminal is hashed by the boot program to obtain the second calculation result. The second calculation result is then verified by the hardware root of trust to obtain the second-level verification result. If the second-level verification result is passed, the code of the key components of the system is hashed by the power distribution automation terminal to obtain the third calculation result. The third calculation result is then verified by the hardware root of trust through a trust measurement to obtain the third-level verification result. If the third-level verification result is passed, the power distribution business application is hashed by the trust measurement software in the key components of the system to obtain the fourth calculation result. The fourth calculation result is then verified by the trust measurement through the hardware root of trust to obtain the fourth-level verification result. A trusted boot log is generated based on the first verification result, the second verification result, the third verification result, and the fourth verification result, and the trusted boot log is digitally signed by the hardware root of trust.

3. The power distribution automation terminal based anomaly remediation method as claimed in claim 1, wherein, The step of collecting data from the power distribution automation terminal based on the investigation command to obtain the terminal operating parameters includes: Parse the investigation command to obtain a list of parameter types to be collected; Data is collected from the power distribution automation terminal according to the parameter type list to obtain the target parameters corresponding to the parameter type list; The target parameters are packaged into structured data, and the structured data is digitally signed by the hardware root of trust of the power distribution automation terminal to obtain the terminal operating parameters.

4. The power distribution automation terminal based anomaly remediation method as claimed in claim 1, wherein, The step of performing anomaly repair on the distribution automation terminal based on the repair instruction and obtaining the repair result includes: The repair command is parsed to obtain the repair level and repair data; If the repair level is Level 1 repair, the correct baseline value is extracted from the repair data and verified by the hardware root trust signature of the power distribution automation terminal. After successful verification, the correct baseline value is written into the secure storage area of ​​the power distribution automation terminal to obtain the Level 1 repair result. If the repair level is level 2 repair, then extract the file patch package from the repair data, perform signature verification and integrity verification on the file patch package, and replace the original module file with the file patch package to obtain the level 2 repair result; If the repair level is level three, then the trusted image in the repair data is extracted, the trusted image is stored in the backup partition, the trusted image is booted in the backup partition, and a boot verification is performed based on the trusted image. After the verification is passed, the backup partition is switched to the primary partition to obtain the level three repair result.

5. A method for anomaly recovery based on a power distribution automation terminal, characterized in that, The anomaly repair method based on distribution automation terminals is applied to the terminal operation and maintenance platform, and the method includes: The trusted startup log is received from the power distribution automation terminal according to the preset communication protocol. The trusted startup log is obtained by the power distribution automation terminal when it detects that the power distribution automation terminal has started. Anomaly detection is performed based on the trusted startup log to obtain the detection result. If the detection result indicates that an anomaly exists, a troubleshooting instruction is generated and sent to the power distribution automation terminal. The power distribution automation terminal then collects data based on the troubleshooting instruction to obtain terminal operating parameters and sends the terminal operating parameters to the terminal operation and maintenance platform. Anomaly location is performed based on the terminal's operating parameters to obtain anomaly location results. A repair command is then sent to the distribution automation terminal based on the anomaly location results. The distribution automation terminal then performs anomaly repair based on the repair command to obtain a repair result.

6. The power distribution automation terminal based anomaly remediation method as claimed in claim 5, wherein, The step of performing anomaly detection based on the trusted startup log, obtaining a detection result, and generating a troubleshooting instruction to be sent to the power distribution automation terminal if the detection result indicates an anomaly exists includes: The trusted boot log is parsed to obtain exception records, and the exception records are classified into at least one of the following categories according to the exception type encoding: boot program integrity verification failure, kernel signature verification failure, system component hash mismatch, application version exception, or boot timeout. Based on the classification results of the abnormal records, the corresponding investigation strategy is matched through diagnostic rules, and the type of terminal operating parameters to be collected is determined according to the investigation strategy. A parameter acquisition instruction set is generated based on the parameter type, the parameter acquisition instruction set is encapsulated into a troubleshooting instruction, and sent to the power distribution automation terminal.

7. The power distribution automation terminal based anomaly remediation method as claimed in claim 5, wherein, The step of performing anomaly location based on the terminal operating parameters, obtaining anomaly location results, and sending a repair command to the power distribution automation terminal based on the anomaly location results includes: The abnormal module hash value is obtained by parsing the terminal's operating parameters. The hash value of the abnormal module is then compared with that of the benchmark library to obtain hash value difference information. Based on the hash value difference information, multi-level diagnosis is performed to obtain the anomaly root cause type and repair level, and anomaly location result is generated based on the anomaly root cause type and repair level. A repair instruction is generated based on the anomaly location result, and the repair instruction is sent to the power distribution automation terminal.

8. An anomaly recovery apparatus based on a power distribution automation terminal, characterized by, The fault repair device based on the distribution automation terminal is applied to the distribution automation terminal, and the device includes: The verification module is used to perform a trusted startup verification on the power distribution automation terminal when the startup of the power distribution automation terminal is detected, and to obtain a trusted startup log. The detection module is used to send the trusted startup log to the terminal operation and maintenance platform through a preset communication protocol. The terminal operation and maintenance platform performs anomaly detection based on the trusted startup log, obtains the detection result, and generates a troubleshooting instruction to send to the power distribution automation terminal if the detection result indicates that there is an anomaly. The positioning module is used to collect data from the power distribution automation terminal based on the troubleshooting instruction, obtain terminal operating parameters, send the terminal operating parameters to the terminal operation and maintenance platform, and the terminal operation and maintenance platform performs anomaly positioning based on the terminal operating parameters, obtains anomaly positioning results, and sends a repair instruction to the power distribution automation terminal based on the anomaly positioning results. The repair module is used to perform anomaly repair on the power distribution automation terminal based on the repair instructions and obtain the repair result.

9. An anomaly remediation device based on a power distribution automation terminal, characterized by, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the anomaly repair method based on a power distribution automation terminal as described in any one of claims 1 to 7.

10. A computer program product, characterised in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the anomaly repair method based on a power distribution automation terminal as described in any one of claims 1 to 7.