CN112333052A - WIFI function test method and system and electronic equipment - Google Patents

WIFI function test method and system and electronic equipment Download PDF

Info

Publication number
CN112333052A
CN112333052A CN202110015820.8A CN202110015820A CN112333052A CN 112333052 A CN112333052 A CN 112333052A CN 202110015820 A CN202110015820 A CN 202110015820A CN 112333052 A CN112333052 A CN 112333052A
Authority
CN
China
Prior art keywords
test
wireless
frequency band
antenna
test result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110015820.8A
Other languages
Chinese (zh)
Other versions
CN112333052B (en
Inventor
徐亮
章武播
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Putai Technology Co ltd
Original Assignee
Beijing Putai Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Putai Technology Co ltd filed Critical Beijing Putai Technology Co ltd
Priority to CN202110015820.8A priority Critical patent/CN112333052B/en
Publication of CN112333052A publication Critical patent/CN112333052A/en
Application granted granted Critical
Publication of CN112333052B publication Critical patent/CN112333052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)

Abstract

The invention provides a method and a system for testing a WIFI function and electronic equipment, wherein the method comprises the following steps: testing the WIFI function of each frequency band of each antenna of the tested equipment in an open airspace through a wireless testing device and a flow simulation 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 system is used for executing the method. According to the WIFI function testing method, the WIFI function testing system and the electronic equipment, provided by the embodiment of the invention, the complete software and hardware testing is carried out on the WIFI function of the tested equipment, so that the comprehensiveness of the WIFI function testing is improved, and the delivery reliability of the tested equipment is improved.

Description

