Background technology
relay protection of power system and failure information system (hereinafter to be referred as protecting communication system) comprise main website, substation two parts.At factory's station end; Protecting the substation of communication system communicates by letter with intelligent electronic devices (IED) such as relaying protection, fault oscillograph, automatic safety devices; Collect normal operation, abnormality alarming and the fault message of these devices, on after the preliminary treatment, deliver to the main website that is positioned at dispatching terminal.For configuration information,, protect communication system main website, substation and it must be understood that unanimity for the implication of device information amount, form etc. in order correctly to transmit and explain information.Generally speaking, usual manner is that unified information table is confirmed according to customer requirements in main website, substation, imports its database separately, this way inefficiency, and mistake appears easily.South electric network is protected communication system and is adopted south electric network 103 stipulations standards, has realized that the substation configuration information reads and download function automatically, does not need manual work to repeat input, has guaranteed the consistency of information definition.
are present; The test of protecting the communication system substation to south electric network mainly is to adopt the mode of interoperability test to carry out; That is to say that the guarantor's communication system substation that needs test is linked into the main website that moving or the emulation main website of some producers; According to specific acceptance criteria and acceptance requirement, the substation function to be tested one by one, its Typical Disposition is seen Fig. 1; The typical figure of protection fault message substation test is made up of fault message main website, tested substation, oscillograph, protective device, disconnected control unit and relay-protection tester; Relay-protection tester provides voltage, current data to protective device and disconnected control unit, the state information of oscillograph collection protective device and disconnected control unit and analog quantity etc., and oscillograph information is gathered in tested substation; And communicate with the fault message main website, with delivering to the fault message main website on the information.This class standard is like " Guangdong Power Grid relay protection fault and information system sub-station technical specification ".This test needs the tester to check all protection definite values and actuating signal etc. in record protection device place one by one usually; Check the consistency of relevant information and protective device raw information then at substation and main website place; Workload is very great, and owing to adopt manual work to protecting the operation of letter main website the substation to be tested, content measurement is fixing; It is inconsistent to do test contents because of different people; And each content measurement also maybe be inconsistent, very easily causes content measurement to omit, and can not comprehensively test protecting communication system substation function.
Functional verification test is carried out through the mode of main website and substation uniting and adjustment to the test of protecting the communication system substation in addition in addition in
.This class testing is once convened a plurality of substation producers and producer of main website usually; To specific protective device and oscillograph; Carry out scene access and function and concentrate test and appraisal, see 2006 the 6th phases of " relay " magazine " relay protection and fault information system construction experiences what is said or talked about " (Zhao Youcheng, Zhao Manyong, He Chunzhu) literary composition for details.Human cost that this test mode needs and time cost are all than higher, and because producer's product is many, and implementation is various, and the neither one judgment criteria, situation about running in the test is many, poor operability.
Summary of the invention
the object of the present invention is to provide a kind of south electric network that is applicable to protect the test macro of communication system, and the completion presumptive test project of efficient, intelligence, automation improves testing efficiency, reduces testing cost.
For realizing above-mentioned purpose; The technical scheme that the present invention adopts is: the test macro that is applicable to south electric network guarantor 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 used for the input of user command and the demonstration of communication message, data, test result and warning information;
The test cases database is used to preserve the test cases that has preset, and accomplishes calling, edit and preserving of test cases according to the instruction of main website emulation tool and the instruction of prepositive communication computer;
Communication message and device information database; Be used for the instruction of received communication front end processor; Communication message between substation tester and the tested device, data, substation configuration information and judged result are preserved; And the response man-machine interface transfer instruction, return corresponding message information, data message and object information according to the instruction of transferring of man-machine interface;
The main website emulation tool is used for the emulation of test command, to the functional requirement of south electric network failure information system, and the main website order that emulation is all; After the user command of receiving the man-machine interface input, to carry out the testing scheme editor, transfer according to the instruction of receiving, emulation is carried out in the substation initialization and the information point table is called in operation; The testing scheme that editor is accomplished is unique name be deposited in the testing scheme database after, send the test driving command to prepositive communication computer;
prepositive communication computer; Be used for the transmission of main website emulation command and receive the communication message that the substation responds; After the test driving command of the main website emulation tool that receives, in real time communication message is resolved and data preparation; Communication message form, communication process and the communication data of resolving and the standard value that presets are compared, and whether judged result is passed through; And communication message, device information, data and judged result write in communication message and the device information database; Send idsplay order to man-machine interface.
this programme is to the particularity of guarantor's communication system of south electric network; A kind of test macro is provided; This ties up to and has preset comprehensive substation testing scheme in the test database, only need in man-machine interface, import corresponding order during the test substation, transfers corresponding testing scheme by the main website emulation tool and sends out to substation to be measured through prepositive communication computer; Prepositive communication computer reads the responding communication message data of substation and compares with the standard information that presets; And the result is passed to man-machine interface, and improved the automaticity of test, realized configuration correctness, the information integrity of automatic failure judgement information substation;, do not effectively raise testing efficiency in the consistency of the artificial stoning of needs to the information that reads in configuration information in the substation and the main website.
Embodiment
are done detailed explanation below in conjunction with accompanying drawing to the present invention.
can be known by 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 used for the input of user command and the demonstration of communication message, data, test result and warning information; On man-machine interface, shown the whole test commands of this test macro, the user can select test command according to the test needs, and this order reaches the main website emulation tool.
test cases database is used for presetting the preservation of test cases, and transfers the calling of unit instruction completion test cases, editor and hold function according to data in test cell instruction in the main website emulation tool and the prepositive communication computer; Preset comprehensive substation testing scheme in this testing scheme database, the testing scheme content mainly comprises on the test of substation initialization test, time synchronized, the protection incident/self check information/switching value displacement information/fault localization value to be sent test, reads analog quantity test, the 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 are that special guarantor to solution transmitted the monk station information of conciliating correctly, fast and automatically in " communication of south electric network relay protection and fault information system and interface specification " in the communication system; Like relevant parameters such as the title of station arrangement, definite value, state/analog quantity, circuit etc., numbering, dimensions; Guarantee the consistency of main website end and substation client information definition; Increase work efficiency; The dedicated process standard that reduces cost of labor and formulate, the substation initialization procedure mainly comprises two aspects, reads substation configuration and dress substation configuration down.Reading the substation configuration mainly is that main website obtains substation information through sending the substation configuration read command; Adorning the substation configuration down mainly is when when the main website end is revised the configuration of a certain substation, and main website writes the substation configuration order through transmission and accomplishes the modification to substation information.Reading the substation layoutprocedure mainly comprises: read substation configuration each group heading, read the description of whole clauses and subclauses of one group of information/be worth, read whole clauses and subclauses of one group of information " attribute structure ", read the catalogue of single clauses and subclauses, the value/attribute structure/description of reading single clauses and subclauses.Adorning the substation layoutprocedure down mainly comprises: pass down each group heading of substation configuration, down adorn the description of whole clauses and subclauses of one group of information, adorn " attribute structure " of whole clauses and subclauses of one group of information down.
time synchronization process is that main website issues the time synchronized order, and completion is synchronous to the substation time.
Sending process on
protection incident/self check information/switching value displacement information/fault localization value mainly is to accomplish when electrical network breaks down or installs operation to occur when unusual, the action message of substation handle assembly or unusually letter pass to main website.
It is main website regularly reads this device of value acquisition of all clauses and subclauses in the group through the generic service order all analog quantitys that the analog quantity process is read in
.
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 the operation definite value and the current operation definite value district of certain device in the substation through transmission definite value querying command.Main website accomplishes the modification to definite value through sending to revise definite value and switch the order of definite value district.
calling process always is that the main website timed sending always calls order to accomplish obtaining all state informations of substation.
fault recorder data transmission course is when electrical network breaks down; The substation is collected fault recorder data and is formed in the brief analysis report and delivers to main website; Contain fault relevant information and corresponding record ripple file name in the brief analysis report, main website can directly obtain required record ripple file through the calling order.
general file transmission course generally is a main website calling substation listed files, the selected file that will call from tabulation, the substation is again with sending in the selected file packing, accomplish general file on give.
calling device fault history information process is that main website is through calling query history information, the event information in the acquisition fixed time section.
Content measurement in
test cases storehouse has covered the repertoire of substation to be measured, and in the test, the user can transfer the testing scheme that is preset in the test database, also can update testing scheme according to the test needs.
communication message database; Be used for the instruction of received communication front end processor; Communication message between substation tester and the tested device, data, substation configuration information and judged result are preserved; And the response man-machine interface transfer instruction, return corresponding message information, data message and object information according to the instruction of transferring of man-machine interface.
are as shown in Figure 3, and the main website emulation tool is used for the emulation of test command, can be to the functional requirement of south electric network failure information system, and the main website order that emulation is all; After the user command of receiving the man-machine interface input, carry out the testing scheme editor, transfer according to the instruction of receiving, substation initialization emulation and information point table are called in operation; When receiving the edit commands of testing scheme, the testing scheme that editor is accomplished is unique name be deposited in the testing scheme database after, send the test driving command to prepositive communication computer.The main website emulation tool imports the unit by command process unit, testing scheme unit, substation initialization unit, information point table and the test driver element is formed.The command process unit is analyzed operational order after receiving the operational order of man-machine interface, and then sends instruction according to the result who analyzes to units corresponding.
operational order is divided into the editor or the importing of testing scheme, and substation initialization command and information point table import order.If the man-machine interface input is that the information point table imports instruction; Then the information point table imports the unit after the instruction that receives the command process unit; To form corresponding information point table and import order; And will test and drive order and pass to prepositive communication computer, accomplish the further transmission of information by prepositive communication computer.If the man-machine interface input is the substation initialization directive; The substation initialization directive mainly comprises reads substation configuration and dress substation configuration down; When main station system itself is putting into operation or having new substation to put into operation preceding or main website when revising the configuration of a certain substation; All need accomplish the consistency of main website end and substation client information, the substation initialization procedure is exactly a consistency of accomplishing main website end and substation client information correctly, fast and automatically.Reading the substation configuration mainly is that main website obtains substation information through sending the substation configuration read command; Adorning the substation configuration down mainly is when when the main website end is revised the configuration of a certain substation, and main website writes the substation configuration order through transmission and accomplishes the modification to substation information.Reading the substation layoutprocedure mainly comprises: read substation configuration each group heading, read the description of whole clauses and subclauses of one group of information/be worth, read whole clauses and subclauses of one group of information " attribute structure ", read the catalogue of single clauses and subclauses, the value/attribute structure/description of reading single clauses and subclauses.Adorning the substation layoutprocedure down mainly comprises: pass down each group heading of substation configuration, down adorn the description of whole clauses and subclauses of one group of information, adorn " attribute structure " of whole clauses and subclauses of one group of information down.For example the substation configuration order is read in the man-machine interface input; After the command process unit receives the substation initialization directive of man-machine interface; Through Treatment Analysis; Draw be the substation initialization directive after; Instruction is passed to the substation initialization unit, and the substation initialization unit reads value/attribute structure/description that each group heading order of substation configuration, description/value order of reading whole clauses and subclauses of one group of information, " attribute structure " of reading whole clauses and subclauses of one group of information ordered, read the directory command of single clauses and subclauses and read single clauses and subclauses with formation and orders after the instruction that receives the command process unit; And will test and drive order and pass to prepositive communication computer, accomplish the further transmission of information by prepositive communication computer.If being the testing scheme editor or transferring order of man-machine interface input, testing scheme comprise on time synchronized testing scheme, the protection incident/self check information/switching value displacement information/fault localization value send testing scheme, read the analog quantity testing scheme, definite value functional test scheme, always call testing scheme, fault recorder data test transmission scheme, general file test transmission scheme and calling device fault history information testing scheme.To each testing scheme an instruction code is arranged all, if the man-machine interface input is to transfer definite value functional test scheme, then man-machine interface will be with 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 the command process unit, and the command process unit is after the instruction that receives man-machine interface, and drawing through Treatment Analysis is that definite value functional test scheme is transferred instruction; Instruction is passed to the testing scheme unit, and then the testing scheme unit compares analysis with the local instructions stored in testing scheme unit after the instruction that receives the command process unit; Identify is that the definite value function scheme is transferred; Carry out the definite value function scheme and transfer operation, testing scheme transfer finish after, if man-machine interface input is to the modification order of this testing scheme; Then carry out testing scheme is made amendment; Instruction after modification finishes is carried out the editor of testing scheme or is transferred, and the testing scheme unit will carry out unique order to testing scheme, and naming method can be put name for default name or manual work; And testing scheme is deposited into the testing scheme database, send the test driving command to prepositive communication computer then.Storing the instruction code identical in the testing scheme unit, be used to discern the instruction of man-machine interface input with human and machine interface unit.
are as shown in Figure 4; Prepositive communication computer; Be used for the transmission of main website emulation command and receive the communication message that tested substation responds, after the test driving command that receives the main website emulation tool, in real time communication message is resolved and data preparation; And communication message form, communication process and the communication data of resolving and the standard value that presets compared, whether judged result is passed through; And communication message, device information, data and judged result write in communication message and the device information database; Send idsplay order to man-machine interface, the data transferred in communication message and the device information database of man-machine interface are carried out the demonstration to information such as communication message, alarm and test results then.Prepositive communication computer by communication preposition command process unit, data transfer unit, communication drivers unit, order and data analysis unit and as a result identifying unit form; The preposition command process of communicating by letter unit is analyzed command instruction after receiving the test driving order of main website emulation tool.Afterwards order being passed to data and transfer unit or communication drivers unit, is that the information point table imports unit instruction or substation initialization directive if the test of main website emulation tool drives command instruction, and the command process unit sends instruction to the communication drivers unit; If the test of main website emulation tool drive command instruction be send test on time synchronized test, the protection incident/self check information/switching value displacement information/fault localization value, read analog quantity test, the 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 transfer the unit; After testing scheme was transferred and finished, data were transferred the unit and are sent to the communication drivers unit and transfer the instruction that finishes.After the communication drivers unit receives instruction, to order and data analysis unit, identifying unit sends information analysis and decision instruction as a result as a result, and send communication message to communication interface and send instruction.
The preposition command process of
communication unit is used to receive the test driving order of main website emulation tool, afterwards order is passed to data and transfers unit or communication drivers unit.If it is that the information point table imports the unit instruction that the test of main website emulation tool drives command instruction; The command process unit sends the information analysis instruction to the communication drivers unit; The communication drivers unit passes to order and data analysis unit with the information analysis instruction afterwards; Order and data analysis unit begin the information point table data of importing are analyzed, and analysis result are write in communication message and the device information data and preserves after receiving instruction; The substation configuration information that is used for reading with the substation function of initializing compares, to judge the correctness of substation initialization result; If it is the substation initialization directive that the test of main website emulation tool drives command instruction; Then instruction is passed to the communication drivers unit; The communication drivers unit is used for the order simulation communication message that the main website emulation tool generates is sent to communication interface, is used for communicating with tested substation.The communication drivers unit sends the information analysis instruction to order and data analysis unit simultaneously; Order and data analysis unit are after receiving the information analysis instruction; Begin the communication message between substation tester and the substation to be measured is resolved, and substation configuration information in the communication message and data are extracted and calculate.Afterwards communication message and substation configuration information are written in communication message and the device information database; Write finish after; Order is sent decision instruction as a result with data analysis unit to judging unit as a result, and identifying unit compares substation configuration information that obtains through the substation initialization procedure in communication message and the device information database and the substation configuration information through the importing of information point table after receiving instruction as a result; Information is consistent; Then judge and pass through, if information inconsistency is then judged and do not passed through; If the test of main website emulation tool drive command instruction be send test on time synchronized test, the protection incident/self check information/switching value displacement information/fault localization value, read analog quantity test, the 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; Then instruction code is passed to data and transfer the unit; After data are transferred the unit and are received instruction; Completion is transferred testing scheme from the test cases database according to the testing scheme code; After testing scheme is transferred successfully; And send communication drivers to the communication drivers unit and instruct; And the simulation communication message commands in the testing scheme sent to the communication drivers unit, the communication drivers unit receives after data transfer the communication drivers instruction of unit, begins to send main website simulation communication message commands to communication interface; And to order and data analysis unit and the enabled instruction of identifying unit transmission as a result; Order and data analysis unit and after judging unit receives enabled instruction as a result, order and data analysis unit begin the communication message between main website emulation tool and the substation is resolved, then order and data analysis unit with communication message and process and data passes to identifying unit as a result; Identifying unit compares communication message and the standard procedure that is preset in the identifying unit as a result as a result, and the result is judged whether qualified.After the identifying unit judged result is accomplished as a result, communication message, device information, data and judged result are write in communication message and the device information database; Meanwhile, send idsplay order to man-machine interface, the data transferred in communication message and the device information database of man-machine interface are carried out the demonstration to information such as communication message, alarm and test results then.
communication interface is used for the communication of prepositive communication computer between substation to be measured; Communication interface is after receiving the instruction of prepositive communication computer communication drivers unit communication; Begin to send corresponding main website emulation command to tested substation; And receive, and the communication message of substation response is passed to order and data analysis unit from the communication message of substation response.Communication interface is after the transmission of accomplishing communication message and receiving, and the communication close interface is waited for the communication instruction of received communication front end processor communication drivers unit once more.
are provided with a hardware encipher dog on the main website emulation tool in preferred version of the present invention, the hardware encipher dog its objective is through the encryption to software and data to prevent that intellectual property is by illegal use based on hardware-based cryptographic.Receive the order of man-machine interface when the main website emulation tool after; At first read the authorization information of hardware encipher dog; Checking is carried out the testing scheme editor, is transferred according to the order of man-machine interface through then carrying out further work, and substation initialization, emulation and the importing of information table point etc. are always done; If checking is not passed through, then test stops.
the present invention has broken away 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 makes things convenient for the tester to set tested object and test target, targetedly the apparatus for checking function; Intellectual analysis is judged the relaying protection configuration information, through design relay protection information point table and import feature thereof, has reduced tester's workload greatly, has practiced thrift the testing time, has improved the accuracy of testing result; The automated job of test overall process: accomplish beginning from the testing scheme configuration; Results suggest, message analysis, data in test process show that the automatic preservation to test data all realizes automation; Improve testing efficiency, also strengthened the standardization of test.Test process can be realized man-machine interaction, also can artificially end, and helps the tester and holds content measurement and testing progress.