Power grid cooperative intelligent inspection system and method based on swan mongolian distributed characteristics
By using a power grid collaborative intelligent inspection system based on the distributed characteristics of HarmonyOS, the communication topology network is dynamically adjusted, which solves the problems of poor equipment coordination and insufficient link quality adaptability in power grid inspection, and improves communication reliability and inspection efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN DINGXIN SMART TECH CO LTD
- Filing Date
- 2026-02-04
- Publication Date
- 2026-05-15
AI Technical Summary
In power grid inspection scenarios, the lack of effective coordination among multiple inspection devices, the fixed communication topology and the difficulty in adapting to changes in link quality lead to unstable data transmission, affecting the continuity and efficiency of inspection operations.
The power grid collaborative intelligent inspection system based on the distributed characteristics of HarmonyOS is adopted. The parsing and decomposition module receives tasks and decomposes them into sub-tasks. The HarmonyOS distributed soft bus is used to obtain equipment capability and status information. The allocation module assigns execution devices to sub-tasks. The adjustment module builds the initial communication topology and periodically monitors the link quality, dynamically adjusting the topology network to adapt to link changes.
It improved communication reliability and inspection collaboration efficiency, solved the problems of poor collaboration among multiple devices and fixed topology, and ensured the stable execution of inspection tasks.
Smart Images