WIFI function test method and system and electronic equipment
Technical Field
The invention relates to the technical field of communication, in particular to a method and a system for testing a WIFI function and electronic equipment.
Background
The device with the WIFI function, such as a router, a light cat or a set top box, needs to be tested for the WIFI function before leaving a factory, so that the WIFI communication quality of the device is ensured.
In the prior art, there are two main methods for testing the WIFI function of the device, one is to use a shielding box to perform the WIFI throughput test, and the other is to control the packet transmission test coupling power of the device to be tested. The first method needs a large-size isolation shielding box, occupies a large area, needs to repeatedly open and close the shielding box when testing equipment, has many operation steps, needs 2-3 operators to support one test production line, and has low test efficiency. The second method only partially tests the hardware of the device to be tested without failure, but does not completely test the software and hardware functions of the IEEE802.11 protocol of the device to be tested, that is, only tests that the antenna can transmit packets according to the designated power, but does not completely test the software and hardware integrated functions of the device to be tested, such as WIFI access, disconnection, authentication, data forwarding and the like, and cannot ensure the quality of the device leaving the factory.
Therefore, how to provide a method for testing a WIFI function, which can comprehensively test the WIFI function of a device and improve the testing efficiency becomes an important issue to be solved in the field.
Disclosure of Invention
For solving the problems in the prior art, embodiments of the present invention provide a method, a system and an electronic device for testing a WIFI function, which can at least partially solve the problems in the prior art.
In a first aspect, the present invention provides a method for testing a WIFI function, including:
testing the WIFI function of each frequency band of each antenna of the tested equipment in an open airspace through a wireless testing device and a flow simulation 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 a second aspect, the present invention provides a WIFI function testing system for implementing the WIFI function testing method according to any one of the above embodiments, including a control device, a wireless testing device, a flow simulation device, and a device under test, where:
the control device is respectively in communication connection with the wireless testing device, the flow simulation device and the tested equipment, the flow simulation device is respectively in wired communication connection with the tested equipment and the wireless testing device, and the tested equipment is in wireless communication connection with the wireless testing device.
In a third aspect, the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method for testing a WIFI function according to any one of the above embodiments when executing the computer program.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for testing a WIFI function as described in any one of the above embodiments.
According to the WIFI function testing method, the WIFI function testing system and the electronic equipment, the WIFI function is tested on each frequency band of each antenna of the tested equipment through the wireless testing device and the flow simulation device in the open airspace, the testing result of each frequency band of each antenna is obtained, the testing result of each frequency band of each antenna is output after the fact that the testing result of each frequency band of each antenna is passed, 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 therefore the delivery reliability of the tested equipment is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a schematic structural diagram of a test system for a WIFI function according to a first embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a wireless testing device according to a second embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a flow simulation apparatus according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a test system for a WIFI function according to a fourth embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a wireless testing device according to a fifth embodiment of the present invention.
Fig. 6 is a schematic flowchart of a method for testing a WIFI function according to a sixth embodiment of the present invention.
Fig. 7 is a schematic flowchart of a method for testing a WIFI function according to a seventh embodiment of the present invention.
Fig. 8 is a schematic flowchart of a method for testing a WIFI function according to an eighth embodiment of the present invention.
Fig. 9 is a schematic flowchart of a method for testing a WIFI function of a device under test operating in an access point mode according to a ninth embodiment of the present invention.
Fig. 10 is a schematic flowchart of a method for testing a WIFI function of a device under test operating in a site mode according to a tenth embodiment of the present invention.
Fig. 11 is a schematic flowchart of a method for testing a WIFI function according to an eleventh embodiment of the present invention.
Fig. 12 is a schematic flowchart of a method for testing a WIFI function according to a twelfth embodiment of the present invention.
Fig. 13 is a schematic flowchart of a method for testing a WIFI function according to a thirteenth embodiment of the present invention.
Fig. 14 is a schematic flowchart of a method for testing a WIFI function according to a fourteenth embodiment of the present invention.
Fig. 15 is a schematic flowchart of a method for testing a WIFI function according to a fifteenth embodiment of the present invention.
Fig. 16 is a schematic flowchart of a method for testing a WIFI function according to a sixteenth embodiment of the present invention.
Fig. 17 is a schematic physical structure diagram of an electronic device according to a seventeenth embodiment of the present invention.
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 a control device 1, a wireless testing device 2, a flow simulation device 3, and a device under test 4, where:
the control device 1 is respectively in communication connection with the wireless testing device 2, the flow simulation device 3 and the tested device 4, the flow simulation device 3 is respectively in wired communication connection with the tested device 4 and the wireless testing device 2, and the tested device 4 is in wireless communication connection with the wireless testing device 2.
The WIFI function of the device under test 4 is tested by testing each frequency band of each antenna of the device under test 4, and when the test result of each frequency band of each antenna of the device under test 4 is passed, the device under test 4 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 under test 4 operates in an access point mode (AP mode for short) and testing one frequency band of one antenna of the device under test 4. When the plurality of antennas of the device under test 4 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.
The control apparatus 1 sends a first control instruction to the device under test 4, so that the device under test 4 operates in the AP mode and configures a unique corresponding Service Set Identifier (SSID) for the device under test 4. Isolation of the device under test 4 in the open air domain is achieved by configuring the device under test 4 with a unique SSID such that the SSID of each device under test 4 in the open air domain is unique. The first control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
The control device 1 sends a second control command to the wireless testing device 2 to enable the wireless testing device 2 to operate in a station mode (STA mode for short), and enable the wireless 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.
The wireless test device 2 checks whether to establish a WIFI wireless communication connection with the set frequency band of the set antenna of the device under test 4, and if the WIFI wireless communication connection is successfully established, returns information of successful connection to the control device 1, and if the WIFI wireless communication connection cannot be established within a specified time, returns information of failed connection to the control device 1.
If the control device 1 receives the information of successful connection, a third control instruction is sent to the flow simulation device 3, so that the flow simulation device 3 sends a simulation message to the tested device 4 in a wired communication mode, and sends message simulation configuration information to the wireless test device 2, wherein the message simulation configuration information corresponds to the simulation message, and the message structure and the message sending configuration parameters of the simulation message are specified. The control 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 simulation message is preset and can include fingerprint data, so that the receiving end can analyze and count the received data packet conveniently. The fingerprint data is a section of specially coded byte stream (usually 16 to 20 bytes), which contains stream number, message sequence number, timestamp, magic number identifier, CRC check code, etc., when the receiving end receives the message, the receiving end can compare the magic number identifier with the CRC check code, and after confirming that the message is the message sent by the flow simulation device 3, the parameters of the packet loss rate, the average delay of the message, etc. are counted through the stream number, the message sequence number and the timestamp. The third control instruction is set according to actual needs, and the embodiment of the present invention is not limited. The message simulation configuration information is set according to actual needs, and the embodiment of the invention is not limited.
After receiving the simulation message in the wired communication manner, the device under test 4 forwards the simulation message to the wireless testing apparatus 2 in the WIFI communication manner. The wireless testing device 2 may receive the first forwarding information sent by the device under test 4 and the message simulation configuration information sent by the control device 1, then obtain a test result of the set frequency band of the set antenna of the device under test 4 based on the first forwarding information and the message simulation configuration information, and then report the test result of the set frequency band of the set antenna to the control device 1. For example, the wireless testing device 2 compares the simulation message included in the first forwarding information with the message simulation configuration information, and obtains a packet loss rate through statistics, the wireless testing device 2 measures the received power of the first forwarding information and calculates an average value as a wireless power when receiving the first forwarding information, the wireless testing device 2 calculates and calculates the message average delay of the first forwarding information when receiving the first forwarding information, and the wireless testing device 2 calculates and obtains an Error Vector Magnitude (EVM) and a negotiation rate according to the first forwarding information. The test result for setting the frequency band of the antenna may include one or more first test parameters, where the first test parameters are packet loss rate, wireless power, packet average delay, error vector magnitude, or negotiation rate.
The control 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 the wireless test device 2. For example, the test result of the set frequency band of the set antenna received by the control device 1 includes the packet loss rate, the wireless power, and the average packet delay, and if it is determined that the packet loss rate is within the corresponding set range, the wireless power is within the corresponding specified range, and the average packet delay is smaller than the delay threshold, it is determined that the set antenna and the set frequency band pass the test. The setting range corresponding to the packet loss rate, the designated range corresponding to the wireless power, and the delay threshold are set according to actual 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 under test 4 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 under test 4 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, by taking an example of setting the device under test 4 to operate in the STA mode and testing one antenna of the device under test 4 on one frequency band. When the plurality of antennas of the device under test 4 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.
The control device 1 sends a fourth control instruction to the wireless testing device 2 to make the wireless testing device 2 work in the AP mode and configure the wireless testing device 2 with a unique corresponding SSID. Isolation of the wireless test device 2 in the open air domain is achieved by configuring the wireless test device 2 with a unique SSID such that the SSID of the wireless 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.
The control device 1 sends a fifth control instruction to the device under test 4 to enable the device under test 4 to work in the STA mode, and establishes communication connection with the wireless test device 2 through the set frequency band of the set antenna of the device under test 4; the fifth control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
The wireless test device 2 checks whether to establish a WIFI wireless communication connection with the set frequency band of the set antenna of the device under test 4, and if the WIFI wireless communication connection is successfully established, returns information of successful connection to the control device 1, and if the WIFI wireless communication connection cannot be established within a specified time, returns information of failed connection to the control device 1.
If the control device 1 receives the information of successful connection, a sixth control instruction is sent to the flow simulation device 3, so that the flow simulation device 3 sends a simulation message to the tested device 4 in a wired communication mode, and sends message simulation configuration information to the wireless test device 2, wherein the message simulation configuration information corresponds to the simulation message, and the message structure and the message sending configuration parameters of the simulation message are specified. The control 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 simulation message is preset and can include fingerprint data, so that the receiving end can analyze and count the received data packet conveniently. The sixth control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
After receiving the simulation message in the wired communication manner, the device under test 4 forwards the simulation message to the wireless testing apparatus 2 in the WIFI communication manner. The wireless testing device 2 may receive the first forwarding information sent by the device under test 4 and the message simulation configuration information sent by the control device 1, then obtain a test result of the set frequency band of the set antenna of the device under test 4 based on the first forwarding information and the message simulation configuration information, and then report the test result of the set frequency band of the set antenna to the control device 1. The test result for setting the frequency band of the antenna may include one or more first test parameters, where the first test parameters are packet loss rate, wireless power, packet average delay, error vector magnitude, or negotiation rate.
The control 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 the wireless test device 2.
The above process completes the test of one antenna and one frequency band when the device under test 4 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 under test 4 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.
It can be understood that some devices under test individually operate in the AP mode or the STA mode, and at this time, the WIFI function of the devices under test operating in the AP mode or the STA mode needs to be tested. Some tested devices can work in both an AP mode and an STA mode, and at the moment, the WIFI functions of the tested devices working in the AP mode and the STA mode need to be tested respectively.
The tested device 4 is a device to be tested, has a WIFI function, and can work in an AP mode and/or an STA mode of WIFI, and the tested device 4 includes, but is not limited to, any router, optical modem or set top box with the WIFI function. The wireless testing device 2 has the functions of WIFI IEEE802.11 protocol, wireless radio frequency parameter measurement, message sending and receiving, has the functions of working in an AP mode and an STA mode, and can complete the functions of AP access, authentication, AP disconnection, message forwarding and wireless radio frequency parameter measurement. The radio frequency measurement parameters include, but are not limited to, parameters such as radio power, error Vector quantity (evm), negotiation rate, Received Signal Strength Indication (RSSI), and the like, and are set according to actual needs, which is not limited in the embodiments of the present invention. The flow simulation device 3 can simulate the Ethernet message of any MAC address and IP address, the message can carry fingerprint data, and the sending and receiving of the message can be supported. The control device 1 controls the tested device, the wireless testing device 2 and the flow simulation device 3 to cooperatively complete a testing process of the WIFI function of the tested device 4. The control method of the control device 1 includes, but is not limited to, Telnet registration, custom protocol, and the like. The control device 1 may be a server or an industrial personal computer, and may be set according to actual needs, which is not limited in the embodiments of the present invention. The wireless testing device 2 and the flow simulation device 3 may be connected to the control device 1 in a bus manner, or may be connected to the control device 1 in a communication network or serial port manner, and may be configured according to actual needs, which is not limited in the embodiments of the present invention.
The test system of the WIFI function provided by the embodiment of the invention can carry out complete software and hardware function test on the tested equipment 4, and the following tests are carried out on each antenna of the tested equipment in each frequency band no matter the tested equipment works in the AP mode or STA mode of WIFI: (1) testing the functions of AP access, authentication and disconnection of the tested equipment; (2) testing parameters such as WIFI channel negotiation and rate negotiation of the tested equipment; (3) testing wireless parameters of each antenna of the tested device, including signal strength, wireless power, Error Vector Magnitude (EVM) and the like; (4) and testing the message data throughput forwarding function of the tested equipment.
The WIFI function testing system provided by the embodiment of the invention comprises a control device, a wireless testing device, a flow simulation device and a tested device, wherein the control device is respectively in communication connection with the wireless testing device, the flow simulation device and the tested device, the flow simulation device is respectively in wired communication connection with the tested device and the wireless testing device, the tested device is in wireless communication connection with the wireless testing device to forward information, the WIFI function of the tested device can be comprehensively tested, and the testing efficiency of the WIFI function is improved. For the WIFI function of equipment under the scene of the shielded cell among the prior art, reduce the place and use, show and promote production efficiency of software testing, improved production efficiency when practicing thrift the cost, for the control equipment under test package test coupling power among the prior art, the WIFI functional test is more comprehensive to equipment under test's reliability has been improved.
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, the wireless testing device 2 further includes an antenna 21, a radio frequency transceiver 22, an analog-to-digital converter 23, a digital-to-analog converter 24, a WIFI baseband chip 25, and a microprocessor 26, where:
the radio frequency transceiver 22 is respectively connected with the antenna 21, the analog-digital converter 23 and the digital-analog converter 24, and the WIFI baseband chip 25 is respectively connected with the analog-digital converter 23, the digital-analog converter 24 and the microprocessor 26.
Specifically, the device under test 4 carries the simulation message in the first forwarding information in the WIFI communication mode and forwards the simulation message to the wireless testing device 2, and the radio frequency transceiver 22 receives the wireless signal of the first forwarding information through the antenna 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 first forwarding information to the WIFI baseband chip 25. The WIFI baseband chip 25 measures wireless parameters such as wireless power, EVM, negotiation rate, etc. for the first forwarding information, and may send the result of the wireless parameter measurement to the microprocessor 26. The WIFI baseband chip 25 converts the digital signal of the first forwarding information and transmits the converted digital signal to the microprocessor 26, the microprocessor 26 may receive the message simulation configuration information from the control device 1 in a wired communication manner, and the microprocessor 26 may obtain a test result of parameters such as a message packet loss rate and a message average delay according to the first forwarding information and the message simulation configuration information.
For example, the microprocessor 26 may obtain the packet loss rate according to the first forwarding information and the packet simulation configuration information, the microprocessor 26 may statistically calculate the packet average delay of the first forwarding information, the microprocessor 26 may obtain the measurement result of the wireless power from the WIFI baseband chip 25, and then use the packet loss rate, the packet average delay, and the wireless power as the test result.
Furthermore, the flow simulation apparatus 3 may transmit the simulation message to the wireless test apparatus 2 by way of wired communication. After receiving the simulation message sent by the flow simulation device 3, the microprocessor 26 may forward the simulation message to the device under test 4 through the WIFI communication mode through the WIFI baseband chip 25, the digital-to-analog converter 24, the radio frequency transceiver 22, and the antenna 21, and the device under test 4 then carries the received simulation message in third forwarding information and sends the third forwarding information to the flow simulation device 3. And the flow simulation device 3 calculates the packet loss rate and the average packet delay as test results according to the simulation message carried by the third forwarding information and the simulation message sent to the wireless test device 2. After obtaining the test results, microprocessor 26 may send the test results to control device 1 via the bus. The microprocessor 26 may be connected to the flow simulator 3 through an ethernet interface in a wired communication manner, and the microprocessor 26 may be further connected to the control device 1 through a bus. The WIFI baseband chip 25 and the microprocessor 26 are selected according to actual needs, and the embodiment of the present invention is not limited.
On the basis of the above embodiments, the flow simulation apparatus 3 can be implemented by a Field Programmable Gate Array (FPGA for short).
For example, fig. 3 is a schematic structural diagram of a flow simulation apparatus according to a third embodiment of the present invention, as shown in fig. 3, the flow simulation apparatus 3 includes an FPGA module 31, a first storage module 32, a second storage module 33, a clock module 34, and a network interface module 35, the FPGA module 31 is connected to the first storage module 32, the second storage module 33, the clock module 34, and the network interface module 35, the FPGA module 31 may be connected to the wireless test apparatus 2 and the device under test 4 through the network interface module 35 in a wired communication manner, and may send the simulation message to the wireless test apparatus 2 and the device under test 4, the clock module 34 is configured to provide a clock frequency for operation of the FPGA module 31, and the FPGA module 31 may be connected to the control apparatus 1 in a communication manner through a communication network, and may also be connected to the control apparatus 1 through a bus.
The first storage module 32 may adopt a Synchronous Dynamic Random-access Memory, SDRAM for short), and is a Dynamic Random-access Memory with a Synchronous interface. The second storage module 33 may adopt a Nand-Flash memory, and a nonlinear macro-cell mode is adopted in the Nand-Flash memory, so that a cheap and effective solution is provided for realizing a solid-state large-capacity memory, and the solution is used for storing the simulation message. The clock module 34 may employ a crystal oscillator clock.
On the basis of the above embodiments, further, the control device 1 and the wireless testing device 2 may be connected through a bus, a communication network, or a serial port, and the control device 1 and the flow simulation device 2 are 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, the control device 1 further employs a server or an industrial personal computer.
Fig. 4 is a schematic structural diagram of a testing system for a WIFI function provided in a fourth embodiment of the present invention, and as shown in fig. 4, the testing system for a WIFI function provided in the embodiment of the present invention includes a control device 41, a wireless testing device 42, and a device under test 43, where:
the control device 41 is connected to the wireless test device 42 and the device under test 43 in communication, and the device under test 43 is connected to the wireless test device 42 in wireless communication.
For the test of the WIFI function of the device under test 43, it is necessary to test each frequency band of each antenna of the device under test 43, and when the test result of each frequency band of each antenna of the device under test 43 is passed, the device under test 43 passes the WIFI function test. The following describes the working process of the test system for the WIFI function provided in the embodiment of the present invention, by taking an example of setting the tested device 43 to operate in the AP mode and testing one frequency band of one antenna of the tested device 43. When the multiple antennas of the device under test 43 correspond to the same frequency band, only one frequency band of the currently tested antenna is enabled, and the other antennas in the same frequency band are turned off.
The control device 41 sends a first control instruction to the device under test 43 to cause the device under test 43 to operate in the AP mode and configure the device under test 43 with a unique corresponding SSID. Isolation of the device under test 43 in the open air domain is achieved by configuring the device under test 43 with a unique SSID such that the SSID of each device under test 43 in the open air domain is unique. The first control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
The control device 1 sends a second control command to the wireless testing device 42 to make the wireless testing device 42 operate in the STA mode, and make the wireless testing device 42 access to 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.
The wireless test device 42 checks whether or not to establish a WIFI wireless communication connection with the set frequency band of the set antenna of the device under test 43, and if the WIFI wireless communication connection is successfully established, returns information of successful connection to the control device 41, and if the WIFI wireless communication connection cannot be established within a specified time, returns information of failed connection to the control device 41.
If the control apparatus 1 receives the connection success information, it will send an eleventh control instruction to the device under test 43 to make the device under test 43 send the test information to the wireless test apparatus 42 by wireless communication. The control device 41 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 eleventh 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, the wireless test device 42 obtains a test result of the set frequency band of the set antenna of the device under test 43 according to the test information, and then reports the test result of the set frequency band of the set antenna to the control device 41. For example, the wireless test apparatus 42 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 the EVM and the negotiation rate according to the management frame and the control frame included in the test information. The test result for setting the frequency band of the antenna may include one or more third test parameters, where the third test parameters are wireless power, EVM, or negotiation rate.
The control device 41 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 the wireless test device 42. For example, the test result of setting the frequency band of the antenna received by the control device 1 includes the wireless power, the EVM, or 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 under test 43 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 under test 43 works in the AP mode are similar to the above process, and are not described herein again. 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 with WIFI function provided in the embodiment of the present invention, taking as an example that the device under test 43 is set to operate in the STA mode, and a test is performed on one frequency band for one antenna of the device under test 43. When the multiple antennas of the device under test 43 correspond to the same frequency band, only one frequency band of the currently tested antenna is enabled, and the other antennas in the same frequency band are turned off.
The control device 41 sends a fourth control instruction to the wireless testing device 42 to make the wireless testing device 42 operate in the AP mode and configure the wireless testing device 42 with a unique corresponding SSID. Isolation of the wireless test device 42 in the open air domain is achieved by configuring the wireless test device 42 with a unique SSID such that the SSID of the wireless test device 42 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.
The control device 41 sends a fifth control instruction to the device under test 43 to enable the device under test 43 to operate in the STA mode, and establishes a communication connection with the wireless testing device 42 through the set frequency band of the set antenna of the device under test 43; the fifth control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
The wireless test device 42 checks whether or not to establish a WIFI wireless communication connection with the set frequency band of the set antenna of the device under test 43, and if the WIFI wireless communication connection is successfully established, returns information of successful connection to the control device 41, and if the WIFI wireless communication connection cannot be established within a specified time, returns information of failed connection to the control device 41.
If the control device 41 receives the connection success information, it will send an eleventh control instruction to the device under test 43 to make the device under test 43 send the test information to the wireless test device 42 by wireless communication. The control device 41 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 eleventh 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, the wireless test device 42 obtains a test result of the set frequency band of the set antenna of the device under test 43 according to the test information, and then reports the test result of the set frequency band of the set antenna to the control device 41. The test result for setting the frequency band of the antenna may include one or more third test parameters, where the third test parameters are wireless power, EVM, or negotiation rate.
The control device 41 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 the wireless test device 42.
The above process completes the test of one antenna and one frequency band when the device under test 43 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 the other antenna when the device under test 43 works in the STA mode are similar to the above process, and are not described herein again. 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, and the tested equipment is in wireless communication connection with the wireless testing device.
Fig. 5 is a schematic structural diagram of a wireless testing device according to a fifth embodiment of the present invention, and as shown in fig. 5, on the basis of the foregoing embodiments, the wireless testing device 42 further includes an antenna 421, a radio frequency transceiver 422, an analog-to-digital converter 423, a digital-to-analog converter 424, a WIFI baseband chip 425, and a microprocessor 426, where:
the radio frequency transceiver 422 is respectively connected with the antenna 421, the analog-digital converter 423 and the digital-analog converter 424, and the WIFI baseband chip 425 is respectively connected with the analog-digital converter 423, the digital-analog converter 424 and the microprocessor 426.
Specifically, the device under test 43 sends test information through WIFI communication, and the radio frequency transceiver 422 receives a wireless signal of the test information through the antenna 421 and then transmits the wireless signal to the analog-to-digital converter 423. The analog-to-digital converter 423 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 the WIFI baseband chip 425. The WIFI baseband chip 425 performs power measurement on the test information, and may send the measurement result of the wireless power to the microprocessor 426. The WIFI baseband chip 425 converts the digital signal of the test information and transmits the converted digital signal to the microprocessor 426, and the microprocessor 426 may obtain a test result according to the management frame and the control frame included in the test information.
On the basis of the above embodiments, further, the control device 41 and the wireless test device 42 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, the control device 41 further employs a server or an industrial personal computer.
Fig. 6 is a schematic flowchart of a method for testing a WIFI function according to a sixth embodiment of the present invention, and as shown in fig. 6, the method for testing a WIFI function according to the 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:
s601, testing a WIFI function of each frequency band of each antenna of the tested equipment in an open airspace through a wireless testing device and a flow simulation device to obtain a testing result of each frequency band of each antenna;
specifically, when the wireless test device and the flow simulation device are used for performing the WIFI function test on the device under test in the open airspace, each frequency band of each antenna of the device under test needs to be tested, and a test 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 S602, if the test result of each frequency band of each antenna is known to pass, outputting the test result that the tested equipment passes.
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 method for testing the WIFI function, provided by the embodiment of the invention, the WIFI function is tested on each frequency band of each antenna of the tested equipment to obtain the test result of each frequency band of each antenna, the test result of each frequency band of each antenna is obtained after the test result of each frequency band of each antenna is known to be passed, the test result of the tested equipment is output, the complete software and hardware test is carried out on the WIFI function of the tested equipment, the comprehensiveness of the WIFI function test is improved, and the delivery reliability of the tested equipment is improved.
Fig. 7 is a schematic flowchart of a method for testing a WIFI function according to a seventh embodiment of the present invention, and as shown in fig. 7, 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:
s701, sending a first control instruction to the 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.
S702, sending a second control instruction to the wireless test device to enable the wireless test 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.
S703, 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.
S704, if the first connection state is successful, sending a third control instruction to a flow simulation device so that the flow simulation device sends a simulation message to the tested equipment and sends message simulation configuration 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, send a third control instruction to the flow simulation device and send message simulation configuration information to the wireless test device. And after receiving the third control instruction, the flow simulation device sends a simulation message to the tested device. After receiving the simulation message, the device to be tested can carry the simulation message in the first forwarding information and send the simulation message to the wireless testing device in a WIFI communication mode. The simulation message is preset, and the simulation message may include fingerprint data. The first forwarding information comprises information such as a management frame, a control frame and a data frame, and the data frame comprises the simulation message. The message simulation configuration information corresponds to the simulation message, and specifies the message structure and the message sending configuration parameters of the simulation message. The third control instruction and the message simulation configuration information are set according to actual needs, and the embodiment of the invention is not limited.
S705, 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 according to the first test result; the first test result is obtained by the wireless test device according to the first forwarding information and the message simulation configuration information received from the tested device.
Specifically, the wireless testing device receives first forwarding information from the device under test, receives the message simulation configuration information from the control device, obtains a first test result according to the first forwarding information and the message simulation configuration 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 device compares the simulation message included in the first forwarding information with the message simulation configuration information, and obtains a message packet loss rate through statistics, the wireless test device measures the received power of the first forwarding information and calculates an average value as a wireless power when receiving the first forwarding information, the wireless test device calculates the message average delay of the forwarding information through statistics when receiving the first forwarding information, and then reports the message packet loss rate, the wireless power, and the message average delay to the control device as test results of setting a frequency band of the antenna.
The control device judges whether the packet loss rate of the message is in a corresponding set range, whether the wireless power is in a corresponding specified range and whether the average message delay is smaller than a delay threshold, and if the packet loss rate is in the corresponding set range, the wireless power is in the corresponding specified range and the average message delay is smaller than the delay threshold, the current set antenna and the set frequency band are determined to pass the test. And if the packet loss rate of the message is not in the corresponding set range, the wireless power is not in the corresponding specified range or the average time delay of the message is greater than or equal to the time delay threshold, 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. 8 is a schematic flowchart of a method for testing a WIFI function according to an eighth embodiment of the present invention, and as shown in fig. 8, 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:
s801, sending a fourth control instruction to the wireless testing device to enable the wireless testing device to work in an access point mode and configure a unique corresponding service set identifier for the wireless testing 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.
S802, 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.
S803, 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.
S804, if the second connection state is successful, sending a sixth control instruction to a flow simulation device so that the flow simulation device sends a simulation message to the tested equipment and sends message simulation configuration 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, send a sixth control instruction to the traffic simulation device and send message simulation configuration information to the wireless test device. And after receiving the sixth control instruction, the flow simulation device sends the simulation message to the tested device. After receiving the simulation message, the device to be tested can carry the simulation message in the first forwarding information and send the simulation message to the wireless testing device in a WIFI communication mode.
S805, receiving a second test result reported by the wireless test device, and determining whether the set antenna and the set frequency band pass the test according to the second test result; and the second test result is obtained by the wireless test device according to the first forwarding information received from the tested device and the simulation message received from the flow simulation device.
Specifically, the wireless testing device receives first forwarding information from the device under test, receives the message simulation configuration information from the control device, obtains a second testing result according to the first forwarding information received from the device under test and the message simulation configuration information received from the control device, and reports the second testing result to the control device. And the control device receives the second test result, determines whether the set antenna and the set frequency band pass the test or not according to the second test result, can perform subsequent tests if the 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 set antenna and the set frequency band do not pass the test. The second test result comprises at least one first test parameter, and the first test parameter is packet loss rate, wireless power, packet average delay, 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 first test parameter, where the first test parameter is wireless power, packet loss rate, packet average delay, 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 first 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 first test parameters, which are set according to actual needs, and the embodiment of the present invention is not limited. The first test parameter may be a wireless power, a packet loss rate, an average packet delay, an error vector magnitude, or a negotiation rate.
Each first test parameter has a corresponding test requirement, and if each first 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 first test parameters included in the second test result does not meet the corresponding test requirement, a prompt message that the currently set antenna and the set frequency band cannot pass the test can be output.
For example, the second test result includes three first test parameters, namely packet loss rate, wireless power and packet average delay. The control device judges whether the packet loss rate of the message is in a corresponding set range, whether the wireless power is in a corresponding specified range and whether the average message delay is smaller than a delay threshold, if the packet loss rate is in the corresponding set range, the wireless power is in the corresponding specified range and the average message delay is smaller than the delay threshold, the current set antenna and the set frequency band are determined to pass the test, and prompt information that the current set antenna and the set frequency band pass the test can be output. If the packet loss rate of the message is not in the corresponding set range, the wireless power is not in the corresponding specified range or the average time delay of the message is greater than or equal to the time delay threshold, it is determined that the currently set antenna and the set frequency band cannot pass the test, and prompt information that the currently set antenna and the set frequency band do not pass the test can be output. The set range corresponding to the packet loss rate, the specified range corresponding to the wireless power, and the delay threshold are set according to actual experience, which is not limited in the embodiments of the present invention.
On the basis of the foregoing embodiments, further, the first test result includes at least one first test parameter, where the first test parameter is packet loss rate, wireless power, packet average delay, 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 first 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 first test parameter, or may include two or more first test parameters, which are set according to actual needs, and the embodiment of the present invention is not limited. The first test parameter may be packet loss rate, wireless power, average packet delay, error vector magnitude, or negotiation rate.
Each first test parameter has a corresponding test requirement, and if each first 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 first 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.
For example, the first test result includes three test parameters, namely packet loss rate, wireless power and average packet delay. The control device judges whether the packet loss rate of the message is in a corresponding set range, whether the wireless power is in a corresponding specified range and whether the average message delay is smaller than a delay threshold, if the packet loss rate is in the corresponding set range, the wireless power is in the corresponding specified range and the average message delay is smaller than the delay threshold, the current set antenna and the set frequency band are determined to pass the test, and prompt information that the current set antenna and the set frequency band pass the test can be output. If the packet loss rate of the message is not in the corresponding set range, the wireless power is not in the corresponding specified range or the average time delay of the message is greater than or equal to the time delay threshold, it is determined that the currently set antenna and the set frequency band cannot pass the test, and prompt information that the currently set antenna and the set frequency band do not pass the test can be output. The set range corresponding to the packet loss rate, the specified range corresponding to the wireless power, and the delay threshold are set according to actual experience, which is not limited in the embodiments of the present invention.
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. 9, 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 flow simulation device and sends message simulation configuration information to the wireless test device. And after receiving the third control instruction, the flow simulation device sends a simulation message to the wireless test device. The tested device carries the received simulation message in the first forwarding information and sends the simulation message to the wireless testing device.
And sixthly, receiving a first test result. The wireless testing device receives first forwarding information from the tested equipment, receives the message simulation configuration information from the control device, obtains a first testing result according to the first forwarding information received from the tested equipment and the message simulation configuration information received from the control device, and reports the first testing 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 a packet loss rate and a wireless power, and if the packet loss rate is within a corresponding set range and the wireless power is within a corresponding specified range, the currently set antenna and the set frequency band pass the test; and if the packet loss rate of the message is not in the corresponding set range or the wireless power is not in the corresponding specified range, the current 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. 10, 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 flow simulation device and sends message simulation configuration information to the wireless test device. And after receiving the sixth control instruction, the flow simulation device sends a simulation message to the wireless test device. The tested device carries the received simulation message in the first forwarding information and sends the simulation message to the wireless testing device.
And sixthly, receiving a second test result. The wireless testing device may receive the first forwarding information from the device under test, receive the message simulation configuration information from the control device, obtain a second testing result according to the first forwarding information received from the device under test and the message simulation configuration information received from the control device, and report the second testing 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 a packet loss rate and a wireless power, and if the packet loss rate is within a corresponding set range and the wireless power is within a corresponding specified range, the currently set antenna and the set frequency band pass the test; and if the packet loss rate of the message is not in the corresponding set range or the wireless power is not in the corresponding specified range, the current 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. 11 is a schematic flowchart of a method for testing a WIFI function according to an eleventh embodiment of the present invention, and as shown in fig. 11, 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:
s1101, sending a first control instruction to the 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 specific implementation process of this step is the same as step S701, and is not described herein again.
S1102, 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 specific implementation process of this step is the same as step S702, and is not described herein again.
S1103, receiving a first connection state reported by the wireless test device;
specifically, the specific implementation process of this step is the same as step S703, and is not described herein again.
S1104, if the first connection state is successful, sending a seventh control instruction to a flow simulation device so that the flow simulation device sends a simulation message to the tested equipment;
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 seventh control instruction to the flow simulation device, and after receiving the seventh control instruction, the flow simulation device sends a simulation message to the device under test. After receiving the simulation message, the device to be tested can carry the simulation message in the first forwarding information and send the simulation message to the wireless testing device in a WIFI communication mode. The first forwarding information includes information such as a management frame, a control frame, and a data frame, and the data frame includes the simulation packet. The simulation message is preset and may include fingerprint data. The seventh control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
S1105, receiving a third test result reported by the flow simulation device and a fourth test result reported by the wireless test device, and determining whether the current set antenna and the set frequency band pass the test according to the third test result and the fourth test result; the third test result is obtained by the flow simulation device according to the second forwarding information and the simulation message received from the wireless test device, and the fourth test result is obtained by the wireless test device according to the first forwarding information received from the device under test.
Specifically, the wireless testing device may receive first forwarding information sent by the device under test in a WIFI communication manner, obtain a fourth testing result according to the first forwarding information, and report the fourth testing result to the control device. The wireless test device also obtains the simulation message from the first forwarding information, and then carries the simulation message in second forwarding information to forward the simulation message to the flow simulation device. And the flow simulation device receives second forwarding information from the wireless test device, obtains a third test result according to the second forwarding information and the simulation message sent by the flow simulation device, and reports the third test result to the control device. The control device receives the third test result and the fourth test result, determines whether the currently set antenna and the set frequency band pass the test or not according to the third test result and the fourth 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.
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. 12 is a schematic flowchart of a method for testing a WIFI function according to a twelfth embodiment of the present invention, and as shown in fig. 12, 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:
s1201, 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 specific implementation process of this step is the same as step S801, and is not described herein again.
S1202, 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 specific implementation process of this step is the same as step S802, and is not described herein again.
S1203, receiving a second connection state returned by the wireless testing device;
specifically, the specific implementation process of this step is the same as step S803, and is not described herein again.
S1204, if the second connection state is successful, sending an eighth control instruction to the flow simulation device so that the flow simulation device sends a simulation message to the tested 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, send an eighth control instruction to a flow simulation device, and after receiving the eighth control instruction, the flow simulation device sends the simulation packet to the device under test. After receiving the simulation message, the device to be tested can carry the simulation message in the first forwarding information and send the simulation message to the wireless testing device in a WIFI communication mode. The first forwarding information includes information such as a management frame, a control frame, and a data frame, and the data frame includes the simulation packet. The simulation message is preset and may include fingerprint data. The eighth control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
S1205, receiving a fifth test result reported by the flow simulation device and a sixth test result reported by the wireless test device, and determining whether the current set antenna and the set frequency band pass the test according to the fifth test result and the sixth test result; the fifth test result is obtained by the flow simulation device according to the second forwarding information and the simulation message received from the wireless test device, and the sixth test result is obtained by the wireless test device according to the first forwarding information received from the device under test.
Specifically, the wireless testing device may receive first forwarding information sent by the device under test in a WIFI communication manner, obtain a sixth testing result according to the first forwarding information, and report the sixth testing result to the control device. The wireless test device also obtains the simulation message from the first forwarding information, and then carries the simulation message in second forwarding information to forward the simulation message to the flow simulation device. And the flow simulation device receives second forwarding information from the wireless test device, obtains a fifth test result according to the second forwarding information and the simulation message sent by the flow simulation device, and reports the fifth test result to the control device. The control device receives the fifth test result and the sixth test result, determines whether the currently set antenna and the set frequency band pass the test or not according to the fifth test result and the sixth 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.
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 fifth test result includes at least one second test parameter, and the sixth test result includes at least one third test parameter, where the second test parameter is a packet loss rate or a packet average delay, and the third test parameter is a wireless power, an error vector magnitude, or a negotiation rate; correspondingly, the determining whether the currently set antenna and the set frequency band pass the test according to the fifth test result and the sixth test result includes:
and if judging that each second test parameter included in the fifth test result meets the corresponding test requirement and each third test parameter included in the sixth 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 fifth test result may include one second test parameter, or may include two or more second test parameters, which are set according to actual needs, and the embodiment of the present invention is not limited. The sixth test result may include one third test parameter, or may include two or more third test parameters, which are set according to actual needs, and the embodiment of the present invention is not limited. The second test parameter may be a packet statistical index such as packet loss rate or average packet delay; the third test parameter may be a wireless parameter index such as wireless power, error vector magnitude, or negotiation rate.
Each second test parameter and each third test parameter have corresponding test requirements, and if each second test parameter included in the fifth test result meets the corresponding test requirement and each third test parameter included in the sixth 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 second test parameters included in the fifth test result does not meet the corresponding test requirement, or if any one of the third test parameters included in the sixth test result does not meet the corresponding test requirement, a prompt message that the current set antenna and the set frequency band cannot pass the test may be output.
For example, the fifth test result includes two second test parameters, i.e., a packet loss rate and a packet average delay, and the sixth test result includes a third test parameter, i.e., a wireless power. The control device judges whether the packet loss rate of the message is in a corresponding set range, whether the wireless power is in a corresponding specified range and whether the average message delay is smaller than a delay threshold, if the packet loss rate is in the corresponding set range, the wireless power is in the corresponding specified range and the average message delay is smaller than the delay threshold, the current set antenna and the set frequency band are determined to pass the test, and prompt information that the current set antenna and the set frequency band pass the test can be output. If the packet loss rate of the message is not in the corresponding set range, the wireless power is not in the corresponding specified range or the average time delay of the message is greater than or equal to the time delay threshold, it is determined that the currently set antenna and the set frequency band cannot pass the test, and prompt information that the currently set antenna and the set frequency band do not pass the test can be output. The set range corresponding to the packet loss rate, the specified range corresponding to the wireless power, and the delay threshold are set according to actual experience, which is not limited in the embodiments of the present invention.
On the basis of the foregoing embodiments, further, the third test result includes at least one second test parameter, and the fourth test result includes at least one third test parameter, where the second test parameter is a packet loss rate or a packet average delay, and the third test parameter is a wireless power, an error vector magnitude, or a negotiation rate; correspondingly, the determining whether the currently set antenna and the set frequency band pass the test according to the third test result and the fourth test result includes:
and if judging that each second test parameter included in the third test result meets the corresponding test requirement and each third test parameter included in the fourth 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 third test result may include one second test parameter, or may include two or more second test parameters, which are set according to actual needs, and the embodiment of the present invention is not limited. The fourth test result may include one third test parameter, or may include two or more third test parameters, which are set according to actual needs, and the embodiment of the present invention is not limited. The second test parameter may be a packet statistical index such as packet loss rate or average packet delay; the third test parameter may be a wireless parameter index such as wireless power, error vector magnitude, or negotiation rate.
Each second test parameter and each third test parameter have corresponding test requirements, and if each second test parameter included in the third test result meets the corresponding test requirement and each third test parameter included in the fourth 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 second test parameters included in the third test result does not meet the corresponding test requirement, or if any one of the third test parameters included in the fourth 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.
For example, the fifth test result includes two second test parameters, i.e., packet loss rate and packet average delay, and the sixth test result includes two third test parameters, i.e., wireless power and negotiation rate. The control device judges whether the packet loss rate of the message is in a corresponding set range, whether the average message delay is smaller than a delay threshold, whether the wireless power is in a corresponding designated range, whether the negotiation rate is larger than or equal to a rate threshold, if the packet loss rate is in the corresponding set range, the average message delay is smaller than the delay threshold, the wireless power is in the corresponding designated range, and the negotiation rate is larger than or equal to the rate threshold, then the current set antenna and the set frequency band are determined to pass the test, and prompt information that the current set antenna and the set frequency band pass the test can be output. If the packet loss rate of the message is not in the corresponding set range, the average time delay of the message is greater than or equal to the time delay threshold, the wireless power is not in the corresponding specified range or the negotiation rate is less than the rate threshold, it is determined that the currently set antenna and the set frequency band cannot pass the test, and prompt information that the currently set antenna and the set frequency band do not pass the test can be output. The set range corresponding to the packet loss rate, the specified range corresponding to the wireless power, the rate threshold, and the delay threshold are set according to actual experience, which is not limited in the embodiments of the present invention.
Fig. 13 is a schematic flowchart of a method for testing a WIFI function according to a thirteenth embodiment of the present invention, and as shown in fig. 13, on the basis of the foregoing embodiments, further performing a test on a WIFI function for each frequency band of each antenna of a device under test, and obtaining a test result for each frequency band of each antenna includes:
s1301, sending a first control instruction to the 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 specific implementation process of this step is the same as step S701, and is not described herein again.
S1302, sending a second control instruction to the wireless test device to enable the wireless test 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 specific implementation process of this step is the same as step S702, and is not described herein again.
S1303, receiving a first connection state reported by the wireless test device;
specifically, the specific implementation process of this step is the same as step S703, and is not described herein again.
S1304, if it is determined that the first connection state is a successful connection, sending a ninth control instruction to the flow simulation apparatus, so that the flow simulation apparatus sends a simulation message to the wireless test apparatus;
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 success, the control device sends a ninth control instruction to the traffic simulation device, and after receiving the ninth control instruction, the traffic simulation device sends a simulation message to the wireless test device. After receiving the simulation message, the wireless testing device carries the simulation message in fourth forwarding information and sends the simulation message to the tested device in a WIFI communication mode. The fourth forwarding information includes information such as a management frame, a control frame, and a data frame, and the data frame includes the simulation packet. The simulation message is preset and may include fingerprint data. The ninth control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
S1305, receiving a seventh test result reported by the flow simulation device and an eighth test result reported by the wireless test device, and determining whether a current set antenna and a set frequency band pass the test according to the seventh test result and the eighth test result; the seventh test result is obtained by the flow simulation device according to the third forwarding information and the simulation message received from the device under test, and the eighth test result is obtained by the wireless test device according to the fourth forwarding information sent to the device under test.
Specifically, when the wireless testing device sends the fourth forwarding information to the device under test, an eighth testing result may be obtained based on the fourth forwarding information, and then the eighth testing result is reported to the control device. The device to be tested can receive fourth forwarding information sent by the wireless testing device in a WIFI communication mode, then simulation messages are obtained from the fourth forwarding information, and then the simulation messages are carried in second forwarding information and sent to the flow simulation device. And the flow simulation device obtains a seventh test result according to the simulation message included in the second forwarding information and the simulation message sent by the flow simulation device, and then reports the seventh test result to the control device. The control device receives the seventh test result and the eighth test result, determines whether the currently set antenna and the set frequency band pass the test or not according to the seventh test result and the eighth test result, and if the currently set antenna and the set frequency band pass the test, the control device can perform subsequent tests, and if the currently set antenna and the set frequency band do not pass the test, the control device can output prompt information of the tested device WIFI function test failure.
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. 14 is a schematic flowchart of a method for testing a WIFI function according to a fourteenth embodiment of the present invention, and as shown in fig. 14, 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:
s1401, 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 specific implementation process of this step is the same as step S801, and is not described herein again.
S1402, 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 specific implementation process of this step is the same as step S802, and is not described herein again.
S1403, receiving a second connection state returned by the wireless test device;
specifically, the specific implementation process of this step is the same as step S803, and is not described herein again.
S1404, if it is known that the second connection state is successful, sending a tenth control instruction to the flow simulation apparatus, so that the flow simulation apparatus sends a simulation message to the wireless test apparatus;
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 tenth control instruction to the traffic simulation device, and after receiving the tenth control instruction, the traffic simulation device sends a simulation packet to the wireless test device. After receiving the simulation message, the wireless testing device carries the simulation message in fourth forwarding information and sends the simulation message to the tested device in a WIFI communication mode. The fourth forwarding information includes information such as a management frame, a control frame, and a data frame, and the data frame includes the simulation packet. The simulation message is preset and may include fingerprint data. The tenth control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
S1405, receiving a ninth test result reported by the traffic simulation apparatus and a tenth test result reported by the wireless test apparatus, and determining whether a currently set antenna and a set frequency band pass a test according to the ninth test result and the tenth test result; the ninth test result is obtained by the flow simulation device according to the third forwarding information and the simulation message received from the device under test, and the tenth test result is obtained by the wireless test device according to the fourth forwarding information sent to the device under test.
Specifically, when the wireless testing device sends the fourth forwarding information to the device under test, a tenth testing result may be obtained based on the fourth forwarding information, and then the tenth testing result is reported to the control device. The device to be tested can receive fourth forwarding information sent by the wireless testing device in a WIFI communication mode, then simulation messages are obtained from the fourth forwarding information, and then the simulation messages are carried in second forwarding information and sent to the flow simulation device. And the flow simulation device obtains a ninth test result according to the simulation message included in the second forwarding information and the simulation message sent by the flow simulation device, and then reports the ninth test result to the control device. The control device receives the ninth test result and the tenth test result, determines whether the currently set antenna and the set frequency band pass the test or not according to the ninth test result and the tenth test result, and if the currently set antenna and the set frequency band pass the test, the control device can perform subsequent tests, and if the currently set antenna and the set frequency band do not pass the test, the control device can output prompt information of the WIFI function test failure of the tested device.
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 ninth test result includes at least one second test parameter and the tenth test result includes at least one third test parameter, where the second test parameter is a packet loss rate or a packet average delay, and the third test parameter is a wireless power, an error vector magnitude, or a negotiation rate; correspondingly, the determining whether the currently set antenna and the set frequency band pass the test according to the ninth test result and the tenth test result includes:
and if judging that each second test parameter included in the ninth test result meets the corresponding test requirement and each third test parameter included in the tenth 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 ninth test result may include one second test parameter, or may include two or more second test parameters, which are set according to actual needs, and the embodiment of the present invention is not limited. The tenth test result may include one third test parameter, or may include two or more third test parameters, which are set according to actual needs, and the embodiment of the present invention is not limited. The second test parameter may be a packet statistical index such as packet loss rate or average packet delay; the third test parameter may be a wireless parameter index such as wireless power, error vector magnitude, or negotiation rate.
Each second test parameter and each third test parameter have corresponding test requirements, and if each second test parameter included in the ninth test result meets the corresponding test requirement and each third test parameter included in the tenth 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 second test parameters included in the ninth test result does not meet the corresponding test requirement, or if any one of the third test parameters included in the tenth test result does not meet the corresponding test requirement, a prompt message that the current set antenna and the set frequency band cannot pass the test may be output.
On the basis of the foregoing embodiments, further, the seventh test result includes at least one second test parameter, and the eighth test result includes at least one third test parameter, where the second test parameter is a packet loss rate or a packet average delay, and the third test parameter is a wireless power, an error vector magnitude, or a negotiation rate; correspondingly, the determining whether the currently set antenna and the set frequency band pass the test according to the seventh test result and the eighth test result includes:
and if judging that each second test parameter included in the seventh test result meets the corresponding test requirement and each third test parameter included in the eighth 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 seventh test result may include one second test parameter, or may include two or more second test parameters, which are set according to actual needs, and the embodiment of the present invention is not limited. The eighth test result may include one third test parameter, or may include two or more third test parameters, which are set according to actual needs, and the embodiment of the present invention is not limited. The second test parameter may be a packet statistical index such as packet loss rate or average packet delay; the third test parameter may be a wireless parameter index such as wireless power, error vector magnitude, or negotiation rate.
Each second test parameter and each third test parameter have corresponding test requirements, and if each second test parameter included in the seventh test result meets the corresponding test requirement and each third test parameter included in the eighth 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 second test parameters included in the seventh test result does not meet the corresponding test requirement, or if any one of the third test parameters included in the eighth 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.
Fig. 15 is a schematic flowchart of a method for testing a WIFI function according to a fifteenth embodiment of the present invention, and as shown in fig. 15, on the basis of the foregoing embodiments, further performing a test on a WIFI function for each frequency band of each antenna of a device under test, and obtaining a test result for each frequency band of each antenna includes:
s1501, 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 specific implementation process of this step is the same as step S701, and is not described herein again.
S1502, sending a second control instruction to the wireless test device to enable the wireless test 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 specific implementation process of this step is the same as step S702, and is not described herein again.
S1503, receiving a first connection state reported by the wireless test device;
specifically, the specific implementation process of this step is the same as step S703, and is not described herein again.
S1504, if it is known that the first connection state is a connection success, sending an eleventh control instruction to the device under test to enable the device under test to send test information to the wireless testing apparatus;
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 an eleventh control instruction to the device under test, and after receiving the eleventh control instruction, the device under test sends 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 eleventh control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
S1505, receiving an eleventh test result reported by the wireless test device, and determining whether the current set antenna and the set frequency band pass the test according to the eleventh test result; the eleventh 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 an eleventh test result according to the test information, and reports the eleventh test result to the control device. The control device receives the eleventh test result, determines whether the currently set antenna and the set frequency band pass the test or not according to the eleventh 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 tested device WIFI function test failure if the currently 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 an eleventh 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 quotient 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. 16 is a schematic flowchart of a method for testing a WIFI function according to a sixteenth embodiment of the present invention, and as shown in fig. 16, 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:
s1601, 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 specific implementation process of this step is the same as step S801, and is not described herein again.
S1602, 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 specific implementation process of this step is the same as step S802, and is not described herein again.
S1603, receiving a second connection state returned by the wireless test device;
specifically, the specific implementation process of this step is the same as step S803, and is not described herein again.
S1604, if the second connection state is known to be successful, sending a twelfth control instruction to the device under test so that the device under test sends test information to the wireless test apparatus;
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 twelfth control instruction to the device under test, and after receiving the twelfth 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 twelfth control instruction is set according to actual needs, and the embodiment of the present invention is not limited.
S1605, receiving a twelfth 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 twelfth test result; the twelfth 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 twelfth test result according to the test information, and reports the twelfth test result to the control device. And the control device receives the twelfth test result, determines whether the currently set antenna and the set frequency band pass the test or not according to the twelfth test result, performs subsequent tests if the currently set antenna and the set frequency band pass the test, and outputs prompt information of the tested device WIFI function test failure if the currently set antenna and the set frequency band do not pass the test. The twelfth test result comprises at least one third test parameter, and the third 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 twelfth test result includes at least one third test parameter, where the third test parameter is a wireless power, an error vector magnitude, or a negotiation rate; correspondingly, the determining whether the currently set antenna and the set frequency band pass the test according to the twelfth test result includes:
and if judging that each third test parameter included in the twelfth 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 twelfth test result may include one third test parameter, or may include two or more third test parameters, which are set according to actual needs, and the embodiment of the present invention is not limited. Wherein the third test parameter is wireless power, error vector magnitude or negotiation rate.
And each third test parameter has a corresponding test requirement, and if each third test parameter included in the twelfth test result meets the corresponding test requirement, prompt information that the currently set antenna and the set frequency band pass the test can be output. If any one of the third test parameters included in the twelfth test result does not meet the corresponding test requirement, a prompt message that the currently set antenna and the set frequency band cannot pass the test may be output.
On the basis of the foregoing embodiments, further, the eleventh test result includes at least one third test parameter, where the third test parameter is a wireless power, an error vector magnitude, or a negotiation rate; correspondingly, the determining whether the currently set antenna and the set frequency band pass the test according to the eleventh test result includes:
and if judging that each third test parameter included in the eleventh 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 eleventh test result may include one third test parameter, or may include two or more third test parameters, which are set according to actual needs, and the embodiment of the present invention is not limited. Wherein the third test parameter is wireless power, error vector magnitude or negotiation rate.
Each third test parameter has a corresponding test requirement, and if each third test parameter included in the eleventh test result meets the corresponding test requirement, prompt information that the currently set antenna and the set frequency band pass the test can be output. If any one of the third test parameters included in the eleventh test result does not meet the corresponding test requirement, a prompt message that the currently set antenna and the set frequency band cannot pass the test may be output.
Fig. 17 is a schematic physical structure diagram of an electronic device according to a seventeenth embodiment of the present invention, and as shown in fig. 17, the electronic device may include: a processor (processor)1701, a communication Interface (Communications Interface)1702, a memory (memory)1703 and a communication bus 1704, wherein the processor 1701, the communication Interface 1702 and the memory 1703 communicate with each other via the communication bus 1704. The processor 1701 may call logical instructions in the memory 1703 to perform the following method: testing the WIFI function of each frequency band of each antenna of the tested equipment to obtain a test 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, determining that the tested equipment passes the test.
In addition, the logic instructions in the memory 1703 may be implemented in software functional units and may be stored in a computer readable storage medium when sold or used as a stand-alone product. 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 to obtain a test 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, determining 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 to obtain a test 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, determining 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.

