Terminal remote control test method, device, storage medium and electronic equipment
By disconnecting communication between the terminal to be tested and the main station of the distribution network in the distribution network automation system, and generating and sending test instructions, the problem of low debugging efficiency of remote control function in the existing technology is solved, and a more flexible and efficient testing process is achieved. And improve the accuracy and efficiency of the test.
Patent Information
- Application Number
- CN202411608922.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-11-12
AI Technical Summary
When debugging the remote control function of distribution terminals in distribution automation systems, the existing technology requires multiple people to jointly control it, and the test content is single, resulting in low testing efficiency.
When the communication connection between the terminal to be tested and the distribution network main station is disconnected, the test command is generated according to the preset terminal control instructions, the test command is sent to the terminal to be tested, and its response data is received to determine the remote control test result.
This method makes the testing process more flexible and efficient, and can more comprehensively simulate various situations that may be encountered in actual operation of the power distribution terminal, improves the efficiency and accuracy of the remote control function test of the power distribution terminal, and reduces labor costs and work quantity.
Smart Images

Figure CN119125737B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of remote control debugging of electric power equipment, and in particular to a remote control testing method, device, storage medium and electronic equipment of a terminal. Background Art
[0002] The distribution automation terminal is a field device used to monitor and control the distribution network in the distribution network automation system. It is mainly composed of measurement and control terminals, communication terminals, power supplies, etc. It monitors the distribution network in real time and can analyze the operating parameters and status of the power grid, providing timely and accurate information for the dispatching, operation and management of the distribution network. The distribution automation terminal is generally on the medium voltage side of the distribution network, including 35, 10, and 6kV voltage levels. It is widely used in rural areas, cities, large factories, mines, large commercial areas, high-rise buildings, etc., and is of great significance to the operation and management of the distribution network. The distribution network automation system is mainly used in the distribution network, which can realize real-time monitoring, fault judgment, rapid isolation, power restoration, network reconstruction, etc. of the distribution network.
[0003] On-site debugging and operation and maintenance are of great significance to the equipment management, system operation and maintenance, and on-site equipment installation and debugging of distribution automation terminals. They mainly include remote control function correctness verification, remote control priority processing, remote control status and accident information, etc. Among them, remote control function correctness verification is an important debugging content. It is the basis for determining that the distribution automation terminal has the local remote control function. It is of great significance to ensure the normal operation of the distribution network and improve the reliability of power supply. The remote control function correctness verification can be carried out by on-site debugging and operation and maintenance personnel through the master station system information debugging to remotely test the distribution automation terminal. The remote control function correctness verification is realized by on-site testing. Since on-site debugging and operation and maintenance personnel need to go to the site for testing, it not only reduces work efficiency, but also increases operation and maintenance costs.
[0004] Regarding the problem of low testing efficiency when debugging the remote control function of the distribution terminal in the distribution network automation system in the related technology, no effective solution has been proposed so far because the existing remote control operation debugging requires joint control by multiple people and the test content is single, which wastes time and energy. Summary of the invention
[0005] The main purpose of the present application is to provide a remote control test method, device, storage medium and electronic device for a terminal, so as to solve the problem of low test efficiency in the related art when debugging the remote control function of the distribution terminal in the distribution network automation system, because the existing remote control operation debugging requires joint control by multiple people, and the test content is single, which wastes time and energy.
[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a remote control testing method for a terminal is provided, the method is applied to a distribution network automation system, the distribution network automation system at least includes: a terminal to be tested, a distribution network master station, the distribution network master station is used to control the terminals in the distribution network automation system, the method includes: when it is detected that the communication connection between the terminal to be tested and the distribution network master station is disconnected, generating a test instruction according to a preset terminal control instruction, wherein the preset terminal control instruction includes at least one of the following: a first instruction, a second instruction, the execution priority of the first instruction is higher than the execution priority of the second instruction; sending the test instruction to the terminal to be tested, and receiving first response data of the terminal to be tested in response to the test instruction; determining the remote control test result of the terminal to be tested according to the first response data.
[0007] Furthermore, generating a test instruction based on a preset terminal control instruction includes: determining a first preset instruction as the first instruction, wherein the first preset instruction is an instruction for controlling the terminal in the distribution network automation system by remote control; determining a second preset instruction as the second instruction, wherein the second preset instruction is an instruction for obtaining terminal information of any terminal in the distribution network automation system; combining the first instruction and the second instruction, and generating the test instruction based on the combined instruction.
[0008] Furthermore, the first instruction and the second instruction are combined, and the test instruction is generated based on the combined instruction, including: determining at least one execution order between the first instruction and the second instruction; for each execution order in the at least one execution order, generating an instruction sequence based on the execution order, the first instruction and the second instruction to obtain an instruction sequence corresponding to each execution order; and generating the test instruction based on the instruction sequence corresponding to each execution order in the at least one execution order.
[0009] Further, the instruction sequence includes at least one first instruction and at least one second instruction, and the test instruction is generated according to the instruction sequence corresponding to each execution order in the at least one execution order, including: for the instruction sequence corresponding to each execution order, determining the execution interval duration between each instruction in the instruction sequence, wherein the execution interval duration includes at least one of the following: the execution interval duration between the at least one first instruction and the at least one second instruction, the execution interval duration between each first instruction in the at least one first instruction, and the execution interval duration between each second instruction in the at least one second instruction; the test instruction is generated according to the instruction sequence corresponding to each execution order in the at least one execution order and the execution interval duration between each instruction in the instruction sequence.
[0010] Furthermore, generating a test instruction based on a preset terminal control instruction includes: determining a first preset instruction as the first instruction, wherein the first preset instruction is an instruction for controlling the terminal by remote control; determining a third preset instruction as the second instruction, wherein the third preset instruction is an instruction for adjusting the time information of any terminal in the distribution network automation system; combining the first instruction and the second instruction, and generating the test instruction based on the combined instruction.
[0011] Further, determining the remote control test result of the terminal to be tested based on the first response data includes: determining a first order based on the execution priority of the first instruction and the execution priority of the second instruction; determining a second order based on the first response data, wherein the second order refers to the order in which the terminal to be tested executes the first instruction and the second instruction; comparing the first order and the second order to obtain a comparison result; when the comparison result is that the order is the same and the first response data indicates that the terminal to be tested correctly executes the first instruction, determining that the remote control function of the terminal to be tested is normal as the test result; when the comparison result is that the order is not the same, or the first response data indicates that the terminal to be tested does not correctly execute the first instruction, determining that the remote control function of the terminal to be tested is abnormal as the test result.
[0012] Furthermore, before sending the test instruction to the terminal to be tested, the method also includes: determining the control operation of the distribution network master station on the terminal to be tested, and generating a third instruction based on the control operation, wherein the third instruction is used to test the function of the terminal to be tested to receive instructions; sending the third instruction to the terminal to be tested; and upon receiving second response data of the terminal to be tested in response to the third instruction, executing the step of sending the test instruction to the terminal to be tested.
[0013] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a remote control test device for a terminal is provided, the device is applied to a distribution network automation system, the distribution network automation system at least includes: a terminal to be tested, a distribution network master station, the distribution network master station is used to control the terminals in the distribution network automation system, the device includes: a first generating unit, used to generate a test instruction according to a preset terminal control instruction when it is detected that the communication connection between the terminal to be tested and the distribution network master station is disconnected, wherein the preset terminal control instruction includes at least one of the following: a first instruction, a second instruction, the execution priority of the first instruction is higher than the execution priority of the second instruction; a receiving unit, used to send the test instruction to the terminal to be tested, and receive first response data of the terminal to be tested in response to the test instruction; a determining unit, used to determine the remote control test result of the terminal to be tested according to the first response data.
[0014] Further, the first generating unit includes: a first determining subunit, used to determine a first preset instruction as the first instruction, wherein the first preset instruction is an instruction for controlling the terminal in the distribution network automation system by remote control; a second determining subunit, used to determine a second preset instruction as the second instruction, wherein the second preset instruction is an instruction for obtaining terminal information of any terminal in the distribution network automation system; a first generating subunit, used to combine the first instruction and the second instruction, and generate the test instruction based on the combined instruction.
[0015] Furthermore, the generation subunit includes: a determination module, used to determine at least one execution order between the first instruction and the second instruction; a first generation module, used to generate an instruction sequence for each execution order in the at least one execution order according to the execution order, the first instruction and the second instruction, to obtain an instruction sequence corresponding to each execution order; and a second generation module, used to generate the test instruction according to the instruction sequence corresponding to each execution order in the at least one execution order.
[0016] Further, the instruction sequence includes at least one first instruction and at least one second instruction, and the second generating module includes: a determining submodule, used to determine, for the instruction sequence corresponding to each execution order, the execution interval duration between each instruction in the instruction sequence, wherein the execution interval duration includes at least one of the following: the execution interval duration between the at least one first instruction and the at least one second instruction, the execution interval duration between each first instruction in the at least one first instruction, and the execution interval duration between each second instruction in the at least one second instruction; and a generating submodule, used to generate the test instruction based on the instruction sequence corresponding to each execution order in the at least one execution order and the execution interval duration between each instruction in the instruction sequence.
[0017] Furthermore, the first generating unit includes: a third determining subunit, used to determine a first preset instruction as the first instruction, wherein the first preset instruction is an instruction for controlling the terminal by remote control; a fourth determining subunit, used to determine a third preset instruction as the second instruction, wherein the third preset instruction is an instruction for adjusting the time information of any terminal in the distribution network automation system; a second generating subunit, used to combine the first instruction and the second instruction, and generate the test instruction based on the combined instruction.
[0018] Further, the determination unit includes: a fifth determination subunit, used to determine a first order based on an execution priority of the first instruction and an execution priority of the second instruction; a sixth determination subunit, used to determine a second order based on the first response data, wherein the second order refers to the order in which the terminal to be tested executes the first instruction and the second instruction; a comparison subunit, used to compare the first order and the second order to obtain a comparison result; a seventh determination subunit, used to determine that the remote control function of the terminal to be tested is normal as the test result when the comparison result is that the order is the same and the first response data indicates that the terminal to be tested correctly executes the first instruction; an eighth determination subunit, used to determine that the remote control function of the terminal to be tested is abnormal as the test result when the comparison result is that the order is different or the first response data indicates that the terminal to be tested does not correctly execute the first instruction.
[0019] Furthermore, the device also includes: a second generating unit, used to determine the control operation of the distribution network master station on the terminal to be tested before sending the test instruction to the terminal to be tested, and generate a third instruction based on the control operation, wherein the third instruction is used to test the function of the terminal to be tested to receive instructions; a sending unit, used to send the third instruction to the terminal to be tested; and an execution unit, used to execute the step of sending the test instruction to the terminal to be tested when receiving second response data of the terminal to be tested in response to the third instruction.
[0020] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements the remote control testing method of the terminal described in any one of the above items, and which, when executed by a processor, implements the steps of the remote control testing method of the terminal described in each embodiment of the present application.
[0021] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes stored computer instructions, wherein when the computer instructions are executed by a processor, any one of the above-mentioned terminal remote control testing methods is implemented.
[0022] In order to achieve the above-mentioned purpose, according to one aspect of the present application, an electronic device is provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement any of the above-mentioned terminal remote control testing methods.
[0023] Through the present application, the following steps are adopted: when it is detected that the communication connection between the terminal to be tested and the distribution network master station is disconnected, a test instruction is generated according to a preset terminal control instruction, wherein the preset terminal control instruction includes at least one of the following: a first instruction, a second instruction, and the execution priority of the first instruction is higher than the execution priority of the second instruction; the test instruction is sent to the terminal to be tested, and a first response data of the terminal to be tested in response to the test instruction is received; the remote control test result of the terminal to be tested is determined according to the first response data, which solves the problem of low test efficiency in the related technology that when debugging the remote control function of the distribution network terminal in the distribution network automation system, the existing remote control operation debugging requires joint control by multiple people, and the test content is single, which wastes time and energy. By generating and sending test instructions when the communication connection between the terminal to be tested and the distribution network master station is disconnected, the test process is not restricted or interfered by the actual distribution network master station, making the test process more flexible and efficient. At the same time, by integrating unconventional commands into the test instructions, it is possible to more comprehensively simulate various situations that the distribution terminal may encounter in actual operation, including incidental events that do not often occur in normal operation, ensuring the performance of the distribution terminal under various complex conditions, improving the efficiency and accuracy of the distribution terminal remote control function test, achieving the effect of improving the inspection standards and quality of the distribution terminal before entering the network, and further achieving the effect of improving the operation stability of the distribution network automation system. In addition, the traditional test method requires the cooperation of the distribution network master station and the collaboration of multiple positions on site. The present method can be completed independently by a single tester or an automation system, which not only greatly reduces the debugging time, but also significantly reduces the work intensity of the debugging personnel, greatly reducing the labor cost and workload. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0025] Figure 1 is a flowchart of a remote control test method for a terminal provided in Embodiment 1 of the present application;
[0026] Figure 2 This is a schematic diagram of a data flow in an optional terminal remote control test method provided in Embodiment 1 of the present application. Figure 1 ;
[0027] Figure 3 This is a schematic diagram of a data flow in an optional terminal remote control test method provided in Embodiment 1 of the present application. Figure 2 ;
[0028] Figure 4is a schematic diagram of a remote control test device for a terminal provided in Embodiment 2 of the present application;
[0029] Figure 5 It is a schematic diagram of a remote control test electronic device of a terminal provided in Embodiment 5 of the present application. DETAILED DESCRIPTION
[0030] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0031] It should be noted that the user information (including but not limited to user device information, user personal information, collected data, used data, generated data, processed data, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, collected information, used information, generated information, processed information, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with the relevant laws, regulations and standards of relevant countries and regions, necessary confidentiality measures are taken, and public order and good customs are not violated, and corresponding operation entrances are provided for users to choose to authorize or refuse. For example, an interface is set up between this system and relevant users or institutions. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or institution through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or institution.
[0032] It should be noted that this application provides users with corresponding operation entrances for them to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.
[0033] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations 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.
[0035] Embodiment 1
[0036] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flowchart of a remote control test method for a terminal provided in Embodiment 1 of the present application, such as Figure 1 As shown, the method is applied to a distribution network automation system, the distribution network automation system at least includes: a terminal to be tested and a distribution network master station, the distribution network master station is used to control the terminal in the distribution network automation system, and the method includes the following steps:
[0037] Step S101, when it is detected that the communication connection between the terminal to be tested and the distribution network master station is disconnected, a test instruction is generated according to a preset terminal control instruction, wherein the preset terminal control instruction includes at least one of the following: a first instruction, a second instruction, and the execution priority of the first instruction is higher than the execution priority of the second instruction.
[0038] The executor of the remote control test method of the terminal provided in the first embodiment of the present application may be a master control module in the distribution network automation system. The master control module is responsible for generating analog signals, which may be remote control commands, general call commands, timing signals, etc., and then sending them to the distribution terminal to be tested through the communication interface module in the distribution network automation system. The master control module can also freely combine these commands to test the ability of the distribution terminal to respond to remote control commands under different circumstances. During the debugging process of the distribution network automation system, the commands issued by the master control module have a higher priority than other commands to ensure that the distribution terminal can correctly receive and execute remote control commands even in a complex data transmission environment. By observing the actual switching action of the distribution terminal, the master control module can determine the correctness of its remote control function, thereby improving the accuracy and efficiency of the test.
[0039] In the first embodiment of the present invention, when it is detected that the communication connection between the terminal to be tested and the distribution network master station is disconnected, a test instruction is generated by the master control module according to a preset terminal control instruction. The preset terminal control instruction refers to a control instruction pre-set during the test process for simulating the distribution network master station to send to the distribution terminal to be tested (i.e., the above-mentioned terminal to be tested), mainly including remote control instructions (i.e., the above-mentioned first instruction) and other instructions (i.e., the above-mentioned second instruction).
[0040] The first instruction usually refers to the remote control command, which is a command used to control the power distribution terminal (e.g., circuit breaker) to perform opening and closing operations. During the test of the remote control command, the execution priority of the first instruction is set to the highest, which means that when the first instruction and the second instruction are received at the same time, the power distribution terminal to be tested will give priority to the first instruction to ensure the reliability and priority of the remote control function.
[0041] The second instruction may be other types of commands besides the remote control command, such as a general call command (used to obtain the status information of the power distribution terminal), a time synchronization command (used to synchronize the time of the power distribution terminal), etc. The execution priority of these commands is lower than that of the first instruction (i.e., the remote control command), so when the first instruction (remote control command) and the second instruction are received at the same time, the execution of the second instruction will be delayed or paused to ensure the priority execution of the remote control command.
[0042] In an optional embodiment, when the communication link between the distribution terminal to be tested and the distribution network master station is disconnected, the master control module generates a test instruction according to the above-mentioned preset terminal control instruction. The generation and execution of the test instruction is the master control module simulating the interaction process between the distribution network master station and the distribution terminal, but in this process, the master control module will add a second instruction (such as a general call command or a time synchronization command) while sending the remote control command to test whether the execution of the first instruction (remote control command) is affected when the distribution terminal receives an unconventional command.
[0043] By observing the switching action and response of the distribution terminal after receiving the first instruction and the second instruction, the correctness and robustness of the remote control function of the distribution terminal can be judged. Not only the direct response of the remote control command is checked, but also other scenarios that may be encountered in actual power grid operation are considered to ensure that the remote control command can be correctly executed even when unconventional commands are received, thereby improving the comprehensiveness and reliability of the test, thereby improving the accuracy of the debugging results of the remote control function of the distribution terminal.
[0044] Step S102: sending a test instruction to the terminal to be tested, and receiving first response data of the terminal to be tested in response to the test instruction.
[0045] In the first embodiment of the present invention, when the communication connection between the communication unit of the power distribution terminal to be tested and the distribution network master station is disconnected, downlink data simulated and generated by the master control module will be sent to the communication unit of the power distribution terminal to be tested according to the instructions of the master control module. These downlink data contain test instructions, such as remote control commands. After receiving these test instructions, the power distribution terminal to be tested will perform corresponding operations according to the content of the instructions, for example, execute the remote control command to make the switch move, and send uplink data, i.e., first response data, to the communication interface module. These data usually contain the response data of the power distribution terminal to the test instruction, such as information on the change of the switch state. The communication interface module transmits the first response data back to the master control module. The master control module determines whether the remote control function of the power distribution terminal to be tested is working normally according to the received response data, that is, whether the remote control command can be correctly received and executed, and whether the priority of the remote control command can be maintained when other commands are received.
[0046] By sending test instructions and receiving first response data, the correctness of the remote control of the distribution terminal can be automatically and comprehensively judged, effectively improving test efficiency and accuracy and reducing the burden on staff.
[0047] Step S103: determining a remote control test result of the terminal to be tested according to the first response data.
[0048] In the first embodiment of the present invention, after receiving the uplink data, i.e., the first response data, the master control module will analyze the information therein to evaluate whether the power distribution terminal has correctly executed the remote control command and whether the remote control function has been processed preferentially in the case of a composite command. If the terminal under test can correctly identify and execute the remote control command, it can indicate the stability of its remote control function even in the presence of other interfering commands. Based on the analysis of the first response data, the master control module can determine the result of the terminal under test in the remote control function test, i.e., whether the remote control operation is successful, whether the response is timely, and whether the order of processing remote control commands of different priorities is correct, and use this as the basis for judging the correctness of the remote control.
[0049] To summarize, the remote control test method for a terminal provided in the first embodiment of the present application generates a test instruction based on a preset terminal control instruction when it is detected that the communication connection between the terminal to be tested and the distribution network master station is disconnected, wherein the preset terminal control instruction includes at least one of the following: a first instruction, a second instruction, and the execution priority of the first instruction is higher than the execution priority of the second instruction; the test instruction is sent to the terminal to be tested, and first response data of the terminal to be tested in response to the test instruction is received; the remote control test result of the terminal to be tested is determined based on the first response data, which solves the problem of low test efficiency in the related technology that when debugging the remote control function of the distribution network terminal in the distribution network automation system, the existing remote control operation debugging requires joint control by multiple people, and the test content is single, which wastes time and energy. By generating and sending test instructions when the communication connection between the terminal to be tested and the distribution network master station is disconnected, the test process is not restricted or interfered by the actual distribution network master station, making the test process more flexible and efficient. At the same time, by integrating unconventional commands into the test instructions, it is possible to more comprehensively simulate various situations that the distribution terminal may encounter in actual operation, including incidental events that do not often occur in normal operation, ensuring the performance of the distribution terminal under various complex conditions, improving the efficiency and accuracy of the distribution terminal remote control function test, achieving the effect of improving the inspection standards and quality of the distribution terminal before entering the network, and further achieving the effect of improving the operation stability of the distribution network automation system. In addition, the traditional test method requires the cooperation of the distribution network master station and the collaboration of multiple positions on site. The present method can be completed independently by a single tester or an automation system, which not only greatly reduces the debugging time, but also significantly reduces the work intensity of the debugging personnel, greatly reducing the labor cost and workload.
[0050] Optionally, in the remote control testing method for a terminal provided in Example 1 of the present application, a test instruction is generated based on a preset terminal control instruction, including: determining a first preset instruction as a first instruction, wherein the first preset instruction is an instruction for controlling a terminal in a distribution network automation system by remote control; determining a second preset instruction as a second instruction, wherein the second preset instruction is an instruction for obtaining terminal information of any terminal in the distribution network automation system; combining the first instruction and the second instruction, and generating a test instruction based on the combined instruction.
[0051] In the first embodiment, the first preset instruction (i.e., the first instruction mentioned above) may refer to a single remote control command or a group of remote control commands, the purpose of which is to operate the distribution terminal in the distribution network automation system through remote control (i.e., remote control), such as the opening and closing of a switch. The second preset instruction (i.e., the second instruction mentioned above) is a group of commands different from the remote control command, the purpose of which is to obtain information from the distribution terminal in the distribution network automation system, such as device status, parameter settings, etc.
[0052] By innovatively combining the first instruction and the second instruction, a test instruction containing multiple commands can be generated. These test instructions simulate various complex situations that may be encountered in the normal operation of the power distribution terminal. For example, the remote control command can be combined with the general call command to test whether the power distribution terminal can correctly execute the previously received remote control command while receiving the general call command. This not only tests the remote control function of the power distribution terminal, but also evaluates its processing ability under the condition of multiple concurrent instructions.
[0053] Through the above steps, it is possible to create a more complex test scenario that is closer to the actual operating environment, so as to more comprehensively and accurately evaluate the remote control function and other related performance of the distribution terminal, ensure its safety and reliability in actual applications, improve test efficiency, reduce manual participation, avoid problems caused by interference from the master station or inaccurate manual testing, and improve the efficiency and accuracy of the remote control function test of the distribution terminal.
[0054] Optionally, in the remote control testing method for a terminal provided in Example 1 of the present application, a first instruction and a second instruction are combined, and a test instruction is generated based on the combined instruction, including: determining at least one execution order between the first instruction and the second instruction; for each execution order in at least one execution order, generating an instruction sequence based on the execution order, the first instruction, and the second instruction to obtain an instruction sequence corresponding to each execution order; and generating a test instruction based on the instruction sequence corresponding to each execution order in at least one execution order.
[0055] In an optional embodiment, first, it is necessary to determine the execution order between the first instruction (such as a remote control command) and the second instruction (such as a general call command, a time synchronization command, etc.) during the test process. The execution order may include multiple possible order combinations such as the first instruction is executed before the second instruction, the second instruction is executed before the first instruction, or both are executed at the same time. Based on the above-determined execution order, an instruction sequence including the first instruction and the second instruction is generated. For example, if the execution order is that the remote control command is executed before the general call command, then the instruction sequence may be: remote control command → general call command; if the execution order is that other instructions are executed before the remote control command, then the instruction sequence may be: other instructions → remote control command. Each execution order corresponds to an instruction sequence.
[0056] Then, based on all the generated instruction sequences, a series of test instructions are formed. These test instructions will be used in the actual test process, sent to the distribution terminal to be tested through the communication interface module, and the response of the distribution terminal will be monitored to judge the correctness of the remote control function of the distribution terminal.
[0057] By simulating the combination sequence of multiple commands, the remote control function performance of the distribution terminal when encountering different scenarios can be tested, ensuring that in actual operation, even in the case of interference from other commands, the remote control function can be prioritized and executed correctly, thereby improving the efficiency of the test and enhancing the comprehensiveness and reliability of the test, which will help improve the operating quality of the distribution automation terminal and the safe and stable operation of the power grid.
[0058] Optionally, in the remote control testing method for a terminal provided in Example 1 of the present application, the above-mentioned instruction sequence includes at least one first instruction and at least one second instruction, and a test instruction is generated based on the instruction sequence corresponding to each execution order in at least one execution order, including: for the instruction sequence corresponding to each execution order, determining the execution interval duration between each instruction in the instruction sequence, wherein the execution interval duration includes at least one of the following: the execution interval duration between at least one first instruction and at least one second instruction, the execution interval duration between each first instruction in at least one first instruction, and the execution interval duration between each second instruction in at least one second instruction; and generating a test instruction based on the instruction sequence corresponding to each execution order in at least one execution order and the execution interval duration between each instruction in the instruction sequence.
[0059] In this first embodiment, in order to ensure that the remote control function of the distribution terminal can be correctly executed in various complex situations, the execution order and execution interval between each command in the test instruction can be controlled to test whether the distribution terminal can correctly execute different types of commands.
[0060] Specifically, with respect to the execution interval between at least one first instruction and at least one second instruction, the "first instruction" and "second instruction" here can be understood as different types of commands, such as the "first instruction" is a remote control command, while the "second instruction" may be a general call command or a time synchronization command. During the test, the time interval between the remote control command and other commands can be considered to simulate the scenarios of concurrent or interleaved execution of various commands that may occur in actual operation, and to verify the responsiveness and priority processing of the distribution terminal between different types of commands.
[0061] For the execution interval between each first instruction in at least one first instruction, this refers to the execution interval between commands of the same type (such as multiple remote control commands). By adjusting these intervals, the processing capability of the power distribution terminal for continuous or multiple commands of the same type can be tested, such as sending multiple remote control commands continuously in a short period of time to observe whether the power distribution terminal can correctly identify and execute each command.
[0062] The execution interval between each second instruction in at least one second instruction is similar to the above, but here refers to the execution interval between different second instructions. For example, in a test, multiple general call commands or time synchronization commands can be sent continuously to evaluate the response speed and accuracy of the distribution terminal to these commands.
[0063] After determining the execution interval between each instruction in the instruction sequence, a test instruction is generated according to the instruction sequence corresponding to each execution order in at least one execution order and the execution interval between each instruction in the instruction sequence. This indicates that not only the type and order of commands in the test instruction can be changed, but also the waiting time between every two commands is adjustable, making the remote control test more flexible and comprehensive. It can not only test the basic remote control function of the distribution terminal, but also simulate complex situations in actual operation, so as to more comprehensively test the performance of the distribution terminal in a complex communication environment, ensure the reliability of its remote control function, and effectively improve the operation quality of the distribution network automation terminal.
[0064] Optionally, in the remote control testing method for a terminal provided in Example 1 of the present application, a test instruction is generated based on a preset terminal control instruction, including: determining a first preset instruction as a first instruction, wherein the first preset instruction is an instruction for controlling the terminal by remote control; determining a third preset instruction as a second instruction, wherein the third preset instruction is an instruction for adjusting the time information of any terminal in the distribution network automation system; combining the first instruction and the second instruction, and generating a test instruction based on the combined instruction.
[0065] In the first embodiment of the present invention, the first preset instruction (i.e., the first instruction mentioned above) refers to an instruction for controlling the distribution automation terminal by remote control, such as controlling the opening and closing of a circuit breaker. In practical applications, this instruction is based on the common remote control operation in the distribution network automation system, and controls the distribution terminal by sending a specific digital output signal. The third preset instruction (i.e., the second instruction mentioned above) refers to an instruction for adjusting the time information of any terminal in the distribution network automation system, i.e., a time synchronization command. This instruction is used to ensure the time synchronization of all devices in the system, which is of great significance to the operation and event recording of the power grid.
[0066] Then, the first instruction and the second instruction are combined to simulate the situation that the distribution terminal may receive multiple different types of instructions at the same time during the actual operation of the power grid. For example, when the circuit breaker needs to be remotely operated, the distribution network master station may be performing time synchronization or other operations at the same time.
[0067] Finally, generating test instructions based on the combined instructions is actually simulating complex situations that are not often encountered in actual operation through the master control module. In this way, the processing behavior of the distribution terminal when facing higher and lower priority instructions at the same time can be evaluated to ensure that in emergency situations (for example, controlling the opening and closing of circuit breakers), the distribution terminal can give priority to correctly executing remote control instructions without being interfered with by other lower priority instructions. Compared with traditional single instruction testing, the above method can more effectively detect and ensure the stability and reliability of the terminal in a complex operating environment, especially when the correct execution of remote control operations is crucial to the safe operation of the power grid. By simulating various instruction combinations that may be encountered in actual operation, the performance of the distribution terminal can be tested more comprehensively, and the application effect of the distribution terminal in the power grid can be improved.
[0068] Optionally, in the remote control testing method for a terminal provided in Example 1 of the present application, the remote control test result of the terminal to be tested is determined based on the first response data, including: determining a first order based on the execution priority of the first instruction and the execution priority of the second instruction; determining a second order based on the first response data, wherein the second order refers to the order in which the terminal to be tested executes the first instruction and the second instruction; comparing the first order and the second order to obtain a comparison result; when the comparison result is that the order is the same and the first response data indicates that the terminal to be tested correctly executes the first instruction, determining that the remote control function of the terminal to be tested is normal as the test result; when the comparison result is that the order is different, or the first response data indicates that the terminal to be tested does not correctly execute the first instruction, determining that the remote control function of the terminal to be tested is abnormal as the test result.
[0069] In the first embodiment, in order to correctly judge the core judgment logic in the method for judging the correctness of automatic debugging remote control of the power distribution terminal, specifically, this method judges whether the remote control function of the power distribution terminal is normal by testing the execution priority and execution order of the remote control command and other commands (such as general call, timing signal, etc.).
[0070] In an optional embodiment, the master control module determines the expected execution order according to the execution priority of the first instruction (e.g., remote control command) and the second instruction (e.g., general call command, time synchronization command, etc.), that is, the first order mentioned above. In the first embodiment, the remote control command has a higher priority than other commands, so theoretically, the remote control command should be executed first.
[0071] Then, the master control module receives the uplink data returned by the power distribution terminal in response to the test instruction through the communication unit of the power distribution terminal to be tested, that is, the first response data mentioned above, to determine the actual execution order of the power distribution terminal, that is, the second order. The first order (expected execution order) is compared with the second order (actual execution order) to obtain a comparison result.
[0072] Finally, if the comparison result shows that the expected execution order is the same as the actual execution order, and the first response data (i.e., the terminal's response to the remote control command) indicates that the terminal to be tested has correctly executed the first instruction (remote control command), then the remote control function of the terminal to be tested is normal as the test result. On the contrary, if the comparison result shows that the order is not the same, or the first response data indicates that the terminal to be tested has not correctly executed the first instruction, then the remote control function of the terminal to be tested is abnormal as the test result.
[0073] By inserting unconventional commands into remote control commands, the processing logic of the distribution terminal when facing high-priority and low-priority commands is tested, ensuring that the distribution terminal can correctly prioritize remote control commands during normal operation, avoiding problems such as mis-sending of signals and misoperation of protection, thereby improving the comprehensiveness and accuracy of the remote control function test of the distribution network automation terminal.
[0074] In an optional embodiment, the test results corresponding to the test instructions of different types of remote control command combinations can be shown in Table 1. "Remote control" in Table 1 is the first preset instruction mentioned above, that is, the first instruction mentioned above, "general call" in Table 1 is the second preset instruction mentioned above, "time synchronization" is the third preset instruction mentioned above, "remote control preset" is the third instruction mentioned above, and "general call", "time synchronization" or "remote control operation cancellation" are specific examples of the second instruction mentioned above.
[0075] Table 1
[0076]
[0077] Optionally, in the remote control testing method for a terminal provided in Example 1 of the present application, before sending a test instruction to the terminal to be tested, the method further includes: determining the control operation of the distribution network master station on the terminal to be tested, and generating a third instruction based on the control operation, wherein the third instruction is used to test the function of the terminal to be tested to receive instructions; sending the third instruction to the terminal to be tested; and upon receiving second response data of the terminal to be tested in response to the third instruction, executing the step of sending the test instruction to the terminal to be tested.
[0078] In an optional embodiment, the control operation of the distribution network master station on the terminal to be tested mainly refers to all remote control operations performed by the distribution network master station on the distribution terminal, such as controlling the opening and closing of the circuit breaker. After determining that the distribution terminal can perform the control operation, the master control module will generate a corresponding instruction, namely the "third instruction". This instruction not only includes the remote control operation itself, but can also be freely combined with other types of commands, such as a general call command or a time synchronization command, to test the ability of the distribution terminal to receive instructions in a complex communication environment.
[0079] Then, after receiving the third instruction from the master control module, the communication interface module will send it to the distribution terminal to be tested in the form of simulated downlink data. After receiving the third instruction, the terminal to be tested will perform the corresponding operation and send response data, namely "second response data", to the master control module through the communication interface module. It should be noted that after receiving the third instruction, the distribution terminal does not need to perform actual operation behavior. It only sends the second response data to the master control module through the communication interface module when receiving the third instruction to indicate that the distribution terminal can correctly receive and process the instructions from the simulated master station. If the distribution terminal can respond, it means that its function of receiving instructions is normal. This step verifies the accuracy of instruction sending and the ability of the distribution terminal to receive instructions.
[0080] Finally, after successfully receiving the second response data, the master control module will execute the next test command, usually a more comprehensive remote control test command, to further verify the remote control function of the terminal. This step ensures that only when the terminal correctly responds to the preliminary command test, a more complex function verification is performed.
[0081] By simulating the control operation of the distribution network master station, independent of the actual distribution network master station system, a comprehensive test of the remote control function and other functions of the distribution terminal can be achieved, which improves the test efficiency and accuracy, reduces the workload of on-site commissioning personnel, and provides strong technical support for the safe and stable operation of the power grid.
[0082] Optionally, in this embodiment 1 Figure 2 This is a schematic diagram of a data flow in an optional terminal remote control test method provided in Embodiment 1 of the present application. Figure 1 . Figure 2The structure and function of the simulation master station are shown. It consists of three parts: the master control module, the communication interface module and the standard source tester. The master control module plays the role of the control center. It can generate remote control operation simulation signals including general call commands, time synchronization commands, remote control cancellation commands or interference messages. These signals are sent to the communication interface module. The master control module is implemented based on software algorithms and has a built-in judgment logic circuit for automatically judging the correctness of remote control operations. It realizes flexible control of the test process by programming the generation and sending of control signals. The communication interface module is a hardware module that can realize the communication between the simulation master station and the distribution terminal, as well as the communication between the distribution network master station and the distribution terminal. The distribution terminal to be tested has a built-in communication unit. The communication interface module is connected in series with the communication unit of the distribution terminal to be tested. Data is transmitted through the serial port uplink and serial port downlink lines to realize data transmission between the simulation master station and the distribution terminal to be tested. The standard source tester is a digital signal tester, which is controlled by the master control module to accurately generate and measure digital signals (for example, current signals, voltage signals, etc.), so as to test, control and accurately judge the functions, performance and other indicators of the power distribution terminal to be tested, so as to meet the needs of different test scenarios and ensure the accuracy and reliability of the test.
[0083] Optionally, Figure 3 This is a schematic diagram of a data flow in an optional terminal remote control test method provided in Embodiment 1 of the present application. Figure 2 . Figure 3 The data transmission process in the simulated master station mode is described. First, the master control module generates remote control operation simulation signals, which may include remote control preset, general call command, time synchronization command, remote control cancellation command and interference message. The signal starts from the master control module and is transmitted to the communication unit of the distribution terminal to be tested through the serial port downlink line of the communication interface module. In this process, the switching mode of the communication interface module is driven by software instructions to realize dynamic and fast mode switching between monitoring mode and simulated master station mode to adapt to the changing test environment. The communication unit of the distribution terminal to be tested receives these signals and performs corresponding processing, such as responding to the general call command, accepting the time synchronization command, executing the remote control preset operation or processing the remote control cancellation command. The uplink data is returned to the master control module from the communication unit of the distribution terminal to be tested through the serial port uplink line of the communication interface module. The master control module automatically judges the correctness of the remote control operation based on the received feedback signal, and realizes the test of the remote control function of the distribution terminal under abnormal conditions. In addition, the master control module also includes algorithms for optimizing signal transmission between the communication interface module and the standard source tester to improve test efficiency, as well as a module with self-learning capabilities that can optimize the combination strategy of remote control commands based on historical test data to improve test accuracy and comprehensiveness.
[0084] In the embodiment of the present application, the insertion mechanism of the remote control command is based on a custom test strategy, which allows the user to adjust the timing and order of the command combination according to the test requirements. For example, the user can set the insertion of the time synchronization command immediately after the general call command, or insert the remote control cancellation command after the remote control preset operation, or even randomly insert interference messages during data transmission to simulate abnormal conditions in actual applications and comprehensively test the remote control function of the distribution terminal. The standard source tester works in conjunction with the communication interface module and the master control module to ensure the quality and stability of the signal and improve the accuracy and reliability of the test.
[0085] During the entire test process, the simulation master station can test the correctness of the remote control function of the distribution terminal under abnormal conditions by generating and sending remote control operation simulation signals. The combination of hardware modules and software algorithms not only improves the flexibility of the test, but also enhances the accuracy and reliability of the test. The introduction of dynamic switching mechanism and self-learning algorithm further optimizes the test process and improves the test efficiency. This test solution provides strong support for the automated testing of distribution terminals, effectively reduces the testing cost, and ensures the efficient and stable operation of the power grid.
[0086] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0087] Embodiment 2
[0088] The second embodiment of the present application also provides a remote control test device for a terminal. It should be noted that the remote control test device for a terminal in the second embodiment of the present application can be used to execute the remote control test method for a terminal provided in the first embodiment of the present application. The remote control test device for a terminal provided in the second embodiment of the present application is introduced below.
[0089] Figure 4 This is a schematic diagram of a remote control test device for a terminal according to the second embodiment of the present application. The device is applied to a distribution network automation system. The distribution network automation system at least includes: a terminal to be tested and a distribution network master station. The distribution network master station is used to control the terminal in the distribution network automation system. Figure 4 As shown, the device includes: a first generating unit 401, a receiving unit 402 and a determining unit 403.
[0090] Specifically, the first generation unit 401 is used to generate a test instruction based on a preset terminal control instruction when it is detected that the communication connection between the terminal to be tested and the distribution network master station is disconnected, wherein the preset terminal control instruction includes at least one of the following: a first instruction, a second instruction, and the execution priority of the first instruction is higher than the execution priority of the second instruction.
[0091] The receiving unit 402 is configured to send a test instruction to the terminal to be tested, and receive first response data from the terminal to be tested in response to the test instruction.
[0092] The determination unit 403 is configured to determine a remote control test result of the terminal to be tested according to the first response data.
[0093] The remote control test device for a terminal provided in the second embodiment of the present application generates a test instruction according to a preset terminal control instruction through a first generating unit 401 when it is detected that the communication connection between the terminal to be tested and the distribution network master station is disconnected, wherein the preset terminal control instruction includes at least one of the following: a first instruction and a second instruction, and the execution priority of the first instruction is higher than the execution priority of the second instruction; a receiving unit 402 sends a test instruction to the terminal to be tested, and receives first response data of the terminal to be tested in response to the test instruction; a determining unit 403 determines the remote control test result of the terminal to be tested according to the first response data, thereby solving the problem in the related technology that when debugging the remote control function of the distribution network terminal in the distribution network automation system, the existing remote control operation debugging requires joint control by multiple people, and the test content is single, which wastes time and energy, resulting in low test efficiency. By generating and sending test instructions when the communication connection between the terminal to be tested and the distribution network master station is disconnected, the test process is not restricted or interfered by the actual distribution network master station, making the test process more flexible and efficient. At the same time, by integrating unconventional commands into the test instructions, it is possible to more comprehensively simulate various situations that the distribution terminal may encounter in actual operation, including incidental events that do not often occur in normal operation, ensuring the performance of the distribution terminal under various complex conditions, improving the efficiency and accuracy of the distribution terminal remote control function test, achieving the effect of improving the inspection standards and quality of the distribution terminal before entering the network, and further achieving the effect of improving the operation stability of the distribution network automation system. In addition, the traditional test method requires the cooperation of the distribution network master station and the collaboration of multiple positions on site. The present method can be completed independently by a single tester or an automation system, which not only greatly reduces the debugging time, but also significantly reduces the work intensity of the debugging personnel, greatly reducing the labor cost and workload.
[0094] Optionally, in the remote control test device of the terminal provided in Example 2 of the present application, the above-mentioned first generation unit 401 includes: a first determination subunit, used to determine the first preset instruction as the first instruction, wherein the first preset instruction is an instruction for controlling the terminal in the distribution network automation system by remote control; a second determination subunit, used to determine the second preset instruction as the second instruction, wherein the second preset instruction is an instruction for obtaining terminal information of any terminal in the distribution network automation system; a first generation subunit, used to combine the first instruction and the second instruction, and generate a test instruction based on the combined instruction.
[0095] Optionally, in the remote control test device of the terminal provided in Example 2 of the present application, the above-mentioned generation subunit includes: a determination module, used to determine at least one execution order between the first instruction and the second instruction; a first generation module, used to generate an instruction sequence for each execution order in at least one execution order according to the execution order, the first instruction and the second instruction, to obtain an instruction sequence corresponding to each execution order; a second generation module, used to generate a test instruction based on the instruction sequence corresponding to each execution order in at least one execution order.
[0096] Optionally, in the remote control test device of the terminal provided in Example 2 of the present application, the above-mentioned instruction sequence includes at least one first instruction and at least one second instruction, and the above-mentioned second generation module includes: a determination submodule, used to determine, for the instruction sequence corresponding to each execution order, the execution interval duration between each instruction in the instruction sequence, wherein the execution interval duration includes at least one of the following: the execution interval duration between at least one first instruction and at least one second instruction, the execution interval duration between each first instruction in at least one first instruction, and the execution interval duration between each second instruction in at least one second instruction; a generation submodule, used to generate a test instruction based on the instruction sequence corresponding to each execution order in at least one execution order and the execution interval duration between each instruction in the instruction sequence.
[0097] Optionally, in the remote control test device of the terminal provided in Example 2 of the present application, the above-mentioned first generation unit 401 includes: a third determination subunit, used to determine the first preset instruction as the first instruction, wherein the first preset instruction is an instruction for controlling the terminal by remote control; a fourth determination subunit, used to determine the third preset instruction as the second instruction, wherein the third preset instruction is an instruction for adjusting the time information of any terminal in the distribution network automation system; a second generation subunit, used to combine the first instruction and the second instruction, and generate a test instruction based on the combined instruction.
[0098] Optionally, in the remote control test device of the terminal provided in Example 2 of the present application, the above-mentioned determination unit 403 includes: a fifth determination subunit, used to determine the first order according to the execution priority of the first instruction and the execution priority of the second instruction; a sixth determination subunit, used to determine the second order according to the first response data, wherein the second order refers to the order in which the terminal to be tested executes the first instruction and the second instruction; a comparison subunit, used to compare the first order and the second order to obtain a comparison result; a seventh determination subunit, used to determine that the remote control function of the terminal to be tested is normal as the test result when the comparison result is that the order is the same and the first response data indicates that the terminal to be tested correctly executes the first instruction; an eighth determination subunit, used to determine that the remote control function of the terminal to be tested is abnormal as the test result when the comparison result is that the order is different, or the first response data indicates that the terminal to be tested does not correctly execute the first instruction.
[0099] Optionally, in the remote control test device for the terminal provided in Example 2 of the present application, the above-mentioned device also includes: a second generating unit, used to determine the control operation of the distribution network master station on the terminal to be tested before sending a test instruction to the terminal to be tested, and generate a third instruction based on the control operation, wherein the third instruction is used to test the function of the terminal to be tested to receive instructions; a sending unit, used to send the third instruction to the terminal to be tested; and an execution unit, used to execute the step of sending the test instruction to the terminal to be tested when receiving second response data of the terminal to be tested in response to the third instruction.
[0100] The remote control test device of the terminal includes a processor and a memory. The first generating unit 401, receiving unit 402 and determining unit 403 are stored in the memory as program units. The processor executes the program units stored in the memory to implement corresponding functions.
[0101] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the efficiency of remote control debugging of power equipment can be improved by adjusting kernel parameters.
[0102] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0103] Embodiment 3 of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, a remote control test method of a terminal is implemented.
[0104] A fourth embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes a remote control test method of a terminal when the program is running.
[0105] like Figure 5 As shown, embodiment 5 of the present invention provides an electronic device, the device includes a processor, a memory and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: when it is detected that the communication connection between the terminal to be tested and the distribution network master station is disconnected, a test instruction is generated according to a preset terminal control instruction, wherein the preset terminal control instruction includes at least one of the following: a first instruction, a second instruction, and the execution priority of the first instruction is higher than the execution priority of the second instruction; the test instruction is sent to the terminal to be tested, and first response data of the terminal to be tested in response to the test instruction is received; and the remote control test result of the terminal to be tested is determined according to the first response data.
[0106] When the processor executes the program, the following steps are also implemented: generating a test instruction based on a preset terminal control instruction, including: determining a first preset instruction as a first instruction, wherein the first preset instruction is an instruction for controlling a terminal in a distribution network automation system by remote control; determining a second preset instruction as a second instruction, wherein the second preset instruction is an instruction for obtaining terminal information of any terminal in the distribution network automation system; combining the first instruction and the second instruction, and generating a test instruction based on the combined instruction.
[0107] When the processor executes the program, the following steps are also implemented: combining the first instruction and the second instruction, and generating a test instruction based on the combined instruction, including: determining at least one execution order between the first instruction and the second instruction; for each execution order in at least one execution order, generating an instruction sequence based on the execution order, the first instruction and the second instruction to obtain an instruction sequence corresponding to each execution order; generating a test instruction based on the instruction sequence corresponding to each execution order in at least one execution order.
[0108] When the processor executes the program, the following steps are also implemented: the above-mentioned instruction sequence includes at least one first instruction and at least one second instruction, and a test instruction is generated according to the instruction sequence corresponding to each execution order in at least one execution order, including: for the instruction sequence corresponding to each execution order, determining the execution interval duration between each instruction in the instruction sequence, wherein the execution interval duration includes at least one of the following: the execution interval duration between at least one first instruction and at least one second instruction, the execution interval duration between each first instruction in at least one first instruction, and the execution interval duration between each second instruction in at least one second instruction; and generating a test instruction according to the instruction sequence corresponding to each execution order in at least one execution order and the execution interval duration between each instruction in the instruction sequence.
[0109] When the processor executes the program, the following steps are also implemented: generating a test instruction based on a preset terminal control instruction, including: determining a first preset instruction as a first instruction, wherein the first preset instruction is an instruction for controlling the terminal by remote control; determining a third preset instruction as a second instruction, wherein the third preset instruction is an instruction for adjusting the time information of any terminal in the distribution network automation system; combining the first instruction and the second instruction, and generating a test instruction based on the combined instruction.
[0110] When the processor executes the program, the following steps are also implemented: determining the remote control test result of the terminal to be tested based on the first response data, including: determining the first order based on the execution priority of the first instruction and the execution priority of the second instruction; determining the second order based on the first response data, wherein the second order refers to the order in which the terminal to be tested executes the first instruction and the second instruction; comparing the first order and the second order to obtain a comparison result; when the comparison result is that the order is the same and the first response data indicates that the terminal to be tested correctly executes the first instruction, determining that the remote control function of the terminal to be tested is normal as the test result; when the comparison result is that the order is not the same, or the first response data indicates that the terminal to be tested does not correctly execute the first instruction, determining that the remote control function of the terminal to be tested is abnormal as the test result.
[0111] When the processor executes the program, the following steps are also implemented: before sending the test instruction to the terminal to be tested, the above method also includes: determining the control operation of the distribution network master station on the terminal to be tested, and generating a third instruction based on the control operation, wherein the third instruction is used to test the function of the terminal to be tested to receive instructions; sending the third instruction to the terminal to be tested; and executing the step of sending the test instruction to the terminal to be tested when receiving the second response data of the terminal to be tested in response to the third instruction.
[0112] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0113] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: when it is detected that the communication connection between the terminal to be tested and the distribution network master station is disconnected, a test instruction is generated according to a preset terminal control instruction, wherein the preset terminal control instruction includes at least one of the following: a first instruction, a second instruction, and the execution priority of the first instruction is higher than the execution priority of the second instruction; the test instruction is sent to the terminal to be tested, and first response data of the terminal to be tested in response to the test instruction is received; and the remote control test result of the terminal to be tested is determined according to the first response data.
[0114] When executed on a data processing device, it is also suitable for executing an initialized program having the following method steps: generating a test instruction based on a preset terminal control instruction, including: determining a first preset instruction as a first instruction, wherein the first preset instruction is an instruction for controlling a terminal in a distribution network automation system by remote control; determining a second preset instruction as a second instruction, wherein the second preset instruction is an instruction for obtaining terminal information of any terminal in the distribution network automation system; combining the first instruction and the second instruction, and generating a test instruction based on the combined instruction.
[0115] When executed on a data processing device, it is also suitable for executing an initialized program having the following method steps: combining a first instruction and a second instruction, and generating a test instruction based on the combined instruction, including: determining at least one execution order between the first instruction and the second instruction; for each execution order in at least one execution order, generating an instruction sequence based on the execution order, the first instruction and the second instruction to obtain an instruction sequence corresponding to each execution order; generating a test instruction based on the instruction sequence corresponding to each execution order in at least one execution order.
[0116] When executed on a data processing device, it is also suitable for executing an initialized program having the following method steps: the above-mentioned instruction sequence includes at least one first instruction and at least one second instruction, and a test instruction is generated according to the instruction sequence corresponding to each execution order in at least one execution order, including: for the instruction sequence corresponding to each execution order, determining the execution interval duration between each instruction in the instruction sequence, wherein the execution interval duration includes at least one of the following: the execution interval duration between at least one first instruction and at least one second instruction, the execution interval duration between each first instruction in at least one first instruction, and the execution interval duration between each second instruction in at least one second instruction; and generating a test instruction according to the instruction sequence corresponding to each execution order in at least one execution order and the execution interval duration between each instruction in the instruction sequence.
[0117] When executed on a data processing device, it is also suitable for executing an initialized program having the following method steps: generating a test instruction based on a preset terminal control instruction, including: determining a first preset instruction as a first instruction, wherein the first preset instruction is an instruction for controlling the terminal by remote control; determining a third preset instruction as a second instruction, wherein the third preset instruction is an instruction for adjusting the time information of any terminal in the distribution network automation system; combining the first instruction and the second instruction, and generating a test instruction based on the combined instruction.
[0118] When executed on a data processing device, it is also suitable for executing a program that is initialized with the following method steps: determining a remote control test result of a terminal to be tested based on first response data, including: determining a first order based on an execution priority of a first instruction and an execution priority of a second instruction; determining a second order based on the first response data, wherein the second order refers to an order in which the terminal to be tested executes the first instruction and the second instruction; comparing the first order and the second order to obtain a comparison result; when the comparison result is that the order is the same and the first response data indicates that the terminal to be tested correctly executes the first instruction, determining that the remote control function of the terminal to be tested is normal as the test result; when the comparison result is that the order is not the same, or the first response data indicates that the terminal to be tested does not correctly execute the first instruction, determining that the remote control function of the terminal to be tested is abnormal as the test result.
[0119] When executed on a data processing device, it is also suitable for executing a program that is initialized with the following method steps: before sending a test instruction to the terminal to be tested, the above method also includes: determining the control operation of the distribution network master station on the terminal to be tested, and generating a third instruction based on the control operation, wherein the third instruction is used to test the function of the terminal to be tested to receive instructions; sending the third instruction to the terminal to be tested; and executing the step of sending the test instruction to the terminal to be tested when receiving second response data of the terminal to be tested in response to the third instruction.
[0120] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0121] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0122] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0123] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0124] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0125] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0126] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0127] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0128] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0129] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A remote control test method for a terminal, characterized in that: The method is applied to a distribution network automation system, which at least includes: a terminal to be tested and a distribution network master station, wherein the distribution network master station is used to control the terminal in the distribution network automation system, including: In the case where it is detected that the communication connection between the terminal to be tested and the distribution network master station is disconnected, a test instruction is generated according to a preset terminal control instruction, wherein the preset terminal control instruction includes at least one of the following: a first instruction and a second instruction, and the execution priority of the first instruction is higher than the execution priority of the second instruction; Sending the test instruction to the terminal to be tested, and receiving first response data from the terminal to be tested in response to the test instruction; Determining a remote control test result of the terminal to be tested according to the first response data; The test command is generated according to the preset terminal control command, including: Determine a first preset instruction as the first instruction, wherein the first preset instruction is an instruction for controlling a terminal in the distribution network automation system by remote control; Determine a second preset instruction as the second instruction, wherein the second preset instruction is an instruction for obtaining terminal information of any terminal in the distribution network automation system; Combining the first instruction and the second instruction, and generating the test instruction according to the combined instruction; Combining the first instruction and the second instruction, and generating the test instruction according to the combined instruction, includes: determining at least one execution order between the first instruction and the second instruction; For each execution sequence in the at least one execution sequence, generating an instruction sequence according to the execution sequence, the first instruction, and the second instruction to obtain an instruction sequence corresponding to each execution sequence, wherein the instruction sequence includes at least one first instruction and at least one second instruction; generating the test instruction according to an instruction sequence corresponding to each execution order in the at least one execution order; Generating the test instruction according to the instruction sequence corresponding to each execution order in the at least one execution order includes: For each instruction sequence corresponding to each execution order, determine the execution interval duration between each instruction in the instruction sequence, wherein the execution interval duration includes at least one of the following: the execution interval duration between the at least one first instruction and the at least one second instruction, the execution interval duration between each first instruction in the at least one first instruction, and the execution interval duration between each second instruction in the at least one second instruction; The test instruction is generated according to an instruction sequence corresponding to each execution sequence in the at least one execution sequence and an execution interval duration between each instruction in the instruction sequence.
2. The method according to claim 1, characterized in that Generate test instructions based on preset terminal control instructions, including: Determine a first preset instruction as the first instruction, wherein the first preset instruction is an instruction for controlling the terminal by remote control; Determine a third preset instruction as the second instruction, wherein the third preset instruction is an instruction for adjusting the time information of any terminal in the distribution network automation system; The first instruction and the second instruction are combined, and the test instruction is generated according to the combined instruction.
3. The method according to claim 1, characterized in that Determining a remote control test result of the terminal to be tested according to the first response data includes: determining a first order according to an execution priority of the first instruction and an execution priority of the second instruction; Determine a second sequence according to the first response data, wherein the second sequence refers to the sequence in which the terminal to be tested executes the first instruction and the second instruction; Comparing the first sequence and the second sequence to obtain a comparison result; When the comparison result is that the order is the same and the first response data indicates that the terminal to be tested correctly executes the first instruction, determining that the remote control function of the terminal to be tested is normal as the test result; When the comparison result is that the order is different, or the first response data indicates that the terminal to be tested has not correctly executed the first instruction, an abnormality in the remote control function of the terminal to be tested is determined as the test result.
4. The method according to claim 1, characterized in that: Before sending the test instruction to the terminal to be tested, the method further includes: Determine the control operation of the distribution network master station on the terminal to be tested, and generate a third instruction according to the control operation, wherein the third instruction is used to test the function of the terminal to be tested to receive instructions; Sending the third instruction to the terminal to be tested; In case of receiving the second response data of the terminal to be tested in response to the third instruction, the step of sending the test instruction to the terminal to be tested is performed.
5. A remote control test device for a terminal, characterized in that: The device is applied to a distribution network automation system, which at least includes: a terminal to be tested and a distribution network master station, wherein the distribution network master station is used to control the terminal in the distribution network automation system, and the device includes: A first generating unit is used to generate a test instruction according to a preset terminal control instruction when it is detected that the communication connection between the terminal to be tested and the distribution network master station is disconnected, wherein the preset terminal control instruction includes at least one of the following: a first instruction and a second instruction, and the execution priority of the first instruction is higher than the execution priority of the second instruction; A receiving unit, configured to send the test instruction to the terminal to be tested, and receive first response data from the terminal to be tested in response to the test instruction; a determining unit, configured to determine a remote control test result of the terminal to be tested according to the first response data; The first generating unit includes: a first determining subunit, used to determine a first preset instruction as the first instruction, wherein the first preset instruction is an instruction for controlling a terminal in the distribution network automation system by remote control; a second determining subunit, used to determine a second preset instruction as the second instruction, wherein the second preset instruction is an instruction for obtaining terminal information of any terminal in the distribution network automation system; a first generating subunit, used to combine the first instruction and the second instruction, and generate the test instruction according to the combined instruction; The first generating subunit includes: a determining module, used to determine at least one execution order between the first instruction and the second instruction; a first generating module, used to generate an instruction sequence for each execution order in the at least one execution order according to the execution order, the first instruction and the second instruction, to obtain an instruction sequence corresponding to each execution order; a second generating module, used to generate the test instruction according to the instruction sequence corresponding to each execution order in the at least one execution order; The instruction sequence includes at least one first instruction and at least one second instruction, and the second generating module includes: a determining submodule, used to determine, for each execution order of the instruction sequence corresponding to the instruction sequence, the execution interval duration between each instruction in the instruction sequence, wherein the execution interval duration includes at least one of the following: the execution interval duration between the at least one first instruction and the at least one second instruction, the execution interval duration between each first instruction in the at least one first instruction, and the execution interval duration between each second instruction in the at least one second instruction; and a generating submodule, used to generate the test instruction based on the instruction sequence corresponding to each execution order in the at least one execution order and the execution interval duration between each instruction in the instruction sequence.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes stored computer instructions, wherein when the computer instructions are executed by a processor, the remote control test method for a terminal according to any one of claims 1 to 4 is implemented.
7. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the remote control testing method of the terminal as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Detection method of function and performance of power distribution automation terminal device
CN102788921A
Power distribution terminal automatic debugging detection system and method
CN112379197A
Intelligent gateway intercommunication and interconnection test system
CN115361323A