Figure CN122053422A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent inspection technology, specifically to a power grid collaborative intelligent inspection system and method based on the distributed characteristics of HarmonyOS. Background Technology
[0002] In power grid inspection scenarios, inspection tasks are typically completed by various types of inspection equipment, each with differences in capabilities, status, and operational scope. Due to the lack of a unified coordination mechanism, it is difficult to rationally allocate inspection tasks based on the actual conditions of the equipment, and the equipment often operates relatively independently. Furthermore, the communication relationships between equipment during the inspection process are usually determined before the task begins, resulting in a relatively fixed communication topology. When link quality fluctuates or local communication is interfered with, timely adjustments are difficult to make, easily leading to unstable data transmission and consequently affecting the continuity and overall efficiency of the inspection operation. Summary of the Invention
[0003] This application provides a power grid collaborative intelligent inspection system and method based on the distributed characteristics of HarmonyOS, which is used to address the technical problems in the prior art, such as the lack of effective collaboration among multiple inspection devices, fixed communication topology, and difficulty in adapting to changes in link quality.
[0004] In view of the above problems, this application provides a power grid collaborative intelligent inspection system and method based on the distributed characteristics of HarmonyOS.
[0005] The first aspect of this application provides a power grid collaborative intelligent inspection system based on the distributed characteristics of HarmonyOS, the system comprising: The parsing and decomposition module receives inspection tasks, parses and decomposes them into multiple sub-tasks; the information acquisition module acquires the capability and status information of each inspection device within the task area via the HarmonyOS distributed soft bus; the allocation module allocates execution devices to the multiple sub-tasks based on the capability and status information of each inspection device, forming a task allocation scheme; and the adjustment module constructs an initial communication topology network based on the task allocation scheme. During task execution, each inspection device periodically monitors the link communication quality with neighboring devices, and when preset reconstruction conditions are met, initiates a network topology reconstruction decision to dynamically adjust the initial communication topology network.
[0006] A second aspect of this application provides a power grid collaborative intelligent inspection method based on the distributed characteristics of HarmonyOS, the method comprising: The system receives inspection tasks, parses and decomposes them into multiple sub-tasks, acquires the capability and status information of each inspection device within the task area via the HarmonyOS distributed soft bus, assigns execution devices to the multiple sub-tasks based on the capability and status information of each inspection device, and forms a task allocation scheme. Based on the task allocation scheme, an initial communication topology network is constructed. During task execution, each inspection device periodically monitors the link communication quality with neighboring devices. When preset reconstruction conditions are met, a network topology reconstruction decision is initiated to dynamically adjust the initial communication topology network.
[0007] One or more technical solutions provided in this application have at least the following technical effects or advantages: This application receives inspection tasks, parses and decomposes them into multiple sub-tasks, acquires the capability and status information of each inspection device within the task area via the HarmonyOS distributed soft bus, assigns execution devices to the multiple sub-tasks based on the capability and status information of each inspection device, and forms a task allocation scheme. Based on the task allocation scheme, an initial communication topology network is constructed. During task execution, each inspection device periodically monitors the link communication quality with neighboring devices. When preset reconstruction conditions are met, a network topology reconstruction decision is initiated to dynamically adjust the initial communication topology network. This invention solves the technical problems of lack of effective coordination among multiple inspection devices, fixed communication topologies, and difficulty in adapting to changes in link quality in the prior art. By constructing a communication topology based on a task allocation scheme and monitoring and dynamically reconstructing the communication link quality during the inspection process, it achieves the technical effects of improved communication reliability and inspection coordination efficiency. Attached Figure Description
[0008] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0009] Figure 1 This is a schematic diagram of the structure of a power grid collaborative intelligent inspection system based on the distributed characteristics of HarmonyOS, provided in an embodiment of this application. Figure 2 This is a schematic diagram of the power grid collaborative intelligent inspection method based on the distributed characteristics of HarmonyOS, provided in an embodiment of this application.
[0010] Figure labeling: Analytical decomposition module 11, information acquisition module 12, allocation module 13, adjustment module 14. Detailed Implementation
[0011] This application provides a power grid collaborative intelligent inspection system and method based on the distributed characteristics of HarmonyOS. It addresses the technical problems in the prior art, such as the lack of effective collaboration among multiple inspection devices, fixed communication topology, and difficulty in adapting to changes in link quality. By constructing the communication topology based on a task allocation scheme and monitoring and dynamically reconstructing the communication link quality during the inspection process, it achieves the technical effects of improved communication reliability and inspection collaboration efficiency.
[0012] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0013] It should be noted that any variation of the terms "comprising" and "having" is intended to cover non-exclusive inclusion, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or modules that are not explicitly listed or that are inherent to such processes, methods, products, or devices.
[0014] Example 1, as Figure 1 As shown, this application provides a power grid collaborative intelligent inspection system based on the distributed characteristics of HarmonyOS, the system comprising: The parsing and decomposition module 11 is used to receive inspection tasks, parse and decompose the tasks, and obtain multiple sub-tasks.
[0015] In this embodiment, the parsing and decomposition module 11 receives the inspection task and performs task parsing and decomposition processing on it. Specifically, the parsing and decomposition module 11 first parses the task description of the inspection task, identifies and extracts the geographical range constraints, required inspection equipment type, data type to be collected, and time window requirements corresponding to the inspection task, forming task constraint information to constrain task execution. Then, the parsing and decomposition module 11 decomposes the inspection task based on the task constraint information, splitting the inspection task into multiple sub-tasks. Each sub-task includes a task identifier, the geographical coordinates corresponding to the target equipment or target area, the type of operation to be performed, and a temporal dependency relationship to characterize the order of task execution.
[0016] Furthermore, in the system provided in the application embodiment, the parsing and decomposition module 11 further includes: The parsing unit is used to parse the description of the inspection task, extract the geographical range constraints, the required inspection equipment type, the data type to be collected, and the time window requirements to obtain task constraint information; the decomposition unit is used to decompose the inspection task into multiple sub-tasks based on the task constraint information, wherein each sub-task includes a task identifier, the geographical coordinates of the target equipment or area, the type of operation to be performed, and the temporal dependency of the task execution.
[0017] In this embodiment, when performing the parsing process, the parsing unit first reads the description of the inspection task item by item. The description of the inspection task typically includes an overall description of the inspection object, inspection scope, inspection method, and inspection time requirements. The parsing unit sequentially identifies different information fields in the description according to a pre-agreed task description format. For example, it reads the geographical range information used to define the boundaries of the inspection area from the task description and uses it as a geographical range constraint. Then, it reads the description of the inspection equipment capability requirements, such as the need to use drones, robots, or fixed monitoring devices to complete the inspection operation, thereby extracting the required inspection equipment type. Subsequently, it reads the data content explicitly required to be collected in the task description, such as image data, video data, or status parameter data, and determines it as the data type to be collected. Simultaneously, it parses the description of the task start time, end time, or allowed execution time period, determining it as a time window requirement. After completing the above item-by-item parsing, the parsing unit unifies the geographical range constraint, the required inspection equipment type, the data type to be collected, and the time window requirement to form task constraint information used to comprehensively constrain the execution conditions of the inspection task.
[0018] Next, the decomposition unit breaks down the inspection task based on task constraints. Specifically, it divides the inspection area according to geographical constraints, for example, splitting a large inspection area into multiple smaller target devices or target areas, and assigning corresponding geographical coordinates to each target device or target area. Simultaneously, based on the required inspection device type and the data to be collected, it determines the specific operation types to be performed for different target devices or target areas, such as performing image acquisition on a certain area or status parameter acquisition on a certain device. Furthermore, the decomposition unit arranges the execution order of each sub-task in conjunction with time window requirements, for example, restricting some sub-tasks to be executed only after other sub-tasks are completed, thus forming a temporal dependency relationship for task execution. Finally, the decomposition unit assigns a unique task identifier to each sub-task and writes the corresponding geographical coordinates, the type of operation to be performed, and the temporal dependency relationship into the sub-task, thereby breaking down the original overall inspection task into multiple well-structured sub-tasks with clearly defined execution objectives.
[0019] The information acquisition module 12 is used to acquire the capability and status information of each inspection device within the task area via the HarmonyOS distributed soft bus.
[0020] In this embodiment, when the information acquisition module 12 acquires inspection equipment information within the task area, it first initiates a device discovery process within the task area via the HarmonyOS distributed soft bus to identify inspection equipment currently within the communication range that can participate in inspection operations, such as drones, inspection robots, or fixed inspection terminals, and establishes a communication connection with the inspection equipment. After establishing the communication connection, the information acquisition module 12 sends capability and status information requests to each inspection equipment via the HarmonyOS distributed soft bus. Upon receiving the request, each inspection equipment returns capability and status information characterizing its ability to perform inspection operations. The capability information describes the types of inspection operations the inspection equipment can perform, such as whether it supports image acquisition, video acquisition, or status parameter acquisition. The status information describes the current operating status of the inspection equipment, such as whether the equipment is online, its current remaining energy level, and its current task load. The information acquisition module 12 receives and summarizes the capability and status information returned by each inspection equipment, and uniformly organizes the capability and status information corresponding to different inspection equipment to form the capability and status information of each inspection equipment within the task area.
[0021] The allocation module 13 is used to allocate execution devices to the multiple sub-tasks based on the capability and status information of each inspection device, thereby forming a task allocation scheme.
[0022] In this embodiment, when the allocation module 13 allocates execution devices for multiple sub-tasks based on the capability and status information of each inspection device, it traverses the multiple sub-tasks, selects candidate devices whose capabilities meet the corresponding operation type for each sub-task, and calculates a suitability score for each candidate device. The suitability score comprehensively reflects the geographical distance between the candidate device and the sub-task target, the current remaining energy of the candidate device, and the matching of the current load of the candidate device with the task requirements. Then, each sub-task is allocated to the candidate device with the highest suitability score, establishing a mapping relationship between the sub-task and the execution inspection device, thereby generating a task allocation scheme.
[0023] Furthermore, in the system provided in the application embodiment, the allocation module 13 further includes: The traversal unit is used to traverse the multiple subtasks. For each subtask, it filters out all candidate devices whose capabilities meet the operation type based on the capability and status information of each inspection device. The allocation scheme generation unit is used to calculate the suitability score of each candidate device for the corresponding subtask. The suitability score comprehensively evaluates the geographical distance between the candidate device and the task target, the current remaining energy of the device, the matching accuracy between the current load of the device and the task requirements, and allocates the subtask to the candidate device with the highest suitability score, generating the task allocation scheme containing the task-device mapping relationship.
[0024] In this embodiment, the traversal unit first processes multiple subtasks one by one, reading the operation type to be performed, the geographical coordinates of the target device or area, and the temporal dependencies of the task execution from each subtask. Then, it reads the capability information of each inspection device from its capability and status information, selecting inspection devices whose capability information covers the operation type and forming a candidate device set. For example, when the operation type of a subtask is image acquisition, only drones or inspection robots with cameras whose capability information includes image acquisition are included in the candidate device set; other inspection devices are not included, thus ensuring that the candidate device set is consistent with the operation type of the subtask.
[0025] Next, the allocation scheme generation unit calculates the corresponding fit score for each inspection device in the candidate device set. The fit score is obtained by combining the geographical distance score, the remaining energy score, and the current load score. The geographical distance score is obtained by first calculating the straight-line distance between the current location of the inspection device and the geographical coordinates of the target device or area of the subtask, and then subtracting the ratio of the straight-line distance to the preset maximum distance. The smaller the straight-line distance, the larger the corresponding geographical distance score. The remaining energy score is obtained by dividing the current remaining energy level of the inspection device by the full charge energy. The higher the remaining energy level, the larger the corresponding remaining energy score. The current load score is obtained by first calculating the ratio of the current load of the inspection device to the preset full load threshold, and then subtracting the ratio. The lower the current load, the larger the corresponding current load score.
[0026] After obtaining the above scores, the geographical distance score is multiplied by a preset geographical distance weight, the remaining energy score is multiplied by a preset energy weight, and the current load score is multiplied by a preset load weight. The results of these multiplications are then summed to obtain the adaptation score for the corresponding inspection device performing the sub-task. For example, when the geographical distance weight is 40%, the energy weight is 40%, and the load weight is 20%, for a candidate device, its adaptation score equals the geographical distance score multiplied by 40%, the remaining energy score multiplied by 40%, and the current load score multiplied by 20%.
[0027] Finally, each subtask is assigned to the candidate device with the highest fit score, and the correspondence between the subtask and the execution device is recorded. The process of generating the candidate device set and calculating the fit score is repeated for multiple subtasks. Simultaneously, the allocation order is constrained according to the temporal dependencies of the subtasks, ensuring that subtasks with temporal dependencies are allocated only after their preceding subtasks have been allocated. This forms a task-device mapping relationship consistent with the temporal dependencies of the subtasks, and the final task allocation scheme is obtained by summarizing these relationships.
[0028] The adjustment module 14 is used to construct an initial communication topology network based on the task allocation scheme. During the task execution process, each inspection device periodically monitors the link communication quality with neighboring devices. When the preset reconstruction conditions are met, the network topology reconstruction decision is initiated to dynamically adjust the initial communication topology network.
[0029] In this embodiment of the application, when the adjustment module 14 constructs the initial communication topology network based on the task allocation scheme, it first generates a communication requirement diagram to describe the communication needs between devices according to the execution relationship of each inspection device determined in the task allocation scheme. On this basis, it coordinates the device connection relationship reflected in the communication requirement diagram according to the HarmonyOS distributed soft bus to generate a globally optimal communication topology that satisfies each communication need and has the best overall communication efficiency, thereby forming an initial communication topology network for the execution of inspection tasks.
[0030] During the task execution, the adjustment module 14 enables each inspection device to monitor the communication link with neighboring devices according to a preset cycle. By acquiring the transmit and receive probe response data, it judges the communication status corresponding to the link communication quality. When the communication status meets the preset reconstruction conditions, it initiates the network topology reconstruction decision. Based on different situations corresponding to communication quality deterioration or equipment failure, it performs local adjustment or subnet reconstruction on the initial communication topology network, thereby realizing the dynamic adjustment of the initial communication topology network.
[0031] Furthermore, in the system provided in the application embodiment, the adjustment module 14 further includes: The communication requirement graph generation unit is used to generate a communication requirement graph between devices based on the task allocation scheme; the topology network generation unit is used to collaboratively generate a globally optimal communication topology based on the communication requirement graph and the HarmonyOS distributed soft bus, as the initial communication topology network.
[0032] In this embodiment, when generating the communication requirement graph, the unit first reads the execution inspection devices corresponding to each subtask in the task allocation scheme, and traverses the temporal dependencies between subtasks within the same inspection task. It then identifies the execution inspection devices of preceding and subsequent subtasks with temporal dependencies as inspection device pairs with communication requirements. These communication requirements characterize whether data generated by the preceding subtask needs to be transmitted to the subsequent subtask or whether the subsequent subtask needs to receive the completion status of the preceding subtask before starting. For example, if subtask A is executed by inspection device 1 and subtask B is executed by inspection device 2, and subtask B has a temporal dependency on subtask A, then inspection device 1 and inspection device 2 are identified as inspection device pairs with communication requirements, and this communication requirement is registered as a communication requirement edge. After traversing all subtasks, the inspection devices are used as graph nodes in the communication requirement graph, and the registered communication requirement edges connect the corresponding inspection devices to form an inter-device communication requirement graph.
[0033] Next, the topology network generation unit constructs the communication structure between inspection devices based on the communication requirements graph. It uses the inspection devices in the communication requirements graph as nodes and constructs communication links that meet the communication requirements for the corresponding inspection devices on the HarmonyOS distributed soft bus according to the communication requirements edges determined in the communication requirements graph. At the same time, it configures the initial communication resources and routing paths for the communication links so that the formed communication connection relationship meets all the communication requirements of the communication requirements graph as a whole and achieves the optimal communication structure, thereby generating the globally optimal communication topology and using the globally optimal communication topology as the initial communication topology network.
[0034] Furthermore, in the system provided in the application embodiment, the topology network generation unit further includes: The demand edge construction subunit is used to construct communication demand edges based on the communication demand graph, with inspection equipment as nodes; the communication topology construction subunit is used to construct communication links that meet communication requirements on the HarmonyOS distributed soft bus based on the communication demand edges, allocate initial communication resources and routing paths to the communication links, and generate the globally optimal communication topology.
[0035] In this embodiment, when constructing communication demand edges, the demand edge construction subunit first reads the identified inspection devices in the communication demand graph and treats each inspection device as a communication modeling object. Then, it iterates through the communication demands between devices recorded in the communication demand graph, extracts the inspection device pairs with direct communication demands, and constructs a communication demand edge between the corresponding two inspection devices. This communication demand edge represents the connection relationship between the two inspection devices that need to transmit data or interact with each other during the inspection task execution. For example, when inspection device A needs to send the collected image data to inspection device B for processing, a communication demand edge is constructed between inspection device A and inspection device B. This process completes the construction of communication demand edges with inspection devices as nodes.
[0036] Next, when generating the globally optimal communication topology, the communication topology construction subunit first reads the constructed communication demand edges and, based on the HarmonyOS distributed soft bus, enables each inspection device to communicate. Then, for each communication demand edge, it establishes a communication link between the inspection devices at both ends of the edge in the HarmonyOS distributed soft bus, forming an actual data transmission channel between the corresponding inspection devices. After the communication link is established, the communication topology construction subunit allocates initial communication resources for the link and configures the corresponding routing path to indicate the transmission direction and forwarding order of data between the inspection devices. When a communication link cannot be directly established between the inspection devices at both ends of a communication demand edge, the communication topology construction subunit establishes a relay communication link through other inspection devices and writes the routing path composed of multiple communication links into the communication configuration of the inspection devices. After completing the configuration of communication links, communication resources, and routing paths corresponding to all communication demand edges, the communication topology construction subunit determines the overall communication structure composed of the above communication links as the globally optimal communication topology and uses this globally optimal communication topology as the initial communication topology network.
[0037] Furthermore, in the system provided in the application embodiment, the adjustment module 14 further includes: The detection unit is used for each inspection device to send detection data packets through the communication link with the neighboring device at a preset period, and to receive responses from the neighboring device, generating transmit and receive detection response data; the first judgment unit is used to judge the communication status of the communication link in real time based on the transmit and receive detection response data; the second judgment unit is used to judge whether the preset reconstruction conditions are met based on the communication status.
[0038] In this embodiment, during the inspection task, each inspection device repeatedly performs the detection process according to a preset cycle. At the start of each detection, the inspection device generates a detection data packet on the communication link corresponding to its neighboring device and sends it to the other end of the link. The detection data packet contains a sequence identifier to distinguish different detection rounds and transmission time information. Upon receiving the detection data packet, the neighboring device generates response data on the same communication link and returns it. The response data contains a sequence identifier consistent with the sequence identifier and response transmission time information. The sending inspection device receives the response data and records the response reception time information. The sending inspection device stores the sequence identifier, transmission time information, whether response data was received, and response reception time information of the detection data packet accordingly, forming transmit / receive detection response data. This ensures that each transmit / receive detection response data can represent the correspondence between a detection transmission and a response reception, as well as the corresponding time information.
[0039] Next, the first judgment unit determines the communication status of the communication link in real time based on the transmit and receive probe response data. In this process, it first determines whether the inspection devices at both ends of the communication link are in a fault offline state based on the interaction between probe data packets and response data in the transmit and receive probe response data. When it is determined that the inspection device at either end of the link is faulty and offline, the communication status of the communication link is determined to be a device fault. If no device fault is determined, the current quality index of the communication link is calculated based on the transmit and receive probe response data, and the current quality index is compared with a preset alarm threshold. When any of the current quality indices exceeds the alarm threshold, the communication status of the communication link is determined to be degraded, thus achieving real-time judgment of the communication link's communication status.
[0040] Finally, the second judgment unit determines whether the preset reconstruction conditions are met based on the communication status. In this process, the second judgment unit matches the communication status output by the first judgment unit with the pre-set reconstruction trigger rules, where the preset reconstruction conditions include at least equipment failure trigger conditions and communication quality degradation trigger conditions. When the communication status is determined to be equipment failure, the second judgment unit determines that the equipment failure trigger condition is met, meaning that the corresponding communication link cannot continue normal communication due to the offline status of the inspection equipment, and network topology reconstruction needs to be initiated. When the communication status is determined to be communication quality degradation, the second judgment unit further judges the duration of the communication quality degradation. If the communication quality degradation persists for multiple consecutive preset periods without recovering to a normal communication status, the communication quality degradation trigger condition is met. If the communication status is normal, or the communication quality degradation does not reach the consecutive preset period requirement, the preset reconstruction conditions are not met. Based on the above judgment results, the second judgment unit outputs a judgment result on whether the preset reconstruction conditions are met.
[0041] Furthermore, in the system provided in the application embodiment, the first determining unit further includes: The equipment fault judgment subunit is used to determine whether the equipment at both ends of the communication link is offline based on the transmit and receive probe response data. If so, the communication status of the communication link is equipment fault. The communication quality judgment subunit is used to calculate the current quality index of the communication link based on the transmit and receive probe response data if not. If any of the current quality indices exceeds the alarm threshold, the communication status of the communication link is communication quality deterioration.
[0042] Furthermore, the system provided in the application embodiments also includes: The current quality metrics include instantaneous signal strength, average communication latency, and short-term packet loss rate.
[0043] In this embodiment, when performing communication link status judgment, the equipment fault judgment subunit detects the online status of the inspection devices at both ends of the communication link based on the transmit and receive probe response data. Specifically, it compares the transmission record of each probe data packet within a preset statistical window with the corresponding response reception record. When a probe data packet does not receive response data with the same sequence identifier within a preset response waiting time, the probe is recorded as no response, and the number of no responses is accumulated over multiple consecutive preset periods. When the accumulated number of no responses reaches a preset offline judgment threshold, the equipment fault judgment subunit determines that at least one end of the communication link is in a fault offline state, and identifies the communication status of the communication link as a device fault. The device fault is used to characterize that the inspection device cannot participate in communication normally due to power failure, communication module malfunction, or system malfunction.
[0044] In the absence of equipment failure, the communication quality assessment subunit calculates the current quality indicators of the communication link based on the same batch of transmit and receive probe response data. The instantaneous signal strength is obtained by reading the signal strength parameter returned by the communication interface when receiving probe response data, and is used to reflect the signal reception level of the communication link at the current moment. The average communication delay is obtained by accumulating the time difference between the transmission time of probe data packets and the corresponding response reception time recorded in multiple successful probes within a preset statistical window, and dividing the accumulated result by the number of successful probes, and is used to reflect the data transmission timeliness of the communication link over a period of time. The short-term packet loss rate is obtained by counting the number of probe data packets that did not receive a response within a preset statistical window, and dividing this number by the total number of probe data packets sent within the statistical window, and is used to reflect the proportion of data loss in a short period of time.
[0045] After obtaining the instantaneous signal strength, average communication delay, and short-term packet loss rate, the communication quality judgment subunit compares the current quality indicators with pre-set alarm thresholds. Any situation where the instantaneous signal strength is lower than the corresponding signal strength threshold, the average communication delay is higher than the corresponding delay threshold, or the short-term packet loss rate is higher than the corresponding packet loss rate threshold is judged as an abnormal communication link quality. When any of the current quality indicators exceeds its corresponding alarm threshold, the communication quality judgment subunit determines the communication status of the communication link as deteriorated, thereby achieving a refined judgment of the communication link quality status without equipment failure.
[0046] Furthermore, in the system provided in the application embodiment, the adjustment module 14 further includes: When the preset reconstruction conditions are met, if the communication link's communication status is communication quality deterioration, the reconstruction decision result is local optimization. The devices at both ends of the link with deteriorated communication quality collaborate to find the optimal relay device among common neighbors, establish an alternative link, and update the local routing table to complete the adjustment of the initial communication topology network. When the preset reconstruction conditions are met, if the communication link's communication status is device failure, task reassignment is triggered. The subtasks of the inspection devices corresponding to the affected links are obtained and marked. The marked subtasks are reassigned to execution devices, and the topology of the relevant subnets is reconstructed based on the new task allocation scheme to complete the adjustment of the initial communication topology network.
[0047] In this embodiment, when the preset reconstruction conditions are met and the communication link's communication quality deteriorates, the reconstruction decision result is determined to be local optimization. The inspection devices at both ends of the deteriorated link collaboratively execute the communication path adjustment process. Specifically, the inspection devices at both ends of the communication link obtain the identifiers of neighboring devices that they can directly communicate with, and compare these identifiers to determine common neighbors. Common neighbors refer to inspection devices that can simultaneously establish communication connections with the inspection devices at both ends of the link. After obtaining common neighbors, the inspection devices at both ends of the communication link send probe data packets to each common neighbor and receive responses. They evaluate the common neighbors based on the instantaneous signal strength, average communication latency, and short-term packet loss rate obtained during the probe process, and determine the inspection device with the best communication quality and overall communication performance as the optimal relay device. Subsequently, the inspection devices at both ends of the communication link establish alternative links with the optimal relay device. These alternative links replace the original direct communication links with degraded communication quality, allowing data communication between the inspection devices at both ends of the link to be completed via the optimal relay device. After establishing the alternative links, the inspection devices at both ends of the communication link update their respective local routing tables, modifying the next-hop information that originally pointed to the degraded communication quality link to point to the optimal relay device, and write new data forwarding path information. This allows subsequent data to be forwarded via the alternative links according to the updated local routing tables, thereby completing a local adjustment of the initial communication topology network without changing the task allocation scheme.
[0048] When the preset reconfiguration conditions are met and the communication link status indicates a device failure, task reallocation is triggered, and the topology of the relevant subnet is reconfigured. Specifically, firstly, the faulty inspection device is located based on the communication link corresponding to the device failure, and the sub-tasks undertaken by the inspection device are retrieved from the task allocation scheme. The sub-tasks of the inspection devices corresponding to the affected links are obtained and marked. This marking indicates that the original inspection device executing the corresponding sub-task is unavailable. Subsequently, the execution devices are reassigned for the marked sub-tasks. That is, inspection devices whose capabilities meet the operation type of the marked sub-task are selected as candidate devices from the capability and status information of each inspection device. The suitability score for executing the marked sub-task is calculated for each candidate device. The suitability score is determined by the distance between the candidate device and the geographical coordinates of the target device or area of the marked sub-task, the current remaining energy level of the candidate device, and the current load status of the candidate device. After the suitability score is calculated, the marked sub-task is assigned to the candidate device with the highest suitability score, forming a new task allocation scheme. Then, based on the new task allocation scheme, the topology of the relevant subnets is reconstructed, the communication requirements related to the newly executed inspection equipment are regenerated, and a communication link corresponding to the communication object is established for the newly executed inspection equipment. At the same time, the local routing table of the relevant inspection equipment is updated to write the new routing path, so that the data communication relationship within the relevant subnets is consistent with the new task allocation scheme, thereby completing the adjustment of the initial communication topology network and restoring the normal execution of the inspection task.
[0049] In summary, the embodiments of this application have at least the following technical effects: This application receives inspection tasks, parses and decomposes them into multiple sub-tasks, acquires the capability and status information of each inspection device within the task area via the HarmonyOS distributed soft bus, assigns execution devices to the multiple sub-tasks based on the capability and status information of each inspection device, and forms a task allocation scheme. Based on the task allocation scheme, an initial communication topology network is constructed. During task execution, each inspection device periodically monitors the link communication quality with neighboring devices. When preset reconstruction conditions are met, a network topology reconstruction decision is initiated to dynamically adjust the initial communication topology network. This invention solves the technical problems of lack of effective coordination among multiple inspection devices, fixed communication topologies, and difficulty in adapting to changes in link quality in the prior art. By constructing a communication topology based on a task allocation scheme and monitoring and dynamically reconstructing the communication link quality during the inspection process, it achieves the technical effects of improved communication reliability and inspection coordination efficiency.
[0050] Example 2, based on the same inventive concept as the power grid collaborative intelligent inspection system based on the distributed characteristics of HarmonyOS in the previous examples, such as... Figure 2As shown, this application provides a power grid collaborative intelligent inspection method based on the distributed characteristics of HarmonyOS. The system and method embodiments in this application are based on the same inventive concept. The method includes: The system receives inspection tasks, parses and decomposes them into multiple sub-tasks, acquires the capability and status information of each inspection device within the task area via the HarmonyOS distributed soft bus, assigns execution devices to the multiple sub-tasks based on the capability and status information of each inspection device, and forms a task allocation scheme. Based on the task allocation scheme, an initial communication topology network is constructed. During task execution, each inspection device periodically monitors the link communication quality with neighboring devices. When preset reconstruction conditions are met, a network topology reconstruction decision is initiated to dynamically adjust the initial communication topology network.
[0051] Furthermore, the method also includes: Based on the task allocation scheme, a communication requirement diagram between devices is generated; based on the communication requirement diagram and the HarmonyOS distributed soft bus, a globally optimal communication topology is collaboratively generated as the initial communication topology network.
[0052] Furthermore, the method also includes: Based on the communication demand graph, communication demand edges are constructed with inspection equipment as nodes; based on the communication demand edges, communication links that meet the communication requirements are constructed on the HarmonyOS distributed soft bus, and initial communication resources and routing paths are allocated to the communication links to generate the globally optimal communication topology.
[0053] Furthermore, the method also includes: Each inspection device sends probe data packets to the peer of the communication link with the neighboring device according to a preset cycle, and receives responses from the neighboring device to generate transmit and receive probe response data; based on the transmit and receive probe response data, the communication status of the communication link is judged in real time; and the preset reconstruction conditions are judged according to the communication status.
[0054] Furthermore, the method also includes: Based on the transmit and receive probe response data, determine whether the devices at both ends of the communication link are offline. If so, the communication status of the communication link is device failure; if not, calculate the current quality index of the communication link based on the transmit and receive probe response data. If any of the current quality indices exceeds the alarm threshold, the communication status of the communication link is communication quality deterioration.
[0055] Furthermore, the method also includes: The current quality metrics include instantaneous signal strength, average communication latency, and short-term packet loss rate.
[0056] Furthermore, the method also includes: When the preset reconstruction conditions are met, if the communication link's communication status is communication quality deterioration, the reconstruction decision result is local optimization. The devices at both ends of the link with deteriorated communication quality collaborate to find the optimal relay device among common neighbors, establish an alternative link, and update the local routing table to complete the adjustment of the initial communication topology network. When the preset reconstruction conditions are met, if the communication link's communication status is device failure, task reassignment is triggered. The subtasks of the inspection devices corresponding to the affected links are obtained and marked. The marked subtasks are reassigned to execution devices, and the topology of the relevant subnets is reconstructed based on the new task allocation scheme to complete the adjustment of the initial communication topology network.
[0057] Furthermore, the method also includes: The description of the inspection task is parsed to extract geographical range constraints, required inspection equipment types, data types to be collected, and time window requirements to obtain task constraint information. Based on the task constraint information, the inspection task is decomposed into multiple sub-tasks, where each sub-task includes a task identifier, the geographical coordinates of the target equipment or area, the type of operation to be performed, and the temporal dependencies of the task execution.
[0058] Furthermore, the method also includes: The process iterates through the multiple subtasks. For each subtask, candidate devices whose capabilities meet the operation type are selected based on the capability and status information of each inspection device. The fit score of each candidate device for the corresponding subtask is calculated. The fit score comprehensively evaluates the geographical distance between the candidate device and the task target, the device's current remaining energy, the device's current load, and the matching accuracy with the task requirements. The subtask is then assigned to the candidate device with the highest fit score, generating the task allocation scheme that includes the task-device mapping relationship.
[0059] It should be noted that the order of the embodiments described above is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, the above description focuses on specific embodiments of this specification. The processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired results. In some implementations, multitasking and parallel processing are possible or may be advantageous.
[0060] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any modifications, equivalent changes, and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.
Claims
1. A power grid collaborative intelligent inspection system based on the distributed characteristics of HarmonyOS, characterized in that: include: The parsing and decomposition module is used to receive inspection tasks, parse and decompose the tasks to obtain multiple sub-tasks; The information acquisition module is used to acquire the capability and status information of each inspection device within the task area via the HarmonyOS distributed soft bus. The allocation module is used to allocate execution devices to the multiple sub-tasks based on the capability and status information of each inspection device, thereby forming a task allocation scheme. The adjustment module is used to construct an initial communication topology network based on the task allocation scheme. During task execution, each inspection device periodically monitors the link communication quality with neighboring devices. When the preset reconstruction conditions are met, the network topology reconstruction decision is initiated to dynamically adjust the initial communication topology network.
2. The power grid collaborative intelligent inspection system based on the distributed characteristics of HarmonyOS as described in claim 1, characterized in that, The adjustment module includes: A communication requirement diagram generation unit is used to generate a communication requirement diagram between devices based on the task allocation scheme. The topology network generation unit is used to collaboratively generate a globally optimal communication topology based on the communication requirements graph and the HarmonyOS distributed soft bus, which serves as the initial communication topology network.
3. The power grid collaborative intelligent inspection system based on the distributed characteristics of HarmonyOS as described in claim 2, characterized in that, The topology network generation unit includes: The demand edge construction subunit is used to construct a communication demand edge based on the communication demand graph, with the inspection equipment as the node; The communication topology construction subunit is used to construct communication links that meet the communication requirements on the HarmonyOS distributed soft bus based on the communication requirements, allocate initial communication resources and routing paths to the communication links, and generate the globally optimal communication topology.
4. The power grid collaborative intelligent inspection system based on the distributed characteristics of HarmonyOS as described in claim 1, characterized in that, The adjustment module includes: The detection unit is used by each inspection device to send detection data packets to the other end of the communication link with the neighboring device according to a preset period, and to receive the response from the neighboring device and generate the detection response data. The first judgment unit is used to judge the communication status of the communication link in real time based on the transmit and receive probe response data; The second judgment unit is used to determine whether the preset reconstruction conditions are met based on the communication status.
5. The power grid collaborative intelligent inspection system based on the distributed characteristics of HarmonyOS as described in claim 4, characterized in that, The first determination unit includes: The equipment fault judgment subunit is used to determine whether the equipment at both ends of the communication link is offline based on the transmit and receive probe response data. If so, the communication status of the communication link is equipment fault. The communication quality judgment subunit is used to calculate the current quality index of the communication link based on the transmit and receive probe response data if no. If any of the current quality indicators exceeds the alarm threshold, the communication status of the communication link is deteriorated.
6. The power grid collaborative intelligent inspection system based on the distributed characteristics of HarmonyOS as described in claim 5, characterized in that, The current quality metrics include instantaneous signal strength, average communication latency, and short-term packet loss rate.
7. The power grid collaborative intelligent inspection system based on the distributed characteristics of HarmonyOS as described in claim 5, characterized in that, The adjustment module includes: When the preset reconstruction conditions are met, if the communication quality of the communication link is deteriorated, the reconstruction decision result is local optimization. The devices at both ends of the link with deteriorated communication quality cooperate to find the optimal relay device among common neighbors, establish an alternative link, and update the local routing table to complete the adjustment of the initial communication topology network. When the preset reconstruction conditions are met, if the communication status of the communication link is a device failure, task reassignment is triggered. The sub-tasks of the inspection devices corresponding to the affected links are obtained and marked. The marked sub-tasks are reassigned to execution devices. Based on the new task allocation scheme, the topology of the relevant subnets is reconstructed to complete the adjustment of the initial communication topology network.
8. The power grid collaborative intelligent inspection system based on the distributed characteristics of HarmonyOS as described in claim 1, characterized in that, The analytical decomposition module includes: The parsing unit is used to parse the description of the inspection task, extract the geographical range constraints, the required inspection equipment type, the data type to be collected, and the time window requirements to obtain task constraint information. The decomposition unit is used to decompose the inspection task into multiple sub-tasks based on the task constraint information. Each sub-task includes a task identifier, the geographic coordinates of the target device or area, the type of operation to be performed, and the temporal dependencies of the task execution.
9. The power grid collaborative intelligent inspection system based on the distributed characteristics of HarmonyOS as described in claim 1, characterized in that, The allocation module includes: The traversal unit is used to traverse the multiple subtasks and, for each subtask, filter out all candidate devices whose capabilities meet the operation type based on the capability and status information of each inspection device. The allocation scheme generation unit is used to calculate the fit score of each candidate device for the corresponding sub-task. The fit score comprehensively evaluates the geographical distance between the candidate device and the task target, the current remaining energy of the device, the matching accuracy between the current load of the device and the task requirements, and allocates the sub-task to the candidate device with the highest fit score, thereby generating the task allocation scheme containing the task-device mapping relationship.
10. A power grid collaborative intelligent inspection method based on the distributed characteristics of HarmonyOS, characterized in that, The method is executed by the power grid collaborative intelligent inspection system based on the distributed characteristics of HarmonyOS, as described in any one of claims 1 to 9, and includes: Receive inspection tasks, analyze and decompose the tasks to obtain multiple sub-tasks; The capability and status information of each inspection device can be obtained within the task area through the HarmonyOS distributed soft bus. Based on the capability and status information of each inspection device, execution devices are assigned to the multiple sub-tasks to form a task allocation scheme; Based on the task allocation scheme, an initial communication topology network is constructed. During task execution, each inspection device periodically monitors the link communication quality with neighboring devices. When the preset reconstruction conditions are met, a network topology reconstruction decision is initiated to dynamically adjust the initial communication topology network.