Claims (32)

1. A WIFI function testing method is characterized by comprising the following steps:
testing the WIFI function of each frequency band of each antenna of the tested equipment in an open airspace through a wireless testing device and a flow simulation 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.
2. The method according to claim 1, wherein the testing the WIFI function is performed on each frequency band of each antenna of the device under test, and obtaining the test result of each frequency band of each antenna comprises:
sending a first control instruction to a device under test so that the device under test operates in an access point mode and configures a unique corresponding service set identifier for the device under test;
sending a second control instruction to the wireless test device to enable the wireless test device to work in a station mode, and establishing WIFI connection with the tested device through a set frequency band of a set antenna;
receiving a first connection state reported by the wireless test device;
if the first connection state is successful, sending a third control instruction to a flow simulation device so that the flow simulation device sends a simulation message to the tested equipment and sends message simulation configuration information to the wireless test device;
receiving a first test result reported by the wireless test device, and determining whether the current 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 first forwarding information and the message simulation configuration information received from the tested device.
3. The method of claim 2, further comprising:
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.
4. The method of claim 2, further comprising:
sending a fourth control instruction to the wireless testing device to enable the wireless testing device to work in an access point mode and configure a unique corresponding service set identifier for the wireless testing device;
sending a fifth control instruction to the tested device so that the tested device works in a station mode, and establishing WIFI connection with the wireless testing device through the set frequency band of the set antenna;
receiving a second connection state returned by the wireless test device;
if the second connection state is successful, sending a sixth control instruction to a flow simulation device so that the flow simulation device sends a simulation message to the tested equipment and sends message simulation configuration information to the wireless test device;
receiving a second test result reported by the wireless test device, and determining whether the 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 first forwarding information and the message simulation configuration information received from the tested device.
5. The method of claim 4, further comprising:
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.
6. The method of claim 4, wherein the second test result comprises at least one first test parameter, and the first test parameter is wireless power, packet loss rate, packet average delay, 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 first 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.
7. The method according to any one of claims 2 to 6, wherein the first test result comprises at least one first test parameter, and the first test parameter is a wireless power, a packet loss rate, a packet average delay, an error vector magnitude, or a 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 first 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.
8. The method according to claim 1, wherein the testing the WIFI function is performed on each frequency band of each antenna of the device under test, and obtaining the test result of each frequency band of each antenna comprises:
sending a first control instruction to a device under test so that the device under test operates in an access point mode and configures a unique corresponding service set identifier for the device under test;
sending a second control instruction to the wireless test device to enable the wireless test device to work in a station mode, and establishing WIFI connection with the tested device through a set frequency band of a set antenna;
receiving a first connection state reported by the wireless test device;
if the first connection state is successful, sending a seventh control instruction to a flow simulation device so that the flow simulation device sends a simulation message to the tested equipment;
receiving a third test result reported by the flow simulation device and a fourth 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 third test result and the fourth test result; the third test result is obtained by the flow simulation device according to the second forwarding information and the simulation message received from the wireless test device, and the fourth test result is obtained by the wireless test device according to the first forwarding information received from the device under test.
9. The method of claim 8, further comprising:
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.
10. The method of claim 8, further comprising:
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;
sending a fifth control instruction to the tested device so that the tested device works in a station mode, and establishing WIFI connection with the wireless testing device through the set frequency band of the set antenna;
receiving a second connection state returned by the wireless test device;
if the second connection state is successful, sending an eighth control instruction to a flow simulation device so that the flow simulation device sends a simulation message to the tested equipment;
receiving a fifth test result reported by the flow simulation device and a sixth test result reported by the wireless test device, and determining whether the current set antenna and the set frequency band pass the test according to the fifth test result and the sixth test result; the fifth test result is obtained by the flow simulation device according to the second forwarding information and the simulation message received from the wireless test device, and the sixth test result is obtained by the wireless test device according to the first forwarding information received from the device under test.
11. The method of claim 10, further comprising:
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.
12. The method of claim 10, wherein the fifth test result comprises at least one second test parameter and the sixth test result comprises at least one third test parameter, the second test parameter is packet loss rate or packet average delay, and the third 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 fifth test result and the sixth test result includes:
and if judging that each second test parameter included in the fifth test result meets the corresponding test requirement and each third test parameter included in the sixth test result meets the corresponding test requirement, outputting prompt information that the current set antenna and the set frequency band pass the test.
13. The method according to any one of claims 8 to 12, wherein the third test result comprises at least one second test parameter and the fourth test result comprises at least one third test parameter, the second test parameter is packet loss rate or packet average delay, and the third test parameter is radio 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 third test result and the fourth test result includes:
and if judging that each second test parameter included in the third test result meets the corresponding test requirement and each third test parameter included in the fourth test result meets the corresponding test requirement, outputting prompt information that the current set antenna and the set frequency band pass the test.
14. The method according to claim 1, wherein the testing the WIFI function is performed on each frequency band of each antenna of the device under test, and obtaining the test result of each frequency band of each antenna comprises:
sending a first control instruction to a device under test so that the device under test operates in an access point mode and configures a unique corresponding service set identifier for the device under test;
sending a second control instruction to the wireless test device to enable the wireless test device to work in a station mode, and establishing WIFI connection with the tested device through a set frequency band of a set antenna;
receiving a first connection state reported by the wireless test device;
if the first connection state is successful, a ninth control instruction is sent to the flow simulation device so that the flow simulation device sends a simulation message to the wireless test device;
receiving a seventh test result reported by the flow simulation device and an eighth 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 seventh test result and the eighth test result; the seventh test result is obtained by the flow simulation device according to the third forwarding information and the simulation message received from the device under test, and the eighth test result is obtained by the wireless test device according to the fourth forwarding information sent to the device under test.
15. The method of claim 14, further comprising:
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.
16. The method of claim 14, further comprising:
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;
sending a fifth control instruction to the tested device so that the tested device works in a station mode, and establishing WIFI connection with the wireless testing device through the set frequency band of the set antenna;
receiving a second connection state returned by the wireless test device;
if the second connection state is successful, sending a tenth control instruction to a flow simulation device so that the flow simulation device sends a simulation message to the wireless test device;
receiving a ninth test result reported by the flow simulation device and a tenth 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 ninth test result and the tenth test result; the ninth test result is obtained by the flow simulation device according to the third forwarding information and the simulation message received from the device under test, and the tenth test result is obtained by the wireless test device according to the fourth forwarding information sent to the device under test.
17. The method of claim 16, further comprising:
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.
18. The method of claim 16, wherein the ninth test result comprises at least one second test parameter and the tenth test result comprises at least one third test parameter, the second test parameter is packet loss rate or packet average delay, and the third 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 ninth test result and the tenth test result includes:
and if judging that each second test parameter included in the ninth test result meets the corresponding test requirement and each third test parameter included in the tenth test result meets the corresponding test requirement, outputting prompt information that the current set antenna and the set frequency band pass the test.
19. The method according to any one of claims 14 to 18, wherein the seventh test result comprises at least one second test parameter and the eighth test result comprises at least one third test parameter, the second test parameter is packet loss rate or packet average delay, and the third test parameter is radio 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 seventh test result and the eighth test result includes:
and if judging that each second test parameter included in the seventh test result meets the corresponding test requirement and each third test parameter included in the eighth test result meets the corresponding test requirement, outputting prompt information that the current set antenna and the set frequency band pass the test.
20. The method according to claim 1, wherein the testing the WIFI function is performed on each frequency band of each antenna of the device under test, and obtaining the test result of each frequency band of each antenna comprises:
sending a first control instruction to a device under test so that the device under test operates in an access point mode and configures a unique corresponding service set identifier for the device under test;
sending a second control instruction to the wireless test device to enable the wireless test device to work in a station mode, and establishing WIFI connection with the tested device through a set frequency band of a set antenna;
receiving a first connection state reported by the wireless test device;
if the first connection state is successful, an eleventh control instruction is sent to the tested device so that the tested device sends test information to the wireless test device;
receiving an eleventh 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 eleventh test result; the eleventh test result is obtained by the wireless test device according to the test information.
21. The method of claim 20, further comprising:
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.
22. The method of claim 20, further comprising:
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;
sending a fifth control instruction to the tested device so that the tested device works in a station mode, and establishing WIFI connection with the wireless testing device through the set frequency band of the set antenna;
receiving a second connection state returned by the wireless test device;
if the second connection state is known to be successful, sending a twelfth control instruction to the tested device so that the tested device sends test information to the wireless test device;
receiving a twelfth 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 twelfth test result; the twelfth test result is obtained by the wireless test device according to the test information.
23. The method of claim 22, further comprising:
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.
24. The method of claim 22, wherein the twelfth test result comprises at least one third test parameter, and wherein the third test parameter is a radio power, an error vector magnitude, or a negotiated rate; correspondingly, the determining whether the currently set antenna and the set frequency band pass the test according to the twelfth test result includes:
and if judging that each third test parameter included in the twelfth test result meets the corresponding test requirement, outputting prompt information that the current set antenna and the set frequency band pass the test.
25. The method according to any of claims 20 to 24, wherein the eleventh test result comprises at least one third test parameter, the third test parameter being a radio power, an error vector magnitude or a negotiated rate; correspondingly, the determining whether the currently set antenna and the set frequency band pass the test according to the eleventh test result includes:
and if judging that each third test parameter included in the eleventh test result meets the corresponding test requirement, outputting prompt information that the current set antenna and the set frequency band pass the test.
26. A test system for a WIFI function that implements the test method for a WIFI function of any one of claims 1 to 25, comprising a control device, a wireless test device, a flow simulation device, and a device under test, wherein:
the control device is respectively in communication connection with the wireless testing device, the flow simulation device and the tested equipment, the flow simulation device is respectively in wired communication connection with the tested equipment and the wireless testing device, and the tested equipment is in wireless communication connection with the wireless testing device.
27. The system of claim 26, wherein the wireless test device comprises an antenna, a radio frequency transceiver, an analog-to-digital converter, a digital-to-analog converter, a WIFI baseband chip, and a microprocessor, wherein:
the radio frequency transceiver is respectively connected with the antenna, the analog-digital converter and the digital-analog converter, and the WIFI baseband chip is respectively connected with the analog-digital converter, the digital-analog converter and the microprocessor.
28. The system of claim 26, wherein the flow simulation device is implemented using a field programmable gate array.
29. The system of claim 26, wherein the control device is connected to the wireless testing device via a bus, a communication network, or a serial port, and the control device is connected to the flow simulation device via a bus, a communication network, or a serial port.
30. The system of any one of claims 26 to 29, wherein the control device is a server or an industrial personal computer.
31. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of any one of claims 1 to 25 are implemented when the computer program is executed by the processor.
32. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 25.
CN202110015820.8A 2021-01-07 2021-01-07 WIFI function test method and system and electronic equipment Active CN112333052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110015820.8A CN112333052B (en) 2021-01-07 2021-01-07 WIFI function test method and system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110015820.8A CN112333052B (en) 2021-01-07 2021-01-07 WIFI function test method and system and electronic equipment

