Summary of the invention
The object of the present invention is to provide a kind of test macro that south electric network is protected communication system that is applicable to, the presumptive test project that completes of efficient, intelligence, automation, improves testing efficiency, reduces testing cost.
For achieving the above object, the technical solution used in the present invention is: be applicable to the test macro that south electric network is protected communication system, comprise man-machine interface, test cases database, communication message and device information database, main website emulation tool, prepositive communication computer and communication interface;
Wherein:
Man-machine interface is for the input of user command and the demonstration of communication message, data, test result and warning information;
Test cases database, for preserving preset test cases, and completes calling, edit and preserving of test cases according to the instruction of the instruction of main website emulation tool and prepositive communication computer;
Communication message and device information database, instruction for received communication front end processor, communication message between substation tester and tested device, data, substation configuration information and judged result are preserved, and respond the instruction of transferring of man-machine interface, according to the instruction of transferring of man-machine interface, return to corresponding message information, data message and object information;
Main website emulation tool, for the emulation of test command, for the functional requirement of south electric network failure information system, the main website order that emulation is all; After receiving the user command of man-machine interface input, according to the instruction of receiving, to carry out testing scheme editor, transfer, emulation is carried out in substation initialization and information point table is called in operation; Testing scheme that editor is completed is unique name and be deposited in test cases database after, to prepositive communication computer, send test and drive instruction;
Prepositive communication computer, the communication message that is used for the sending and receiving substation response of main website emulation command, after driving instruction, the test of the main website emulation tool receiving in real time communication message is resolved and data preparation, communication message form, communication process and the communication data of parsing and preset standard value are compared, and whether judged result is passed through; And communication message, device information, data and judged result are write in communication message and device information database; To man-machine interface, send idsplay order.
This programme is for the particularity of guarantor's communication system of south electric network, a kind of test macro is provided, this ties up to preset comprehensive substation testing scheme in test database, during test substation, only need in man-machine interface, input corresponding order, by main website emulation tool, transfer corresponding testing scheme and be sent to substation to be measured by prepositive communication computer, prepositive communication computer reads the responding communication message data of substation and preset standard information is compared, and result is passed to man-machine interface, improved the automaticity of test, realized the configuration correctness of automatic decision fault message substation, information integrity, the consistency to the configuration information in substation and the reading information in main website in the artificial stoning of needs not, effectively raise testing efficiency.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in detail.
From accompanying drawing 2, the present invention includes man-machine interface, test cases database, communication message and device information database, main website emulation tool, prepositive communication computer and communication interface.Man-machine interface is for the input of user command and the demonstration of communication message, data, test result and warning information; In man-machine interface, shown the whole test commands of this test macro, user can need to select test command according to test, and this order reaches main website emulation tool.
Test cases database, for the preservation of preset test cases, and transfers unit instruction according to data in test cell instruction and prepositive communication computer in main website emulation tool and completes the calling of test cases, editor and hold function; Preset comprehensive substation testing scheme in this test cases database, testing scheme content mainly comprises in substation initialization test, time synchronized test, protection event/self check information/switching value displacement information/fault localization value to be sent test, reads analog quantity test, definite value functional test, always call test, fault recorder data test transmission, general file test transmission and calling device fault history information to test.
Wherein substation initialization procedure is correct for solving in guarantor's communication system specially in the communication of < < south electric network relay protection and fault information system and interface specification > >, fast, automatically transmit the monk station information of conciliating, as station arrangement, definite value, state/analog quantity, the title of circuit etc., numbering, the relevant parameters such as dimension, guarantee the consistency of main website end and the definition of substation client information, increase work efficiency, the dedicated process standard that reduces cost of labor and formulate, substation initialization procedure mainly comprises two aspects, read substation configuration and the configuration of lower dress substation.Reading substation configuration is mainly that main website obtains substation information by sending substation configuration read command; Lower dress substation configures main Shi Dang main website end while revising the configuration of a certain substation, and main website writes substation configuration order by transmission and completes the modification to substation information.Reading substation layoutprocedure mainly comprises: that reads substation configuration respectively organizes title, reads the description of whole entries of one group of information/be worth, read " attribute structure " of whole entries of one group of information, the value/attribute structure/description of reading single destination directory, reading single entry.Lower dress substation layoutprocedure mainly comprises: what pass down substation configuration respectively organizes title, the lower description of whole entries of one group of information, lower " attribute structure " that fills whole entries of one group of information of filling.
Time synchronization process is that main website issues time synchronized order, completes synchronous to the substation time.
In protection event/self check information/switching value displacement information/fault localization value, sending process has been mainly to occur that when electrical network breaks down or installs operation when abnormal, the action message of substation handle assembly or abnormal letter pass to main website.
Read analog quantity process and be all analog quantitys that value that main website regularly reads all entries in a group by generic service order obtains this device.
Definite value function comprises definite value inquiry, the inquiry of current operation definite value area code, fixed value modification, the current operation definite value of switching district.Main website obtains operation definite value and the current operation definite value district of certain device in substation by sending definite value querying command.Main website is revised definite value and is switched the order of definite value district by transmission and completes the modification to definite value.
Total calling process is that main website timed sending always calls order to complete obtaining all state informations in substation.
Fault recorder data transmitting procedure is when electrical network breaks down, substation is collected fault recorder data and is formed in brief analysis report and delivers to main website, in brief analysis report, contain fault relevant information and corresponding recorded wave file title, main website can directly obtain required recorded wave file by calling order.
General file transmitting procedure is generally main website calling substation listed files, the selected file that will call from list, substation will be sent in selected file packing again, complete general file on give.
Calling device fault history information process be main website by calling query history information, obtain the event information in fixed time section.
Content measurement in test cases storehouse has covered the repertoire of substation to be measured, and in test, user can transfer the testing scheme being preset in test database, also can need to update testing scheme according to test.
Communication message database, instruction for received communication front end processor, communication message between substation tester and tested device, data, substation configuration information and judged result are preserved, and respond the instruction of transferring of man-machine interface, according to the instruction of transferring of man-machine interface, return to corresponding message information, data message and object information.
As shown in Figure 3, main website emulation tool, for the emulation of test command, can be for the functional requirement of south electric network failure information system, the main website order that emulation is all; After receiving the user command of man-machine interface input, according to the instruction of receiving, carry out testing scheme editor, transfer, substation initialization emulation and information point table are called in operation; When receiving the edit commands of testing scheme, testing scheme that editor is completed is unique name and be deposited in test cases database after, to prepositive communication computer, send test and drive instruction.Main website emulation tool imports unit by command process unit, testing scheme unit, substation initialization unit, information point table and test driver element forms.Command process unit, after receiving the operational order of man-machine interface, is analyzed operational order, and then to corresponding unit, sends instruction according to the result of analyzing.
Operational order is divided into editor or the importing of testing scheme, and substation initialization command and information point table import order.If man-machine interface input is that information point table imports instruction, information point table imports unit after receiving the instruction of command process unit, to form corresponding information point table and import order, and drive instruction to pass to prepositive communication computer test, by prepositive communication computer, completed the further transmission of information.If man-machine interface input is substation initialization directive, substation initialization directive mainly comprises reads substation configuration and the configuration of lower dress substation, when main station system itself is putting into operation or having new substation to put Qian Huo main website into operation while revising the configuration of a certain substation, the consistency that has all needed main website end and substation client information, substation initialization procedure is exactly the consistency that completes correctly, quickly and automatically main website end and substation client information.Reading substation configuration is mainly that main website obtains substation information by sending substation configuration read command; Lower dress substation configures main Shi Dang main website end while revising the configuration of a certain substation, and main website writes substation configuration order by transmission and completes the modification to substation information.Reading substation layoutprocedure mainly comprises: that reads substation configuration respectively organizes title, reads the description of whole entries of one group of information/be worth, read " attribute structure " of whole entries of one group of information, the value/attribute structure/description of reading single destination directory, reading single entry.Lower dress substation layoutprocedure mainly comprises: what pass down substation configuration respectively organizes title, the lower description of whole entries of one group of information, lower " attribute structure " that fills whole entries of one group of information of filling.For example substation configuration order is read in man-machine interface input, command process unit receives after the substation initialization directive of man-machine interface, through Treatment Analysis, after drawing and being substation initialization directive, instruction is passed to substation initialization unit, substation initialization unit is after receiving the instruction of command process unit, what formation was read to substation configuration respectively organizes title command, read description/value order of whole entries of one group of information, read " attribute structure " order of whole entries of one group of information, value/attribute structure/description order of reading the directory command of single entry and reading single entry, and drive instruction to pass to prepositive communication computer test, by prepositive communication computer, completed the further transmission of information.If being testing scheme editor or transferring order of man-machine interface input, testing scheme comprises in time synchronized testing scheme, protection event/self check information/switching value displacement information/fault localization value and send testing scheme, reads analog quantity testing scheme, definite value functional test scheme, always calls testing scheme, fault recorder data test transmission scheme, general file test transmission scheme and calling device fault history information testing scheme.For each testing scheme, there is an instruction code, if man-machine interface input is to transfer definite value functional test scheme, man-machine interface will be by the code command command process unit of definite value functional test scheme, man-machine interface will be transferred definite value functional test scheme code and pass to command process unit, command process unit is after the instruction that receives man-machine interface, through Treatment Analysis, draw it is that definite value functional test scheme is transferred instruction, instruction is passed to testing scheme unit, testing scheme unit is after receiving the instruction of command process unit, compare analysis with the instruction of the local storage in testing scheme unit, identify is that definite value function scheme is transferred, carry out definite value function scheme and transfer operation, after testing scheme is transferred, if the modification order of man-machine interface input to this testing scheme, carry out testing scheme to modify, instruction after modification is carried out the editor of testing scheme or is transferred, testing scheme unit will carry out unique order to testing scheme, naming method can be for default name or is manually put name, and testing scheme is deposited into test cases database, then to prepositive communication computer, send test and drive instruction.In testing scheme unit, storing the instruction code identical with human and machine interface unit, for identifying the instruction of man-machine interface input.
As shown in Figure 4, prepositive communication computer, the communication message that is used for the sending and receiving tested substation response of main website emulation command, when receiving the test of main website emulation tool, drive after instruction, in real time communication message is resolved and data preparation, and communication message form, communication process and the communication data of parsing and preset standard value are compared, whether judged result is passed through; And communication message, device information, data and judged result are write in communication message and device information database; To man-machine interface, send idsplay order, the data that then man-machine interface is transferred in communication message and device information database are carried out the demonstration to information such as communication message, alarm and test results.Prepositive communication computer transfers unit, communication drivers unit, order and data analysis unit by the preposition command process unit of communicating by letter, data and result identifying unit forms, the test that the preposition command process of communicating by letter unit receives main website emulation tool drives after instruction, and instruction is analyzed.Afterwards instruction being passed to data and transfer unit or communication drivers unit, is that information point table imports unit instruction or substation initialization directive if the test of main website emulation tool drives instruction, and the preposition command process of communicating by letter unit sends instruction to communication drivers unit; If the test of main website emulation tool drive instruction be in time synchronized test, protection event/self check information/switching value displacement information/fault localization value, send test, read analog quantity test, definite value functional test, always call test, fault recorder data test transmission or general file test transmission or the test instruction of calling device fault history information; instruction code is passed to data and transfer unit; after testing scheme is transferred, data are transferred unit and are sent and transfer complete instruction to communication drivers unit.Communication drivers unit receives after instruction, to order and data analysis unit, result identifying unit, sends information analysis and result decision instruction, and sends communication message transmission instruction to communication interface.
The preposition command process of communicating by letter unit drives instruction for receiving the test of main website emulation tool, afterwards instruction is passed to data and transfers unit or communication drivers unit.If it is that information point table imports unit instruction that the test of main website emulation tool drives instruction, the preposition command process of communicating by letter unit sends information analysis instruction to communication drivers unit, communication drivers unit passes to order and data analysis unit by information analysis instruction afterwards, order and data analysis unit are after receiving instruction, start the information point table data analysis to importing, and analysis result is write in communication message and device information data and preserved, the substation configuration information that is used for reading with substation function of initializing compares, correctness with judgement substation initialization result, if it is substation initialization directive that the test of main website emulation tool drives instruction, instruction is passed to communication drivers unit, communication drivers unit sends to communication interface for the order simulation communication message that main website emulation tool is generated, for communicating with tested substation.Communication drivers unit sends information analysis instruction to order and data analysis unit simultaneously, order and data analysis unit are after receiving information analysis instruction, start the communication message between substation tester and substation to be measured to resolve, and the substation configuration information in communication message and data are extracted and calculated.Afterwards communication message and substation configuration information are written in communication message and device information database, after writing, order and data analysis unit send result decision instruction to result identifying unit, result identifying unit is after receiving instruction, the substation configuration information obtaining by substation initialization procedure in communication message and device information database and the substation configuration information that imports by information point table are compared, information is consistent, judge and pass through, if information is inconsistent, judges and do not pass through, if it is time synchronized test that the test of main website emulation tool drives instruction, in protection event/self check information/switching value displacement information/fault localization value, send test, read analog quantity test, definite value functional test, total calling test, fault recorder data test transmission or general file test transmission or the test instruction of calling device fault history information, instruction code is passed to data and transfer unit, data are transferred unit and are received after instruction, according to testing scheme code, complete from test cases database and transfer testing scheme, after testing scheme is transferred successfully, and to the instruction of communication drivers unit transmission communication drivers, and the simulation communication message commands in testing scheme is sent to communication drivers unit, communication drivers unit receives data and transfers after the communication drivers instruction of unit, beginning sends main website simulation communication message commands to communication interface, and to order and data analysis unit and result identifying unit transmission enabled instruction, order and data analysis unit and result identifying unit receive after enabled instruction, order and data analysis unit start the communication message between main website emulation tool and substation to resolve, then order and data analysis unit pass to result identifying unit by communication message and process and data, result identifying unit compares communication message and the standard procedure being preset in result identifying unit, and result is determined whether qualified.After result identifying unit judged result completes, communication message, device information, data and judged result are write in communication message and device information database; Meanwhile, to man-machine interface, send idsplay order, the data that then man-machine interface is transferred in communication message and device information database are carried out the demonstration to information such as communication message, alarm and test results.
Communication interface is for the communication between substation to be measured by prepositive communication computer, communication interface is after receiving the instruction of prepositive communication computer communication drivers unit communication, beginning sends corresponding main website emulation command to tested substation, and receive from the communication message of substation response, and the communication message of substation response is passed to order and data analysis unit.Communication interface is after completing the sending and receiving of communication message, and communication close interface is waited for the communication instruction of received communication front end processor communication drivers unit again.
On preferred version Zhong of the present invention main website emulation tool, be provided with a hardware encipher dog, hardware encipher dog, based on hardware-based cryptographic, its objective is by the encryption of software and data is prevented to intellectual property is illegally used.When main website emulation tool receives after the order of man-machine interface, first read the authorization information of hardware encipher dog, be verified and carry out further work, according to the order of man-machine interface, carry out testing scheme editor, transfer, substation initialization, emulation and the importing of information table point etc. are always done; If checking is not passed through, test stops.
The present invention has departed from single test specification, and test specification, testing process and testing equipment are combined together, by the leading test of tester, alleviates tester's workload; The edited change of test cases, facilitates tester to set tested object and test target, targetedly apparatus for checking function; Intellectual analysis judgement relaying protection configuration information, by design relay protection information point table and import feature thereof, has reduced tester's workload greatly, has saved the testing time, has improved the accuracy of testing result; The automated job of test overall process: from testing scheme has configured, results suggest, message analysis, data in test process show, arrive the automatic preservation of test data, all realize automation, improve testing efficiency, also strengthened the standardization of test.Test process can be realized man-machine interaction, also can artificially end, and is conducive to tester and holds content measurement and testing progress.