Disclosure of Invention
The problem to be solved by the invention is how to comprehensively and accurately detect the transmission power of WiFi of the dual-frequency router, and the transmission power of the router under different use conditions can be obtained.
The invention provides a method and a system for testing the sending power of a router; the method for testing the transmission power of the router comprises the following steps:
simultaneously, data transmission test is carried out through the router, the first terminal and the second terminal; the first terminal is connected with the router through a first frequency wireless network, and the second terminal is connected with the router through a second frequency wireless network;
and acquiring test data of the data transmission test from the router and a wireless tester connected with the router antenna to determine the sending power of the router.
Further, before the data transmission test is performed by the router, the first terminal and the second terminal at the same time, the method further includes:
and setting the parameters of the router.
Further, after the data transmission test is performed by the router, the first terminal and the second terminal at the same time, the method further includes:
and checking the current channel and the broadband of the router through a Telnet command to ensure that the parameters of the channel and the broadband of the router are set correctly.
Further, the obtaining test data of the data transmission test from the router and the wireless tester connected to the router antenna to determine the transmission power of the router includes:
acquiring first test data from a router;
acquiring second test data from a wireless tester connected with the router antenna;
and determining the transmission power of the router according to the first test data and the second test data.
Further, before obtaining the second test data from the wireless tester connected to the router antenna, the method further includes:
and controlling the wireless tester to work in a receiving mode.
In another aspect, the present invention further provides a corresponding system for testing the transmission power of a router, including:
the data transmission testing module is used for simultaneously carrying out data transmission testing on the router, the first terminal and the second terminal; the first terminal is connected with the router through a first frequency wireless network, and the second terminal is connected with the router through a second frequency wireless network;
and the sending power acquisition module is used for acquiring the test data of the data transmission test from the router and the wireless tester connected with the router antenna so as to determine the sending power of the router.
Further, the system for testing the transmission power of the router further comprises:
and the parameter setting module is used for setting the parameters of the router.
Further, the system for testing the transmission power of the router further comprises:
and the parameter verification module is used for checking the current channel and the broadband of the router through a Telnet command so as to ensure that the channel and the broadband of the router are correctly set.
Further, the transmission power obtaining module includes:
the first test data acquisition submodule is used for acquiring first test data from the router;
the second test data acquisition submodule is used for acquiring second test data from the wireless tester connected with the router antenna;
and the transmission power determining submodule is used for determining the transmission power of the router according to the first test data and the second test data.
Further, the system for testing the transmission power of the router further comprises:
and the wireless tester control module is used for controlling the wireless tester to work in a receiving mode.
Wherein the router comprises two wireless networks of different frequencies.
The test method provided by the invention realizes the wireless transmission power detection function of the dual-frequency wireless router, can obtain the transmission power of the router under different use conditions, simultaneously tests the radio frequency working states of 2.4G and 5G in one test environment, and has comprehensive and accurate test results.
In addition, the method provided by the invention simulates the real use environment of the user, is relatively close to the actual application scene, and has higher reference value for the test result.
Detailed Description
The following are specific embodiments of the present invention and are further described with reference to the drawings, but the present invention is not limited to these embodiments.
It should also be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
In the invention, the router comprises two wireless networks with different frequencies, including a first frequency wireless network and a second frequency wireless network, wherein the two wireless networks with different frequencies can be a 2.4GWIFi network and a 5G WiFi network.
With the technology update, the first frequency wireless network and the second frequency wireless network referred by the invention can also refer to the updated corresponding wireless networks.
The invention relates to a test terminal, a first terminal, a second terminal, a wireless tester and a router for testing.
The first terminal is connected with the router through a first frequency wireless network, and the second terminal is connected with the router through a second frequency wireless network.
The method and the system for testing the sending power of the router are applied to the test terminal, and the test terminal can comprise two network cards. And a first network card of the test terminal is connected to the LAN port of the router, and a second network card is connected to the wireless tester.
The wireless tester is connected to an antenna of the router through the power divider; in particular, a first frequency antenna and a second frequency antenna, for example a 2.4G antenna and a 5G antenna, respectively connected to the router. Further, the wireless tester may be an IQXel-80 tester.
The test terminal can configure the router to be tested and the wireless tester.
In the testing process, the testing device is positioned in a shielding room environment so as to reduce interference and obtain accurate testing data.
Example one
The present embodiment provides a method for testing the transmission power of a router, and a flowchart thereof is shown in fig. 1, which is detailed as follows:
step S101, simultaneously, a router, a first terminal and a second terminal are used for carrying out data transmission test; the first terminal is connected with the router through a first frequency wireless network, and the second terminal is connected with the router through a second frequency wireless network.
The router to be tested comprises a wireless network with two frequencies; the wireless networks with the two frequencies are a first frequency wireless network and a second frequency wireless network.
Specifically, the first frequency wireless network and the second frequency wireless network may be a 2.4G WiFi network and a 5G WiFi network. The router is a dual-band wireless router.
The test terminal simultaneously performs data transmission test with the first terminal and the second terminal through the router.
The first terminal and the second terminal may be computers.
The data transmission test between the test terminal and the first terminal and the second terminal through the router can be realized through IxChariot software. The test script may be a high throughput script.
In addition, it is also possible to implement the data transmission test between the test terminal and the first terminal through the router and the second terminal through other tools or other methods, and the invention does not limit the specific data transmission test mode.
And step S102, obtaining the test data of the data transmission test from the router and the wireless tester connected with the router antenna so as to determine the sending power of the router.
And when the test terminal simultaneously passes through the router and the first terminal and the second terminal carries out data transmission test, the test terminal acquires test data from the router and the wireless tester so as to determine the sending power of the router.
Optionally, a PSD Limit (PSD Limit), a regulatory Limit (regulatory Limit), a calibration Power (maximum Power), and a calibration Power (Ultimate EVM Power) are obtained from the router.
And acquiring a Backoff value (based on the deviation between different rates of the calibration Power) from the wireless tester, and using the Backoff value to correct the compensation calibration Power (maximum Power) and the calibration Power (Ultimate EVM Power) values so as to obtain calibrated Power (calibrated Power).
The minimum value among the calibrated power, the PSD Limit (PSD Limit), and the adjustment Limit (adjustment Limit) is used as the transmission power of the router.
In addition, the error magnitude of the transmission power can also be determined.
The above parameters are only a specific calculation method and example, the present invention does not limit the specific transmission power calculation method, and the transmission power of the router can be obtained and calculated in different ways according to different hardware and test conditions.
Alternatively, the transmission power of the router is read directly from the wireless tester.
Furthermore, the transmission power of the router may also be acquired by the power test device.
Further, before obtaining the second test data from the wireless tester connected to the router antenna, the method further includes:
and controlling the wireless tester to work in a receiving mode.
The test method provided by the invention can simultaneously test the sending power of the router when two frequencies work simultaneously. In a practical use scenario, since the frequencies supported by the terminals connected to the router are different, the router often needs to be provided in two frequency networks at the same time. Therefore, the testing method provided by the invention is more suitable for actual use scenes.
Example two
The present embodiment provides a method for testing the transmission power of a router, and a flowchart thereof is shown in fig. 2, which is detailed as follows:
step S201, setting the parameters of the router.
The parameters of the router include mode, bandwidth, and channel. Different test hardware and test conditions also differ in the process of setting parameters. The present invention is not limited to its specific setup process.
Step S202, simultaneously, a data transmission test is carried out through the router, the first terminal and the second terminal; the first terminal is connected with the router through a first frequency wireless network, and the second terminal is connected with the router through a second frequency wireless network.
And step S203, checking the current channel and the broadband of the router through a Telnet command so as to ensure that the channel and the broadband of the router are correctly set.
This step is to confirm the accuracy of the router parameter settings.
Further, by Telnet commands.
Step S204, obtaining the test data of the data transmission test from the router and the wireless tester connected with the router antenna to determine the sending power of the router.
Since step S202 and step S204 have already been described in detail in the first embodiment, they are not described again here, and refer to the first embodiment.
In this embodiment, the parameters of the router are set correspondingly by adding step S201, so as to obtain the test results of the transmission power of the router under different test parameters. The correctness of the parameters set in step S201 is ensured through step S203.
It should be understood that the steps described above are not in the exact order of execution and that all changes that can be envisioned and do not affect the implementation of the functions are intended to be within the scope of the invention.
EXAMPLE III
The present embodiment provides a method for testing the transmission power of a router, and a flowchart thereof is shown in fig. 3, which is detailed as follows:
step S301, simultaneously, a data transmission test is carried out by the router, the first terminal and the second terminal; the first terminal is connected with the router through a first frequency wireless network, and the second terminal is connected with the router through a second frequency wireless network.
Step S302, first test data is obtained from the router.
The test terminal obtains first test data from the router, such as the PSD Limit (PSD Limit), the adjustment Limit (adjustment Limit), the calibration Power (maximum Power), and the calibration Power (Ultimate EVM Power) mentioned above.
In addition, the specific first test data can be adjusted according to the actual hardware and test conditions.
Step S303, second test data is acquired from the wireless tester connected to the router antenna.
The test terminal obtains second test data from the wireless tester, such as the above-mentioned Backoff value (based on the offset between different rates of calibration power).
In addition, the specific second test data can be adjusted according to the actual hardware and test conditions.
And step S304, determining the sending power of the router according to the first test data and the second test data.
And calculating the sending power of the router according to the first test data and the second test data.
It should be understood that the steps described above are not in the exact order of execution and that all changes that can be envisioned and do not affect the implementation of the functions are intended to be within the scope of the invention.
Example four
The present embodiment provides a system for testing the transmission power of a router, and its structural block diagram is shown in fig. 4, which is detailed as follows:
the system for testing the transmission power of the router comprises:
a data transmission testing module 410, configured to perform data transmission testing with the first terminal and the second terminal through the router at the same time; the first terminal is connected with the router through a first frequency wireless network, and the second terminal is connected with the router through a second frequency wireless network;
a transmission power obtaining module 420, configured to obtain test data of the data transmission test from the router and a wireless tester connected to the router antenna, so as to determine the transmission power of the router.
Further, the system for testing the transmission power of the router further comprises:
and the parameter setting module is used for setting the parameters of the router.
Further, the system for testing the transmission power of the router further comprises:
and the parameter verification module is used for checking the current channel and the broadband of the router through a Telnet command so as to ensure that the channel and the broadband of the router are correctly set.
Further, the transmission power obtaining module 420 includes:
the first test data acquisition submodule is used for acquiring first test data from the router;
the second test data acquisition submodule is used for acquiring second test data from the wireless tester connected with the router antenna;
and the transmission power determining submodule is used for determining the transmission power of the router according to the first test data and the second test data.
Further, the system for testing the transmission power of the router further comprises:
and the wireless tester control module is used for controlling the wireless tester to work in a receiving mode.
Wherein the router comprises two wireless networks of different frequencies.
The system for testing the transmission power of the router provided in this embodiment corresponds to the first to third embodiments of the method described above, and for details, reference is made to the first to third embodiments, and details are not described here again.
In the embodiments provided in this application, it should be understood that the methods and systems described are illustrative and that variations may be made in the actual implementation by adaptation.
In addition, specific names of the functional units or modules are only used for distinguishing one functional unit from another, and are not used for the protection scope of the present invention.
The specific embodiments described herein are merely illustrative of the spirit of the invention. Various modifications or additions may be made to the described embodiments or alternatives may be employed by those skilled in the art without departing from the spirit or ambit of the invention as defined in the appended claims.