Publications (2)

Publication Number Publication Date
CN112333052A true CN112333052A (en) 2021-02-05
CN112333052B CN112333052B (en) 2021-04-30

Family

ID=74302331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110015820.8A Active CN112333052B (en) 2021-01-07 2021-01-07 WIFI function test method and system and electronic equipment

Country Status (1)

Country Link
CN (1) CN112333052B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590401A (en) * 2021-07-30 2021-11-02 深圳通康创智技术有限公司 CPE equipment multifunctional test method, CPE equipment multifunctional test device, computer equipment and storage medium
CN114372436A (en) * 2022-01-07 2022-04-19 西安海云物联科技有限公司 Simulation design test method based on WiFi6 PA dynamic EVM
CN117615407A (en) * 2023-12-08 2024-02-27 广州通则康威科技股份有限公司 Automatic test method and device for WiFi performance and terminal equipment
CN118632262A (en) * 2024-08-14 2024-09-10 中国移动通信集团浙江有限公司湖州分公司 WiFi signal coverage automatic acceptance system and acceptance method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017074872A1 (en) * 2015-10-30 2017-05-04 Contec, Llc Universal testing system architecture
CN108174405A (en) * 2017-12-22 2018-06-15 歌尔科技有限公司 Product test method and apparatus
CN109525333A (en) * 2017-09-19 2019-03-26 韩鹰梅 The test method and test macro of antenna radiation performance
CN109683034A (en) * 2018-11-21 2019-04-26 深圳市万普拉斯科技有限公司 The test macro and test method of mobile terminal antenna performance
US20200145163A1 (en) * 2017-02-16 2020-05-07 Semiconductor Components Industries, Llc Wifi antenna selection with beamforming
CN111901819A (en) * 2020-08-04 2020-11-06 深圳市锐尔觅移动通信有限公司 Test method, system and computer storage medium
CN111917493A (en) * 2020-08-10 2020-11-10 展讯通信(上海)有限公司 Antenna testing method, device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017074872A1 (en) * 2015-10-30 2017-05-04 Contec, Llc Universal testing system architecture
US20200145163A1 (en) * 2017-02-16 2020-05-07 Semiconductor Components Industries, Llc Wifi antenna selection with beamforming
CN109525333A (en) * 2017-09-19 2019-03-26 韩鹰梅 The test method and test macro of antenna radiation performance
CN108174405A (en) * 2017-12-22 2018-06-15 歌尔科技有限公司 Product test method and apparatus
CN109683034A (en) * 2018-11-21 2019-04-26 深圳市万普拉斯科技有限公司 The test macro and test method of mobile terminal antenna performance
CN111901819A (en) * 2020-08-04 2020-11-06 深圳市锐尔觅移动通信有限公司 Test method, system and computer storage medium
CN111917493A (en) * 2020-08-10 2020-11-10 展讯通信(上海)有限公司 Antenna testing method, device and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590401A (en) * 2021-07-30 2021-11-02 深圳通康创智技术有限公司 CPE equipment multifunctional test method, CPE equipment multifunctional test device, computer equipment and storage medium
CN114372436A (en) * 2022-01-07 2022-04-19 西安海云物联科技有限公司 Simulation design test method based on WiFi6 PA dynamic EVM
CN114372436B (en) * 2022-01-07 2024-04-05 西安海云物联科技有限公司 Simulation design test method based on WiFi6 PA dynamic EVM
CN117615407A (en) * 2023-12-08 2024-02-27 广州通则康威科技股份有限公司 Automatic test method and device for WiFi performance and terminal equipment
CN118632262A (en) * 2024-08-14 2024-09-10 中国移动通信集团浙江有限公司湖州分公司 WiFi signal coverage automatic acceptance system and acceptance method

