Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Fig. 1 is a schematic structural diagram of a testing system for a WIFI function provided in a first embodiment of the present invention, and as shown in fig. 1, the testing system for a WIFI function provided in the embodiment of the present invention includes acontrol device 1, awireless testing device 2, and a device undertest 3, where:
thecontrol device 1 is respectively connected with thewireless test device 2 and the testeddevice 3 in a communication mode, and the testeddevice 3 is connected with thewireless test device 2 in a wireless communication mode. Thewireless testing device 2 is used for performing a WIFI function test on the testeddevice 3 in an open airspace.
The WIFI function of the device undertest 3 is tested by testing each frequency band of each antenna of the device undertest 3, and when the test result of each frequency band of each antenna of the device undertest 3 is passed, the device undertest 3 passes the WIFI function test. The working process of the test system for the WIFI function provided in the embodiment of the present invention is described below by taking an example of setting that the device undertest 3 operates in an access point mode (AP mode for short) and testing one frequency band of one antenna of the device undertest 3. When the plurality of antennas of the device undertest 3 correspond to the same frequency band, only one frequency band of one currently tested antenna is enabled, and the other antennas of the same frequency band are turned off.
Thecontrol apparatus 1 sends a first control instruction to the device undertest 3, so that the device undertest 3 operates in the AP mode and configures a unique corresponding Service Set Identifier (SSID) for the device undertest 3. Isolation of the device undertest 3 in the open air is achieved by configuring the device undertest 3 with a unique SSID such that the SSID of each device undertest 3 in the open air is unique. The first control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
Thecontrol device 1 sends a second control command to thewireless testing device 2 to enable thewireless testing device 2 to operate in a station mode (STA mode for short), and enable thewireless testing device 2 to access the set frequency band of the set antenna of the device under test. The second control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
Thewireless test device 2 checks whether to establish a WIFI wireless communication connection with the set frequency band of the set antenna of the device undertest 3, and if the WIFI wireless communication connection is successfully established, returns information of successful connection to thecontrol device 1, and if the WIFI wireless communication connection cannot be established within a specified time, returns information of failed connection to thecontrol device 1.
If thecontrol device 1 receives the connection success information, it will send a third control instruction to the device undertest 3 to make the device undertest 3 send the test information to thewireless test device 2 by wireless communication. Thecontrol apparatus 1 may determine that the test for setting the antenna and setting the frequency band fails if the information of the connection failure is received. The test information may include management frames and control frames, etc., and complies with the ieee e802.11 protocol. The third control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
After receiving the test information in the WIFI communication manner, thewireless test device 2 obtains a test result of the set frequency band of the set antenna of the device undertest 3 according to the test information, and then reports the test result of the set frequency band of the set antenna to thecontrol device 1. For example, thewireless test apparatus 2 may measure the received power of the test information and calculate an average value as the wireless power when receiving the test information, and may calculate and obtain an Error Vector Magnitude (EVM) and a negotiation rate according to a management frame and a control frame included in the test information. The test result for setting the frequency band of the antenna may include one or more test parameters, where the test parameters are wireless power, EVM, or negotiation rate.
Thecontrol device 1 may determine whether the set antenna and the set frequency band pass the test according to the test result of the set frequency band of the set antenna reported by thewireless test device 2. For example, the test result of setting the frequency band of the antenna received by thecontrol device 1 includes the wireless power, the EVM, and the negotiation rate, and if it is determined that the wireless power is in the corresponding designated range, the EVM is smaller than the designated threshold, and the negotiation rate is greater than or equal to the rate threshold, it is determined that the set antenna and the set frequency band pass the test. The specified range, the specified threshold, and the rate threshold corresponding to the wireless power are set according to practical experience, which is not limited in the embodiments of the present invention.
The above process completes the test of one antenna and one frequency band when the device undertest 3 works in the AP mode, and the test of other frequency bands of the same antenna and the test process of any frequency band of other antennas when the device undertest 3 works in the AP mode are similar to the above process, and details are not repeated here. For a frequency band test, one channel or multiple channels in the frequency band may be tested and set according to actual needs, which is not limited in the embodiments of the present invention.
The following describes the working process of the test system for the WIFI function provided in the embodiment of the present invention, taking as an example that the device undertest 3 is set to operate in the STA mode, and a test is performed on one frequency band for one antenna of the device undertest 3. When the plurality of antennas of the device undertest 3 correspond to the same frequency band, only one frequency band of one currently tested antenna is enabled, and the other antennas of the same frequency band are turned off.
Thecontrol device 1 sends a fourth control instruction to thewireless testing device 2 to make thewireless testing device 2 work in the AP mode and configure thewireless testing device 2 with a unique corresponding SSID. Isolation of thewireless test device 2 in the open air domain is achieved by configuring thewireless test device 2 with a unique SSID such that the SSID of thewireless test device 2 in the open air domain is unique. The fourth control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
Thecontrol device 1 sends a fifth control instruction to the device undertest 3 to enable the device undertest 3 to work in the STA mode, and establishes communication connection with thewireless test device 2 through the set frequency band of the set antenna of the device undertest 3; the fifth control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
Thewireless test device 2 checks whether to establish a WIFI wireless communication connection with the set frequency band of the set antenna of the device undertest 3, and if the WIFI wireless communication connection is successfully established, returns information of successful connection to thecontrol device 1, and if the WIFI wireless communication connection cannot be established within a specified time, returns information of failed connection to thecontrol device 1.
If thecontrol device 1 receives the connection success information, it will send a third control instruction to the device undertest 3 to make the device undertest 3 send the test information to thewireless test device 2 by wireless communication. Thecontrol apparatus 1 may determine that the test for setting the antenna and setting the frequency band fails if the information of the connection failure is received. The test information may include management frames and control frames, etc., and complies with the ieee e802.11 protocol. The third control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
After receiving the test information in the WIFI communication manner, thewireless test device 2 obtains a test result of the set frequency band of the set antenna of the device undertest 3 according to the test information, and then reports the test result of the set frequency band of the set antenna to thecontrol device 1. The test result for setting the frequency band of the antenna may include one or more test parameters, where the test parameters are wireless power, EVM, or negotiation rate.
Thecontrol device 1 may determine whether the set antenna and the set frequency band pass the test according to the test result of the set frequency band of the set antenna reported by thewireless test device 2.
The above process completes the test of one antenna and one frequency band when the device undertest 3 works in the STA mode, and the test of other frequency bands of the same antenna and the test process of one frequency band of other antennas when the device undertest 3 works in the STA mode are similar to the above process, and details are not repeated here. For a frequency band test, one channel or multiple channels in the frequency band may be tested and set according to actual needs, which is not limited in the embodiments of the present invention.
The WIFI function testing system provided by the embodiment of the invention comprises the control device, the wireless testing device and the tested equipment, wherein the control device is respectively in communication connection with the wireless testing device and the tested equipment, the tested equipment is in wireless communication connection with the wireless testing device, and the WIFI function testing is realized in an open airspace.
Fig. 2 is a schematic structural diagram of a wireless testing device according to a second embodiment of the present invention, and as shown in fig. 2, on the basis of the foregoing embodiments, thewireless testing device 2 further includes anantenna 21, aradio frequency transceiver 22, an analog-to-digital converter 23, a digital-to-analog converter 24, aWIFI baseband chip 25, and amicroprocessor 26, where:
theradio frequency transceiver 22 is respectively connected with theantenna 21, the analog-digital converter 23 and the digital-analog converter 24, and theWIFI baseband chip 25 is respectively connected with the analog-digital converter 23, the digital-analog converter 24 and themicroprocessor 26.
Specifically, the device undertest 3 sends test information through WIFI communication, and theradio frequency transceiver 22 receives a wireless signal of the test information through theantenna 21 and then transmits the wireless signal to the analog-to-digital converter 23. The analog-to-digital converter 23 performs analog-to-digital conversion processing on the wireless signal to convert the wireless signal into a digital signal, and then transmits the digital signal of the test information to theWIFI baseband chip 25. TheWIFI baseband chip 25 measures wireless parameters such as wireless power, EVM, negotiation rate, etc. for the test information, and may send the result of the wireless parameter measurement to themicroprocessor 26. TheWIFI baseband chip 25 converts the digital signal of the test information and transmits the converted digital signal to themicroprocessor 26, and themicroprocessor 26 may report the result of the wireless parameter measurement to thecontrol device 1.
On the basis of the above embodiments, further, thecontrol device 1 and thewireless testing device 2 may be connected through a bus, a communication network, or a serial port. The bus may adopt a PCIE or CPCI bus.
In addition to the above embodiments, thecontrol device 1 further employs a server or an industrial personal computer.
Fig. 3 is a schematic flowchart of a method for testing a WIFI function according to a third embodiment of the present invention, and as shown in fig. 3, the method for testing a WIFI function according to the third embodiment of the present invention may be applied to a system for testing a WIFI function according to any of the above embodiments, where the method includes:
s301, testing the WIFI function of each frequency band of each antenna of the tested equipment in an open airspace through a wireless testing device to obtain a testing result of each frequency band of each antenna;
specifically, when the WIFI function of the device under test is tested in an open airspace, each frequency band of each antenna of the device under test needs to be tested through the wireless testing device, and a testing result of each frequency band of each antenna is obtained. The test can be performed according to a frequency band specified by the IEEE802.11 standard. In testing each frequency band, a channel or multiple channels in each frequency band may be tested. If a plurality of antennas of the tested device correspond to the same frequency band, only one frequency band of one antenna currently tested is started and other antennas of the same frequency band are closed when each frequency band of each antenna is tested.
For example, the device to be tested is a router, the router has 4 antennas, each antenna can operate in 2.4G and 5.8G frequency bands, and therefore when the router is subjected to a WIFI function test, it is necessary to test a test result of a designated channel of the router, where each antenna operates in 2.4G and 5.8G frequency bands, respectively. The 2.4G frequency band includes 1-14 channels, the 5G frequency band includes 36-165 channels, and during testing, one channel or multiple channels of each frequency band can be tested and selected according to actual needs, which is not limited in the embodiments of the present invention.
And S302, if the test result of each frequency band of each antenna is known to pass, outputting the test result that the tested equipment passes the test.
Specifically, after obtaining the test result of each frequency band of each antenna, if the test result of each frequency band of each antenna of the device under test is pass, the result that the device under test passes the test may be output.
According to the WIFI function testing method provided by the embodiment of the invention, the WIFI function is tested on each frequency band of each antenna of the tested equipment in an open airspace through the wireless testing device, the testing result of each frequency band of each antenna is obtained, after the testing result of each frequency band of each antenna is known to be passed, the testing result of the tested equipment is output, the complete software and hardware testing is carried out on the WIFI function of the tested equipment, the comprehensiveness of the WIFI function testing is improved, and the delivery reliability of the tested equipment is improved.
Fig. 4 is a schematic flowchart of a method for testing a WIFI function according to a fourth embodiment of the present invention, and as shown in fig. 4, on the basis of the foregoing embodiments, further performing a test on a WIFI function for each frequency band of each antenna of the device under test, and obtaining a test result for each frequency band of each antenna includes:
s401, sending a first control instruction to a tested device so that the tested device works in an access point mode and configures a unique corresponding service set identifier for the tested device;
specifically, the control device sends a first control instruction to the device to be tested to set the device to be tested to operate in the AP mode, and configures an SSID for the device to be tested, where the SSID is uniquely corresponding to the device to be tested. Isolation of the device under test in open air space is achieved by configuring the device under test with a unique SSID such that the SSID of each device under test in open air space is unique. The first control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
S402, sending a second control instruction to the wireless testing device to enable the wireless testing device to work in a station mode, and establishing WIFI connection with the tested device through a set frequency band of a set antenna;
specifically, the control device sends a second control instruction to the wireless test device to set the wireless test device to operate in the STA mode, and the wireless test device and the device under test establish a WIFI connection through setting a set frequency band of the antenna. The set antenna and the set frequency band are set according to actual needs, and the embodiment of the invention is not limited. The second control instruction is set according to actual needs, and the embodiment of the invention is not limited.
S403, receiving a first connection state reported by the wireless test device;
specifically, the wireless testing device checks whether a WIFI communication connection is established with the device under test, obtains a first connection state, and then reports the first connection state to the control device, and the control device receives the first connection state. The wireless testing device establishes WIFI communication connection with the tested device, and the first connection state is connection success; the wireless test device and the tested device can not establish WIFI communication connection, and the first connection state is connection failure.
S404, if the first connection state is successful, sending a third control instruction to the tested device so that the tested device sends test information to the wireless test device;
specifically, after receiving the first connection state, the control device may obtain whether the first connection state is a connection success or a connection failure, and if the connection is a connection success, the control device sends a third control instruction to the device under test, and after receiving the third control instruction, the device under test sends test information to the wireless test device in a WIFI communication manner. The test information may include management frames, control frames, and other information, and complies with the ieee e802.11 protocol. The third control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
S405, receiving a first test result reported by the wireless test device, and determining whether the currently set antenna and the set frequency band pass the test or not according to the first test result; the first test result is obtained by the wireless test device according to the test information.
Specifically, the wireless testing device receives test information from the device under test, obtains a first test result according to the test information, and reports the first test result to the control device. The control device receives the first test result, determines whether the current set antenna and the set frequency band pass the test or not according to the first test result, can perform subsequent tests if the current set antenna and the set frequency band pass the test, and can output prompt information of the tested device WIFI function test failure if the current set antenna and the set frequency band do not pass the test.
For example, the wireless test apparatus measures the received power of the test information and calculates an average value as the wireless power when receiving the test information, and may calculate the EVM and the negotiation rate according to the test information. And then reporting the wireless power, the EVM and the negotiated rate to the control device as a first test result.
The control device judges whether the wireless power is in a corresponding specified range, whether the EVM is smaller than a specified threshold value and whether the negotiated rate is larger than or equal to a rate threshold value, and if the wireless power is in the corresponding specified range, the EVM is smaller than the specified threshold value and the negotiated rate is larger than or equal to the rate threshold value, the current set antenna and the set frequency band are determined to pass the test. And if the wireless power is not in the corresponding specified range, the EVM is greater than or equal to a specified threshold value or the negotiated rate is less than a rate threshold value, determining that the currently set antenna and the set frequency band cannot pass the test.
On the basis of the foregoing embodiments, further, the method for testing a WIFI function provided in the embodiments of the present invention further includes:
and if the first connection state is the connection failure, outputting prompt information of the current set antenna and the set frequency band test failure.
Specifically, after receiving the first connection state, the control device may obtain whether the first connection state is a connection success or a connection failure, and if the first connection state is a connection failure, output a prompt message indicating that the currently set antenna and the set frequency band fail to test, which indicates that the currently set antenna of the device under test does not meet the requirement for working in the set frequency band and has a quality problem.
Fig. 5 is a schematic flowchart of a method for testing a WIFI function according to a fifth embodiment of the present invention, and as shown in fig. 5, on the basis of the foregoing embodiments, further performing a test on a WIFI function for each frequency band of each antenna of the device under test, and obtaining a test result for each frequency band of each antenna further includes:
s501, sending a fourth control instruction to the wireless test device to enable the wireless test device to work in an access point mode and configure a unique corresponding service set identifier for the wireless test device;
specifically, the control device sends a fourth control instruction to the wireless testing device to set the wireless testing device to operate in an AP mode, and configures an SSID for the wireless testing device, where the SSID is uniquely corresponding to the wireless testing device. The isolation of the wireless test device in the open airspace is achieved by the unique SSID for the wireless test device, making the SSID of the wireless test device in the open airspace unique. The fourth control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
S502, sending a fifth control instruction to the tested device to enable the tested device to work in a station mode, and establishing WIFI connection with the wireless testing device through the set frequency band of the set antenna;
specifically, the control device sends a fifth control instruction to the device under test to set the device under test to operate in an STA mode, and enable the device under test to establish a WIFI connection with the wireless test device through the set frequency band of the set antenna. The fifth control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
S503, receiving a second connection state returned by the wireless test device;
specifically, the wireless testing device may check whether a WIFI communication connection is established with the device under test, that is, detect whether the device under test is accessed to the set frequency band of the set antenna, obtain a second connection state, and then report the second connection state to the control device, and the control device may receive the second connection state. The wireless testing device establishes WIFI communication connection with the tested device, and the second connection state is successful connection; the wireless testing device and the tested device can not establish WIFI communication connection, and the second connection state is connection failure.
S504, if the second connection state is known to be successful, a sixth control instruction is sent to the tested device so that the tested device sends test information to the wireless test device;
specifically, after receiving the second connection state, the control device may obtain whether the second connection state is a connection success or a connection failure, and if the connection is a connection success, the control device sends a sixth control instruction to the device under test, and after receiving the sixth control instruction, the device under test sends the test information to the wireless test device in a WIFI communication manner. The test information may include information such as a management frame and a control frame. The sixth control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
S505, receiving a second test result reported by the wireless test device, and determining whether the currently set antenna and the set frequency band pass the test according to the second test result; the second test result is obtained by the wireless test device according to the test information.
Specifically, the wireless testing device receives test information from the device under test, obtains a second test result according to the test information, and reports the second test result to the control device. And the control device receives the second test result, determines whether the currently set antenna and the set frequency band pass the test or not according to the second test result, can perform subsequent tests if the currently set antenna and the set frequency band pass the test, and can output prompt information of the WIFI function test failure of the tested device if the currently set antenna and the set frequency band do not pass the test. The second test result comprises at least one test parameter, and the test parameter is wireless power, error vector magnitude or negotiation rate.
On the basis of the foregoing embodiments, further, the method for testing a WIFI function provided in the embodiments of the present invention further includes:
and if the second connection state is known to be a connection failure, outputting prompt information of the test failure of the set antenna and the set frequency band.
Specifically, after receiving the second connection state, the control device may obtain whether the second connection state is a connection success or a connection failure, and if the second connection state is a connection failure, output a prompt message indicating that the test of the set antenna and the set frequency band fails, which indicates that the set antenna of the device under test does not meet the requirement for working in the set frequency band and has a quality problem.
On the basis of the foregoing embodiments, further, the second test result includes at least one test parameter, where the test parameter is wireless power, error vector magnitude, or negotiation rate; correspondingly, the determining whether the currently set antenna and the set frequency band pass the test according to the second test result comprises:
and if judging that each test parameter included in the second test result meets the corresponding test requirement, outputting prompt information that the current set antenna and the set frequency band pass the test.
Specifically, the second test result may include one test parameter, or may include two or more test parameters, which are set according to actual needs, and the embodiment of the present invention is not limited. Wherein the test parameter is wireless power, error vector magnitude or negotiation rate.
Each test parameter has a corresponding test requirement, and if each test parameter included in the second test result meets the corresponding test requirement, prompt information that the current set antenna and the set frequency band pass the test can be output. If any one of the test parameters included in the second test result does not meet the corresponding test requirement, prompt information that the current set antenna and the set frequency band cannot pass the test can be output.
On the basis of the foregoing embodiments, further, the first test result includes at least one test parameter, where the test parameter is wireless power, error vector magnitude, or negotiation rate; correspondingly, the determining whether the currently set antenna and the set frequency band pass the test according to the first test result comprises:
and if judging that each test parameter included in the first test result meets the corresponding test requirement, outputting prompt information that the current set antenna and the set frequency band pass the test.
Specifically, the first test result may include one test parameter, or may include two or more test parameters, which are set according to actual needs, and the embodiment of the present invention is not limited. Wherein the test parameter is wireless power, error vector magnitude or negotiation rate.
Each test parameter has a corresponding test requirement, and if each test parameter included in the first test result meets the corresponding test requirement, prompt information that the current set antenna and the set frequency band pass the test can be output. If any one of the test parameters included in the first test result does not meet the corresponding test requirement, prompt information that the current set antenna and the set frequency band cannot pass the test can be output.
The following describes a process of the WIFI function test by taking a test process of the device under test in the AP mode and one frequency band of one antenna of the device under test as an example, as shown in fig. 6, the specific process is as follows:
the method comprises the following steps of firstly, sending a first control instruction. The control device sends a first control instruction to the device to be tested, so that the device to be tested works in the AP mode and configures a unique corresponding SSID for the device to be tested.
And step two, sending a second control instruction. And the control device sends a second control instruction to the wireless test device so as to set the wireless test device to work in an STA mode and enable the wireless test device to access the set frequency band of the set antenna of the tested device.
And thirdly, receiving the first connection state. The wireless test device checks whether WIFI communication connection is established with the tested device, namely whether the wireless test device is accessed to a set frequency band of a set antenna of the tested device is detected, a first connection state is obtained, and then the first connection state is reported to the control device. The control device receives the first connection status. The wireless testing device establishes WIFI communication connection with the tested device, and the first connection state is successful; the wireless test device and the tested device can not establish WIFI communication connection, and the first connection state is connection failure.
And fourthly, judging whether to establish connection. The control device judges whether WIFI communication connection is established between the wireless test device and the tested equipment or not according to the received first connection state, if the first connection state is connection failure, no WIFI communication connection is established, and the ninth step is carried out; and if the first connection state is successful, establishing WIFI communication connection, and entering the fifth step.
And step five, sending a third control instruction. And the control device sends a third control instruction to the tested device, and the tested device sends test information to the wireless test device after receiving the third control instruction.
And sixthly, receiving a first test result. The wireless test device receives the test information from the tested equipment, obtains a first test result according to the test information, and reports the first test result to the control device.
And seventhly, judging whether the test is passed or not. The control device receives the first test result and determines whether the current set antenna and the set frequency band pass the test according to the first test result. If the test is judged to pass, entering the eighth step; and if the test is judged not to be passed, the ninth step is carried out. For example, the first test result includes wireless power and a negotiation rate, and if the wireless power is in a corresponding designated range and the negotiation rate is greater than or equal to a rate threshold, the currently set antenna and the set frequency band pass the test; and if the wireless power is not in the corresponding specified range or the negotiated rate is smaller than the rate threshold, the currently set antenna and the set frequency band cannot pass the test.
And eighthly, determining that the current test is passed. After the control device determines that the currently set antenna and the set frequency band pass the test, the antenna or the frequency band can be replaced, and the test is continued.
And ninthly, prompting that the tested device fails in the test. If the control device knows that the first connection state is connection failure, it indicates that the wireless test device and the device under test cannot establish WIFI communication connection in the current frequency band of the current antenna, and can prompt that the WIFI function test of the device under test fails. And if the control device judges that the currently set antenna and the set frequency band cannot pass the test according to the first test result, the control device can prompt that the WIFI function test of the tested device does not pass.
The following describes a process of the WIFI function test by taking a test process of the device under test in the STA mode and for one frequency band of one antenna of the device under test as an example, as shown in fig. 7, the specific process is as follows:
and step one, sending a fourth control instruction. And the control device sends a fourth control instruction to the wireless test device so that the wireless test device works in the AP mode and configures a unique corresponding SSID for the wireless test device.
And step two, sending a fifth control instruction. And the control device sends a fifth control instruction to the tested device so as to set the tested device to work in an STA mode and enable the tested device and the wireless test device to establish communication connection through setting a set frequency band of the antenna.
And thirdly, receiving a second connection state. The wireless testing device can check whether WIFI communication connection is established with the tested device or not, namely, whether the wireless testing device is accessed to a set frequency band of a set antenna of the tested device or not is detected, a second connection state is obtained, and then the second connection state is reported to the control device. The control device receives the second connection status. The wireless testing device establishes WIFI communication connection with the tested device, and the second connection state is successful; the wireless testing device and the tested device can not establish WIFI communication connection, and the second connection state is connection failure.
And fourthly, judging whether to establish connection. The control device judges whether WIFI communication connection is established between the wireless test device and the tested equipment or not according to the received second connection state, if the second connection state is connection failure, no WIFI communication connection is established, and the ninth step is carried out; and if the second connection state is successful, establishing WIFI communication connection, and entering the fifth step.
And step five, sending a sixth control instruction. And the control device sends a sixth control instruction to the tested device, and the tested device sends test information to the wireless test device after receiving the sixth control instruction.
And sixthly, receiving a second test result. And the wireless test device receives the test information from the tested equipment, obtains a second test result according to the test information, and reports the second test result to the control device.
And seventhly, judging whether the test is passed or not. And the control device receives the second test result and determines whether the currently set antenna and the set frequency band pass the test or not according to the second test result. If the test is judged to pass, entering the eighth step; and if the test is judged not to be passed, the ninth step is carried out. For example, the second test result includes wireless power and negotiation rate, and if the wireless power is in a corresponding designated range and the negotiation rate is greater than or equal to a rate threshold, the currently set antenna and the set frequency band pass the test; and if the wireless power is not in the corresponding specified range or the negotiated rate is smaller than the rate threshold, the currently set antenna and the set frequency band cannot pass the test.
And eighthly, determining that the current test is passed. After the control device determines that the currently set antenna and the set frequency band pass the test, the antenna or the frequency band can be replaced, and the test is continued.
And ninthly, prompting that the tested device fails in the test. If the control device knows that the second connection state is a connection failure, it indicates that the wireless test device and the device under test cannot establish a WIFI communication connection in the current frequency band of the current antenna, and can prompt that the WIFI function test of the device under test fails. And if the control device judges that the currently set antenna and the set frequency band cannot pass the test according to the second test result, the control device can prompt that the WIFI function test of the tested device does not pass.
Fig. 8 is a schematic physical structure diagram of an electronic device according to an eighth embodiment of the present invention, and as shown in fig. 8, the electronic device may include: a processor (processor)801, a communication Interface (Communications Interface)802, a memory (memory)803 and acommunication bus 804, wherein theprocessor 801, thecommunication Interface 802 and thememory 803 complete communication with each other through thecommunication bus 804. Theprocessor 801 may call logic instructions in thememory 803 to perform the following method: testing the WIFI function of each frequency band of each antenna of the tested equipment in an open airspace through a wireless testing device to obtain a testing result of each frequency band of each antenna; and if the test result of each frequency band of each antenna is known to be passed, outputting the result that the tested equipment passes the test.
In addition, the logic instructions in thememory 803 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: testing the WIFI function of each frequency band of each antenna of the tested equipment in an open airspace through a wireless testing device to obtain a testing result of each frequency band of each antenna; and if the test result of each frequency band of each antenna is known to be passed, outputting the result that the tested equipment passes the test.
The present embodiment provides a computer-readable storage medium, which stores a computer program, where the computer program causes the computer to execute the method provided by the above method embodiments, for example, the method includes: testing the WIFI function of each frequency band of each antenna of the tested equipment in an open airspace through a wireless testing device to obtain a testing result of each frequency band of each antenna; and if the test result of each frequency band of each antenna is known to be passed, outputting the result that the tested equipment passes the test.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In the description herein, reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," "an example," "a particular example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.