Invention content
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of automatic tests for drawing inclined power supply
Method and system, the test process excessively redundancy for solving the problems, such as to draw inclined power supply in the prior art.
In order to achieve the above objects and other related objects, the present invention provides a kind of Auto-Test System for drawing inclined power supply, packet
It includes:Supply unit being connected with the power port of network access equipment, with data-interface;With the data of the supply unit
The test device that interface is connected with the data port of the network access equipment is used for according to acquired power parameter to described
The voltage that supply unit is exported carries out drawing inclined regulation and control, and is set to the network insertion by the data port during regulation and control
It is standby to be tested.
Preferably, the test device includes:Human-computer interaction module, the interface for providing adjustment power parameter, and from
The interface obtains the power parameter that user is inputted, and provides the boundary for the power supply regulation and control variation for showing the supply unit
Face, and the situation of change of the output voltage of supply unit in test process is given into real-time display;Control module, for being based on institute
The power parameter and preset control methods that human-computer interaction module is provided are stated, the voltage that the supply unit is exported is controlled and exists
One reference voltage oscillates about variation;Test module, the output voltage for controlling the supply unit in the control module
During concussion variation, test data is sent to the data port, and according to the feedback data of the data port come to described
Network access equipment is tested.
Preferably, the test system further includes:The container of test environment is provided for network access equipment.
Preferably, the container includes:Temperature control device, for adjusting the container according to acquired temperature parameter
Interior temperature value.
Based on above-mentioned purpose, the present invention also provides a kind of automatic test approach drawing inclined power supply, including:According to acquired
The voltage that power parameter exports supply unit carries out drawing inclined regulation and control, wherein the supply unit is carried to network access equipment
Voltage supplied;The network access equipment is tested by the data port of the network access equipment during regulation and control.
Preferably, the voltage that the power parameter acquired in the basis exports supply unit is drawn the side regulated and controled partially
Formula includes:The interface of adjustment power parameter is provided, and the power parameter that user is inputted is obtained from the interface;Based on the electricity
Source parameter and preset control methods control the voltage that the supply unit is exported and oscillate about variation in a reference voltage.
Preferably, the test method further includes:The interface for the power supply regulation and control variation for showing the supply unit is provided, and
The situation of change of the output voltage of supply unit in test process is given into real-time display.
Preferably, it is described during regulation and control by the data port of the network access equipment to the network access equipment
The mode tested includes:To the data port send test data, and according to the feedback data of the data port come
The network access equipment is tested.
Preferably, before testing the network access equipment and in test process, the test method is also wrapped
It includes:According to the temperature value in acquired temperature parameter adjustment container, wherein the container provides tested for network access equipment
Environment.
As described above, the automatic test approach and system of the inclined power supply of drawing of the present invention, have the advantages that:By with
The data-interface of supply unit is connected, so as to control the output voltage of supply unit in the change for drawing inclined region using software
Change, can realize the full-automatic testing to network access equipment in the case where drawing inclined power environment, substantially increase testing efficiency;Separately
Outside, the test system provides visual interface, can allow the clearer monitoring and test process of tester;In addition, will
The network access equipment is placed in a reservoir, and increasingly complex environment is provided in container, can be convenient for network insertion
Comprehensive test of equipment.
Specific implementation mode
Illustrate that embodiments of the present invention, those skilled in the art can be by this specification below by way of specific specific example
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.
As shown in Figure 1, the present invention provides a kind of Auto-Test System for drawing inclined power supply.The test system 1 includes:Power supply
Device 11 and test device 12.In the case of power supply of the test system 1 for test network access device 2 is drawn partially,
The function and performance of network access equipment 2 are tested.Wherein, the network access equipment 2 includes but not limited to:Routing
Device, gateway, hub, repeater etc..
The supply unit 11 is connected with the power port of the network access equipment 2, and has data-interface.The number
It is used for receiving the command information of the voltage comprising output to the network access equipment 2, output ac/dc etc. according to interface.Institute
It can be serial line interface to state data-interface.For example, the data-interface is USB interface, RS232 interface etc..
The supply unit 11 is used to adjust internal circuit according to the command information received, meets described instruction with output
The voltage of information requirements.
The data port of the test device 12 and the data-interface and the network access equipment 2 of the supply unit 11
It is connected, the voltage for being exported to the supply unit 11 according to acquired power parameter carries out drawing inclined regulation and control, and is adjusting
The network access equipment 2 is tested by the data port during control.
Wherein, the test device 12 can be a computer or embedded device.
Specifically, the test device 12 can obtain power parameter from other equipment, to carry out joint test.Its
In, the power parameter includes but not limited to:Export direct current/output exchange option parameter, rated voltage parameter, specified exchange frequency
Rate, the shock range of rated voltage, output voltage parameter etc..The test device 12 is real according to preset voltage change formula
When the command information for including the voltage after adjustment to the output of the supply unit 11, then the supply unit 11 is according to being received
Command information, adjust internal circuit, with the voltage change situation in 2 working environment of analog network access device.
The test device 12 also connects the network while output voltage of the supply unit 11 partially is drawn in control
Enter equipment 2 to be tested.Wherein, described test includes:Functional test, performance test etc..For example, the test device 12 connects
4 data port of the network access equipment 2, the test device 12 input " ping data port A2 " to data port A1
Test data, and test whether the data port A2 receives the test data, if being properly received, test passes through.Again
Such as, the test device 12 sends out a large amount of test data to data port A1, and test the network access equipment 2 other
The case where test data that data port receives, to be tested for the property to the network access equipment 2 and data port A1.
Preferably, in order to it is flexible, for tested network access device 2 test, the test device 12 includes:
Human-computer interaction module, control module and test module.(being unillustrated)
The human-computer interaction module is used to provide the interface of adjustment power parameter, and obtains user from the interface and inputted
Power parameter, and provide the interface for the power supply regulation and control variation for showing the supply unit 11, and by power supply in test process
The situation of change of the output voltage of device 11 gives real-time display.
Specifically, the power parameter that user to be inputted is included working as user in an interface by the human-computer interaction module
When answering power parameter using keyboard, mouse the input phase, and pressing submitting button, the human-computer interaction module will be in the interface
Power parameter is supplied to the control module.
Further, since test device 12 is connect with supply unit 11 by data-interface, therefore, the human-computer interaction module is also
The voltage that supply unit 11 is exported can be obtained, and it is plotted in real time in another interface, to be shown to the user
The control module controls the case where output voltage of the supply unit 11.Two interface can be simultaneously displayed on a screen
In.
The power parameter and preset control methods that the control module is used to be provided based on the human-computer interaction module,
It controls the voltage that the supply unit 11 is exported and oscillates about variation in a reference voltage.
Specifically, the control module using preset unit voltage as step-length, with the rated voltage in the voltage parameter
Voltage on the basis of parameter gradually will be transferred to Amplitude maxima in the rated voltage parameter, then gradually be decremented to amplitude min value.
The voltage parameter of every successive step is transported to the supply unit 11 by the control module, for its synchronous adjustment.
It should be noted that above-mentioned control methods are only for example, in fact, the control module can also utilize regulation and control public
Formula is regulated and controled according to peak of power consumption/low ebb, so as to closer true environment.
The output voltage that the test module is used to control the supply unit 11 in the control module shakes the variation phase
Between, test data is sent to the data port, and set to the network insertion according to the feedback data of the data port
Standby 2 are tested.
Specifically, the test module can control the output voltage concussion of the supply unit 11 in the control module
During variation, the network access equipment 2 is carried out according to quantity, time difference for sending test data and receiving feedback data etc.
Test.
Preferably, as shown in Fig. 2, the test system 1 further includes a container 13.
The container 13 is used to place the network access equipment 2 wherein, and is provided more for the network access equipment 2
For true environment.Different temperatures, humidity are such as provided.
Include temperature control device 14 accordingly in the container 13, for according to described in acquired temperature parameter adjustment
Temperature value in container 13.
Here, the temperature parameter can be provided by other equipment, either provided again or can be with by the test device 12
Control panel on the temperature control device 14 described in user's operation, to change the temperature value in the container 13.
For example, temperature control device 14 described in user's operation provides the environment that temperature value T1 is provided to network access equipment 2,
And after the test device 12 completes at least one test period, changes the temperature value to T2, restart the test dress
12 are set to be tested.
For another example, the temperature control device 14 changes the temperature in the container 13 according to the temperature change section of setting
Value, meanwhile, the test device 12 is tested.
It should be noted that the mode of above-mentioned adjustment temperature is only for example rather than 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.The test method is mainly by surveying
Test system executes.The test system includes supply unit, test device etc..Wherein, the test device controls the electricity
Source device, and network access equipment is tested.The supply unit is connected with the power port of the network access equipment,
And there is data-interface.The data-interface be used for receive comprising output to the network access equipment voltage, output exchange/
The command information of direct current etc..The data-interface can be serial line interface.For example, the data-interface is USB interface, RS232
Interface etc..The test device can be a computer or embedded device.
In step sl, the test device is carried out according to the voltage that acquired power parameter exports supply unit
Draw regulation and control partially, wherein the supply unit provides voltage to network access equipment.
Specifically, the test device can obtain power parameter from other equipment, to carry out joint test.Wherein,
The power parameter includes but not limited to:Export direct current/output exchange option parameter, rated voltage parameter, specified a-c cycle,
Shock range, output voltage parameter of rated voltage etc..The test device according to preset voltage change formula, in real time to
The supply unit output includes the command information of the voltage after adjustment, then the supply unit is believed according to the instruction received
Breath adjusts internal circuit, with the voltage change situation in analog network access device working environment.
Preferably, in order to it is flexible, for tested network access device test.The step S1 includes:Step
S11、S12.(being unillustrated)
In step s 11, the test device provides the interface of adjustment power parameter, and obtains user institute from the interface
The power parameter of input.
In step s 12, the test device is based on the power parameter and preset control methods, controls the power supply
The voltage that device is exported oscillates about variation in a reference voltage.
Specifically, the power parameter that user to be inputted is included in an interface, when user utilizes by the test device
Keyboard, mouse the input phase answer power parameter, and when pressing submitting button, and the test device obtains the ginseng of the power supply in the interface
Number, and by preset unit voltage for step-length, on the basis of the rated voltage parameter in the voltage parameter voltage, gradually by institute
It states and is transferred to Amplitude maxima in rated voltage parameter, then be gradually decremented to amplitude min value.The control module will be per successive step
Voltage parameter transport to the supply unit, for its synchronous adjustment.
It should be noted that above-mentioned control methods are only for example, in fact, the control module can also utilize regulation and control public
Formula is regulated and controled according to peak of power consumption/low ebb, so as to closer true environment.
In another preferred embodiment, the test device also provides the boundary for the power supply regulation and control variation for showing the supply unit
Face, and the situation of change of the output voltage of supply unit in test process is given into real-time display.
Specifically, it is connect by data-interface with supply unit due to the test device, therefore, the test device may be used also
To obtain the voltage that supply unit is exported, and it is plotted in real time in another interface, with to described in user displaying
The case where output voltage of supply unit.Two interface can be simultaneously displayed in a screen.
In step s 2, the test device during regulation and control by the data port of the network access equipment to described
Network access equipment is tested.
Specifically, the test device is while the output voltage of the partially described supply unit is drawn in control, also to the net
Network access device is tested.Wherein, described test includes:Functional test, performance test etc..For example, the test device connects
4 data port of the network access equipment are connect, the test device inputs " ping data port A2 " to data port A1
Test data, and test whether the data port A2 receives the test data, if being properly received, test passes through.Again
Such as, the test device sends out a large amount of test data to data port A1, and tests other numbers of the network access equipment
According to port receive test data the case where, to be tested for the property to the network access equipment and data port A1.
Preferably, the step S2 includes:Test data is sent to the data port, and according to the data port
Feedback data is come the step of testing the network access equipment.
Specifically, the test device can control the output voltage concussion change of the supply unit in the control module
During change, the network access equipment is surveyed according to quantity, the time difference etc. that send test data and reception feedback data
Examination.
It is further preferable that as shown in figure 4, the test device before executing step S2 and period, also by the test
System executes step S3.
In step s3, the test system is according to the temperature value in acquired temperature parameter adjustment container, wherein institute
State the step of container provides test environment for network access equipment.Wherein, the test system further includes:The container, it is optional
, include the temperature control device of setting on the container.The step S3 can be executed by the temperature control device.
Here, the temperature parameter can be provided by other equipment, either provided again or can be by by the test device
The control panel on temperature control device on container described in user's operation, to change the temperature value in the container.
For example, temperature control device described in user's operation provides the environment that temperature value T1 is provided to network access equipment, and
After the test device completes at least one test period, change the temperature value to T2, restart the test device into
Row test.
For another example, the temperature control device changes the temperature value in the container according to the temperature change section of setting, together
When, the test device is tested.
It should be noted that the mode of above-mentioned adjustment temperature is only for example rather than limitation of the present invention.
In conclusion the automatic test approach and system of the inclined power supply of drawing of the present invention, are connect by the data with supply unit
Mouth is connected, and so as to the output voltage using software to control supply unit in the variation for drawing inclined region, can realize and draw partially
To the full-automatic testing of network access equipment under power environment, testing efficiency is substantially increased;In addition, the test system provides
Visual interface, can allow tester clearer monitoring and test process;In addition, the network access equipment is placed
In a reservoir, and in container increasingly complex environment is provided, comprehensive test to network access equipment can be convenient for.So
The present invention effectively overcomes various shortcoming in the prior art and has high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
The personage for knowing this technology can all carry out modifications and changes to above-described embodiment without violating the spirit and scope of the present invention.Cause
This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as
At all equivalent modifications or change, should by the present invention claim be covered.