Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of automatic test approach and system of drawing inclined power supply, for solving in prior art the problem of the test process too redundancy of drawing inclined power supply.
For achieving the above object and other relevant objects, the invention provides a kind of Auto-Test System of drawing inclined power supply, comprising: that be connected with the power port of network access equipment, that there is data-interface supply unit; The proving installation be connected with the FPDP of described network access equipment with the data-interface of described supply unit, for drawing offset control according to obtained power parameter to the voltage that described supply unit exports, and by described FPDP, described network access equipment is tested during regulating and controlling.
Preferably, described proving installation comprises: human-computer interaction module, for providing the interface of adjustment power parameter, and from the power parameter that described interface acquisition user inputs, and the interface of the power supply regulation and control change showing described supply unit is provided, and the situation of change of the output voltage of supply unit in test process is shown in real time; Control module, for the power parameter that provides based on described human-computer interaction module and the control methods preset, controls the voltage that described supply unit exports and shake change near a reference voltage; Test module, for controlling the output voltage concussion During of described supply unit in described control module, sends test data to described FPDP, and tests described network access equipment according to the feedback data of described FPDP.
Preferably, described test macro also comprises: for network access equipment provides the container of test environment.
Preferably, described container comprises: temperature control device, for adjusting the temperature value in described container according to obtained temperature parameter.
Based on above-mentioned purpose, the present invention also provides a kind of automatic test approach drawing inclined power supply, comprising: draw offset control according to obtained power parameter to the voltage that supply unit exports, and wherein, described supply unit provides voltage to network access equipment; By the FPDP of described network access equipment, described network access equipment is tested during regulating and controlling.
Preferably, describedly draw the mode of offset control to comprise according to obtained power parameter to the voltage that supply unit exports: the interface providing adjustment power parameter, and obtain the power parameter that user inputs from described interface; Based on described power parameter and the control methods preset, control the voltage that described supply unit exports and shake change near a reference voltage.
Preferably, described method of testing also comprises: the interface providing the power supply regulation and control change showing described supply unit, and the situation of change of the output voltage of supply unit in test process is shown in real time.
Preferably, describedly by the FPDP of described network access equipment, the mode that described network access equipment is tested to be comprised during regulating and controlling: send test data to described FPDP, and according to the feedback data of described FPDP, described network access equipment is tested.
Preferably, before testing described network access equipment and in test process, described method of testing also comprises: according to the temperature value in obtained temperature parameter adjustment container, wherein, described container provides test environment for network access equipment.
As mentioned above, automatic test approach and system of drawing inclined power supply of the present invention, there is following beneficial effect: by being connected with the data-interface of supply unit, thus software can be utilized to control the output voltage of supply unit in the change of drawing inclined region, can realize, drawing the full-automatic testing to network access equipment under inclined power environment, substantially increasing testing efficiency; In addition, described test macro provides visual interface, can allow the clearer monitoring and test process of tester; Further, described network access equipment is placed in a reservoir, and more complex environment is provided in container, the full test to network access equipment can be convenient to.
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.
As shown in Figure 1, the invention provides a kind of Auto-Test System of drawing inclined power supply.Described test macro 1 comprises: supply unit 11 and proving installation 12.Under described test macro 1 is drawn inclined situation for the power supply of test network access device 2, the function of network access equipment 2 and performance are tested.Wherein, described network access equipment 2 includes but not limited to: router, gateway, hub, repeater etc.
Described supply unit 11 is connected with the power port of described network access equipment 2, and has data-interface.Described data-interface is used for receiving package containing the command information of voltage, output AC/direct current etc. exporting described network access equipment 2 to.Described data-interface can be serial line interface.Such as, described data-interface is USB interface, RS232 interface etc.
Described supply unit 11 is for adjusting internal circuit, to export the voltage meeting described command information requirement according to received command information.
Described proving installation 12 is connected with the FPDP of described network access equipment 2 with the data-interface of described supply unit 11, for drawing offset control according to obtained power parameter to the voltage that described supply unit 11 exports, and by described FPDP, described network access equipment 2 is tested during regulating and controlling.
Wherein, described proving installation 12 can be a computing machine or embedded device.
Particularly, described proving installation 12 can obtain power parameter, to carry out joint test from other equipment.Wherein, described power parameter includes but not limited to: the shock range, output voltage parameter etc. that export direct current/output AC option parameter, rated voltage parameter, specified a-c cycle, rated voltage.Described proving installation 12 is according to the change in voltage formula preset, the real-time command information containing the voltage after adjustment to described supply unit 11 output packet, then described supply unit 11 is according to received command information, adjustment internal circuit, with the change in voltage situation in analog network access device 2 working environment.
Described proving installation 12, while the output voltage of partially described supply unit 11 is drawn in control, is also tested described network access equipment 2.Wherein, described test comprises: functional test, performance test etc.Such as, described proving installation 12 connects 4 FPDP of described network access equipment 2, and described proving installation 12 to the test data of FPDP A1 input " ping FPDP A2 ", and is tested described FPDP A2 and whether received this test data, if successfully receive, then test is passed through.And for example, described proving installation 12 sends a large amount of test datas to FPDP A1, and tests the situation of the test data of other FPDP reception of described network access equipment 2, to carry out performance test to described network access equipment 2 and FPDP A1.
Preferably, test in order to flexibly, for the carrying out of tested network access equipment 2, described proving installation 12 comprises: human-computer interaction module, control module and test module.(all not giving diagram)
Described human-computer interaction module is for providing the interface of adjustment power parameter, and from the power parameter that described interface acquisition user inputs, and the interface of the power supply regulation and control change showing described supply unit 11 is provided, and the situation of change of the output voltage of supply unit in test process 11 is shown in real time.
Particularly, the power parameter that user will input is presented in an interface by described human-computer interaction module, when user utilize keyboard, mouse inputs corresponding power parameter, and when pressing submit button, the power parameter in described interface is supplied to described control module by described human-computer interaction module.
In addition, because proving installation 12 is connected by data-interface with supply unit 11, therefore, described human-computer interaction module can also obtain the voltage that supply unit 11 exports, and it real-time is plotted in another interface, to show that to described user described control module controls the situation of the output voltage of described supply unit 11.This two interface can be simultaneously displayed in a screen.
Described control module is used for the power parameter provided based on described human-computer interaction module and the control methods preset, and controls the voltage that described supply unit 11 exports and shake change near a reference voltage.
Particularly, described control module with preset unit voltage be step-length, with the rated voltage parameter in described voltage parameter for reference voltage, be progressively transferred to Amplitude maxima by described rated voltage parameter, be more progressively decremented to amplitude min value.Voltage parameter whole for every step is transported to described supply unit 11 by described control module, for its synchronous adjustment.
It should be noted that, above-mentioned control methods are only citing, and in fact, described control module also can utilize regulation and control formula or regulating and controlling according to peak of power consumption/low ebb, so that closer to true environment.
Described test module is used for the output voltage concussion During controlling described supply unit 11 in described control module, sends test data, and test described network access equipment 2 according to the feedback data of described FPDP to described FPDP.
Particularly, described test module can control the output voltage concussion During of described supply unit 11 in described control module, quantity, mistiming etc. according to sending test data and reception feedback data are tested described network access equipment 2.
Preferably, as shown in Figure 2, described test macro 1 also comprises a container 13.
Described container 13 for being placed wherein by described network access equipment 2, and provides more real environment for described network access equipment 2.As provided different temperatures, humidity etc.
Temperature control device 14 is comprised accordingly, for adjusting the temperature value in described container 13 according to obtained temperature parameter in described container 13.
At this, described temperature parameter can be provided by other equipment, or is provided by described proving installation 12, then or by the control panel on temperature control device described in user operation 14, can change the temperature value in described container 13.
Such as, described in user operation, temperature control device 14 provides the environment providing temperature value T1 to network access equipment 2, and after described proving installation 12 completes at least one test period, changes described temperature value to T2, restarts described proving installation 12 and tests.
And for example, described temperature control device 14 is according to the temperature value in the described container 13 of temperature variation interval change of setting, and meanwhile, described proving installation 12 is tested.
It should be noted that, the mode of above-mentioned adjustment temperature is only citing, but not limitation of the present invention.
As shown in Figure 3, the present invention also provides a kind of automatic test approach drawing inclined power supply.Described method of testing performs primarily of test macro.Described test macro comprises supply unit, proving installation etc.Wherein, described proving installation controls described supply unit, and tests network access equipment.Described supply unit is connected with the power port of described network access equipment, and has data-interface.Described data-interface is used for receiving package containing the command information of voltage, output AC/direct current etc. exporting described network access equipment to.Described data-interface can be serial line interface.Such as, described data-interface is USB interface, RS232 interface etc.Described proving installation can be a computing machine or embedded device.
In step sl, described proving installation draws offset control according to obtained power parameter to the voltage that supply unit exports, and wherein, described supply unit provides voltage to network access equipment.
Particularly, described proving installation can obtain power parameter, to carry out joint test from other equipment.Wherein, described power parameter includes but not limited to: the shock range, output voltage parameter etc. that export direct current/output AC option parameter, rated voltage parameter, specified a-c cycle, rated voltage.Described proving installation is according to the change in voltage formula preset, the real-time command information containing the voltage after adjustment to described supply unit output packet, then described supply unit is according to received command information, and adjustment internal circuit, with the change in voltage situation in analog network access device working environment.
Preferably, test in order to flexibly, for the carrying out of tested network access equipment.Described step S1 comprises: step S11, S12.(all not giving diagram)
In step s 11, described proving installation provides the interface of adjustment power parameter, and from the power parameter that described interface acquisition user inputs.
In step s 12, described proving installation, based on described power parameter and the control methods preset, controls the voltage that described supply unit exports and shake change near a reference voltage.
Particularly, the power parameter that user will input is presented in an interface by described proving installation, when user utilize keyboard, mouse inputs corresponding power parameter, and when pressing submit button, described proving installation obtains the power parameter in described interface, and with preset unit voltage be step-length, with the rated voltage parameter in described voltage parameter for reference voltage, be progressively transferred to Amplitude maxima by described rated voltage parameter, be more progressively decremented to amplitude min value.Voltage parameter whole for every step is transported to described supply unit by described control module, for its synchronous adjustment.
It should be noted that, above-mentioned control methods are only citing, and in fact, described control module also can utilize regulation and control formula or regulating and controlling according to peak of power consumption/low ebb, so that closer to true environment.
In another optimal way, described proving installation also provides the interface of the power supply regulation and control change showing described supply unit, and the situation of change of the output voltage of supply unit in test process is shown in real time.
Particularly, because described proving installation is connected by data-interface with supply unit, therefore described proving installation can also obtain the voltage that supply unit exports, and it real-time is plotted in another interface, to show the situation of the output voltage of described supply unit to described user.This two interface can be simultaneously displayed in a screen.
In step s 2, described proving installation is tested described network access equipment by the FPDP of described network access equipment during regulating and controlling.
Particularly, described proving installation, while the output voltage of partially described supply unit is drawn in control, is also tested described network access equipment.Wherein, described test comprises: functional test, performance test etc.Such as, described proving installation connects 4 FPDP of described network access equipment, and described proving installation to the test data of FPDP A1 input " ping FPDP A2 ", and is tested described FPDP A2 and whether received this test data, if successfully receive, then test is passed through.And for example, described proving installation sends a large amount of test datas to FPDP A1, and tests the situation of the test data of other FPDP reception of described network access equipment, to carry out performance test to described network access equipment and FPDP A1.
Preferably, described step S2 comprises: send test data to described FPDP, and according to the step that the feedback data of described FPDP is tested described network access equipment.
Particularly, described proving installation can control the output voltage concussion During of described supply unit in described control module, quantity, mistiming etc. according to sending test data and reception feedback data are tested described network access equipment.
More preferably, as shown in Figure 4, described proving installation before execution step S2 and period, also performs step S3 by described test macro.
In step s3, described test macro is according to the temperature value in obtained temperature parameter adjustment container, and wherein, described container provides the step of test environment for network access equipment.Wherein, described test macro also comprises: described container, optionally, comprises setting temperature control device on the container.Described step S3 can be performed by described temperature control device.
At this, described temperature parameter can be provided by other equipment, or is provided by described proving installation, then or by the control panel on the temperature control device on container described in user operation, can change the temperature value in described container.
Such as, temperature control device described in user operation provides the environment providing temperature value T1 to network access equipment, and after described proving installation completes at least one test period, changes described temperature value to T2, restarts described proving installation and tests.
And for example, described temperature control device is according to the temperature value in the described container of temperature variation interval change of setting, and meanwhile, described proving installation is tested.
It should be noted that, the mode of above-mentioned adjustment temperature is only citing, but not limitation of the present invention.
In sum, automatic test approach and system of drawing inclined power supply of the present invention, by being connected with the data-interface of supply unit, thus software can be utilized to control the output voltage of supply unit in the change of drawing inclined region, can realize, drawing the full-automatic testing to network access equipment under inclined power environment, substantially increasing testing efficiency; In addition, described test macro provides visual interface, can allow the clearer monitoring and test process of tester; Further, described network access equipment is placed in a reservoir, and more complex environment is provided in container, the full test to network access equipment can be convenient to.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.