A kind of method and system of test router transmit powerTechnical field
The present invention relates to router technology field, more particularly to a kind of method and system of test router transmit power.
Background technology
Wireless router, cable network signal is actually converted into wireless signal, facilitates mobile phone, notebook, flat board etc.Equipment is wirelessly connected to network.WiFi products have been formulated in industries such as China Telecom, CHINAUNICOM, China MobileTest specification on WiFi products, still, is not specified by the wireless transmission power of equipment.
Generally, wireless router needs to coordinate the terminal device of wireless network card etc while used.In this engagement processIn, if the too high wireless network card that will result in of router transmission power is broken by too high radiofrequency signal;If too low will makeCause our daily data transmission exceptions, the phenomenon of network interim card into packet loss.In order to obtain the wireless hair for meeting actual requirementSend power, it would be desirable to which the wireless transmission power of router is tested.
Such as Publication No. CN103414526A patent, a kind of test system of wireless radio frequency index and test side are disclosedMethod, the method for testing of the wireless radio frequency index include:Step 1, Devices to test is fixed in shielded box, in the shielded boxProvided with test antenna, the antenna and test antenna of Devices to test are adjusted, makes the antenna of Devices to test and the polarization shape of test antennaFormula is identical;The test antenna connects radio frequency parameter tester by RF cable, and the radio frequency parameter tester passes through netting twineConnect computer;Calibrated before step 2, test, the loss value and space attenuation value of RF cable are obtained, then to RF cableLoss value and space attenuation value compensate, and make test result more accurate, offset be equal to loss value and space attenuation value itWith;Step 3, computer operation automatic testing software, perform transmitting path parameter testing:The computer is sent by netting twine and surveyedExamination order to Devices to test, the test command control Devices to test sends the first test signal of setting;Step 31, to be measured setAfter the test command is received, first test signal is gone out by the aerial radiation of Devices to test;Step 32, shielded boxInterior test antenna receives first test signal by the coupled communication between antenna, then by RF cable by describedOne test signal is transmitted to radio frequency parameter tester;Step 33, the radio frequency parameter tester are believed the first test receivedNumber analyzed, then shown analysis result on computers.The method of testing that the patent provides, it is impossible to while test twoTransmit power frequency range works simultaneously when, it is impossible to be used in solve the problems, such as of the invention.And using this method test data withData under equipment actual working state may be deviated.
The method provided in the prior art, it is impossible to while the transmit power two frequency ranges work simultaneously when is tested, and notIt is enough accurate, the actual conditions of comprehensive consersion unit.
The content of the invention
How comprehensively, exactly the present invention's problem to solve is that detect double frequency router WiFi transmission work(Rate, transmit power of the router under different use conditions can be obtained.
The invention provides a kind of method and system of test router transmit power;The test router transmit powerMethod include:
Simultaneously by router and first terminal, second terminal carries out data transmission testing;Wherein, the first terminal withThe router is connected by first frequency wireless network, and the second terminal passes through second frequency wireless network with the routerNetwork connects;
The wireless test instrument being connected from router and with router antenna obtains the test number of the data transmission testAccording to determine the transmit power of router.
Further, described while by router and first terminal, before second terminal carries out data transmission test,Also include:
The parameter of the router is configured.
Further, described while by router and first terminal, after second terminal carries out data transmission test,Also include:
By telnet command, the current channel of the router and broadband are checked, to ensure router channels and broadbandParameter setting is correct.
Further, the wireless test instrument being connected from router and with router antenna obtains the data transferThe test data of test, to determine that the transmit power of router includes:
The first test data is obtained from router;
The second test data is obtained from the wireless test instrument being connected with router antenna;
According to the first test data and the second test data, the transmit power of router is determined.
Further, before the second test data is obtained from the wireless test instrument being connected with router antenna, in addition to:
The wireless test instrument is controlled, it is operated in reception pattern.
On the other hand, the present invention also provides a kind of system of corresponding test router transmit power, including:
Data transmission test module, for simultaneously by router and first terminal, second terminal to carry out data transmission surveyingExamination;Wherein, the first terminal is connected with the router by first frequency wireless network, the second terminal and the roadConnected by device by second frequency wireless network;
Transmit power acquisition module, obtain for the wireless test instrument that is connected from router and with router antenna described inThe test data of data transmission test, to determine the transmit power of router.
Further, the system of the test router transmit power also includes:
Parameter setting module, for being configured to the parameter of the router.
Further, the system of the test router transmit power also includes:
Verification module, for by telnet command, the current channel of the router and broadband being checked, to ensureRouter channels and broadband parameter set correct.
Further, the transmit power acquisition module includes:
First test data acquisition submodule, for obtaining the first test data from router;
Second test data acquisition submodule, for obtaining the second test from the wireless test instrument being connected with router antennaData;
Transmit power determination sub-module, for according to the first test data and the second test data, determining the hair of routerSend power.
Further, the system of the test router transmit power also includes:
Wireless test instrument control module, for controlling the wireless test instrument, it is set to be operated in reception pattern.
Wherein, the router includes the wireless network of two different frequencies.
Method of testing provided by the invention realizes the wireless transmission power detection of double-frequency wireless router, can obtainTo transmit power of the router under different use conditions, 2.4G and 5G radio frequency operation are tested simultaneously with a test environmentState, test result is comprehensively, accurately.
In addition, the real use environment of method analog subscriber provided by the invention, relatively actual application scenarios, are surveyedTest result has more reference value.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the method for test router transmit power that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of the method for test router transmit power that the embodiment of the present invention two provides;
Fig. 3 is a kind of flow chart of the method for test router transmit power that the embodiment of the present invention three provides;
Fig. 4 is a kind of structured flowchart of the system for test router transmit power that the embodiment of the present invention four 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 hairIt is bright.
In the present invention, the router includes the wireless network of two different frequencies, including first frequency wireless networkWith second frequency wireless network, the wireless network of described two different frequencies can be 2.4GWiFi networks and 5G WiFi networks.
With the renewal of technology, the signified first frequency wireless network of the present invention and second frequency wireless network can also refer toCorresponding wireless network after renewal.
In the present invention, it is related to test terminal, first terminal, second terminal, wireless test instrument and the road for testBy device.
The first terminal is connected with the router by first frequency wireless network, the second terminal and the roadConnected by device by second frequency wireless network.
The method and system of test router transmit power provided by the invention are applied to test terminal, the test terminalIt may include two network interface cards.The test network interface card of terminal first is connected to the LAN mouths of router, and the second network interface card is connected to wireless test instrument.
The wireless test instrument is connected to the antenna of router by power splitter;Specifically, it is connected respectively to routerFirst frequency antenna and second frequency antenna, such as 2.4G antennas and 5G antennas.In addition, the wireless test instrument can beIQXel-80 testers.
The test terminal can configure to router to be tested and wireless test instrument.
In test process, above-mentioned test device is in shielding room environmental, to reduce interference, obtains accurately test numberAccording to.
Embodiment one
The present embodiment provides a kind of method of test router transmit power, and its flow chart is as shown in figure 1, details are as follows:
Step S101, while by router and first terminal, second terminal carries out data transmission testing;Wherein, it is describedFirst terminal is connected with the router by first frequency wireless network, and the second terminal passes through second with the routerFrequency wireless network connection.
The router to be measured includes the wireless network of two frequencies;The wireless network of described two frequencies is the first frequencyRate wireless network, second frequency wireless network.
Specifically, the first frequency wireless network and second frequency wireless network can be 2.4G WiFi networks and 5GWiFi network.The router is double-frequency wireless router.
Simultaneously by router and first terminal, second terminal carries out data transmission testing the test terminal.
The first terminal and second terminal can be computer.
It can be realized by IxChariot softwares and pass through router and first terminal, second terminal in the test terminalBetween data transmission test.The test script can be high-throughput script.
In addition, the test terminal is realized by router and first terminal by other instruments or other method, secondData transmission test between terminal is also possible, and the present invention does not limit its specific data transmission test mode.
Step S102, the wireless test instrument being connected from router and with router antenna obtain the data transmission testTest data, to determine the transmit power of router.
In the test terminal simultaneously by router and first terminal, when second terminal carries out data transmission test, surveyTry terminal and obtain test data from router and the wireless test instrument, to determine the transmit power of router.
Alternatively, PSD limit values (PSD Limit), adjustment limit value (regulatory limit), school are obtained from routerQuasi- power (Maximal Power), calibration power (Ultimate EVM Power).
Backoff values (based on the deviation between calibration power different rates) are obtained from wireless test instrument, for correctingCompensation calibration power (Maximal Power), calibration power (Ultimate EVM Power) value, so as to obtain nominal power(calibrated power)。
By nominal power (calibrated power), PSD limit values (PSD Limit) and adjustment limit value (regulatoryLimit transmit power of the minimum value as router in).
Further, it is also possible to determine the error size of transmit power.
Above-mentioned parameter is a specific computational methods and example, and the present invention is unlimited to make specific transmit power calculating sideFormula, according to hardware and the difference of test condition, the transmit power of router can be obtained and calculated by different modes.
Alternatively, the transmit power of router is directly read from wireless test instrument.
Further, it is also possible to the transmit power of router is obtained by device for testing power.
Further, before the second test data is obtained from the wireless test instrument being connected with router antenna, in addition to:
The wireless test instrument is controlled, it is operated in reception pattern.
Method of testing provided by the invention can test router simultaneously two frequencies transmit power when working simultaneously.Actually use in scene, by the frequency supported from the terminal that router connects is different, router generally requires simultaneouslyThere is provided in two frequency networks.So method of testing provided by the invention more meets actual usage scenario.
Embodiment two
The present embodiment provides a kind of method of test router transmit power, and its flow chart is as shown in Fig. 2 details are as follows:
Step S201, the parameter of the router is configured.
The parameter of the router includes pattern, bandwidth and channel.Different test hardware and test condition, it sets ginsengNumber processes are also difference.The present invention does not limit its specific setting up procedure.
Step S202, while by router and first terminal, second terminal carries out data transmission testing;Wherein, it is describedFirst terminal is connected with the router by first frequency wireless network, and the second terminal passes through second with the routerFrequency wireless network connection.
Step S203, by telnet command, the current channel of the router and broadband are checked, to ensure that router is believedRoad and broadband parameter set correct
This step is to confirm that Router Parameters are set accurate.
Further, realized by telnet command.
Step S204, the wireless test instrument being connected from router and with router antenna obtain the data transmission testTest data, to determine the transmit power of router.
Because step S202 and step S204 have been detailed in embodiment one, repeat no more here, referring to embodimentOne.
In the present embodiment, the parameter of router is set accordingly by increasing step S201, to obtain on roadBy transmit power test result of the device under different test parameters.By step S203 to ensure the parameter set in step S201Correctness.
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 functionExisting change all should be within the scope of the present invention.
Embodiment three
The present embodiment provides a kind of method of test router transmit power, and its flow chart is as shown in figure 3, details are as follows:
Step S301, while by router and first terminal, second terminal carries out data transmission testing;Wherein, it is describedFirst terminal is connected with the router by first frequency wireless network, and the second terminal passes through second with the routerFrequency wireless network connection.
Step S302, the first test data is obtained from router.
Test terminal obtains the first test data from router, such as the PSD limit values (PSD hereinbefore mentionedLimit limit value (regulatory limit), calibration power (Maximal Power), calibration power (Ultimate), are adjustedEVM Power)。
In addition, specific first test data can be adjusted according to the hardware and test condition of reality.
Step S303, the second test data is obtained from the wireless test instrument being connected with router antenna.
Test terminal obtains the second test data from the wireless test instrument, such as the Backoff values being mentioned above(based on the deviation between calibration power different rates).
In addition, specific second test data can be adjusted according to the hardware and test condition of reality.
Step S304, according to the first test data and the second test data, determine the transmit power of router.
According to above-mentioned first test data and the second test data, the transmit power of the router is calculated.
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 functionExisting change all should be within the scope of the present invention.
Example IV
The present embodiment provides a kind of system of test router transmit power, and its structured flowchart is as shown in figure 4, be described in detail such asUnder:
The system of the test router transmit power includes:
Data transmission test module 410, for being carried out data transmission by router and first terminal, second terminal simultaneouslyTest;Wherein, the first terminal is connected with the router by first frequency wireless network, the second terminal with it is describedRouter is connected by second frequency wireless network;
Transmit power acquisition module 420, the wireless test instrument for being connected from router and with router antenna obtainThe test data of the data transmission test, to determine the transmit power of router.
Further, the system of the test router transmit power also includes:
Parameter setting module, for being configured to the parameter of the router.
Further, the system of the test router transmit power also includes:
Verification module, for by telnet command, the current channel of the router and broadband being checked, to ensureRouter channels and broadband parameter set correct.
Further, the transmit power acquisition module 420 includes:
First test data acquisition submodule, for obtaining the first test data from router;
Second test data acquisition submodule, for obtaining the second test from the wireless test instrument being connected with router antennaData;
Transmit power determination sub-module, for according to the first test data and the second test data, determining the hair of routerSend power.
Further, the system of the test router transmit power also includes:
Wireless test instrument control module, for controlling the wireless test instrument, it is set to be operated in reception pattern.
Wherein, the router includes the wireless network of two different frequencies.
The system for the test router transmit power that the present embodiment provides corresponds to foregoing embodiment of the method one to implementationExample three, it is described in detail referring to embodiment one to embodiment three, repeats no more here.
In embodiment provided herein, it should be appreciated that described method and system is all schematical, in realityCan 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 inventionProtection domain.
Specific embodiment described herein is only to spirit explanation for example of the invention.Technology belonging to the present invention is ledThe technical staff in domain can be made various modifications or supplement to described specific embodiment or be replaced using similar modeGeneration, but without departing from the spiritual of the present invention or surmount scope defined in appended claims.