Summary of the invention
Technical problem to be solved by this invention is:
1. further strengthened the consistency of each automation producer and each dispatching terminal signal procedure;
2. reduce the operating time of automation factory station end and main website end debugging;
3. avoid because the telemechanical stipulations defective that artificial origin or misinterpretation produce is beneficial to the management of automated communication program software.
For solving the problems of the technologies described above, the invention provides a kind of power grid protocol analysis and method of testing, it is characterized in that comprising the following steps:
1) list the power grid protocol test items: list all test points that contain stipulations, and all possible errors of analog communication process, according to predefined basis for estimation, judge the result of test individual event automatically;
2) power grid protocol test items weight is set: the heavy method of testing of the right to use, promptly each test event all is provided with weight, comprise and to survey and non-ly must survey item, must survey and have right of veto by one vote, if there is one must survey and do not pass through, whole stipulations test result is not just passed through, the non-item of must surveying can be provided with 1-5 level weight according to important level, calculate the total points of stipulations test at last, can draw the conclusion of stipulations test accurate science, have great practical value by the weight method of testing.
3) the automatic test event of power grid protocol test is set: the tester sets the parameter of automatic test, comprises period that period, mode of operation, the period of remote regulating, remote regulating value, the quality of remote control are described etc., and all test processs are controlled automatically;
4) stipulations are tested;
5) in test process, carry out record, and carry out complete monitoring: whole process is the test process of monitoring stipulations in real time, to the analysis that makes an explanation of stipulations message, mistake to current simulation is pointed out, correct response and wrong message are analyzed and pointed out, and test case and the result to each test event monitors in real time, and recorded message, but the message of inverting is simultaneously recurred test process.
6) obtain test result automatically, automatically printing test is reported list: behind the EOT, automatically draw test result and test detail, comprise each test event weight, whether test, pass through situation, form complete test report, and with the test case warehousing, so that inquiry test record in the past, comprise result, test detail, test process and test packet, and can look back test process.
The beneficial effect that the present invention reached:
Power grid protocol analysis of the present invention, stipulations method of testing by above step, have further been strengthened the consistency of each automation producer and each dispatching terminal signal procedure; Reduce the operating time of automation factory station end and main website end debugging; Avoided because the telemechanical stipulations defective that artificial origin or misinterpretation produce is beneficial to the management of automated communication program software.
Embodiment
Fig. 1 is power grid protocol analysis and test system structure figure among the present invention, system comprises a portable machine, one socket gauge is installed on it to be analyzed and testing software approximately, also comprise a switch and serial ports expansion equipment, first kind of stipulations is serial stipulations, by serial ports expansion equipment, test macro can carry out serial communication with tested substation, carry out the test implementation of first kind of stipulations, second kind of stipulations is network stipulations, can carry out network communication with tested substation by the switch test system, implement the test of second kind of stipulations.
Fig. 4 is the system's main functional modules schematic diagram among the present invention.Described portable machine comprises following functional module:
1.FACE interface: be human-computer interaction interface, can carry out landing of user by this module, system configuration, test configurations, the configuration of test item weights, can on the interface, carry out the control of start-stop to test process, the energy explicit message, browsing data, the alarm when monitoring communication and the real-time condition of test, detailed, the list that outputs test result of test record, test that can also query history provides printing function.
2.Register accreditation process: realize the registering functional of application program sequence number, realize to user's the management and the management of user right.Native system has all been realized rights management to functions such as test, configuration, communications, promptly has the user of this authority just to operate accordingly, has guaranteed the just and seriousness of test process.If the keeper lands increase, deletion that accreditation process can realize user and group, giving of the authority of user and group can be appointed group leader.If group leader lands accreditation process, can realize management to this group membership.If domestic consumer lands accreditation process, can revise the password of oneself and browse oneself authority.
3.Scanner serial communication process: this process is responsible for serial communication, the interpretive analysis of being responsible for first kind of stipulations, the formulation of first kind of stipulations testing scheme, the enforcement of scheme, be responsible for the supervision and the record of first kind of stipulations test process, the acquisition of test result, the output of test result.
4.Trynet1 network communication process: this process is responsible for network communication, the interpretive analysis of being responsible for second kind of stipulations, the formulation of second kind of stipulations testing scheme, the enforcement of scheme, be responsible for the supervision and the record of second kind of stipulations test process, the acquisition of test result, the output of test result.
Fig. 2 is the first stipulations main website test flow chart among the present invention; Fig. 3 is the second stipulations main website test flow chart among the present invention.
Protocol analysis test specific operation process is:
A. move the Register accreditation process, land, add the user who has configuration, tests authority with the system manager.
B. move the FACE interface, land with the user who adds.
C. in the configuration of the enterprising row communication parameter of FACE, test parameter, form template, also the test template of preserving before can be loaded into.
D. guarantee the connection of hardware, when for example carrying out the test of first kind of stipulations, portable machine and serial port device, tested substation physically are communicated with, when carrying out second kind of stipulations test, make on portable machine and switch, the tested substation network to be connected.
E. on FACE, start test, Scanner or Trynet1 that will be relevant according to the automatic pull-up of protocol type of test, and begin test.
F. can the real time monitoring test case on FACE.
G. behind the EOT, hit testing finishes on FACE, the output test case.
In the process of stipulations communication, the correct interpretation of data, normal release and foundation that communication connects, data reissue with fault tolerant mechanism all be very important, if communication product does not have processes complete or inaccurate in these areas, to have a strong impact on communication, even at all can't communication, yet some aspect for stipulations, handling inaccurately can not influence normal communication, thus want the stipulations situation of correct response communication product, just can not be identical to the various test events of stipulations, the weight method of testing that the present invention discloses, the test event of stipulations divided into to survey and non-ly must survey item, must survey normally key item of item, must survey item and all could pass by whole stipulations test result, the non-item of must surveying is provided with 1-5 level weight, and last overall scores equals to survey an achievement and Fei Bi surveys an achievement summation.The stipulations disposal ability that can reflect communication product so truly, accurately, objectively.
A kind of test products is for the test result that draws of energy justice, must reduce artificial factor as much as possible, the power grid protocol automatic test approach is among the present invention: the test event for preparing in advance according to the tester, test parameter, the for example automatically mistake of simulation and the remote control period that needs of test automatically, parameters such as remote regulating period, form testing scheme and testing procedure, one by one test event is tested automatically, and real time monitoring test case, automatically point out current test event, show the current mistake of simulating, according to the logic determines storehouse, draw the correctness of current test event, and provide error reason and correct response, and the tester is come into plain view to whole test process, the tested person also knows the test case of oneself.EOT provides the conclusion and the test detail of test automatically, comprises the message of test process, and whole process is full-automatic, and testing scheme preserved into template, test call to each product is unified template, accomplishes that test process is fair and just, drops to artificial factor minimum.
Power grid protocol analysis of the present invention and method of testing have been avoided the inconsistent problem of variety of protocol interoperability option that in the past occurred in the stipulations debug process; Avoided because the telemechanical stipulations defective that artificial origin or misinterpretation produce also will help the management of automated communication program software; Improved the operating efficiency of grid automation factory station end and main website end, also greatly improved DL634.5101-2002, DL634.5104-2002 agreement application level simultaneously at electrical network.
The present invention is illustrated according to the preferred embodiment, should be appreciated that the foregoing description does not limit the present invention in any form, and all employings are equal to the technical scheme that form obtained of replacement or equivalent transformation, all drop within protection scope of the present invention.