Disclosure of Invention
The application mainly aims to provide a remote control test method and device for a terminal, a storage medium and electronic equipment, and aims to solve the problems that when the remote control function of a distribution network terminal in a distribution network automation system is debugged in the related technology, the existing remote control operation and debugging are controlled by multiple persons together, the test content is single, the time and energy are wasted, and the test efficiency is low.
In order to achieve the aim, according to one aspect of the application, a remote control testing method of a terminal is provided, the method is applied to a distribution network automation system, the distribution network automation system at least comprises a terminal to be tested and a distribution network master station, the distribution network master station is used for controlling the terminal in the distribution network automation system, the method comprises the steps of generating a testing instruction according to a preset terminal control instruction under the condition that communication connection between the terminal to be tested and the distribution network master station is detected to be disconnected, wherein the preset terminal control instruction at least comprises one of a first instruction and a second instruction, the execution priority of the first instruction is higher than the execution priority of the second instruction, sending the testing instruction to the terminal to be tested, receiving first response data of the terminal to be tested in response to the testing instruction, and determining a remote control testing result of the terminal to be tested according to the first response data.
Further, generating a test instruction according to a preset terminal control instruction comprises determining 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 in a remote control mode, determining a second preset instruction as the second instruction, wherein the second preset instruction is an instruction for acquiring 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.
Further, the first instruction and the second instruction are combined, the test instruction is generated according to the combined instructions, the test instruction comprises determining at least one execution sequence between the first instruction and the second instruction, generating an instruction sequence according to the execution sequence and the first instruction and the second instruction for each execution sequence in the at least one execution sequence, and generating the test instruction according to the instruction sequence corresponding to each execution sequence in the at least one execution sequence.
Further, the instruction sequence comprises at least one first instruction and at least one second instruction, the test instruction is generated according to the instruction sequence corresponding to each execution sequence in the at least one execution sequence, the test instruction comprises determining the execution interval time length between each instruction in the instruction sequence according to the instruction sequence corresponding to each execution sequence, wherein the execution interval time length at least comprises one of the execution interval time length between the at least one first instruction and the at least one second instruction, the execution interval time length between each first instruction in the at least one first instruction and the execution interval time length between each second instruction in the at least one second instruction, and the test instruction is generated according to the execution interval time length between the instruction sequence corresponding to each execution sequence in the at least one execution sequence and each instruction in the instruction sequence.
Further, generating a test instruction according to a preset terminal control instruction comprises determining a first preset instruction as the first instruction, wherein the first preset instruction is an instruction for controlling a terminal in a remote control mode, determining a third preset instruction as the second instruction, wherein the third preset instruction is an instruction for adjusting time 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.
Further, the remote control test result of the terminal to be tested is determined according to the first response data, the remote control test result comprises a first sequence determined according to the execution priority of the first instruction and the execution priority of the second instruction, a second sequence determined according to the first response data, wherein the second sequence refers to the sequence of the first instruction and the second instruction executed by the terminal to be tested, the first sequence and the second sequence are compared to obtain the comparison result, the remote control function of the terminal to be tested is normally determined to be the test result under the condition that the comparison result is the same sequence and the first response data indicates that the terminal to be tested executes the first instruction correctly, and the remote control function of the terminal to be tested is abnormally determined to be the test result under the condition that the comparison result is different sequence or the first response data indicates that the terminal to be tested does not execute the first instruction correctly.
Further, before the test instruction is sent to the terminal to be tested, the method further comprises the steps of determining control operation of the distribution network master station on the terminal to be tested, generating a third instruction according to the control operation, wherein the third instruction is used for testing functions of the terminal to be tested for receiving the instruction, 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 under the condition that second response data of the terminal to be tested responding to the third instruction is received.
In order to achieve the aim, according to another aspect of the application, a remote control testing device of a terminal is provided, the device is applied to a distribution network automation system, the distribution network automation system at least comprises a terminal to be tested and a distribution network master station, the distribution network master station is used for controlling the terminal in the distribution network automation system, the device comprises a first generating unit and a determining unit, the first generating unit is used for generating a testing instruction according to a preset terminal control instruction when the communication connection between the terminal to be tested and the distribution network master station is detected to be disconnected, the preset terminal control instruction at least comprises one of a first instruction and a second instruction, the execution priority of the first instruction is higher than the execution priority of the second instruction, the receiving unit is used for sending the testing instruction to the terminal to be tested and receiving first response data of the terminal to be tested, and the determining unit is used for determining a remote control testing result of the terminal to be tested according to the first response data.
Further, the first generation unit comprises a first determination subunit, a second determination subunit and a first generation subunit, wherein the first determination subunit is used for determining a first preset instruction as the first instruction, the first preset instruction is an instruction for controlling a terminal in the distribution network automation system in a remote control mode, the second determination subunit is used for determining a second preset instruction as the second instruction, the second preset instruction is an instruction for acquiring terminal information of any terminal in the distribution network automation system, and the first generation subunit is used for combining the first instruction and the second instruction and generating the test instruction according to the combined instruction.
Further, the generating subunit comprises a determining module, a first generating module and a second generating module, wherein the determining module is used for determining at least one execution sequence between the first instruction and the second instruction, the first generating module is used for generating an instruction sequence corresponding to each execution sequence according to the execution sequence, the first instruction and the second instruction aiming at each execution sequence in the at least one execution sequence to obtain the instruction sequence corresponding to each execution sequence, and the second generating module is used for generating the test instruction according to the instruction sequence corresponding to each execution sequence in the at least one execution sequence.
Further, the instruction sequence comprises at least one first instruction and at least one second instruction, the second generation module comprises a determination submodule and a generation submodule, the determination submodule is used for determining execution interval duration between each instruction in the instruction sequence according to the instruction sequence corresponding to each execution sequence, the execution interval duration at least comprises one of execution interval duration between the at least one first instruction and the at least one second instruction, execution interval duration between each first instruction in the at least one first instruction and execution interval duration between each second instruction in the at least one second instruction, and the generation submodule is used for generating the test instruction according to the instruction sequence corresponding to each execution sequence in the at least one execution sequence and the execution interval duration between each instruction in the instruction sequence.
Further, the first generation unit comprises a third determination subunit, a fourth determination subunit and a second generation subunit, wherein the third determination subunit is used for determining a first preset instruction as the first instruction, the first preset instruction is an instruction for controlling a terminal in a remote control mode, the fourth determination subunit is used for determining a third preset instruction as the second instruction, the third preset instruction is an instruction for adjusting time information of any terminal in the distribution network automation system, and the second generation subunit is used for combining the first instruction and the second instruction and generating the test instruction according to the combined instruction.
Further, the determining unit comprises a fifth determining subunit, a sixth determining subunit and an eighth determining subunit, wherein the fifth determining subunit is used for determining a first sequence according to the execution priority of the first instruction and the execution priority of the second instruction, the sixth determining subunit is used for determining a second sequence according to the first response data, the second sequence is the sequence of the first instruction and the second instruction executed by the terminal to be tested, the comparing subunit is used for comparing the first sequence with the second sequence to obtain a comparison result, the seventh determining subunit is used for determining the remote control function of the terminal to be tested as the test result normally when the comparison result is the same sequence and the first response data indicates that the terminal to be tested executes the first instruction correctly, and the eighth determining subunit is used for determining the remote control function of the terminal to be tested as the test result abnormally when the comparison result is different in sequence or the first response data indicates that the terminal to be tested does not execute the first instruction correctly.
Further, the device further comprises a second generating unit, a sending unit and an executing unit, wherein the second generating unit is used for determining 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 generating a third instruction according to the control operation, the third instruction is used for testing the function of the terminal to be tested for receiving the instruction, the sending unit is used for sending the third instruction to the terminal to be tested, and the executing unit is used for executing the step of sending the test instruction to the terminal to be tested under the condition that second response data of the terminal to be tested responding to the third instruction is received.
To achieve the above object, according to one aspect of the present application, there is provided a computer program product, including a computer program, which when executed by a processor, implements the remote control test method of any one of the above terminals, and which when executed by a processor, implements the steps of the remote control test method of the terminal in each embodiment of the present application.
To achieve the above object, according to one aspect of the present application, there is provided a computer-readable storage medium including stored computer instructions, wherein the remote control test method of any one of the above terminals is implemented when the computer instructions are executed by a processor.
In order to achieve the above object, according to one aspect of the present application, there is provided an electronic device including one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the remote control test method of the terminal according to any one of the above.
The method comprises the following steps of generating a test instruction according to a preset terminal control instruction under the condition that communication connection between the terminal to be tested and the distribution network main station is disconnected, wherein the preset terminal control instruction at least comprises a first instruction and a second instruction, the execution priority of the first instruction is higher than that of the second instruction, sending the test instruction to the terminal to be tested, receiving first response data of the terminal to be tested responding to the test instruction, and determining a remote control test result of the terminal to be tested according to the first response data. The test command is generated and sent under the condition that the communication connection between the to-be-tested terminal and the distribution network main station is disconnected, the limitation and interference of an actual distribution network main station are avoided, the test process is more flexible and efficient, various conditions possibly encountered by the distribution terminal in actual operation can be simulated more comprehensively through fusion of an irregular command in the test command, sporadic events which occur rarely in normal operation are included, performance of the distribution terminal under various complex conditions is ensured, efficiency and accuracy of remote control function test of the distribution terminal are improved, the effect of improving detection standard and quality of the distribution terminal before network access is achieved, and the effect of improving operation stability of the distribution network automatic system is further achieved. In addition, the traditional testing method needs the cooperation of a distribution network master station and the cooperation of on-site multi-post personnel, and by adopting the method, the single testing personnel or an automatic system can independently finish the testing, so that the debugging time is greatly reduced, the working intensity of the debugging personnel is obviously reduced, and the labor cost and the workload are greatly reduced.
Detailed Description
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, collected data, used data, generated data, processed data, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, collected information, used information, generated information, processed information, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party, and the processes of collecting, storing, using, processing, transmitting, providing, disclosing and applying related data all comply with the relevant laws and regulations and standards of the relevant country and region, the necessary security measures are violated, no public order is accepted, and the corresponding operation entrance is provided for the user to select authorization or rejection. For example, an interface is provided between the system and the relevant user or institution, before acquiring the relevant information, the system needs to send an acquisition request to the user or institution through the interface, and acquire the relevant information after receiving the consent information fed back by the user or institution.
It should be noted that the application provides a corresponding operation entrance for the user to choose to agree or reject the automatic decision result, if the user chooses to reject, the expert decision flow is entered.
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the application herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In the following, the application will be described in connection with preferred implementation steps, fig. 1 is a flowchart of a method for remote testing of a terminal according to an embodiment of the application, and as shown in fig. 1, the method is applied to a distribution network automation system, and the distribution network automation system at least includes a terminal to be tested and a distribution network master station, and the distribution network master station is used for controlling the terminal in the distribution network automation system, and the method includes the following steps:
Step S101, under the condition that the communication connection between the terminal to be tested and the distribution network main station is disconnected is detected, a test instruction is generated according to a preset terminal control instruction, wherein the preset terminal control instruction at least comprises a first instruction and a second instruction, and the execution priority of the first instruction is higher than that of the second instruction.
The execution main body of the remote control testing method of the terminal provided by the embodiment of the application can be a master control module in a distribution network automation system. The master control module is responsible for generating analog signals, such as remote control commands, master call commands, time setting signals and the like, and then the analog signals are sent to the power distribution terminal to be tested through a communication interface module in the distribution network automation system. The master control module is also free to combine these commands to test the ability of the distribution terminal to respond to remote control commands in different situations. In the debugging process of the distribution network automation system, the command priority sent by the master control module is higher than other commands, so that the distribution terminal can correctly receive and execute the remote control commands even in a complex data transmission environment. By observing the actual switching action of the power distribution terminal, the master control module can judge the correctness of the remote control function of the master control module, so that the accuracy and the efficiency of the test are improved.
In the first embodiment, a test instruction is generated by the master control module according to a preset terminal control instruction under the condition that the disconnection of the communication between the terminal to be tested and the distribution network master station is detected. The preset terminal control instruction is a control instruction preset in the testing process and used for simulating the network distribution master station to send to the power distribution terminal to be tested (namely the terminal to be tested), and mainly comprises a remote control instruction (namely the first instruction) and other instructions (namely the second instruction).
The first instruction generally refers to a remote control command, i.e., a command for controlling the power distribution terminal (e.g., a circuit breaker) to perform a switching operation. In the testing process of the remote control command, the execution priority of the first instruction is set to be 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 can process the first instruction preferentially, and the reliability and the priority of the remote control function are ensured.
The second instruction may be other types of commands than a remote control command, such as a general call command (for acquiring status information of the power distribution terminal), a time-tick command (for synchronizing the time of the power distribution terminal), and the like. The commands have a lower priority of execution than the first instruction (i.e., the remote control command), so that when the first instruction (remote control command) and the second instruction are received simultaneously, the execution of the second instruction will be delayed or suspended to ensure preferential execution of the remote control command.
In an alternative embodiment, when the communication link between the to-be-tested power distribution terminal and the distribution network main station is disconnected, the master control module generates the test instruction according to the preset terminal control instruction. The generation and execution of the test instruction are that the master control module simulates an interaction process between the distribution network master station and the distribution terminal, but in the process, the master control module can add a second instruction (such as a master call instruction or a time setting instruction) while sending a remote control instruction so as to test whether the execution of the first instruction (the remote control instruction) is affected when the distribution terminal receives an irregular instruction.
By observing the switching actions and responses of the power distribution terminal after receiving the first instruction and the second instruction, the correctness and robustness of the remote control function of the power distribution terminal can be judged, the direct response of the remote control command is checked, other scenes possibly encountered in the actual power grid operation are considered, the remote control command can be correctly executed even when the irregular command is received, the comprehensiveness and reliability of the test are improved, and therefore the accuracy of the debugging result of the remote control function of the power distribution terminal is improved.
Step S102, a test instruction is sent to a terminal to be tested, and first response data of the terminal to be tested responding to the test instruction is received.
In the first embodiment, when the communication connection between the communication unit of the to-be-tested power distribution terminal and the distribution network main station is disconnected, downlink data generated by simulation of the master control module is sent to the communication unit of the to-be-tested power distribution terminal according to the instruction of the master control module, and the downlink data includes a test instruction, such as a remote control command. After receiving the test instructions, the power distribution terminal to be tested performs corresponding operations according to the instruction content, for example, executes a remote control command to make the switch act, and sends uplink data, namely first response data, to the communication interface module, wherein the data generally comprises response data of the power distribution terminal to be tested to the test instructions, for example, information of switch state change. The communication interface module transmits the first response data to the master control module, and the master control module judges whether the remote control function of the power distribution terminal to be tested works normally or not according to the received response data, namely 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.
By sending the test instruction and receiving the first response data, the remote control correctness of the power distribution terminal can be automatically and comprehensively judged, the test efficiency and accuracy are effectively improved, and the burden of staff is reduced.
And step S103, determining a remote control test result of the terminal to be tested according to the first response data.
In the first embodiment, after the master control module receives the uplink data, i.e. the first response data, the master control module analyzes the information therein to evaluate whether the power distribution terminal correctly executes the remote control command and whether the remote control function is preferentially processed under the condition of the compound command. If the terminal to be tested can correctly recognize and execute the remote control command, the stability of the remote control function can be indicated even if other interference commands exist. Based on the analysis of the first response data, the master control module can determine the result of the terminal to be tested in the remote control function test, namely whether the remote control operation is successful, whether the response is timely and whether the sequence of processing the remote control commands with different priorities is correct, and the result is used as the basis for judging the remote control correctness.
In summary, according to the remote control test method for the terminal provided by the embodiment of the application, under the condition that the communication connection between the terminal to be tested and the distribution network main station is disconnected is detected, a test instruction is generated according to a preset terminal control instruction, wherein the preset terminal control instruction at least comprises a first instruction and a second instruction, the execution priority of the first instruction is higher than that of the second instruction, the test instruction is sent to the terminal to be tested, the 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, and the problems that when the remote control function of the distribution network terminal in the distribution network automatic system is debugged in the related art, the conventional remote control operation debugging needs multiple persons to commonly control, the test content is single, time and energy are wasted, and the test efficiency is low are solved. The test command is generated and sent under the condition that the communication connection between the to-be-tested terminal and the distribution network main station is disconnected, the limitation and interference of an actual distribution network main station are avoided, the test process is more flexible and efficient, various conditions possibly encountered by the distribution terminal in actual operation can be simulated more comprehensively through fusion of an irregular command in the test command, sporadic events which occur rarely in normal operation are included, performance of the distribution terminal under various complex conditions is ensured, efficiency and accuracy of remote control function test of the distribution terminal are improved, the effect of improving detection standard and quality of the distribution terminal before network access is achieved, and the effect of improving operation stability of the distribution network automatic system is further achieved. In addition, the traditional testing method needs the cooperation of a distribution network master station and the cooperation of on-site multi-post personnel, and by adopting the method, the single testing personnel or an automatic system can independently finish the testing, so that the debugging time is greatly reduced, the working intensity of the debugging personnel is obviously reduced, and the labor cost and the workload are greatly reduced.
Optionally, in the remote control test method for a terminal provided by the embodiment of the application, the test instruction is generated according to a preset terminal control instruction, and the method comprises the steps of determining a first preset instruction as a first instruction, wherein the first preset instruction is an instruction for controlling the terminal in the distribution network automation system in a remote control mode, determining a second preset instruction as a second instruction, wherein the second preset instruction is an instruction for acquiring 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.
In the first embodiment, the first preset command (i.e., the first command) may refer to a single remote control command or a set of remote control commands, and the purpose of the first preset command is to operate the distribution terminal, such as the switch, in the distribution network automation system through remote control (i.e., remote control). The second preset instructions (i.e., the second instructions described above) are a set of commands other than remote control commands for the purpose of obtaining information, such as equipment status, parameter settings, etc., from the power distribution terminals in the distribution network automation system.
By innovatively combining the first and second instructions, test instructions can be generated that include a variety of commands that simulate various complications that may be encountered in normal operation of the power distribution terminal. For example, a remote control command may be combined with a general call command to test whether the power distribution terminal is able to properly 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 capabilities in the event of multiple instruction concurrency.
Through the steps, the testing scene which is more complex and is closer to the actual running environment can be created, so that the remote control function and other relevant performances of the power distribution terminal can be evaluated more comprehensively and accurately, the safety and reliability of the power distribution terminal in the actual application are ensured, the testing efficiency is improved, the manual participation is reduced, the problems caused by interference of a main station or inaccuracy of manual testing are avoided, and the efficiency and accuracy of testing the remote control function of the power distribution terminal are improved.
Optionally, in the remote control test method for the terminal provided by the embodiment of the application, the first instruction and the second instruction are combined, and a test instruction is generated according to the combined instructions, wherein the method comprises the steps of determining at least one execution sequence between the first instruction and the second instruction, generating an instruction sequence according to the execution sequence and the first instruction and the second instruction for each execution sequence in the at least one execution sequence to obtain an instruction sequence corresponding to each execution sequence, and generating the test instruction according to the instruction sequence corresponding to each execution sequence in the at least one execution sequence.
In an alternative embodiment, first, it is desirable to determine the order of execution between a first instruction (e.g., a remote command) and a second instruction (e.g., a total call command, a time tick command, etc.) during a test. The execution sequence may include a plurality of possible sequential combinations of execution of the first instruction prior to execution of the second instruction, execution of the second instruction prior to execution of the first instruction, or both. Based on the determined execution order, an instruction sequence including a first instruction and a second instruction is generated. For example, if the execution order is remote control command before total call command, the instruction sequence may be remote control command→total call command, and if the execution order is other instruction before remote control command, the instruction sequence may be other instruction→remote control command. Each execution order corresponds to a sequence of instructions.
Then, a series of test instructions are formed based on all of the generated instruction sequences. The test instructions are used in the actual test process and are sent to the power distribution terminal to be tested through the communication interface module, and the response of the power distribution terminal is monitored, so that the correctness of the remote control function of the power distribution terminal is judged.
By simulating the combination sequence of multiple commands, the remote control function performance of the power distribution terminal in different scenes can be checked, the remote control function can be preferentially and correctly executed in actual operation even under the condition of interference of other commands, the testing efficiency is improved, the comprehensiveness and the reliability of the test are enhanced, and the operation quality of the power distribution automation terminal and the safe and stable operation of a power grid are improved.
Optionally, in the remote control test method of the terminal provided by the embodiment of the application, 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 sequence in at least one execution sequence, including determining, for the instruction sequence corresponding to each execution sequence, an execution interval duration between each instruction in the instruction sequence, where the execution interval duration at least includes one of 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; generating test instructions according to the instruction sequences corresponding to each execution sequence in at least one execution sequence and the execution interval duration between each instruction in the instruction sequences.
In the first embodiment, in order to ensure that the remote control function of the power distribution terminal can be correctly executed under various complex situations, whether the power distribution terminal can correctly execute different types of commands can be tested by controlling the execution sequence and the execution interval duration between each command in the test command.
In particular, with respect to the execution interval duration between at least one first instruction and at least one second instruction, the "first instruction" and "second instruction" herein may be understood as different types of commands, such as a "first instruction" being a remote control command, and a "second instruction" being possibly a general summoning command or a time tick command. In the test process, the time interval between the remote control command and other commands can be considered to simulate the concurrent or staggered execution scene of various commands possibly occurring in actual operation, and the response capability and priority processing of the power distribution terminal among different types of commands can be checked.
For the duration of the execution interval between each of the at least one first instruction, this refers to the execution interval between commands of the same type (e.g. a plurality of remote control commands). By adjusting these intervals, the processing ability of the power distribution terminal to a continuous or multiple commands of the same type can be tested, such as sending multiple remote control commands continuously in a short time, and observing whether the power distribution terminal can correctly recognize and execute each command.
The execution interval duration between each of the at least one second instruction is similar to that described above, but here refers to the execution interval between different second instructions. For example, in a test, a plurality of general summoning commands or time setting commands may be continuously transmitted, and the response speed and accuracy of the power distribution terminal to these commands may be evaluated.
After the execution interval duration between each instruction in the instruction sequences is determined, according to the instruction sequences corresponding to each execution sequence in at least one execution sequence and the execution interval duration between each instruction in the instruction sequences, test instructions are generated, so that the type and the sequence of commands in the test instructions can be changed, the waiting time between every two commands is adjustable, the remote control test is more flexible and comprehensive, the basic remote control function of the power distribution terminal can be tested, the complex condition in actual operation can be simulated, the performance of the power distribution terminal in a complex communication environment can be tested more comprehensively, the reliability of the remote control function of the power distribution terminal is ensured, and the operation quality of the distribution network automation terminal is effectively improved.
Optionally, in the remote control test method for a terminal provided by the embodiment of the application, the test instruction is generated according to a preset terminal control instruction, and the method comprises the steps of determining a first preset instruction as a first instruction, wherein the first preset instruction is an instruction for controlling the terminal in a remote control mode, determining a third preset instruction as a second instruction, wherein the third preset instruction is an instruction for adjusting time information of any terminal in a distribution network automation system, combining the first instruction and the second instruction, and generating the test instruction according to the combined instruction.
In the first embodiment, the first preset command (i.e., the first command mentioned above) refers to a command for controlling the power distribution automation terminal by a remote control manner, such as controlling the opening and closing of the circuit breaker. In practical applications, the instruction is based on remote control operation commonly found in distribution network automation systems, and the control of the distribution terminal is achieved by sending a specific digital output signal. The third preset instruction (i.e., the second instruction) refers to an instruction for adjusting time information of any terminal in the distribution network automation system, i.e., a time synchronization command. Such instructions are used to ensure time synchronization of all devices in the system, and are of great importance for operation and event logging of the grid.
The first and second instructions are then combined to simulate how many different types of instructions may be received by the power distribution terminal at the same time during actual operation of the power grid. For example, when a circuit breaker needs to be remotely operated, the distribution network master station may be simultaneously performing time synchronization or other operations.
And finally, generating a test instruction according to the combined instruction, wherein the test instruction is actually used for simulating the complex situation which does not occur frequently in actual operation through the master control module. In this way, the processing behavior of the distribution terminal in the face of simultaneous arrival of higher and lower priority commands can be evaluated to ensure that in an emergency situation (for example, controlling the switching of a circuit breaker), the distribution terminal is able to execute the remote control command preferentially and correctly, without being disturbed by other lower priority commands. Compared with the traditional single instruction test, the method can more effectively detect and ensure the stability and reliability of the terminal under a complex operation environment, especially when the correct execution of remote control operation is critical to the safe operation of a power grid. Through simulating various instruction combinations possibly encountered in actual operation, the performance of the power distribution terminal can be tested more comprehensively, and the application effect of the power distribution terminal in a power grid is improved.
Optionally, in the remote control test method of the terminal provided by the embodiment of the application, the remote control test result of the terminal to be tested is determined according to the first response data, the remote control test method comprises the steps of determining a first sequence according to the execution priority of the first instruction and the execution priority of the second instruction, determining a second sequence according to the first response data, wherein the second sequence refers to the sequence of the first instruction and the second instruction executed by the terminal to be tested, comparing the first sequence with the second sequence to obtain a comparison result, and determining that the remote control function of the terminal to be tested is normally the test result under the condition that the comparison result is the same and the first response data indicates that the terminal to be tested correctly executes the first instruction, and determining that the remote control function of the terminal to be tested is abnormal under the condition that the comparison result is different or the first response data indicates that the terminal to be tested incorrectly executes the first instruction.
In the first embodiment, in order to correctly determine the power distribution terminal, the core evaluation logic in the remote control correctness evaluation method is automatically debugged. Specifically, the method judges whether the remote control function of the power distribution terminal is normal or not by testing the execution priority and the execution sequence of the remote control command and other commands (such as a total call, a time tick signal and the like).
In an alternative embodiment, the master module determines the expected execution order, i.e., the first order, based on the execution priorities of the first instruction (e.g., remote control command) and the second instruction (e.g., total call command, time tick command, etc.). In the first embodiment, the remote control command has a higher priority than other commands, and therefore, in theory, the remote control command should be executed with priority.
And then, the master control module receives uplink data returned by the power distribution terminal in response to the test instruction, namely the first response data, through the communication unit of the power distribution terminal to be tested, so as to determine the actual execution sequence, namely the second sequence, of the power distribution terminal. And comparing the first sequence (expected execution sequence) with the second sequence (actual execution sequence) to obtain a comparison result.
Finally, if the comparison result shows that the expected execution sequence is the same as the actual execution sequence, and the first response data (namely, the response of the terminal to the remote control command) indicates that the terminal to be tested correctly executes the first instruction (the remote control command), the remote control function of the terminal to be tested is normally determined as a test result. Otherwise, if the comparison result shows that the sequence is different, or the first response data indicate that the terminal to be tested does not execute the first instruction correctly, determining that the remote control function of the terminal to be tested is abnormal as a test result.
By inserting an irregular command into the remote control command, the processing logic of the distribution terminal when the distribution terminal faces the commands with high priority and low priority is tested, so that the distribution terminal can process the remote control command correctly and preferentially in normal operation, the problems of signal missending, protection misoperation and the like are avoided, and the comprehensiveness and accuracy of remote control function test of the distribution network automation terminal are improved.
In an alternative embodiment, the test results corresponding to the combined test instructions by different types of remote control commands may be as shown in table 1. The "remote control" in table 1, that is, the above-described first preset instruction, that is, the above-described first instruction, the "total call" in table 1, that is, the above-described second preset instruction, the "time-setting" that is, the above-described third preset instruction, the "remote control preset" that is, the above-described third instruction, and the "total call", "time-setting" or the "remote control operation cancel" are specific examples of the above-described second instruction.
TABLE 1
Optionally, in the remote control test method of the terminal provided by the embodiment of the application, before the test instruction is sent to the terminal to be tested, the method further comprises the steps of determining control operation of the network distribution host station to the terminal to be tested and generating a third instruction according to the control operation, wherein the third instruction is used for testing the function of the terminal to be tested for receiving the instruction, 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 under the condition that second response data of the terminal to be tested responding to the third instruction is received.
In an alternative embodiment, the control operation of the distribution network master station to the terminal to be tested mainly refers to all remote control operations of the distribution network master station on the distribution terminal, for example, the switching of a circuit breaker. After determining that the power distribution terminal can perform the control operation, the master control module generates a corresponding instruction, namely a third instruction. This instruction not only contains the remote control operation itself, but also can freely combine other types of commands, such as a general call command or a time-lapse command, to test the capability of the power distribution terminal to receive the instruction in a complex communication environment.
And then, after receiving a third instruction of the master control module, the communication interface module sends the third instruction to the power distribution terminal to be tested in a simulated downlink data form. After receiving the third instruction, the terminal to be tested executes corresponding operation and sends response data, namely second response data, to the master control module through the communication interface module. It should be noted that after the power distribution terminal receives the third instruction, the actual operation action is not required to be executed, and the second response data is only sent to the master control module through the communication interface module under the condition that the third instruction is received, so that the power distribution terminal can correctly receive and process the instruction from the simulation master station. If the power distribution terminal is able to respond, it is indicated that the function of receiving the instruction is normal. This step verifies the accuracy of the command transmission and the ability of the distribution terminal to receive the command.
Finally, after the second response data is successfully received, the master control module executes the next test instruction and transmits the test instruction, which is usually a more comprehensive remote control test instruction, so as to further check the remote control function of the terminal. This step ensures that more complex functional verification is performed only after the terminal has responded correctly to the preliminary instruction test.
The control operation of the distribution network master station is simulated, the comprehensive test of the remote control function and other functions of the distribution terminal is realized independently of an actual distribution network master station system, the test efficiency and accuracy are improved, the workload of field debugging personnel is reduced, and powerful technical support is provided for safe and stable operation of a power grid.
Optionally, fig. 2 is a schematic diagram of a data flow in an optional remote control testing method of a terminal according to the first embodiment of the present application in the first embodiment. Fig. 2 shows the structure and function of a simulation master station, which is composed of a master control module, a communication interface module and a standard source tester, wherein the master control module plays the role of a control center and can generate a remote control operation simulation signal containing a master call command, a time setting command, a remote control withdrawal command or an interference message, and the signals are sent to the communication interface module. The master control module is realized based on a software algorithm, is internally provided with a judging logic circuit and is used for automatically judging the correctness of remote control operation, and the flexible control of the testing process is realized through the generation and the transmission of a programming control signal. The communication interface module is a hardware module and can be used for realizing communication between the simulation master station and the distribution terminal and communication between the distribution network master station and the distribution terminal. The communication interface module is connected with the communication unit of the power distribution terminal to be tested in series, and data transmission between the simulation master station and the power distribution terminal to be tested is realized through serial uplink and serial downlink data transmission. The standard source tester is a digital signal tester, and the total control module is used for controlling and accurately generating and measuring digital signals (such as current signals, voltage signals and the like), so that the function, performance and other indexes of the power distribution terminal to be tested are tested, controlled and accurately judged, the requirements of different testing scenes are met, and the accuracy and reliability of the test are ensured.
Optionally, fig. 3 is a schematic diagram two of data flow in an optional remote control testing method of a terminal according to the first embodiment of the present application. Fig. 3 depicts the data transmission process in the simulated master station mode, first, the master control module generates remote control operation simulation signals which may include remote control presets, master call commands, time tick commands, remote control undo commands, and interference messages, etc. The signal starts from the master control module and is transmitted to the communication unit of the power distribution terminal to be tested through the serial downlink of the communication interface module. In the process, the switching mode of the communication interface module is driven by software instructions, so that dynamic and rapid mode switching between a monitoring mode and a simulation master station mode is realized, and the method is suitable for changeable test environments. The communication unit of the power distribution terminal to be tested receives the signals and carries out corresponding processing, such as responding to a general calling command, receiving a time setting command, executing remote control preset operation or processing a remote control cancel command. The uplink data is returned to the master control module from the communication unit of the power distribution terminal to be tested through the serial uplink of the communication interface module, and the master control module automatically judges the correctness of remote control operation according to the received feedback signals, so that the test of the remote control function of the power distribution terminal under the abnormal condition is realized. In addition, the master control module further comprises an algorithm for optimizing signal transmission between the communication interface module and the standard source tester, so that the testing efficiency is improved, the module with self-learning capability can optimize a combination strategy of remote control commands according to historical testing data, and the testing accuracy and comprehensiveness are improved.
In the embodiment of the application, the inserting mechanism of the remote control command is based on a self-defined test strategy, so that a user is allowed to adjust the time and sequence of command combination according to test requirements, for example, the user can set to insert a time setting command immediately after a total calling command or insert a remote control cancel command after remote control preset operation, and even randomly insert an interference message in the data transmission process so as to simulate the abnormal condition in practical application and comprehensively test the remote control function of the power distribution terminal. The standard source tester works cooperatively with the communication interface module and the master control module, so that the quality and stability of signals are ensured, and the accuracy and reliability of the test are improved.
In the whole test flow, the simulation master station can test the correctness of the remote control function of the power distribution terminal under the abnormal condition by generating and sending a remote control operation simulation signal. The combination of the hardware module and the software algorithm not only improves the flexibility of the test, but also enhances the accuracy and reliability of the test. The dynamic switching mechanism and the self-learning algorithm are introduced, so that the testing flow is further optimized, and the testing efficiency is improved. The set of test scheme provides powerful support for automatic test of the power distribution terminal, effectively reduces test cost, and ensures high efficiency and stability of power grid operation.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
Example two
The second embodiment of the present application also provides a remote control testing device for a terminal, and it should be noted that the remote control testing device for a terminal of the second embodiment of the present application may be used to execute the remote control testing method for a terminal provided by the first embodiment of the present application. The remote control testing device for a terminal provided in the second embodiment of the present application is described below.
Fig. 4 is a schematic diagram of a remote control testing device for a terminal according to a second embodiment of the present application, where the device is applied to a distribution network automation system, and the distribution network automation system at least includes a terminal to be tested and a distribution network master station, and the distribution network master station is used for controlling the terminal in the distribution network automation system. As shown in fig. 4, the apparatus includes a first generation unit 401, a reception unit 402, and a determination unit 403.
Specifically, the first generating unit 401 is configured to generate a test instruction according to a preset terminal control instruction when detecting that a communication connection between a terminal to be tested and a distribution network master station is disconnected, where the preset terminal control instruction includes at least one of a first instruction and a second instruction, and an execution priority of the first instruction is higher than an execution priority of the second instruction.
The receiving unit 402 is configured to send a test instruction to a terminal to be tested, and receive first response data of the terminal to be tested in response to the test instruction.
A determining unit 403, configured to determine a remote control test result of the terminal to be tested according to the first response data.
According to the remote control testing device for the terminal provided by the second embodiment of the application, under the condition that the communication connection between the terminal to be tested and the distribution network main station is disconnected is detected through the first generating unit 401, a testing instruction is generated according to a preset terminal control instruction, wherein the preset terminal control instruction at least comprises a first instruction and a second instruction, the execution priority of the first instruction is higher than that of the second instruction, the receiving unit 402 sends the testing instruction to the terminal to be tested and receives first response data of the terminal to be tested for responding to the testing instruction, and the determining unit 403 determines a remote control testing result of the terminal to be tested according to the first response data. The test command is generated and sent under the condition that the communication connection between the to-be-tested terminal and the distribution network main station is disconnected, the limitation and interference of an actual distribution network main station are avoided, the test process is more flexible and efficient, various conditions possibly encountered by the distribution terminal in actual operation can be simulated more comprehensively through fusion of an irregular command in the test command, sporadic events which occur rarely in normal operation are included, performance of the distribution terminal under various complex conditions is ensured, efficiency and accuracy of remote control function test of the distribution terminal are improved, the effect of improving detection standard and quality of the distribution terminal before network access is achieved, and the effect of improving operation stability of the distribution network automatic system is further achieved. In addition, the traditional testing method needs the cooperation of a distribution network master station and the cooperation of on-site multi-post personnel, and by adopting the method, the single testing personnel or an automatic system can independently finish the testing, so that the debugging time is greatly reduced, the working intensity of the debugging personnel is obviously reduced, and the labor cost and the workload are greatly reduced.
Optionally, in the remote control testing device for a terminal provided in the second embodiment of the present application, the first generating unit 401 includes a first determining subunit, configured to determine a first preset instruction as a first instruction, where the first preset instruction is an instruction for controlling a terminal in a distribution network automation system by a remote control manner, a second determining subunit, configured to determine a second preset instruction as a second instruction, where the second preset instruction is an instruction for acquiring terminal information of any terminal in the distribution network automation system, and a first generating subunit, configured to combine the first instruction and the second instruction, and generate a testing instruction according to the combined instruction.
Optionally, in the remote control testing device for a terminal provided by the second embodiment of the present application, the generating subunit includes a determining module, a first generating module, a second generating module, and a testing module, where the determining module is configured to determine at least one execution sequence between the first instruction and the second instruction, the first generating module is configured to generate, for each execution sequence in the at least one execution sequence, an instruction sequence corresponding to each execution sequence according to the execution sequence, the first instruction and the second instruction, and the second generating module is configured to generate, according to the instruction sequence corresponding to each execution sequence in the at least one execution sequence, a testing instruction.
Optionally, in the remote control testing device of the terminal provided by the second embodiment of the present application, the instruction sequence includes at least one first instruction and at least one second instruction, and the second generating module includes a determining submodule, configured to determine, for each instruction sequence corresponding to each execution order, an execution interval duration between each instruction in the instruction sequence, where the execution interval duration includes at least one of an execution interval duration between the at least one first instruction and the at least one second instruction, an execution interval duration between each first instruction in the at least one first instruction, and an execution interval duration between each second instruction in the at least one second instruction, and a generating submodule, configured to generate the test instruction 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.
Optionally, in the remote control test device for a terminal provided in the second embodiment of the present application, the first generating unit 401 includes a third determining subunit configured to determine a first preset instruction as a first instruction, where the first preset instruction is an instruction for controlling the terminal by remote control, a fourth determining subunit configured to determine a third preset instruction as a second instruction, where the third preset instruction is an instruction for adjusting time information of any terminal in the distribution network automation system, and a second generating subunit configured to combine the first instruction and the second instruction and generate a test instruction according to the combined instruction.
Optionally, in the remote control testing device for a terminal provided in the second embodiment of the present application, the determining unit 403 includes a fifth determining subunit configured to determine a first order according to an execution priority of the first instruction and an execution priority of the second instruction, a sixth determining subunit configured to determine a second order according to first response data, where the second order refers to an order in which the first instruction and the second instruction are executed by the terminal to be tested, a comparing subunit configured to compare the first order and the second order to obtain a comparison result, and a seventh determining subunit configured to determine, when the comparison result is the same order and the first response data indicates that the terminal to be tested executes the first instruction correctly, a remote control function of the terminal to be tested as a testing result normally, and an eighth determining subunit configured to determine, when the comparison result is different, or the first response data indicates that the terminal to be tested does not execute the first instruction correctly, a remote control function abnormality of the terminal to be tested as a testing result.
Optionally, in the remote control testing device for a terminal provided by the second embodiment of the present application, the device further includes a second generating unit, configured to determine a control operation of the distribution network host station on the terminal to be tested, and generate a third instruction according to the control operation, where the third instruction is used to test a function of the terminal to be tested for receiving the instruction, a sending unit, configured to send the third instruction to the terminal to be tested, and an executing unit, configured to execute, when receiving second response data of the terminal to be tested in response to the third instruction, a step of sending the test instruction to the terminal to be tested.
The remote control test device of the terminal includes a processor and a memory, the first generating unit 401, the receiving unit 402, the determining unit 403, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the efficiency of remote control debugging of the power equipment is improved by adjusting the kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
A third embodiment of the present invention provides a computer-readable storage medium having a program stored thereon, which when executed by a processor, implements a remote control test method for a terminal.
The fourth embodiment of the invention provides a processor, which is used for running a program, wherein the remote control test method of the execution terminal is used when the program runs.
As shown in FIG. 5, a fifth embodiment of the present invention provides an electronic device, where the device includes a processor, a memory, and a program stored in the memory and capable of running on the processor, and when the processor executes the program, the processor implements the steps of generating a test instruction according to a preset terminal control instruction when detecting that a communication connection between a terminal to be tested and a network distribution host station is disconnected, where the preset terminal control instruction includes at least one of a first instruction and a second instruction, where an execution priority of the first instruction is higher than an execution priority of the second instruction, sending the test instruction to the terminal to be tested, receiving first response data of the terminal to be tested in response to the test instruction, and determining a remote control test result of the terminal to be tested according to the first response data.
The processor also realizes the following steps of generating a test instruction according to a preset terminal control instruction, wherein the first preset instruction is determined to be a first instruction, the first preset instruction is an instruction for controlling a terminal in the distribution network automation system in a remote control mode, the second preset instruction is determined to be a second instruction, the second preset instruction is an instruction for acquiring terminal information of any terminal in the distribution network automation system, and the first instruction and the second instruction are combined and the test instruction is generated according to the combined instruction.
The processor also comprises the steps of combining the first instruction and the second instruction, generating a test instruction according to the combined instructions, determining at least one execution sequence between the first instruction and the second instruction, generating an instruction sequence according to the execution sequence and the first instruction and the second instruction for each execution sequence in the at least one execution sequence to obtain an instruction sequence corresponding to each execution sequence, and generating the test instruction according to the instruction sequence corresponding to each execution sequence in the at least one execution sequence.
The processor further comprises the steps of generating test instructions according to the instruction sequences corresponding to each execution sequence in at least one execution sequence, determining the execution interval duration between each instruction in the instruction sequences according to the instruction sequences corresponding to each execution sequence, wherein the execution interval duration at least comprises one of 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 the test instructions according to the instruction sequences corresponding to each execution sequence in at least one execution sequence and the execution interval duration between each instruction in the instruction sequences.
The processor also realizes the following steps of generating a test instruction according to a preset terminal control instruction, wherein the test instruction comprises the steps of determining a first preset instruction as a first instruction, determining a third preset instruction as a second instruction, wherein the third preset instruction is an instruction for adjusting time 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.
The processor further comprises the steps of determining a remote control test result of the terminal to be tested according to the first response data, determining a first sequence according to the execution priority of the first instruction and the execution priority of the second instruction, determining a second sequence according to the first response data, wherein the second sequence refers to the sequence of the first instruction and the second instruction executed by the terminal to be tested, comparing the first sequence with the second sequence to obtain a comparison result, and determining that the remote control function of the terminal to be tested is normal as the test result when the comparison result is the same sequence and the first response data indicates that the terminal to be tested executes the first instruction correctly, or determining that the remote control function of the terminal to be tested is abnormal as the test result when the comparison result is different in sequence or the first response data indicates that the terminal to be tested does not execute the first instruction correctly.
The method further comprises the steps of determining control operation of the network distribution host station on the terminal to be tested and generating a third instruction according to the control operation before the test instruction is sent to the terminal to be tested when the processor executes the program, 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 the second response data of the terminal to be tested responding to the third instruction is received.
The device herein may be a server, PC, PAD, cell phone, etc.
The application also provides a computer program product which is suitable for executing a program initialized with the following method steps when being executed on data processing equipment, wherein under the condition that the communication connection between a terminal to be tested and a network distribution main station is detected to be disconnected, a test instruction is generated according to a preset terminal control instruction, the preset terminal control instruction at least comprises a first instruction and a second instruction, 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, the first response data of the terminal to be tested for responding 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.
When executed on a data processing device, the method is further adapted to perform a program for initializing the method steps of generating a test instruction according to 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 in a remote control manner, determining a second preset instruction as a second instruction, wherein the second preset instruction is an instruction for acquiring 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.
When executed on a data processing device, the method is further adapted to perform a program initializing method steps of combining a first instruction and a second instruction, generating a test instruction according to the combined instructions, including determining at least one execution order between the first instruction and the second instruction, generating an instruction sequence according to the execution order, the first instruction and the second instruction for each of the at least one execution order, obtaining an instruction sequence corresponding to each of the execution orders, and generating the test instruction according to the instruction sequence corresponding to each of the at least one execution order.
When executed on a data processing apparatus, the program is further adapted to perform initializing a program having method steps of generating a test instruction from an instruction sequence corresponding to each of the at least one execution order, wherein the instruction sequence comprises at least one first instruction and at least one second instruction, determining an execution interval duration between each of the instructions in the instruction sequence for the instruction sequence corresponding to each of the at least one execution order, wherein the execution interval duration comprises at least one of an execution interval duration between the at least one first instruction and the at least one second instruction, an execution interval duration between each of the at least one first instruction, and an execution interval duration between each of the at least one second instruction, and generating the test instruction from the instruction sequence corresponding to each of the at least one execution order and the execution interval duration between each of the instructions in the instruction sequence.
When the method is executed on the data processing equipment, the method is further suitable for executing a program which is initialized with the following method steps of generating a test instruction according to a preset terminal control instruction, wherein the first preset instruction is determined to be a first instruction, the first preset instruction is an instruction for controlling a terminal in a remote control mode, the third preset instruction is determined to be a second instruction, the third preset instruction is an instruction for adjusting 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.
When the remote control testing method is executed on the data processing equipment, the remote control testing method is suitable for executing a program which is initialized with the following method steps, the remote control testing result of the terminal to be tested is determined according to first response data, the remote control testing method comprises the steps of determining a first sequence according to the execution priority of a first instruction and the execution priority of a second instruction, determining a second sequence according to the first response data, wherein the second sequence refers to the sequence of the first instruction and the second instruction executed by the terminal to be tested, comparing the first sequence with the second sequence to obtain a comparison result, and normally determining the remote control function of the terminal to be tested as the testing result when the comparison result is the same and the first response data indicates that the terminal to be tested executes the first instruction correctly, and determining the remote control function abnormality of the terminal to be tested as the testing result when the comparison result is different or the first response data indicates that the terminal to be tested does not execute the first instruction correctly.
When the method is executed on the data processing equipment, the method is further suitable for executing a program initialized with the following method steps, and before the test instruction is sent to the terminal to be tested, the method further comprises the steps of determining control operation of the distribution network master station to the terminal to be tested and generating a third instruction according to the control operation, wherein the third instruction is used for testing the function of the terminal to be tested for receiving the instruction, 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 under the condition that second response data of the terminal to be tested responding to the third instruction is received.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer 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 disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.