Task scheduling device integrated in power distribution operation and maintenance system
By integrating the task scheduling device in the distribution operation and maintenance system, and using parallel communication and task management modules, the problem of low resource utilization efficiency during the distribution system operation and maintenance process is solved, and efficient parallel processing of test tasks and resource utilization is achieved.
Patent Information
- Application Number
- CN202411684802.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-03-14
AI Technical Summary
During the operation and maintenance of the distribution system, it is difficult for the prior art to effectively utilize the resources of the distribution system without affecting its normal use.
A task scheduling device integrated in the power distribution operation and maintenance system is designed, including a test operation and maintenance module, a parallel communication module and a parallel task management module. The device responds to the test operation and maintenance instructions through the test execution unit, generates a task execution process and sends the test task to the parallel communication module, and then sends the test case to the idle tester, receives and processes the test results.
The parallel processing of multiple test tasks is realized, the testing efficiency is improved, and the utilization of distribution system resources is reduced, thereby ensuring the normal use of the distribution system.
Smart Images

Figure CN119621270A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of power distribution network, and in particular to a task scheduling device integrated in a power distribution operation and maintenance system. Background Art
[0002] The distribution network can be understood as a power grid that receives electrical energy from the transmission network or regional power plants, and then distributes it locally or step by step according to voltage to various users through distribution facilities. In order to ensure the continuous operation of the distribution network, a distribution operation and maintenance system has emerged to operate and maintain the distribution system where the distribution network is located.
[0003] At present, when using the distribution operation and maintenance system to operate and maintain the distribution system, it is necessary to make full use of the resources in the distribution system, but this will affect the normal use of the distribution system and needs to be solved urgently. Summary of the invention
[0004] The embodiment of the present invention provides a task scheduling device integrated in a power distribution operation and maintenance system, which solves the problem of affecting the normal use of the power distribution system during the operation and maintenance of the power distribution system.
[0005] According to one aspect of the present invention, a task scheduling device integrated in a power distribution operation and maintenance system is provided, which may include:
[0006] A test operation and maintenance module and a parallel communication module electrically connected to the test operation and maintenance module; wherein the test operation and maintenance module includes a test execution unit, and the parallel communication module is electrically connected to a plurality of testers;
[0007] A test execution unit, used to respond to the test operation and maintenance instruction, obtain the test task for testing the object to be tested in the power distribution system, and create a task execution process for each test task;
[0008] The test execution unit is further used to send each test task to the corresponding task execution process, so that the task execution process generates a test case according to the received test task, and sends the test case to the parallel communication module;
[0009] The parallel communication module is used to send the received test cases to the idle testers in the idle state among the multiple testers, and receive the test results returned by the idle testers;
[0010] The test execution unit is also used to obtain the test results from the parallel communication module by scheduling the task execution process corresponding to the test results, so as to perform operation and maintenance work of the power distribution system based on the test results.
[0011] Optionally, the parallel communication module may include multiple communication threads; wherein the multiple communication threads are electrically connected to the multiple testers one by one;
[0012] The parallel communication module is specifically used for sending the received test cases to the idle tester in the idle state among the multiple testers through the communication thread electrically connected to the idle tester, and receiving the test results returned by the idle tester.
[0013] On this basis, optionally, the parallel communication module further includes a communication shared memory electrically connected to each communication thread; wherein the idle tester stores the test result in the communication shared memory via the electrically connected communication thread;
[0014] The test execution unit is also specifically used to obtain the test results from the communication shared memory by scheduling the task execution process corresponding to the test results, so as to perform operation and maintenance work of the power distribution system based on the test results.
[0015] On this basis, optionally, the communication shared memory includes a plurality of mutually independent regions; wherein the number of the plurality of regions is the same as the number of the plurality of communication threads, and the test results are stored in the regions corresponding to the electrically connected communication threads;
[0016] The test execution unit is also specifically used to obtain the test results from the area corresponding to the communication thread of the electrical connection by scheduling the task execution process corresponding to the test results, so as to perform operation and maintenance work of the power distribution system based on the test results.
[0017] Alternatively, the parallel communication module further comprises a polling unit electrically connected to the communication shared memory; wherein the polling unit is electrically connected to each task execution process;
[0018] The test execution unit is also specifically used to poll the polling unit by scheduling the task execution process corresponding to the test result, read the test result from the communication shared memory, and perform operation and maintenance work of the power distribution system based on the test result.
[0019] Optionally, the task scheduling device further includes: a parallel task management module electrically connected to the test operation and maintenance module; wherein the test operation and maintenance module further includes a test task generation unit and a database;
[0020] A test task generating unit, used for generating test tasks;
[0021] A parallel task management module is used to model the test task to obtain a target model and store the target model in a database;
[0022] The test execution unit is used to respond to the test operation and maintenance instructions, obtain the target model for testing the object to be tested in the power distribution system from the database, obtain the test task by analyzing the target model, and create a task execution process for each test task.
[0023] On this basis, optionally, the test task generation unit may include a scheduled inspection task management unit and / or a status evaluation unit; wherein,
[0024] A scheduled inspection task management unit is used to generate test tasks according to the scheduled inspection plan;
[0025] The state evaluation unit is used to evaluate the object to be tested to generate a test task.
[0026] Alternatively, the test execution unit is further specifically used to send each test task to the corresponding task execution process, so that the task execution process analyzes the received test task, generates a test case based on the task information and object information obtained by the analysis, and sends the test case to the parallel communication module, wherein the object information is the current information of the object to be tested.
[0027] Optionally, the test execution unit is further used to close the target execution process that has completed the test in all task execution processes.
[0028] Based on any of the above-mentioned task scheduling devices, optionally, the object to be tested may include a distribution terminal and / or a distribution feeder, and the test task includes a terminal task for testing the distribution terminal and / or a self-healing task for testing the distribution feeder.
[0029] The technical solution of the embodiment of the present invention can obtain the test task for testing the object to be tested in the power distribution system in response to the test operation and maintenance instruction through the test execution unit, and then create a task execution process for each test task; through the test execution unit, each test task is sent to the corresponding task execution process, so that the task execution process generates a test case according to the received test task, and sends the test case to the parallel communication module; then, through the parallel communication module, the received test case is sent to an idle tester in an idle state among multiple testers, and the test result returned by the idle tester is received; then, through the test execution unit, by scheduling the task execution process corresponding to the test result, the test result is obtained from the parallel communication module, so as to perform the operation and maintenance work of the power distribution system based on the test result. In the above technical solution, during the test process, the task execution process is generated according to the number of test tasks for testing, and the parallel processing of multiple test tasks can be realized, so that while ensuring the test efficiency, the occupation of resources in the power distribution system can be effectively reduced, thereby ensuring the normal use of the power distribution system.
[0030] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0032] Figure 1 It is a schematic diagram of optional examples of various task scheduling devices integrated in a power distribution operation and maintenance system provided by an embodiment of the present invention;
[0033] Figure 2 is a structural block diagram of a task scheduling device integrated in a power distribution operation and maintenance system provided by an embodiment of the present invention;
[0034] Figure 3 is a work flow chart of another task scheduling device integrated in a power distribution operation and maintenance system provided according to an embodiment of the present invention;
[0035] Figure 4 is a structural block diagram of another task scheduling device integrated in a power distribution operation and maintenance system provided according to an embodiment of the present invention;
[0036] Figure 5 is a structural block diagram of another task scheduling device integrated in a power distribution operation and maintenance system provided according to an embodiment of the present invention;
[0037] Figure 6 It is a flowchart of an optional example of another task scheduling device integrated in a power distribution operation and maintenance system provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0039] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. The situations of "target", "original", etc. are similar and will not be repeated here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0040] In order to more vividly understand the task scheduling device described in the following embodiments, the following examples are given as examples: Figure 1 The task scheduling device shown. For example, see Figure 1 The task scheduling device may include a test operation and maintenance module 1, a parallel task management module 2 and a parallel communication module 3; wherein,
[0041] The test operation and maintenance module 1 may include a scheduled inspection task management unit 11, a status evaluation unit 12, a test execution unit 13, a database 14, and a task execution process 1;
[0042] The parallel communication module 3 may include a polling unit 31 , a communication shared memory 32 and a communication thread 33 .
[0043] The task scheduling device can also work in conjunction with a tester.
[0044] Next, each of the above parts will be elaborated in detail.
[0045] Figure 2 This is a structural block diagram of a task scheduling device integrated in a power distribution operation and maintenance system provided by an embodiment of the present invention. This embodiment is applicable to the case where a power distribution system is operated and maintained through task scheduling in a power distribution operation and maintenance system, and is particularly applicable to the case where a power distribution system is operated and maintained through parallel task scheduling in a power distribution operation and maintenance system.
[0046] See also Figure 2 The task scheduling device integrated in the power distribution operation and maintenance system according to the embodiment of the present invention comprises: a test operation and maintenance module 1 and a parallel communication module 3 electrically connected to the test operation and maintenance module 1; wherein the test operation and maintenance module 1 comprises a test execution unit 13, and the parallel communication module 3 is electrically connected to a plurality of testers;
[0047] A test execution unit 13, for obtaining a test task for testing an object to be tested in the power distribution system in response to a test operation and maintenance instruction, and creating a task execution process 15 for each test task;
[0048] The test execution unit 13 is further used to send each test task to the corresponding task execution process 15, so that the task execution process 15 generates a test case according to the received test task, and sends the test case to the parallel communication module 3;
[0049] The parallel communication module 3 is used to send the received test cases to the idle testers in the idle state among the multiple testers, and receive the test results returned by the idle testers;
[0050] The test execution unit 13 is further used to obtain the test result from the parallel communication module 3 by scheduling the task execution process 15 corresponding to the test result, so as to perform operation and maintenance work of the power distribution system based on the test result.
[0051] Among them, the distribution system can also be called the distribution automation system; similarly, the distribution operation and maintenance system can also be called the distribution automation operation and maintenance system.
[0052] In combination with the application scenarios that may be involved in the embodiments of the present invention, optionally, the object to be tested includes a power distribution terminal and / or a power distribution feeder, and accordingly, the test task includes a terminal task for testing the power distribution terminal and / or a self-healing task for testing the power distribution feeder. Of course, the object to be tested and the test task may also be other situations, which can be set according to actual needs and are not specifically limited here.
[0053] The test execution unit 13 processes multiple test tasks in parallel by generating multiple task execution processes 15, that is, the test execution unit 13 realizes parallel processing of each test task by generating task execution processes 15 with the same number as the test tasks. The task execution process 15 can have the functions of test case generation, editing and distribution, as well as test process management and test result analysis.
[0054] Moreover, the test execution unit 13 can transmit various data generated by parallel processing to the parallel communication module 3, and the parallel communication module 3 is electrically connected to the tester to receive relevant data of the tester. In the embodiment of the present invention, optionally, the relevant data may include registration data and test interaction data.
[0055] To put it another way, the parallel communication module 3 is electrically connected to the test operation and maintenance module 1 to realize parallel processing of communication data during the test of the object to be tested. Moreover, the parallel communication module 3 is electrically connected to the tester to complete the adaptive registration and data interaction of the tester.
[0056] Specifically, during the test process, the test execution unit 13 can send the test task to the corresponding task execution process 15, and after the task execution process 15 completes registration and interaction with the tester, it can send the test case corresponding to the test task to multiple testers through the parallel communication module 3, so that multiple testers can complete the test process and realize parallel processing of multiple test tasks. Moreover, on this basis, the test results of multiple test tasks can be obtained, and the multiple test tasks are independent of each other, which ensures the test efficiency.
[0057] The technical solution of the embodiment of the present invention can obtain the test task for testing the object to be tested in the power distribution system in response to the test operation and maintenance instruction through the test execution unit, and then create a task execution process for each test task; through the test execution unit, each test task is sent to the corresponding task execution process, so that the task execution process generates a test case according to the received test task, and sends the test case to the parallel communication module; then, through the parallel communication module, the received test case is sent to an idle tester in an idle state among multiple testers, and the test result returned by the idle tester is received; then, through the test execution unit, by scheduling the task execution process corresponding to the test result, the test result is obtained from the parallel communication module, so as to perform the operation and maintenance work of the power distribution system based on the test result. In the above technical solution, during the test process, the task execution process is generated according to the number of test tasks for testing, and the parallel processing of multiple test tasks can be realized, so that while ensuring the test efficiency, the occupation of resources in the power distribution system can be effectively reduced, thereby ensuring the normal use of the power distribution system.
[0058] An optional technical solution is that the test execution unit 13 is also used to close the target execution process that has completed the test in all task execution processes 15.
[0059] In the above technical solution, after any task execution process 15 completes the test, the test execution unit 13 will close the task execution process 15 that has completed the test (i.e., the target execution process), that is, after completing part of the test, the corresponding task execution process 15 is closed, which is conducive to reducing system power consumption.
[0060] Figure 3It is a structural block diagram of another task scheduling device integrated in the power distribution operation and maintenance system provided by an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, the parallel communication module includes multiple communication threads; wherein the multiple communication threads are electrically connected to the multiple testers one by one; the parallel communication module is specifically used for sending the received test cases to the idle testers in the idle state among the multiple testers through the communication threads electrically connected to the idle testers, and receiving the test results returned by the idle testers. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here.
[0061] For details, see Figure 3 The task scheduling device integrated in the power distribution operation and maintenance system described in this embodiment includes: a test operation and maintenance module 1 and a parallel communication module 3 electrically connected to the test operation and maintenance module 1; wherein the test operation and maintenance module 1 may include a test execution unit 13, and the parallel communication module 3 includes a plurality of communication threads 33; the plurality of communication threads 33 are electrically connected to a plurality of testers one by one;
[0062] A test execution unit 13, for obtaining a test task for testing an object to be tested in the power distribution system in response to a test operation and maintenance instruction, and creating a task execution process 15 for each test task;
[0063] The test execution unit 13 is further used to send each test task to the corresponding task execution process 15, so that the task execution process 15 generates a test case according to the received test task, and sends the test case to the parallel communication module 3;
[0064] A parallel communication module 3 is used for sending the received test case to an idle tester in an idle state among the multiple testers through a communication thread 33 electrically connected to the idle tester, and receiving the test result returned by the idle tester;
[0065] The test execution unit 13 is further used to obtain the test result from the parallel communication module 3 by scheduling the task execution process 15 corresponding to the test result, so as to perform operation and maintenance work of the power distribution system based on the test result.
[0066] The communication threads 33 are electrically connected to the communication shared memory 32 and a plurality of testers, respectively, for transmitting relevant data to the communication shared memory 32, and the communication shared memory 32 can be used to store test results and relevant data. In an embodiment of the present invention, optionally, the number of task execution processes 15 and the number of communication threads 33 can be the same or different, and in particular can be the same, so as to ensure a one-to-one correspondence.
[0067] According to the technical solution of the embodiment of the present invention, the parallel communication module realizes electrical connection with the tester through multiple communication threads, especially realizes one-to-one electrical connection with multiple testers, so that the test case can be sent to the idle tester through the corresponding communication thread, further ensuring the test efficiency.
[0068] Figure 4 It is a structural block diagram of another task scheduling device integrated in the power distribution operation and maintenance system provided by an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, the parallel communication module also includes a communication shared memory electrically connected to each communication thread; wherein the idle tester stores the test results in the communication shared memory through the electrically connected communication thread; the test execution unit is also specifically used to obtain the test results from the communication shared memory by scheduling the task execution process corresponding to the test results, so as to perform the operation and maintenance of the power distribution system based on the test results. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here.
[0069] For details, see Figure 4 The task scheduling device integrated in the power distribution operation and maintenance system described in this embodiment includes: a test operation and maintenance module 1 and a parallel communication module 3 electrically connected to the test operation and maintenance module 1; wherein the test operation and maintenance module 1 includes a test execution unit 13, and the parallel communication module 3 may include multiple communication threads 33 and a communication shared memory 32 electrically connected to each communication thread 33; the multiple communication threads 33 are electrically connected to multiple testers one by one;
[0070] A test execution unit 13, for obtaining a test task for testing an object to be tested in the power distribution system in response to a test operation and maintenance instruction, and creating a task execution process 15 for each test task;
[0071] The test execution unit 13 is further used to send each test task to the corresponding task execution process 15, so that the task execution process 15 generates a test case according to the received test task, and sends the test case to the parallel communication module 3;
[0072] A parallel communication module 3 is used for sending the received test case to an idle tester in an idle state among the multiple testers through a communication thread 33 electrically connected to the idle tester, and receiving the test result returned by the idle tester, wherein the idle tester stores the test result in a communication shared memory 32 through the electrically connected communication thread 33;
[0073] The test execution unit 13 is further used to obtain the test result from the communication shared memory 32 by scheduling the task execution process 15 corresponding to the test result, so as to perform operation and maintenance work of the power distribution system based on the test result.
[0074] According to the technical solution of the embodiment of the present invention, the idle tester stores the test results in the communication shared memory through the electrically connected communication thread, so that the task execution process can read the test results from the communication shared memory, thereby ensuring the effective reading of the test results.
[0075] An optional technical solution, the communication shared memory 32 includes multiple independent areas; wherein the number of the multiple areas is the same as the number of the multiple communication threads 33, and the test results can be stored in the area corresponding to the electrically connected communication thread 33;
[0076] The test execution unit 13 is also specifically used to obtain the test result from the area corresponding to the electrically connected communication thread 33 by scheduling the task execution process 15 corresponding to the test result, so as to perform operation and maintenance work of the power distribution system based on the test result.
[0077] In the above technical solution, the communication shared memory 32 is divided into multiple areas according to the number of communication threads 33, and the multiple areas are independent of each other, so that the task execution process 15 can read the test results from the corresponding area, ensuring the accuracy of the test result reading.
[0078] Another optional technical solution, the parallel communication module 3 further includes a polling unit 31 electrically connected to the communication shared memory 32; wherein the polling unit 31 is electrically connected to each task execution process 15;
[0079] The test execution unit 13 is also specifically used to poll the polling unit 31 by scheduling the task execution process 15 corresponding to the test result, read the test result from the communication shared memory 32, and perform operation and maintenance work of the power distribution system based on the test result.
[0080] In the above technical solution, the test results of the tester after completing the test are sent to the communication shared memory 32 through the communication thread 33, and then the corresponding task execution process 15 obtains the test results in the communication shared memory 32 in turn by polling the polling unit 31, that is, the task execution process 15 is electrically connected to the communication shared memory 32 through the polling unit 31, so as to call the test results through the polling unit 31 and analyze them.
[0081] Figure 5It is a structural block diagram of another task scheduling device integrated in the power distribution operation and maintenance system provided by an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, the above-mentioned task scheduling device may also include: a parallel task management module electrically connected to the test operation and maintenance module; wherein the test operation and maintenance module also includes a test task generation unit and a database; the test task generation unit is used to generate test tasks; the parallel task management module is used to model the test tasks to obtain the target model, and store the target model in the database; the test execution unit is used to respond to the test operation and maintenance instructions, obtain the target model for testing the object to be tested in the power distribution system from the database, obtain the test task by analyzing the target model, and create a task execution process for each test task. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here.
[0082] For details, see Figure 5 The task scheduling device integrated in the power distribution operation and maintenance system described in this embodiment includes: a test operation and maintenance module 1 and a parallel communication module 3 and a parallel task management module 2 electrically connected to the test operation and maintenance module 1; wherein the test operation and maintenance module 1 includes a test task generation unit, a database 14 and a test execution unit 13, and the parallel communication module 3 is electrically connected to a plurality of testers;
[0083] A test task generating unit, used for generating a test task, wherein the test task can be used for testing an object to be tested in a power distribution system;
[0084] A parallel task management module 2 is used to model the test task to obtain a target model, and then store the target model in a database 14;
[0085] The test execution unit 13 is used to obtain the target model from the database 14 in response to the test operation and maintenance instruction, obtain the test task by analyzing the target model, and create a task execution process 15 for each test task;
[0086] The test execution unit 13 is further used to send each test task to the corresponding task execution process 15, so that the task execution process 15 generates a test case according to the received test task, and sends the test case to the parallel communication module 3;
[0087] The parallel communication module 3 is used to send the received test cases to the idle testers in the idle state among the multiple testers, and receive the test results returned by the idle testers;
[0088] The test execution unit 13 is further used to obtain the test result from the parallel communication module 3 by scheduling the task execution process 15 corresponding to the test result, so as to perform operation and maintenance work of the power distribution system based on the test result.
[0089] Among them, the test tasks generated by the test task generation unit can be stored in the database in the form of a linked list structure as a task source for task execution management. On this basis, optionally, each time a task is added, a corresponding record can be added to the database to facilitate subsequent calls to multiple test tasks in the database.
[0090] The parallel task management module 2 is electrically connected to the test operation and maintenance module 1, and is used to perform offline modeling of the test tasks to obtain the target model during the test process of the object to be tested, and to manage multiple different target models in parallel, and then perform parallel testing of multiple test tasks based on the generated target models.
[0091] The technical solution of the embodiment of the present invention realizes the effective generation and parallel testing of test tasks through the mutual cooperation of the test task generation unit and the parallel task management module.
[0092] An optional technical solution, the test task generation unit includes a scheduled inspection task management unit 11 and / or a state evaluation unit 12; wherein,
[0093] The scheduled inspection task management unit 11 is used to generate test tasks according to the scheduled inspection plan;
[0094] The state evaluation unit 12 is used to evaluate the object to be tested to generate a test task.
[0095] The above technical solution realizes the effective generation of test tasks in different ways through the scheduled inspection task management unit and / or the status evaluation unit.
[0096] Another optional technical solution, the test execution unit 13, is also specifically used to send each test task to the corresponding task execution process 15, so that the task execution process 15 analyzes the received test task, and generates a test case based on the task information and object information obtained by the analysis, and sends the test case to the parallel communication module 3, wherein the object information is the current information of the object to be tested.
[0097] In order to better understand the present technical solution, the following further exemplary description is given in combination with the above examples.
[0098] Exemplarily, the task information may include at least one of the following: sequentially arranged task number, task time, task object number, task type, object data number, and task nature, etc. Each test task corresponds to only one task object number.
[0099] On this basis, optionally, the nature of the task may include a state assessment generation task and a scheduled inspection generation task, and the task type may include a terminal task and a self-healing task. Each item in the target model uses a digital identifier, and the digital identifier may include an identifier header sequence number and an identifier content. Multiple digital identifiers can be arranged according to the identifier header sequence number to form a target model. In this example, by using a digital identifier for each item, and arranging the digital identifiers according to the identifier header sequence number to form a target model, since the digital identifier includes the identifier header sequence number and the identifier content, it is sorted according to the identifier header sequence number to be stored in the database for quick call.
[0100] It should be noted that each test task corresponds to only one digital identifier, and the digital identifiers of different test tasks are different to avoid duplication and data confusion.
[0101] In this example, optionally, the target model may also be referred to as a test task data model.
[0102] As another example, for a power distribution terminal, its object information may include at least one of the following: a first data number, a terminal number, a degradation parameter plant station number, a degradation parameter data type number, and a degradation parameter data value, etc. Among them, the first data number corresponds to the object data number in the target model; the terminal number is the unique number of the power distribution terminal in the parameter library; the degradation parameter plant station number, the degradation parameter data type number, and the degradation parameter data value correspond to the current power distribution terminal.
[0103] Since the corresponding test cases need to be generated after the terminal task is generated, the corresponding test cases are generated here according to the actual situation of the power distribution terminal to ensure more accurate test results. In this example, by providing the degradation parameter plant station number, degradation parameter data type number and degradation parameter data value, it is convenient to generate more matching test cases and improve the accuracy of subsequent test results.
[0104] In this example, optionally, the object information of the power distribution terminal may also be referred to as a terminal test data model.
[0105] As another example, for a distribution feeder, its object information may include at least one of the following: a second data number, a feeder number, a feeder automation type, a line topology, and a fault type. Among them, the second data number corresponds to the object data number in the target model; the feeder number is the unique number of the distribution feeder in the parameter library; the feeder automation type may include at least one of voltage-time type, centralized type, intelligent distributed type, optical differential self-healing type, and master station coordinated recovery type; the line topology uses the XML format with reference to SVG to describe the topology of the distribution feeder, so as to facilitate inclusion in the database. In this way, by analyzing the distribution feeder currently being tested and determining the feeder status, a test case that better meets the requirements can be formulated.
[0106] In this example, optionally, the object information of the distribution feeder may also be referred to as a self-healing task data model.
[0107] The above technical solution improves the matching between the test case and the object to be tested.
[0108] On this basis, in order to better understand the above technical solutions, the following will change the angle and explain from the perspective of the method flow. Figure 6 , the specific implementation steps are as follows:
[0109] S1. Determine the object to be tested in the power distribution system, and generate a corresponding test task according to the object to be tested;
[0110] S2, offline modeling of the test task to obtain a target model, and storing the target model in a database;
[0111] S3, create multiple task execution processes to process multiple test tasks in parallel;
[0112] S4. Call the relevant data stored in the communication shared memory in sequence through thread polling, and analyze them in combination with the test results to complete the parallel testing process of multiple test tasks.
[0113] In the above example, the task execution process is generated according to the number of test tasks for testing, which can realize parallel processing of multiple test tasks, thereby effectively reducing the occupation of resources in the power distribution system while ensuring the test efficiency, thereby ensuring the normal operation of the untested objects.
[0114] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A task scheduling device integrated in a power distribution operation and maintenance system, characterized in that: include: A test operation and maintenance module and a parallel communication module electrically connected to the test operation and maintenance module; wherein the test operation and maintenance module includes a test execution unit, and the parallel communication module is electrically connected to a plurality of testers; The test execution unit is used to respond to the test operation and maintenance instruction, obtain the test task for testing the object to be tested in the power distribution system, and create a task execution process for each of the test tasks; The test execution unit is further used to send each of the test tasks to the corresponding task execution process, so that the task execution process generates a test case according to the received test task, and sends the test case to the parallel communication module; The parallel communication module is used to send the received test case to an idle tester in an idle state among the multiple testers, and receive the test result returned by the idle tester; The test execution unit is further used to obtain the test result from the parallel communication module by scheduling the task execution process corresponding to the test result, so as to perform operation and maintenance work of the power distribution system based on the test result.
2. The device according to claim 1, characterized in that The parallel communication module includes a plurality of communication threads; wherein the plurality of communication threads are electrically connected to the plurality of testers one by one; The parallel communication module is specifically used to send the received test cases to an idle tester in an idle state among the multiple testers through the communication thread electrically connected to the idle tester, and receive the test results returned by the idle tester.
3. The device according to claim 2, characterized in that The parallel communication module further comprises a communication shared memory electrically connected to each of the communication threads; wherein the idle tester stores the test result in the communication shared memory via the electrically connected communication threads; The test execution unit is further specifically used to obtain the test result from the communication shared memory by scheduling the task execution process corresponding to the test result, so as to perform operation and maintenance work of the power distribution system based on the test result.
4. The device according to claim 3, characterized in that The communication shared memory includes a plurality of areas independent of each other; wherein the number of the plurality of areas is the same as the number of the plurality of communication threads, and the test results are stored in the areas corresponding to the electrically connected communication threads; The test execution unit is further specifically used to obtain the test result from the area corresponding to the electrically connected communication thread by scheduling the task execution process corresponding to the test result, so as to perform operation and maintenance work of the power distribution system based on the test result.
5. The device according to claim 3, characterized in that The parallel communication module further comprises a polling unit electrically connected to the communication shared memory; wherein the polling unit is electrically connected to each of the task execution processes; The test execution unit is further specifically used to poll the polling unit by scheduling the task execution process corresponding to the test result, read the test result from the communication shared memory, and perform operation and maintenance work of the power distribution system based on the test result.
6. The device according to claim 1, characterized in that Also includes: A parallel task management module electrically connected to the test operation and maintenance module; wherein the test operation and maintenance module further includes a test task generation unit and a database; The test task generating unit is used to generate the test task; The parallel task management module is used to model the test task to obtain a target model, and store the target model in the database; The test execution unit is specifically used to respond to the test operation and maintenance instructions, obtain the target model for testing the object to be tested in the power distribution system from the database, obtain the test task by analyzing the target model, and create a task execution process for each test task.
7. The device according to claim 6, characterized in that The test task generation unit includes a scheduled inspection task management unit and / or a status evaluation unit; wherein, The scheduled inspection task management unit is used to generate the test task according to the scheduled inspection plan; The state evaluation unit is used to evaluate the object to be tested to generate the test task.
8. The device according to claim 6, characterized in that: The test execution unit is also specifically used to send each of the test tasks to the corresponding task execution process, so that the task execution process analyzes the received test tasks, and generates test cases based on the task information and object information obtained from the analysis, and sends the test cases to the parallel communication module, wherein the object information is the current information of the object to be tested.
9. The device according to claim 1, characterized in that: The test execution unit is further used to close the target execution process that has completed the test in all the task execution processes.
10. The device according to any one of claims 1 to 9, characterized in that The object to be tested includes a power distribution terminal and / or a power distribution feeder, and the test task includes a terminal task for testing the power distribution terminal and / or a self-healing task for testing the power distribution feeder.
Citation Information
Patent Citations
Multi-task test method, device and equipment of FA, medium and program product
CN118656233A