A kind of method and system of test router peak power
Technical field
The present invention relates to router technology field, more particularly to a kind of method and system of test router peak power.
Background technology
With the development in epoch, internet incorporates our life dearly, and miscellaneous equipment all provides connection
Net service.Router is to be widely used in our Working Life as a kind of equipment for connecting network.
When the power of test router, in general method of testing can not test out the maximum of wireless router complete machine
Power consumption number.
Many method of testings simply obtain the measured power under common testing conditions in the prior art, do not obtain equipment
Peak power.Such as Publication No. CN106792875A patent, disclose a kind of Wi-Fi products emitter transmission power
Method of testing and system, the method for testing include:S1, the wireless signal of tested device decayed, obtain pad value;
S2, pass through the signal strength values after the computer acquisition decay with wireless network card;S3, according to the signal strength values after the decay
Calculate the transmission power of the tested device.The invention is used for the transmission power of test equipment emitter, is not somebody's turn to do
The peak power of equipment.
Router can be divided into multiple functional modules, such as AC-DC power module, CPU, Ethernet PHY chip, wireless
WiFi module.When the power of each functional module reaches maximum, the power of whole router reaches maximum;Due to each work(
When the power of energy module reaches maximum, required test condition differs.
Specifically, the wireless WiFi module may include the wireless module of two frequency ranges, i.e., 2.4G wireless modules and 5G without
Wire module.The power consumption of the module is mainly influenceed by the design parameter being wirelessly transferred.
The Ethernet PHY chip includes the WAN-LAN modules of Ethernet PHY chip and the LAN- of Ethernet PHY chip
LAN modules, the WAN-LAN modules are used for data transfer between router WAN mouths and LAN mouths, its power also by WAN mouths and
Data transfer between LAN mouths determines.The LAN-LAN modules be used for router LAN mouths between data transfer, its power consumption by
Data transfer between LAN mouths and LAN mouths determines.
The power consumption of other modules of router is determined by its function, by the combined influence of each function of router.
Generally speaking, it is not provided with the good scheme of the peak power of an acquisition router in the prior art.
The content of the invention
The technical problems to be solved by the invention are the accurate peak power that router how is obtained by testing.This
Invention solves its technical problem, proposes a kind of method and system of test router peak power.
The method of the test router peak power includes:
The test of operation first, to determine in the first frequency range wireless module power maximum of the router corresponding first
Configuration;
The test of operation second, to determine in the second frequency range wireless module power maximum of the router corresponding second
Configuration;
The 3rd test is run, to determine in the WAN-LAN modular power maximums of the Ethernet PHY chip of the router
Corresponding 3rd configuration;
The 4th test is run, to determine in the LAN-LAN modular power maximums of the Ethernet PHY chip of the router
Corresponding 4th configuration;
The router is tested with the first configuration operation first, tested, with the 3rd with the second configuration operation second simultaneously
Configuration operation the 3rd is tested and tested with the 4th configuration operation the 4th, to obtain the peak power of router.
Further, it is described operation first test, with determine the router the first frequency range wireless module power most
Corresponding first configuration includes when big:
First terminal is provided and establishes the first frequency range wireless connection with the router, and in the first terminal and the road
By sealing in the first programmable attenuator between device;
Second terminal is provided and the LAN mouths of the router establish wired connection;
Network transmission test is carried out between the first terminal and the second terminal, to determine the router power
First configuration parameter of the pad value of corresponding first programmable attenuator and router when maximum.
Further, it is described operation second test, with determine the router the second frequency range wireless module power most
Corresponding second configuration includes when big:
Third terminal is provided and establishes the second frequency range wireless connection with the router, and in the third terminal and the road
By sealing in the second programmable attenuator between device;
4th terminal is provided and the LAN mouths of the router establish wired connection;
Network transmission test is carried out between the third terminal and the 4th terminal, to determine the router power
Second configuration parameter of the pad value of corresponding second programmable attenuator and router when maximum.
Further, the test of operation the 3rd, to determine the WAN-LAN in the Ethernet PHY chip of the router
Corresponding 3rd configuration includes during modular power maximum:
The LAN mouths of ethernet test instrument and the router are provided and WAN mouths establish test connection;
Network transmission test is carried out between the WAN mouths and LAN mouths of the router using ethernet test instrument, to determine
First test parameter of corresponding ethernet test instrument during the router power maximum.
Further, the test of operation the 4th, to determine the LAN-LAN in the Ethernet PHY chip of the router
Corresponding 4th configuration includes during modular power maximum:
Two LAN mouths for providing ethernet test instrument and the router establish test connection;
Network transmission test is carried out between the LAN mouths and LAN mouths of the router using ethernet test instrument, to determine
Second test parameter of corresponding ethernet test instrument during the router power maximum.
The system of the test router peak power includes:
First configuration determining module, for running the first test, to determine the wireless mould of the first frequency range in the router
Corresponding first configuration during block power maximum;
Second configuration determining module, for running the second test, to determine the wireless mould of the second frequency range in the router
Corresponding second configuration during block power maximum;
3rd configuration determining module, for running the 3rd test, to determine the Ethernet PHY chip in the router
Corresponding 3rd configuration during WAN-LAN modular power maximums;
4th configuration determining module, for running the 4th test, to determine the Ethernet PHY chip in the router
Corresponding 4th configuration during LAN-LAN modular power maximums;
Power test module, transported for being tested with the first configuration operation first router simultaneously, with the second configuration
Row second is tested, is tested with the 3rd configuration operation the 3rd and tested with the 4th configuration operation the 4th, to obtain router most
It is high-power.
Further, the first configuration determining module includes:
First connection setting up submodule, the first frequency range wireless connection is established with the router for providing first terminal,
And the first programmable attenuator is sealed between the first terminal and the router;
Second connection setting up submodule, wired connection is established for providing second terminal and the LAN mouths of the router;
First configuration determination sub-module, for carrying out network transmission survey between the first terminal and the second terminal
Examination, the pad value of corresponding first programmable attenuator and the router during determining the router power maximum
First configuration parameter.
Further, the second configuration determining module includes:
3rd connection setting up submodule, the second frequency range wireless connection is established with the router for providing third terminal,
And the second programmable attenuator is sealed between the third terminal and the router;
4th connection setting up submodule, wired connection is established for providing the 4th terminal and the LAN mouths of the router;
Second configuration determination sub-module, for carrying out network transmission survey between the third terminal and the 4th terminal
Examination, the pad value of corresponding second programmable attenuator and the router during determining the router power maximum
Second configuration parameter.
Further, the 3rd configuration determining module includes:
5th connection setting up submodule, LAN mouths and WAN mouths for providing ethernet test instrument and the router are established
Test connection;
3rd configuration determination sub-module, for using ethernet test instrument between the WAN mouths and LAN mouths of the router
Network transmission test is carried out, the first test parameter of corresponding ethernet test instrument during determining the router power maximum.
Further, the 4th configuration determining module includes:
6th connection setting up submodule, two LAN mouths for providing ethernet test instrument and the router, which are established, to be surveyed
Examination connection;
4th configuration determination sub-module, for using ethernet test instrument between the LAN mouths and LAN mouths of the router
Network transmission test is carried out, the second test parameter of corresponding ethernet test instrument during determining the router power maximum.
In the present invention, the router includes the first frequency range wireless module and the second frequency range wireless module.
The power consumption test of router complete machine is divided into the test of several modules by the present invention, and progressively each functional module is carried out
Test checking, the limiting value of the power of each functional module is found, finally integrate the test side of each functional module power maximum
Method and test configurations, test out the peak power of router complete machine.
The present invention can analyze the energy consumption of each functional module in detail, obtain closer to real accurate maximum work
Rate value.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the method for test router peak power that the embodiment of the present invention one provides;
Fig. 2 is a kind of structured flowchart of the system for test router peak power that the embodiment of the present invention two provides.
Embodiment
It is the specific embodiment of the present invention and with reference to accompanying drawing below, technical scheme is further described,
But the present invention is not limited to these embodiments.
It is also understood that specific embodiment described herein is used only for understanding the present invention, it is not used to limit this hair
It is bright.
In the present invention, the router includes the first frequency range wireless module and the second frequency range wireless module;Described first
Frequency range wireless module is used to provide the first frequency range wireless network, and it is wireless that the second frequency range wireless module is used for the second frequency range of offer
Network.
The first frequency range wireless module can be that 2.4G wireless modules, second frequency range can be 5G wireless modules.
Embodiment one
The present embodiment provides a kind of method of test router peak power, and its flow chart is as shown in figure 1, details are as follows.
Step S101, the test of operation first, to determine in the first frequency range wireless module power maximum of the router
Corresponding first configuration.
First test is to obtain configuration parameter during the first frequency range wireless module power maximum of router.
Further, it is described operation first test, with determine the router the first frequency range wireless module power most
Corresponding first configuration includes when big:
First terminal is provided and establishes the first frequency range wireless connection with the router, and in the first terminal and the road
By sealing in the first programmable attenuator between device;
Second terminal is provided and the LAN mouths of the router establish wired connection;
Network transmission test is carried out between the first terminal and the second terminal, to determine the router power
First configuration parameter of the pad value of corresponding first programmable attenuator and router when maximum.
The first terminal establishes the first frequency range wireless connection with the router, and in first terminal and the router
Between seal in a programmable attenuator.
Further, the power of described router is obtained using power meter.
Under the test conditions above, when the router reaches peak power and reaches maximum, the wireless mould of the first frequency range
The power of block also reaches maximum;So in above-mentioned connecting test condition, described can be substituted with the power of the router
The power of one frequency range wireless module is tested.
The programmable attenuator can adjust the pad value of router the first frequency range wireless connection signal.
Further, the second terminal and the LAN mouths of the router establish wired connection.
When being transmitted test between first terminal and the router, the configuration parameter and first of router is adjusted
The pad value of programmable attenuator.
Alternatively, the pad value increases 2dbm every time in regulation, until the flow broken string adjusted to router is
Only.When adjusting pad value, the power of router is recorded.Obtain the maximum of power of the router during regulation.
Further, pattern and the broadband in configuration of routers are changed.
The pattern refers to the standard of the wireless network connection of router, and the pattern is including 802.11b, 802.11g etc..Institute
Stating broadband includes HT20 and HT40.
Under every kind of configuration of router, the pad value of first programmable attenuator can be adjusted so that route
The power of device is maximum.Under the different configurations of router, the pad value of obtained power maximum is designated as A1, A2 respectively,
A3…….Further compare A1, the corresponding power of A2, A3 ..., obtain the maximum of the router power.And then obtain
The configuration of pad value and router corresponding to the router power maximum.
It is a kind of regulative mode above, specific regulation process can be with different.
When recording router power maximum, i.e. during the first frequency range wireless module power maximum, the described first programmable decay
First configuration parameter of the pad value of device and the router, first configuration include the pad value and the described first configuration
Parameter.
Step S102, the test of operation second, to determine in the second frequency range wireless module power maximum of the router
Corresponding second configuration.
Second test is to obtain configuration parameter during the second frequency range wireless module power maximum of router.
Further, it is described operation second test, with determine the router the second frequency range wireless module power most
Corresponding second configuration includes when big:
Third terminal is provided and establishes the second frequency range wireless connection with the router, and in the third terminal and the road
By sealing in the second programmable attenuator between device;
4th terminal is provided and the LAN mouths of the router establish wired connection;
Network transmission test is carried out between the third terminal and the 4th terminal, to determine the router power
Second configuration parameter of the pad value of corresponding second programmable attenuator and router when maximum.
The third terminal establishes the second frequency range wireless connection with the router, and in the third terminal and the road
By sealing in the second programmable attenuator between device.
4th terminal and the LAN mouths of the router establish wired connection.
When network transmission test is carried out between the 4th terminal and the router, second programmable attenuator is adjusted
Pad value and the router configuration so that the power of router is maximum.
The power of the router can be obtained by power meter, due under above-mentioned test condition of contact, the route
During the power maximum of device, the power of the second frequency range wireless module reaches maximum.So it can be substituted with the power of router
The power of second frequency range wireless module.
Corresponding to the pad value and the router of programmable attenuator when recording the router power maximum
Second configuration parameter, second configuration include the pad value and second configuration parameter.
Because the method for testing in this step and step S101 are identicals, just repeat no more here.
Step S103, the test of operation the 3rd, to determine the WAN-LAN modules in the Ethernet PHY chip of the router
Corresponding 3rd configuration during power maximum.
The Ethernet PHY chip includes being used for the part transmitted between LAN mouths and LAN mouths, and for WAN mouths and LAN
The part being transmitted between mouthful;The LAN-LAN modules of Ethernet PHY chip and the WAN- of Ethernet PHY chip are designated as respectively
LAN modules.
The change of the power consumption of network data transmission between the LAN mouths and LAN mouths is mainly reflected in Ethernet PHY chip
LAN-LAN modules;The change of the power consumption of network data transmission between the WAN mouths and LAN mouths is mainly reflected in Ethernet
In the WAN-LAN modules of PHY chip.
So the data transmission power consumption between the LAN mouths and LAN mouths, can pass through the LAN-LAN of Ethernet PHY chip
Module represents.Data transmission power consumption between the WAN mouths and LAN mouths, can pass through the WAN-LAN of Ethernet PHY chip
Module represents.
It is possible to further set the 3rd test, to obtain the WAN-LAN module work(of the Ethernet PHY chip of router
Corresponding 3rd configuration during rate maximum.
Further, the test of operation the 3rd, to determine the WAN-LAN in the Ethernet PHY chip of the router
Corresponding 3rd configuration includes during modular power maximum:
The LAN mouths of ethernet test instrument and the router are provided and WAN mouths establish test connection;
Network transmission test is carried out between the WAN mouths and LAN mouths of the router using ethernet test instrument, to determine
First test parameter of corresponding ethernet test instrument during the router power maximum.
Due under this test condition, when the power maximum of router, the WAN- of the Ethernet PHY chip of router
LAN modular powers also reach maximum.Therefore, the power that a power meter obtains router can be set.When the power of router is maximum
When, i.e. when the WAN-LAN modular powers of Ethernet PHY chip also reach maximum, it is determined that the first of described ethernet test instrument
Test parameter.3rd configuration includes first test parameter.
First test parameter includes:Data traffic size, data byte size, data frame type, Ethernet interface are double
Work pattern (10M, 100M, 1000M, full duplex, half-duplex) etc..
Step S104, the test of operation the 4th, to determine the LAN-LAN modules in the Ethernet PHY chip of the router
Corresponding 4th configuration during power maximum.
Specifically, the test of operation the 4th, to determine the LAN-LAN moulds in the Ethernet PHY chip of the router
Corresponding 4th configuration includes during block power maximum:
Two LAN mouths for providing ethernet test instrument and the router establish test connection;
Network transmission test is carried out between the LAN mouths and LAN mouths of the router using ethernet test instrument, to determine
Second test parameter of corresponding ethernet test instrument during the router power maximum.
In above-mentioned test condition of contact, the power consumption of the network data transmission between the LAN mouths and LAN mouths is by Ethernet
The LAN-LAN modules of PHY chip determine.
Second test parameter specifically includes:Data traffic size, data byte size, data frame type, Ethernet
Mouth dual-mode (10M, 100M, 1000M, full duplex, half-duplex) etc..
4th configuration includes corresponding second test parameter during router power maximum.
Because the method for testing in this step is identical with the method for testing in step S103, repeat no more here.
Step S105, while the router is tested with the first configuration operation first, surveyed with the second configuration operation second
Examination, tested with the 3rd configuration operation the 3rd and tested with the 4th configuration operation the 4th, to obtain the peak power of router.
Step S101 to step S104 purpose is to obtain each functional module, including:First frequency range wireless module,
The LAN-LAN modules of two frequency range wireless modules, the WAN-LAN modules of Ethernet PHY chip and Ethernet PHY chip are individually tested
When reach prominent test parameter.
Test connection is carried out by step S101 to step S104 scheme simultaneously, then the router is matched somebody with somebody with first simultaneously
The test of operation first is put, is tested with the second configuration operation second, is tested with the 3rd configuration operation the 3rd and is transported with the 4th configuration
Row the 4th is tested, to ensure that the power consumption of each functional module of router reaches maximum.
The router power for now testing to obtain can be considered the peak power of router.
In the present invention, first test, second test, the 3rd test and the 4th test are only
Vertical test, the test process each tested are not influenceed and interference by other tests.For example, when carrying out the 4th test, should
The test of first test, the second test, the 3rd test is connected dismounting by this, and keeps the router not test beyond connection
Unnecessary connection.
It should be appreciated that above-mentioned step does not have strict execution sequence, it is all to be contemplated that and do not influence the reality of function
Existing change all should be within the scope of the present invention.
Embodiment two
The present embodiment provides a kind of system of test router peak power, and its structured flowchart is as shown in Fig. 2 be described in detail such as
Under.
The router includes the first frequency range wireless module and the second frequency range wireless module.
The system of the test router peak power includes:
First configuration determining module 210, it is wireless in the first frequency range of the router with determination for running the first test
Corresponding first configuration during modular power maximum;
Second configuration determining module 220, it is wireless in the second frequency range of the router with determination for running the second test
Corresponding second configuration during modular power maximum;
3rd configuration determining module 230, for running the 3rd test, to determine the ethernet PHY core in the router
Corresponding 3rd configuration during the WAN-LAN modular power maximums of piece;
4th configuration determining module 240, for running the 4th test, to determine the ethernet PHY core in the router
Corresponding 4th configuration during the LAN-LAN modular power maximums of piece;
Power test module 250, for being tested with the first configuration operation first router simultaneously, with the second configuration
The test of operation second, tested with the 3rd configuration operation the 3rd and tested with the 4th configuration operation the 4th, to obtain router
Peak power.
Further, the first configuration determining module 210 includes:
First connection setting up submodule, the first frequency range wireless connection is established with the router for providing first terminal,
And the first programmable attenuator is sealed between the first terminal and the router;
Second connection setting up submodule, wired connection is established for providing second terminal and the LAN mouths of the router;
First configuration determination sub-module, for carrying out network transmission survey between the first terminal and the second terminal
Examination, the pad value of corresponding first programmable attenuator and the router during determining the router power maximum
First configuration parameter.
Further, the second configuration determining module 220 includes:
3rd connection setting up submodule, the second frequency range wireless connection is established with the router for providing third terminal,
And the second programmable attenuator is sealed between the third terminal and the router;
4th connection setting up submodule, wired connection is established for providing the 4th terminal and the LAN mouths of the router;
Second configuration determination sub-module, for carrying out network transmission survey between the third terminal and the 4th terminal
Examination, the pad value of corresponding second programmable attenuator and the router during determining the router power maximum
Second configuration parameter.
Further, the 3rd configuration determining module 230 includes:
5th connection setting up submodule, LAN mouths and WAN mouths for providing ethernet test instrument and the router are established
Test connection;
3rd configuration determination sub-module, for using ethernet test instrument between the WAN mouths and LAN mouths of the router
Network transmission test is carried out, the first test parameter of corresponding ethernet test instrument during determining the router power maximum.
Further, the 4th configuration determining module 240 includes:
6th connection setting up submodule, two LAN mouths for providing ethernet test instrument and the router, which are established, to be surveyed
Examination connection;
4th configuration determination sub-module, for using ethernet test instrument between the LAN mouths and LAN mouths of the router
Network transmission test is carried out, the second test parameter of corresponding ethernet test instrument during determining the router power maximum.
Because the system of the test router peak power of the present embodiment offer is applied to the test road of the offer of embodiment one
By the method for device peak power, related content is described in detail in embodiment one, repeats no more here.
In embodiment provided herein, it should be appreciated that described method and system is all schematical, in reality
Can difference by adjustment in the implementation process of border.
In addition, the specific name of each functional unit or module is also only to facilitate mutually differentiation, is not used to the present invention
Protection domain.
Specific embodiment described herein is only to spirit explanation for example of the invention.Technology belonging to the present invention is led
The technical staff in domain can be made various modifications or supplement to described specific embodiment or be replaced using similar mode
Generation, but without departing from the spiritual of the present invention or surmount scope defined in appended claims.