Summary of the invention
The object of the present invention is to provide a kind of protective relaying device board Auto-Test Systems, to solve traditional boardThe low problem of testing efficiency.
To achieve the above object, the solution of the present invention includes: a kind of protective relaying device board Auto-Test System, includingIndustrial personal computer, tester and subtest cabinet, the industrial personal computer and the tester communication connection, the tester with it is described auxiliaryTest cabinet communication connection is helped, tested board is for being fixed on the subtest cabinet;Automatic survey is loaded in industrial personal computerExamination strategy and test case library send test instruction to tester, tester carries out at parsing test instruction in testReason, according to the test pattern that test item judgement uses, corresponding test pattern is transferred to subtest cabinet by tester, withTested board is tested.
Test pattern is divided into active test pattern and Passive Test mode, the active test pattern specific implementation meansAre as follows: tester sends corresponding test command to tested board, and test board is accordingly tested according to test command, and will surveyTester is sent on test result;Passive Test mode specific implementation means are as follows: tester sends corresponding test to tested boardOrder, test board actively send the test packet defined to tester after receiving the order, and tester receives testCommands in return is sent to tested board after message, tested board is tested after receiving commands in return, then will be in test resultIt is sent to tester.
In the active test pattern, the test instruction that industrial personal computer is sent, which is divided into, has data type of message and without data messageType, if test instruction, which belongs to, data type of message, the data in test instruction is taken out and is reconstructed by tester, and rootIt requires to be sent to subtest cabinet by signal transmission line according to the relevant test, the test command in test instruction is individually sentGive subtest cabinet;If it is determined that test instruction belongs to no data type of message, test instruction is directly transmitted.
The test item loaded in industrial personal computer is selected using independent xml configuration file is loaded.
The card slot for fixing tested board is provided on the subtest cabinet.
Protective relaying device board Auto-Test System provided by the invention includes industrial personal computer, tester and subtest machineCase, successively communication connection, tested board are fixed on subtest cabinet for industrial personal computer, tester and subtest cabinet.Industry controlThere is supervision test software in machine, is issued for the editor of test case, test command and test information management;Tester is for solvingAnalysis test command, test packet forwarding, partial test data issue and the connection with tested board;Subtest cabinet is used forTested board is connected, tested board is sent and is ordered, test data processing and reception board return information.In test, industry controlMachine sends test instruction to tester, and tester instructs test and carries out dissection process, the survey used according to test item judgementCorresponding test pattern is transferred to subtest cabinet by die trial formula, tester, to test tested board.The system is usedIt is tested automatically in the board hardware to protective relaying device, test object is the various board hardware of protective relaying device,It is in extensive range, be able to carry out a variety of test items, such as board open into, output, DC/AC AD, key, liquid crystal, etherNet, serial ports test etc..So can be realized automatic test by the system, compared to by manual type to device carry out byA test is tested automatically, is operated without when converting test item, building circuit and by hand connection power amplifier case by handHave no cumbersome, test process is not easy to make mistakes, moreover, automatic Test Strategy and test case library are loaded in industrial personal computer, without everyTest once is intended to update test content and software program.Therefore, the test macro is compared to traditional artificial test, noWith another one selection test item, testing efficiency has obtained greatly being promoted.Moreover, being suitable for mainstreams all in the marketRelay protection board.
Specific embodiment
The present invention will be further described in detail with reference to the accompanying drawing.
As depicted in figs. 1 and 2, protective relaying device board Auto-Test System includes that industrial personal computer, tester and auxiliary are surveyedTest-run a machine case, in the present embodiment, the model WCS-PPT-T of tester, the model WCS-PPT-6U of subtest cabinet.Industry controlMachine and tester communication connection, tester and subtest cabinet communication connection, tested board is for being fixed on subtest machineOn case.
It is loaded with automatic Test Strategy in industrial personal computer, also, according to mainstream board in the market, is also set up in industrial personal computerTest case library.The test software of industrial personal computer installation issues and tests information for the editor of board test case, test commandManagement.Industrial personal computer realizes test and management, including following functions, user management: including user login validation, user log off, passwordSetting;Lane testing: to Board Under Test sendaisle test command;Communication pressure test: communication pressure test is sent to Board Under TestOrder;Test comprehensively: comprehensive test command is sent to Board Under Test;Test report generates: test result information is pressed prescribed formSave as pdf document;Test report is shown: the corresponding report file locally saved is found according to two dimensional code and by prescribed formIt shows;System parameter setting: system setting is carried out according to the parameter of setting, and parameter is saved in configuration file.TesterMember only can need a key operation that can complete board hardware testing.In addition, each test result also can be saved all, convenient pointAnalyse hardware deficiency.
Communication, tester and test of the tester using embedded platform as bottom layer driving, between industrial personal computer and testerAssist the communication between cabinet that can all communicate using UDP, command interaction is independent of each other with communication state test.Tester is usedIn parsing test command and test packet forwarding.Tester is made of board card module, is provided with and test auxiliary case back plateThe side of the adaptable electric connector of shape, tester is connected by network interface with industrial personal computer, and the other side is auxiliary by optical port and testCabinet is helped to connect.
Testing auxiliary machine case includes FPGA accessory plate, CPU accessory plate and board card slot, and board card slot can be used for the company of fixationConnecing tested board, tested board is inserted directly into subtest cabinet card slot when test, and card slot is connect with auxiliary cabinet inside,Facilitate and carries out subsequent dependence test.FPGA accessory plate and CPU accessory plate are used to send tested board order and receive boardReturn information.
Tester extends IO plug-in unit and exchanges data, direct read/write expansion bus using expansion bus.Tested board and FPGAOrder data Fabric Interface is used between accessory plate, order and data format is the same.
The test macro board can be carried out opening into, output, DC/AC AD, optical port, power port, Ethernet, photoelectricity BCode, light channel, liquid crystal, keyboard, NOR FLASH, NAND FLASH, RTC real-time clock, thermometric, 24V clock synchronization are opened total into, IOThe boards hardware performance test item such as line, expansion bus, SD mmc card, IIC expansion bus.
The basic test thinking of the test macro is: in test, industrial personal computer sends test instruction, tester to testerTest is instructed and carries out dissection process, according to the test pattern that test item judgement uses, tester is by corresponding test patternIt is transferred to subtest cabinet, to test tested board.
The specific embodiment of test process is given below.
When testing tested board, industrial personal computer carries out user login validation first, and editor generates test configurations textPart after tested board type matching, sends test configurations order to tester.
Host computer issues test command message, and tester carries out dissection process to the message received, wraps in command messageTitle containing test item, test method, test pattern, test waiting time, test send message, test sending port, testThe contents such as number.
For the hardware performance of relay protection board, need content to be tested more, single testing process is unable to satisfyAll hardware testings.Tester is divided into following two test mode according to test item, is active test pattern and oneself respectivelyDynamic test pattern, the corresponding test item of active test pattern open into, output, B code etc. is tested, Passive Test mode is correspondingTest item has the test such as optical port, power port.Active test pattern specific implementation means are as follows: tester sends corresponding to tested boardTest command, test board is accordingly tested according to test command, and tester will be sent in test result;Passive TestMode specific implementation means are as follows: tester sends corresponding test command to tested board, after test board receives the orderThe test packet that defines actively is sent to tester, and tester is received to send back to tested board after test packet and be reported on completion of a taskIt enables, tested board is tested after receiving commands in return, and tester then will be sent in test result.
Under active test pattern, test instruction message format that industrial personal computer is sent to tester is according to requiring to be divided into twoKind, it is a kind of for without test data data message, another kind tests data data message to have.Without test data data message lengthIt is fixed, different data segments has been carried out to show difference for different test-types in data framing;There is data data message to visit numberIt is not fixed according to message length, includes not only test-types in message, joined test data sum number also according to different test-typesAccording to type.When belonging to has data type of message, tester handles message, specifically takes out data and carries out weightStructure, and required to be sent to the accessory plate tested in auxiliary cabinet, test by serial ports, cable or Ethernet according to dependence testTest command in instruction is individually sent to test auxiliary cabinet by Ethernet;When belonging to no data type of message, testTest command is directly sent to test auxiliary cabinet by Ethernet by instrument.In addition, if the message that industrial personal computer is sent instructs notBelong within the scope for the treatment of mechanism, then tester sends alarm signal to industrial personal computer.
For opening test, driving is opened while tester forwards " enter and open into test pattern " order to tested boardPlug-in unit enters " outputing dedicated tunnel " and orders out;The state into front terminal is opened in tested board self-test, is sent and " is opened into shape on testerState response " message;Tester " will open into state response " message and be transmitted to host computer, host computer carry out test result judgement toComplete the test that Ben Lukai enters channel.
By taking optical port testing as an example, directly this order is sent to after tester receives " optical port testing mode " order testedIn board, tested board actively sends the optical port testing message defined to tester optical port after receiving optical port testing order, surveysExamination instrument optical port sends commands in return immediately after the message for receiving specific frame head, after the optical port of tested board receives this commands in returnIt is tested, only by the result by sending on tester to host computer.
Under any circumstance the communication test order of tester be interacted by subtest cabinet with tested board, butWhen Passive Test mode, the test packet defined sent in tested board active can not also be by subtest cabinet, directlyTest, such as serial ports test, fiber optic communication test, ethernet test etc. are interacted with tester relevant interface.
Test cabinet accessory plate is further processed after receiving the order that tester is sent, and according to test case to boardOperation, such as optical fiber communication function, accessory plate recycle output optical fibre channel data frame signal, and tested board receives test and refers toIt enables, reads fiber channel data frame information, and tester is returned to by optical-fibre channel.Tester judges test result, and willTest information feeds back to tester, and tester carries out result judgement according to the information of feedback, and judgement is returned to PC machine.
Industrial personal computer is preserved result by upper computer software after receiving test result, successively carries out next function againIt can test, until being completed, final test result generates pdf document according to specification requirement and saves.
In addition, industrial personal computer is equipped with board automatic testing software, it is main to realize under testing example design and test commandHair, test item are selected using independent xml configuration file is loaded, and every kind of different type board can hook test itemIt selects and preserves and establish test case library, tester tests only again needs option board Card Type, can greatly improveTesting efficiency.
Specific embodiment is presented above, but the present invention is not limited to described embodiment.Base of the inventionThis thinking is the structure and basic test process of protective relaying device board Auto-Test System, and for specifically testingThe being not construed as limiting property requirement of the test process of project and each test item.The case where not departing from the principle and spirit of the inventionUnder to embodiment carry out change, modification, replacement and modification still fall in protection scope of the present invention.