Also Published As

Publication number Publication date
CN112333052B (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN112333052B (en) WIFI function test method and system and electronic equipment
CN112351448A (en) WIFI function test method and system and electronic equipment
CN110505714B (en) Multi-link communication method, equipment and terminal
CN114788365B (en) Apparatus and method for service subscription via E2 interface in radio access network communication system
KR20180052607A (en) Channel measurement and measurement result reporting method and apparatus
WO2020164564A1 (en) Configuration method for minimization of drive-tests and base station
CN105337893A (en) Electronic device, center node device, network side device, transmission method and configuration method
JP3787555B2 (en) Communication method and access point device in network
US10631215B2 (en) Method and apparatus for communicating with a wireless local area network in a mobile communication system
EP4142423A1 (en) Information transmission method, terminal and network device
CN112929894B (en) Method and network device for beam measurement
US20230362596A1 (en) Communication method and apparatus
KR102398782B1 (en) Frequency measurement method, measurement interval configuration method, terminal device, first network device and second network device
US20240333609A1 (en) Apparatus and method for measuring and monitoring network slice path quality in a wireless communication system
KR20240035877A (en) Network optimization methods and communication devices
US11962468B2 (en) Wireless backhaul network, communication method and apparatus
CN105208657A (en) Data transmission method, equipment and system
CN107211471B (en) Measurement reporting method of Wireless Local Area Network (WLAN) and related equipment
CN110557847B (en) Communication method, device and storage medium
EP4203587A1 (en) Communication method and apparatus
CN113141672A (en) Link configuration method, device, system and storage medium in multi-link system
CN103152777B (en) Communicator and frequency band switching method
US20220191098A1 (en) Wireless communication method and terminal device
CN115276894A (en) Indication method, device and system for non-simultaneous receiving and transmitting capacity
Nitzold et al. An LTE-WiFi Interworking Platform with Real-Time PHY Layer Interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant