CN111212387A - Test method and system for wireless equipment, electronic equipment and test device - Google Patents

Test method and system for wireless equipment, electronic equipment and test device Download PDF

Info

Publication number
CN111212387A
CN111212387A CN202010180953.6A CN202010180953A CN111212387A CN 111212387 A CN111212387 A CN 111212387A CN 202010180953 A CN202010180953 A CN 202010180953A CN 111212387 A CN111212387 A CN 111212387A
Authority
CN
China
Prior art keywords
test
wireless device
wireless
wireless devices
sending
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.)
Pending
Application number
CN202010180953.6A
Other languages
Chinese (zh)
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.)
Nawa Electronics Shanghai Co ltd
Original Assignee
Nawa Electronics Shanghai 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 Nawa Electronics Shanghai Co ltd filed Critical Nawa Electronics Shanghai Co ltd
Priority to CN202010180953.6A priority Critical patent/CN111212387A/en
Publication of CN111212387A publication Critical patent/CN111212387A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a test method, a test system, electronic equipment and a test device for wireless equipment, wherein the test system comprises: the communication module is used for communicating with the wireless devices through a multicast technology and distributing different IP addresses to the wireless devices; the test instruction sending module is used for sending a test instruction to each wireless device so that each wireless device can respectively test and feed back a test result; and the test result receiving module is used for receiving the test results fed back by the wireless equipment. The test system can test the states of a plurality of wireless devices simultaneously, and has no problems of IP conflict and the like, so that the production efficiency is improved, the test time of mass production is shortened, and the cost is reduced.

Description

Test method and system for wireless equipment, electronic equipment and test device
Technical Field
The invention relates to the field of wireless equipment testing, in particular to a testing method, a testing system, electronic equipment and a testing device for wireless equipment.
Background
Wireless devices, such as network devices like routers, mobile hotspot devices, switches, etc., are commonly used to provide wireless networks, such as 2.4GWiFi networks or hotspots, etc. In order to ensure the yield of the wireless device, provide good user experience, test the wireless device, and upgrade the system in the test process is generally indispensable. Generally, the test contents for testing the wireless device include, but are not limited to, network communication quality of the wireless device, such as WIFI hotspot quality, and the like, peripheral port functions, such as USB, SD card, synchronization button, reset (reset) button, or internet access, and the like.
However, in the existing testing method, because of the IP collision problem, one testing system, such as a PC, can only access and test one wireless device at the same time, but cannot test multiple wireless devices at the same time, therefore, the time consumed by the steps of starting, testing, upgrading, restarting after upgrading, and the like of one wireless device in the testing process is about 5 minutes, that is, the time for testing one wireless device on average is about 5 minutes, so that the testing time cost is too large and the production efficiency is low in the factory large-scale batch production testing process.
In addition, in the current market, since network communication is mostly performed between the test system and the wireless device through technologies such as a TCP protocol or a UDP protocol, if one test system is to access and test multiple wireless devices simultaneously, one test system needs to establish multiple port (socket) nodes to perform network communication with the corresponding wireless devices, which is not beneficial to code implementation and maintenance.
Disclosure of Invention
One advantage of the present invention is to provide a method, a system, an electronic device and a testing apparatus for testing wireless devices, which can simultaneously test the states of multiple wireless devices without IP collision, thereby improving production efficiency, shortening testing time for mass production and reducing cost.
Another advantage of the present invention is to provide a testing method, a testing system, an electronic device, and a testing apparatus for wireless devices, which can implement network communication with multiple wireless devices respectively by only establishing a port (socket) node to complete testing, and is beneficial to code implementation and maintenance.
Another advantage of the present invention is to provide a testing method, system, electronic device and testing apparatus for wireless devices, which can allocate different IP addresses to a plurality of wireless devices to avoid IP collision problem.
Another advantage of the present invention is to provide a method, a system, an electronic device and a testing apparatus for testing a wireless device, which can complete testing of the wireless device by sending 6 messages at most, and is simple, easy to implement and efficient.
Another advantage of the present invention is to provide a testing method, a testing system, an electronic device and a testing apparatus for wireless devices, which are simple, easy to implement, and highly practical, and are favorable for improving production efficiency.
According to one aspect of the present invention, there is further provided a test system for a wireless device, comprising:
the communication module is used for communicating with the wireless devices through a multicast technology and distributing different IP addresses to the wireless devices;
the test instruction sending module is used for sending a test instruction to each wireless device so that each wireless device can respectively test and feed back a test result; and
and the test result receiving module is used for receiving the test results fed back by the wireless equipment.
In some embodiments, wherein the communication module comprises:
the wireless device comprises a test signal sending module, a state information feedback module and a state information feedback module, wherein the test signal sending module is used for sending a test signal to each wireless device, and each wireless device respectively responds to the test signal and feeds back the state information of the wireless device;
a status information receiving module, configured to receive status information of each wireless device, where the status information includes a MAC address of the wireless device; and
and the IP allocation module is used for allocating different IP addresses to the wireless devices respectively based on the MAC addresses of the wireless devices.
In some embodiments, wherein the IP assignment module comprises:
and respectively sending a plurality of data packets respectively containing IP addresses matched with the MAC addresses of the wireless equipment to the wireless equipment, wherein the wireless equipment analyzes each data packet, and when the wireless equipment analyzes that the wireless equipment contains the MAC address of the wireless equipment from one data packet, the wireless equipment feeds back the data packets, otherwise, the wireless equipment loses the data packets.
In some embodiments, the test system further comprises a test determination module:
the wireless device is used for responding to the test result lower than the preset threshold value and sending a test failure signal to the corresponding wireless device, wherein the wireless device responds to the test failure signal and sends a corresponding prompt signal; and
and the wireless device is used for responding to the test result and sending an upgrading instruction to the corresponding wireless device, wherein the wireless device responds to the upgrading instruction and carries out system upgrading.
In some embodiments, the test system further comprises an upgrade determination module:
the wireless device is used for receiving the upgraded state information and judging whether the wireless device is upgraded successfully or not, if the wireless device is upgraded successfully, sending an upgrade success signal to the corresponding wireless device, wherein the wireless device responds to the upgrade success signal and sends a corresponding prompt signal, and if the wireless device is upgraded unsuccessfully, sending an upgrade failure signal to the corresponding wireless device, wherein the wireless device responds to the upgrade failure signal and sends a corresponding prompt signal.
In some embodiments, the number of wireless devices that the test system simultaneously accesses and tests is no greater than 128.
In some embodiments, the number of wireless devices that the test system simultaneously accesses and tests is no greater than 30.
In some embodiments, the test system sends a maximum of 6 messages to the wireless device during the test.
In some embodiments, the test system is a test system for testing the wireless device for providing a 2.4GWiFi network.
In some embodiments, the communication module establishes a port node to communicate with a plurality of the wireless devices.
According to another aspect of the present invention, the present invention further provides an electronic device, comprising:
a processor; and
a memory having stored therein computer program instructions that, when executed by the processor, cause the processor to perform a test method for a wireless device, wherein the test method comprises:
communicating with a plurality of wireless devices by a multicast technology, and distributing different IP addresses for the wireless devices;
sending a test instruction to each wireless device to allow each wireless device to test and feed back a test result; and
and receiving the test result fed back by each wireless device.
According to another aspect of the present invention, there is provided a test apparatus adapted to test a plurality of wireless devices, comprising:
an electronic device; and
a test device, wherein the electronic device is communicatively coupled to the test device, wherein the electronic device is accessible to a plurality of the wireless devices and performs testing, wherein the electronic device comprises a processor and a memory, wherein computer program instructions are stored in the memory, which computer program instructions, when executed by the processor, cause the processor to perform a test method for a wireless device, wherein the test method comprises:
communicating with a plurality of wireless devices by a multicast technology, and distributing different IP addresses for the wireless devices;
sending a test instruction to each wireless device, wherein the test device tests each wireless device and feeds back a test result; and
and receiving the test result fed back by each wireless device.
In some embodiments, the test device tests peripheral port functionality or network communication quality of the wireless device.
Further objects and advantages of the invention will be fully apparent from the ensuing description and drawings.
These and other objects, features and advantages of the present invention will become more fully apparent from the following detailed description, the accompanying drawings and the claims.
Drawings
FIG. 1 is a block diagram schematic diagram of a test system for wireless devices in accordance with a preferred embodiment of the present invention.
Fig. 2 is a block diagram schematically illustrating a communication module of the test system according to the above preferred embodiment of the present invention.
Fig. 3 is a schematic diagram of a method for unsatisfactory test result of the test system according to the above preferred embodiment of the present invention.
Fig. 4 is a schematic flow chart of the test result conformity and system upgrade of the test system according to the above preferred embodiment of the present invention.
Fig. 5 is a schematic diagram of data transmission of the test system in communication with a plurality of wireless devices according to the above preferred embodiment of the present invention.
Fig. 6 is a method diagram of a test method for a wireless device according to the above preferred embodiment of the present invention.
Fig. 7 is a schematic diagram of a method for allocating an IP address according to the above-described test method of the preferred embodiment of the present invention.
Fig. 8 is a block diagram schematic of the electronic device of the above preferred embodiment of the present invention.
Fig. 9 is a block diagram schematically illustrating the testing apparatus according to the above preferred embodiment of the present invention.
Detailed Description
The following description is presented to disclose the invention so as to enable any person skilled in the art to practice the invention. The preferred embodiments in the following description are given by way of example only, and other obvious variations will occur to those skilled in the art. The basic principles of the invention, as defined in the following description, may be applied to other embodiments, variations, modifications, equivalents, and other technical solutions without departing from the spirit and scope of the invention.
It is understood that the terms "a" and "an" should be interpreted as meaning that a number of one element or element is one in one embodiment, while a number of other elements is one in another embodiment, and the terms "a" and "an" should not be interpreted as limiting the number.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean 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 are not necessarily intended to 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. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Exemplary test System
Fig. 1 is a block diagram schematically illustrating a test system for wireless devices according to the preferred embodiment, the test system being configured to access and test multiple wireless devices simultaneously, and as shown in fig. 1, the test system includes:
a communication module 10, configured to communicate with a plurality of wireless devices through a multicast technology, and allocate different IP addresses to the wireless devices;
a test instruction sending module 20, configured to send a test instruction to each wireless device, so that each wireless device performs a test and feeds back a test result; and
the test result receiving module 30 is configured to receive the test result fed back by each wireless device.
That is to say, the test system in the invention realizes simultaneous communication with a plurality of wireless devices through multicast technology, and allocates different IP addresses for each wireless device, thereby avoiding the problem of IP conflict, mutual noninterference, realizing a one-to-many test mode, thereby improving production efficiency, shortening test time of mass production, and reducing cost.
In other words, the test system can realize the simultaneous test of a plurality of wireless devices in different states, and due to the adoption of the multicast technology, the test system can realize the data communication with the plurality of wireless devices by only establishing a port (scoket) node, thereby being beneficial to code realization, maintenance and the like.
Preferably, the test system of the present invention may implement the test on the wireless device through a PC, that is, the test system may be the PC, that is, the PC may access and test a plurality of wireless devices simultaneously. The PC can simultaneously carry out data communication with a plurality of wireless devices by only establishing one port node, and the problem of IP conflict does not exist. More preferably, the test system may be a system capable of communicating by multicast technology, which has a network card capable of communicating by multicast technology, wherein the test system is a win system, such as win7, win8, win9 and win 10.
In a specific example of the present application, the part of code of the test system that communicates with a plurality of wireless devices through multicast technology implements the following example:
# define MCSTADDR "233.0.0.1"// the multicast group address used in this example.
# define MCASPORT 5150// bound local port number.
1. Creating UDP socket node
pCwindow->m_sock=WSASocket(AF_INET,SOCK_DGRAM,0,NULL,0,
WSA_FLAG_MULTIPOINT_C_LEAF|
WSA_FLAG_MULTIPOINT_D_LEAF|
WSA_FLAG_OVERLAPPED)
2. Binding to native ports
bind(pCwindow->m_sock,(struct sockaddr*)&local,sizeof(local))
3. Joining multicast
pCwindow->m_sockM=WSAJoinLeaf(pCwindow->m_sock,
(SOCKADDR*)&pCwindow->m_remote,
sizeof(pCwindow->m_remote),
NULL,NULL,NULL,NULL,JL_BOTH)
It is worth mentioning that the test system can theoretically access an unlimited number of the wireless devices to perform the test simultaneously through the multicast technology. In order to avoid the information amount redundancy at the system end, the test system in this embodiment preferably accesses and tests the wireless devices simultaneously by no more than 128 devices. Further, the test system can access and test the wireless devices simultaneously by no more than 30 devices, so as to facilitate the convenience of manual operation and reduce the occupied space.
In other words, when the test system accesses and tests 128 wireless devices simultaneously, 128 wireless devices can perform the steps of starting, testing, upgrading, restarting after upgrading, and the like independently during the test process, i.e., the test time consumed by each test device is reduced to about 3 seconds at least on average, which is significantly lower than the 5 minutes consumed by a conventional test system for testing one wireless device on average. Or, when the test system accesses and tests 30 wireless devices simultaneously, the 30 wireless devices can respectively and independently perform the steps of starting, testing, upgrading, restarting after upgrading and the like in the test process, that is, the test time consumed by each test device is reduced to about 1 minute and 30 seconds at least on average, the test time of mass production is shortened, and the cost is saved.
Further, as shown in fig. 2, the communication module 10 of the test system includes:
a test signal sending module 11, configured to send a test signal to each wireless device, where each wireless device responds to the test signal and feeds back its own state information;
a status information receiving module 12, configured to receive status information of each wireless device, where the status information includes a MAC address of the wireless device; and
and an IP allocating module 13, configured to allocate different IP addresses to the wireless devices based on the MAC addresses of the wireless devices.
Further, the test signal sending module 11 sends the test signal at regular time, that is, sends the test signal to all the wireless devices at a preset time interval. Preferably, the preset time is set to 5 seconds, i.e., the test signal is transmitted every 5 seconds.
In this embodiment, all the accessed wireless devices can receive the test signal, and then each wireless device feeds back its own status information. In a specific example, the status information of the wireless device includes a MAC address, a device type, a model, a status, a test flag, a system version, and the like.
Accordingly, the status information receiving module 12 receives the status information fed back by each wireless device, where the MAC addresses of the wireless devices are different. In other words, the MAC address of the wireless device is an identification for identifying the wireless device.
Therefore, the IP allocation module 13 allocates different IP addresses to the wireless devices according to the MAC addresses of the wireless devices, that is, the MAC addresses of the wireless devices are matched with the IP addresses, so that the IP addresses of the wireless devices are different from each other, thereby avoiding the problem of IP collision and realizing one-to-many network communication and testing.
Further, the IP allocation module 13 includes:
and respectively sending a plurality of data packets respectively containing IP addresses matched with the MAC addresses of the wireless equipment to the wireless equipment, wherein the wireless equipment analyzes each data packet, and when the wireless equipment analyzes the data packet from one of the data packets to contain the MAC address of the wireless equipment, the wireless equipment feeds back the data packet, otherwise, the wireless equipment loses the data packet.
That is to say, each of the data packets includes MAC addresses of a plurality of the wireless devices and IP addresses corresponding to the MAC addresses of the wireless devices, all the wireless devices can receive and analyze the data packet, and when the data packet includes their own MAC addresses, the current data packet is processed and information feedback is performed, that is, the successful allocation of the IP addresses of the wireless devices is indicated, and subsequent testing steps can be performed. If the MAC address of the data packet cannot be analyzed from the current data packet, the current data packet is lost, namely the current data packet is invalid, and the next data packet is continuously analyzed.
In a specific example, the feedback information fed back by the wireless device includes a MAC address, an IP address, a device type, and a status. That is, the wireless device performing feedback is the wireless device that can perform the subsequent testing procedure, and the wireless device not performing feedback cannot perform the subsequent testing procedure.
The test instruction sending module 20 sends the test instruction to each wireless device based on the feedback information of the wireless device, so that the wireless device starts to perform a test. It will be appreciated that the test instructions include MAC addresses of a plurality of the wireless devices that have been assigned IP addresses. That is, the wireless device assigned an IP address may begin testing.
For example, the wireless device may be a router, a mobile hotspot device, a switch, or other network device that is generally used to provide a wireless network, such as a 2.4GWiFi network or hotspot, or the like.
It should be noted that the test system may assist in completing the test of the wireless device by means of a test device (or an auxiliary test device), where the test content includes, but is not limited to, network communication quality of the wireless device, such as WIFI hotspot quality, and the like, peripheral port performance, such as USB, SD card, synchronization button, reset (reset) button, or internet access, and the like.
In one particular example, the testing of the wireless device is performed in a relatively clean environment, such as a signal-shielded room. The test device for assisting in completing the test of the wireless device may be an AP device or an accessory device with a detection module, where the test device may be configured to test network communication quality of the wireless device, such as wireless network quality, signal quality of multiple antennas, number of successful packets sent by multiple antennas, or test peripheral port function of the wireless device.
After the wireless devices are tested, the test result receiving module 30 receives the test results fed back by the wireless devices. In a specific example, the test result includes a MAC address, a status, a functional test result, a first antenna signal quality, a second antenna signal quality, a number of successful packets transmitted by the first antenna, a number of successful packets transmitted by the second antenna, and the like of the wireless device.
Further, the testing system includes a testing and determining module 40:
the wireless device is used for responding to the test result smaller than a preset threshold value and sending a test failure signal to the corresponding wireless device, wherein the wireless device responds to the test failure signal and sends a corresponding prompt signal; and
and the wireless device is used for responding to the test result and sending an upgrading instruction to the corresponding wireless device, wherein the wireless device responds to the upgrading instruction and carries out system upgrading.
In other words, as shown in fig. 3, when the test result of the wireless device does not meet the requirement or is not qualified, the test failure signal is sent to the corresponding wireless device, and the corresponding wireless device sends a corresponding prompt signal, such as a light prompt, such as a red light, a light flicker, a vibration, a screen display, and the like, to prompt a worker that the current test of the wireless device fails.
Further, for example, when the quality of the first or second antenna in the test result is lower than a preset threshold, the test determining module 40 determines that the current wireless device is not satisfactory. Or when the number of the first or second antenna packets in the test result is lower than a preset threshold, determining that the current wireless device is not in accordance with the requirement.
Correspondingly, the test failure signal includes MAC addresses of a plurality of wireless devices whose test results do not meet the requirements, that is, the wireless device whose test result fails resolves its own MAC address included in the test failure signal, and sends a corresponding prompt signal.
Correspondingly, when the test result of the wireless device meets the requirement or is qualified, or the test result passes, the test judgment module 40 sends an upgrade instruction to the corresponding wireless device, so that the corresponding wireless device performs system upgrade. That is, the wireless device whose test result meets the requirement can be subjected to system upgrade, and the wireless device whose test result does not meet the requirement cannot be subjected to system upgrade.
For example, when the quality of the first or second antenna in the test result is higher than a preset threshold, the test determining module 40 determines that the current wireless device meets the requirement. Or when the number of the first or second antenna packets in the test result is higher than a preset threshold, determining that the current wireless device meets the requirement.
Further, the upgrade instructions include MAC addresses of a plurality of the wireless devices that pass the test. In other words, the upgrade instructions include MAC addresses of a plurality of the wireless devices that may be upgraded. The wireless device which can be upgraded analyzes the MAC address of the wireless device which can be upgraded and is contained in the upgrading instruction, and carries out system upgrading.
It should be noted that the wireless device performs system upgrade by acquiring a system upgrade package. Optionally, the wireless device may obtain the system upgrade package from a cloud, a PC server, or an upgrade device through a network, such as the internet or a local area network, so as to perform system upgrade, that is, the system upgrade package may be stored in an upgrade server system, or the system upgrade package is stored in a readable storage medium, such as a usb disk or an optical drive, and the wireless device performs system upgrade by reading the system upgrade package in the readable storage medium, and the like, which is not limited herein.
In a specific example, the wireless device may include a network monitoring module, an upgrade package obtaining module, a logic module, and an upgrade module, wherein the wireless device is in communication connection with a PC server through a network, when the wireless device receives the upgrade instruction, the network monitoring module of the wireless device is configured to monitor whether the upgrade server system is ping-connected, i.e., test whether a current portal is communicated, and the network monitoring module, such as Uboot, is configured to monitor whether the wireless device enters the upgrade server system storing the system upgrade package, so as to subsequently obtain the system upgrade package stored in the upgrade server system. The upgrade package obtaining module is used for obtaining the system upgrade package according to partition information, the logic module is used for checking the system upgrade package, and the upgrade module carries out system upgrade according to the system upgrade.
Further, as shown in fig. 4, the test system includes an upgrade determination module 50:
the wireless device upgrading system is used for receiving the state information of the wireless device after upgrading and judging whether the wireless device is upgraded successfully; if the upgrade is successful, sending an upgrade success signal to the corresponding wireless equipment, wherein the wireless equipment responds to the upgrade success signal and sends a corresponding prompt signal, and if the upgrade is failed, sending an upgrade failure signal to the corresponding wireless equipment, wherein the wireless equipment responds to the upgrade failure signal and sends a corresponding prompt signal.
That is, after the wireless device performs system upgrade, the wireless device feeds back the upgraded state information. In a specific example, the upgraded state information includes a MAC address, a device type, system version information, and the like of the upgraded wireless device. Optionally, the upgraded state information includes an updated MAC address, device type, model, state, test flag, system version, and the like of the wireless device.
And the test system judges whether the wireless equipment is successfully upgraded according to the upgraded state information fed back by the wireless equipment. For example, when the system version information in the updated state information is a preset update version, it is determined that the current wireless device is successfully updated, otherwise, the update fails.
The successful upgrading signal comprises MAC addresses of a plurality of wireless devices which are successfully upgraded, wherein each wireless device receives and analyzes that the successful upgrading signal contains the MAC address of the wireless device, and sends out corresponding prompting signals such as light prompts such as green light or long light, light flicker, vibration or screen display and the like so as to prompt a worker that the wireless device is successfully upgraded at present, and after the test is finished, the next wireless device can be switched in and tested. Optionally, the wireless device that is successfully upgraded, i.e., has completed the test, may further perform information feedback to end the test, where the feedback information includes the MAC address of the wireless device.
Correspondingly, the upgrade failure signal comprises a plurality of MAC addresses of the wireless equipment which fails to be upgraded, wherein each wireless equipment sends out corresponding prompt signals such as light prompts such as red light or light off, light flashing, vibration or screen display and the like by receiving and analyzing the MAC address of the wireless equipment which fails to be upgraded so as to prompt the staff that the wireless equipment fails to be upgraded currently. Optionally, the wireless device that fails in the upgrade may further perform information feedback to end the test, where the fed-back information includes the MAC address of the wireless device.
In a specific example of the preferred embodiment, as shown in fig. 5, the test system accesses and tests two wireless devices, which are a first wireless device and a second wireless device, simultaneously, and the specific test process includes:
the test system communicates with the first wireless device and the second wireless device independently through a multicast technique.
The test system sends the test signal to all the wireless devices;
the first wireless device and the second wireless device both receive the test signal and respectively feed back state information of the first wireless device and the second wireless device, wherein the first wireless device feeds back first state information, the first state information comprises an MAC address, a device type, a model, a state, a test mark, a system version and the like of the first wireless device, the second wireless device feeds back second state information, and the second state information comprises the MAC address, the device type, the model, the state, the test mark, the system version and the like of the second wireless device.
Based on the status information of each of the wireless devices, the test system transmits a plurality of packets each containing an IP address matching the MAC address of the wireless device to all of the wireless devices. That is, the IP address packet includes a first IP address packet containing the MAC address of the first wireless device and a first IP address corresponding to the MAC address thereof and a second IP address packet containing the MAC address of the second wireless device and a second IP address corresponding to the MAC address thereof.
And the first wireless equipment analyzes the MAC address of the first wireless equipment contained in the first IP address data packet and feeds back information, wherein the fed back information comprises the MAC address, the first IP address, the equipment type and the state of the first wireless equipment. And the second wireless equipment analyzes the MAC address of the second wireless equipment contained in the second IP address data packet and feeds back information, wherein the fed back information comprises the MAC address, the second IP address, the equipment type and the state of the second wireless equipment.
And the test system sends the test instruction to all the wireless devices, wherein the test instruction comprises the MAC addresses of the wireless devices with the allocated IP addresses so as to inform the corresponding wireless devices to start testing.
And after receiving the test instruction, the first wireless device and the second wireless device start testing and feed back test results, wherein the test results comprise the MAC address, the state, the function test result, the first antenna signal quality, the second antenna signal quality, the successful packet sending number of the first antenna, the successful packet sending number of the second antenna and the like of the wireless device. The first wireless device and the second wireless device may both assist in completing testing through a testing device.
The test system receives the test result fed back by the first wireless device and the test result fed back by the second wireless device respectively, wherein the test result of the first wireless device meets the requirement, the test system sends an upgrade instruction to the first wireless device, and the upgrade instruction comprises the MAC address of the first wireless device. And the test result of the second wireless equipment does not meet the requirement, and the test system sends test failure information to the second wireless equipment, wherein the test failure information comprises the MAC address of the second wireless equipment.
And the second wireless equipment sends out a prompt signal of test identification, such as a red light, by analyzing the MAC address contained in the test failure information so as to prompt a worker that the second wireless equipment fails to test.
And the first wireless equipment carries out system upgrade by analyzing the MAC address contained in the upgrade instruction and feeds back the upgraded state information. The upgraded state information includes the upgraded MAC address, device type, model, state, test flag, system version, and the like of the first wireless device. The first wireless device may obtain the system upgrade package from a cloud, a PC server, or an upgrade device through a network, such as the internet or a local area network, to perform system upgrade, or the system upgrade package is stored in a readable storage medium, such as a usb disk or an optical drive, and the wireless device performs system upgrade by reading the system upgrade package in the readable storage medium.
The test system receives the updated state information and judges whether the first wireless equipment is successfully updated or not, if the first wireless equipment is successfully updated, an update success signal is sent to the first wireless equipment, and if the first wireless equipment is unsuccessfully updated, an update failure signal is sent to the first wireless equipment. The upgrade success signal comprises the MAC address of the first wireless device after the upgrade is successful, and the first wireless device sends an upgrade success prompt signal such as a long bright prompt signal by analyzing the MAC address of the first wireless device contained in the upgrade success signal so as to prompt a worker that the first wireless device is successfully upgraded, so that the next wireless device can be conveniently replaced for access and testing. The upgrade failure information comprises the MAC address of the first wireless equipment which fails to be upgraded, and the first wireless equipment sends an upgrade failure prompt signal by analyzing the MAC address contained in the upgrade failure signal, such as turning off a lamp, so as to prompt a worker that the first wireless equipment fails to be upgraded.
In a specific example, part of the code defined by the message of the test system is implemented as follows:
the partial code of the test signal is implemented as follows: # define GETINFO// message content: all connected wireless devices can receive
The partial code of the IP address data packet is implemented as follows: # define INIT// message content: MAC address + ip of a plurality of wireless devices contains information of all the wireless devices which are on-line
Part of the code of the test instruction is implemented as follows: # define STARTTEST// message content: MAC addresses of a plurality of said wireless devices, containing information of all said wireless devices that can start testing
Part of the code of the upgrade instruction is implemented as follows: # define UPGRADE// message content: MAC addresses of a plurality of said wireless devices containing information of all said wireless devices that can be upgraded by passing test
Part of codes of the upgrade failure signal are implemented as follows: # define TESTFAIL// message content: MAC addresses of a plurality of said wireless devices, including information of all said wireless devices that failed the test
Part of codes of the upgrade success signal are implemented as follows: # define UPGRADEOK// message content: MAC addresses of a plurality of the wireless devices, including information of all the wireless devices successfully upgraded
In a specific example, part of the code defined by the message fed back to the test system by the wireless device is implemented as follows:
part of the code of the state information fed back according to the test signal is implemented as follows: # defieGETIINFO _ RSP// message content: MAC address + device type + state + test flag + system version of the wireless device
The partial code of the feedback information fed back according to the IP address data packet is implemented as follows: # defieinit _ RSP// message content: MAC address + IP address + device type + status of the wireless device
The partial code of the test result fed back according to the test instruction is implemented as follows: # define RTTEST _ RSP// message content: the MAC address of the wireless device + the state + the function test result + the signal quality of the first antenna + the signal quality of the second antenna + the successful packet transmission number of the first antenna + the successful packet transmission number of the second antenna
The partial code of the upgraded state information fed back according to the upgrade instruction is implemented as follows: # define UPGRADE _ RSP// message content: MAC address of the wireless device
The partial code of the information fed back according to the upgrade failure instruction is implemented as follows: # define TESTFAIL _ RSP// message content: MAC address of the wireless device
The partial code of the information fed back according to the upgrade success instruction is implemented as follows: # define UPGRADEOK _ RSP// message content: MAC address of the wireless device
Therefore, in the whole test process, the test system sends 6 messages to the wireless equipment at most, and the method is simple and is beneficial to code implementation and maintenance. It should be noted that the code implementation of the test system may also be implemented in other customized code forms, and is not limited herein.
Exemplary test methods
Fig. 6 is a schematic diagram of the testing method of the present preferred embodiment, where the testing method is used to access and test multiple wireless devices simultaneously, and as shown in fig. 6, the testing method includes:
s10, communicating with the wireless devices by multicast technology, and distributing different IP addresses to the wireless devices;
s20, sending a test instruction to each wireless device for each wireless device to test and feed back a test result; and
and S30, receiving the test result fed back by each wireless device.
Further, as shown in fig. 7, the step S10 includes:
s11, sending a test signal to each wireless device, wherein each wireless device responds to the test signal and feeds back the state information of the wireless device;
s12, receiving the state information of each wireless device, wherein the state information comprises the MAC address of the wireless device; and
s13, assigning different IP addresses to the wireless devices based on the MAC addresses of the wireless devices.
Further, the step S13 includes: and respectively sending a plurality of data packets respectively containing IP addresses matched with the MAC addresses of the wireless equipment to the wireless equipment, wherein the wireless equipment analyzes each data packet, and when the wireless equipment analyzes that the wireless equipment contains the MAC address of the wireless equipment from one data packet, the wireless equipment feeds back the data packets, otherwise, the wireless equipment loses the data packets.
In a specific example, the testing method further includes:
s40, responding to the test result lower than the preset threshold value, sending a test failure signal to the corresponding wireless equipment, wherein the wireless equipment responds to the test failure signal and sends a corresponding prompt signal; and
and S50, responding to the test result that the test result is larger than the preset threshold value, sending an upgrade instruction to the corresponding wireless equipment, wherein the wireless equipment responds to the upgrade instruction and carries out system upgrade.
In a specific example, the testing method further includes: s60, receiving the upgraded status information, and determining whether the wireless device is upgraded successfully, if the upgrade is successful, sending an upgrade success signal to the corresponding wireless device, where the wireless device responds to the upgrade success signal and sends a corresponding prompt signal, and if the upgrade is failed, sending an upgrade failure signal to the corresponding wireless device, where the wireless device responds to the upgrade failure signal and sends a corresponding prompt signal.
In a specific example, the testing method accesses and tests the number of wireless devices simultaneously is no greater than 128. Further, the testing method accesses and tests the number of the wireless devices at the same time, which is not more than 30.
In a specific example, the test method sends a maximum of 6 messages to the wireless device during the test.
Exemplary electronic device
Fig. 8 is a block diagram schematically illustrating an electronic device 100 according to the preferred embodiment, and as shown in fig. 8, the electronic device includes:
a processor 101; and
a memory 102 in which is stored computer program instructions that, when executed by the processor 101, cause the processor 101 to perform the test method for the wireless device, wherein the test method comprises:
communicating with a plurality of wireless devices by a multicast technology, and distributing different IP addresses for the wireless devices;
sending a test instruction to each wireless device to allow each wireless device to test and feed back a test result; and
and receiving the test result fed back by each wireless device.
The processor 101 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
The memory 102 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium and executed by the processor 101 to implement the methods of the various embodiments of the invention described above and/or other desired functions.
In one example, the electronic device may further include: an input device and an output device, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
For example, the input device may be, for example, a camera module or the like for capturing image data or video data.
The output device can output various information including classification results and the like to the outside. The output devices may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, among others.
Of course, for the sake of simplicity, only some of the components of the electronic device relevant to the present invention are shown, and components such as buses, input/output interfaces, and the like are omitted. In addition, the electronic device may include any other suitable components, depending on the particular application.
Exemplary test device
Fig. 9 is a block diagram schematically illustrating the testing apparatus according to the preferred embodiment. The testing device is suitable for testing a plurality of wireless devices. As shown in fig. 9, the test apparatus includes:
an electronic device 100; and
a test device 200, wherein the electronic device 100 is communicatively coupled to the test device 200, wherein the electronic device 100 is accessible to a plurality of the wireless devices and performs a test, wherein the electronic device 100 comprises a processor 101 and a memory 102, wherein the memory 102 has stored therein computer program instructions that, when executed by the processor 101, cause the processor to perform a test method for a wireless device, wherein the test method comprises:
communicating with a plurality of wireless devices by a multicast technology, and distributing different IP addresses for the wireless devices;
sending a test instruction to each wireless device, wherein the test device 200 tests each wireless device and feeds back a test result; and
and receiving the test result fed back by each wireless device.
In a specific example, the test device 200 tests peripheral port functionality or network communication quality of the wireless device. Optionally, the test device 200 is configured to assist in completing the test of the wireless device, where the test content of the test device 200 on the wireless device includes, but is not limited to, network communication quality of the wireless device, such as WIFI hotspot quality, and the like, peripheral port performance, such as USB, SD card, synchronization button, reset (reset) button, or internet access, and the like. During testing, the wireless device is placed in a relatively clean environment, such as a signal-shielded room, to prevent signal interference. The test device 200 may be an AP device or an auxiliary device with a detection module, and the like, where the test device 200 may be configured to test network communication quality of the wireless device, such as wireless network quality, signal quality of multiple antennas, number of successful packets sent by multiple antennas, or test peripheral port function or performance of the wireless device.
It will be appreciated by persons skilled in the art that the embodiments of the invention described above and shown in the drawings are given by way of example only and are not limiting of the invention. The objects of the invention have been fully and effectively accomplished. The functional and structural principles of the present invention have been shown and described in the examples, and any variations or modifications of the embodiments of the present invention may be made without departing from the principles.

Claims (10)

1. A test system adapted to test a plurality of wireless devices, comprising:
the communication module is used for communicating with the wireless devices through a multicast technology and distributing different IP addresses to the wireless devices;
the test instruction sending module is used for sending a test instruction to each wireless device so that each wireless device can respectively test and feed back a test result; and
and the test result receiving module is used for receiving the test results fed back by the wireless equipment.
2. The test system of claim 1, wherein the communication module comprises:
the wireless device comprises a test signal sending module, a state information feedback module and a state information feedback module, wherein the test signal sending module is used for sending a test signal to each wireless device, and each wireless device respectively responds to the test signal and feeds back the state information of the wireless device;
a status information receiving module, configured to receive status information of each wireless device, where the status information includes a MAC address of the wireless device; and
and the IP allocation module is used for allocating different IP addresses to the wireless devices respectively based on the MAC addresses of the wireless devices.
3. The test system of claim 2, the test signal being sent periodically.
4. The test system of claim 2, wherein the IP assignment module comprises:
and respectively sending a plurality of data packets respectively containing IP addresses matched with the MAC addresses of the wireless equipment to the wireless equipment, wherein the wireless equipment analyzes each data packet, and when the wireless equipment analyzes that the wireless equipment contains the MAC address of the wireless equipment from one data packet, the wireless equipment feeds back the data packets, otherwise, the wireless equipment loses the data packets.
5. The test system of any of claims 1 to 4, further comprising a test judgment module:
the wireless device is used for responding to the test result lower than the preset threshold value and sending a test failure signal to the corresponding wireless device, wherein the wireless device responds to the test failure signal and sends a corresponding prompt signal; and
and the wireless device is used for responding to the test result and sending an upgrading instruction to the corresponding wireless device, wherein the wireless device responds to the upgrading instruction and carries out system upgrading.
6. The test system of claim 5, further comprising an upgrade determination module:
the wireless device is used for receiving the upgraded state information and judging whether the wireless device is upgraded successfully or not, if the wireless device is upgraded successfully, sending an upgrade success signal to the corresponding wireless device, wherein the wireless device responds to the upgrade success signal and sends a corresponding prompt signal, and if the wireless device is upgraded unsuccessfully, sending an upgrade failure signal to the corresponding wireless device, wherein the wireless device responds to the upgrade failure signal and sends a corresponding prompt signal.
7. The test system of claim 1, wherein the number of wireless devices that are simultaneously accessed and tested by the test system is no greater than 128.
8. The test system of claim 7, wherein the test system simultaneously accesses and tests the number of wireless devices to be no greater than 30, wherein the test system is a test system that tests the wireless devices for providing a 2.4GWIFi network, wherein the communication module of the test system establishes a port node to communicate with a plurality of the wireless devices.
9. An electronic device, comprising:
a processor; and
a memory having stored therein computer program instructions that, when executed by the processor, cause the processor to perform a test method for a wireless device, wherein the test method comprises:
communicating with a plurality of wireless devices by a multicast technology, and distributing different IP addresses for the wireless devices;
sending a test instruction to each wireless device to allow each wireless device to test and feed back a test result; and
and receiving the test result fed back by each wireless device.
10. A test apparatus adapted to test a plurality of wireless devices, comprising:
an electronic device; and
a test device, wherein the electronic device is communicatively coupled to the test device, wherein the electronic device is accessible to a plurality of the wireless devices and performs testing, wherein the electronic device comprises a processor and a memory, wherein computer program instructions are stored in the memory, which computer program instructions, when executed by the processor, cause the processor to perform a test method for a wireless device, wherein the test method comprises:
communicating with a plurality of wireless devices by a multicast technology, and distributing different IP addresses for the wireless devices;
sending a test instruction to each wireless device, wherein the test device tests each wireless device and feeds back a test result; and
and receiving the test result fed back by each wireless device.
CN202010180953.6A 2020-03-16 2020-03-16 Test method and system for wireless equipment, electronic equipment and test device Pending CN111212387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010180953.6A CN111212387A (en) 2020-03-16 2020-03-16 Test method and system for wireless equipment, electronic equipment and test device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010180953.6A CN111212387A (en) 2020-03-16 2020-03-16 Test method and system for wireless equipment, electronic equipment and test device

Publications (1)

Publication Number Publication Date
CN111212387A true CN111212387A (en) 2020-05-29

Family

ID=70785937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010180953.6A Pending CN111212387A (en) 2020-03-16 2020-03-16 Test method and system for wireless equipment, electronic equipment and test device

Country Status (1)

Country Link
CN (1) CN111212387A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112055316A (en) * 2020-07-28 2020-12-08 四川虹美智能科技有限公司 Production detection system and method of intelligent module and electronic equipment
CN112671482A (en) * 2020-12-17 2021-04-16 上海东软载波微电子有限公司 Wireless module testing method and device
CN113778769A (en) * 2021-08-30 2021-12-10 深圳市拔超科技有限公司 Production testing device
CN114584934A (en) * 2022-03-14 2022-06-03 联想(北京)有限公司 Communication processing method, device, system and storage medium
CN115357067A (en) * 2022-08-26 2022-11-18 上海磐启微电子有限公司 Full-automatic batch test system for high and low temperature performance of wireless image transmission product

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010037128A1 (en) * 2008-09-29 2010-04-01 Kabushiki Kaisha Toshiba Pre-evaluation of multiple network access points
CN101783708A (en) * 2010-01-21 2010-07-21 哈尔滨工业大学 Wireless parallel test system and test method based on ZigBee
CN103002481A (en) * 2012-12-14 2013-03-27 福建省邮电工程有限公司 Wireless fidelity (WIFI) network optimization based on complex environment
CN103902414A (en) * 2012-12-25 2014-07-02 鸿富锦精密工业(深圳)有限公司 Network type test system and method
CN106488468A (en) * 2016-10-14 2017-03-08 深圳Tcl新技术有限公司 WiFi performance test methods and system
CN108174405A (en) * 2017-12-22 2018-06-15 歌尔科技有限公司 Product test method and apparatus
CN109743347A (en) * 2018-11-23 2019-05-10 北京千方科技股份有限公司 A kind of reader automated testing method and system
CN110430541A (en) * 2019-08-09 2019-11-08 四川虹美智能科技有限公司 Production detection method, the apparatus and system of data interaction are realized based on local area network

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010037128A1 (en) * 2008-09-29 2010-04-01 Kabushiki Kaisha Toshiba Pre-evaluation of multiple network access points
CN101783708A (en) * 2010-01-21 2010-07-21 哈尔滨工业大学 Wireless parallel test system and test method based on ZigBee
CN103002481A (en) * 2012-12-14 2013-03-27 福建省邮电工程有限公司 Wireless fidelity (WIFI) network optimization based on complex environment
CN103902414A (en) * 2012-12-25 2014-07-02 鸿富锦精密工业(深圳)有限公司 Network type test system and method
CN106488468A (en) * 2016-10-14 2017-03-08 深圳Tcl新技术有限公司 WiFi performance test methods and system
CN108174405A (en) * 2017-12-22 2018-06-15 歌尔科技有限公司 Product test method and apparatus
CN109743347A (en) * 2018-11-23 2019-05-10 北京千方科技股份有限公司 A kind of reader automated testing method and system
CN110430541A (en) * 2019-08-09 2019-11-08 四川虹美智能科技有限公司 Production detection method, the apparatus and system of data interaction are realized based on local area network

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112055316A (en) * 2020-07-28 2020-12-08 四川虹美智能科技有限公司 Production detection system and method of intelligent module and electronic equipment
CN112055316B (en) * 2020-07-28 2022-03-29 四川虹美智能科技有限公司 Production detection system and method of intelligent module and electronic equipment
CN112671482A (en) * 2020-12-17 2021-04-16 上海东软载波微电子有限公司 Wireless module testing method and device
CN113778769A (en) * 2021-08-30 2021-12-10 深圳市拔超科技有限公司 Production testing device
CN114584934A (en) * 2022-03-14 2022-06-03 联想(北京)有限公司 Communication processing method, device, system and storage medium
CN114584934B (en) * 2022-03-14 2023-01-06 联想(北京)有限公司 Communication processing method, device, system and storage medium
CN115357067A (en) * 2022-08-26 2022-11-18 上海磐启微电子有限公司 Full-automatic batch test system for high and low temperature performance of wireless image transmission product
CN115357067B (en) * 2022-08-26 2024-05-03 上海磐启微电子有限公司 Full-automatic batch test system for high-low temperature performance of wireless image transmission product

Similar Documents

Publication Publication Date Title
CN111212387A (en) Test method and system for wireless equipment, electronic equipment and test device
US7720057B2 (en) Packet relay apparatus and control method for data relay apparatus
CN109617731A (en) Adaptive gateway role configuration method and device under a kind of multi-gateway environment
US7937494B2 (en) Methods and apparatus for processing a DHCP request using rule-based classification
US8149800B2 (en) Communication method, control station, and communication apparatus
US20150146572A1 (en) Communication apparatus provided with network interfaces, control method therefor, and storage medium storing control program therefor
CN111641997B (en) Equipment network access method and device based on Bluetooth Mesh network, and storage medium
CN110049010B (en) Method and system for connecting distributed platform terminal equipment with server
US20120201245A1 (en) Network communication apparatus, network communication method, and program
CN110708400B (en) Network address allocation method, device, node equipment and storage medium
CN105188047A (en) Wifi wireless roaming Internet access method and mobile terminal
CN111447302B (en) Method and system for simulating multi-client to test DHCP (dynamic host configuration protocol) by using raw socket
CN111200519B (en) Data processing method and device, BBU, access network equipment and storage medium
CN107528788B (en) Method and device for realizing automatic stacking between network devices
CN109743347B (en) Automatic test method and system for reader-writer
CN110753363A (en) Intelligent device wireless debugging system and method
WO2012155571A1 (en) Base station self-configuration method and device
WO2006016740A2 (en) Method for transceiving data in coordinator-based wireless network and wireless network device employing the same
CN115174528A (en) Equipment address control method, device and system
CN112533304A (en) Ad hoc network management method, device, system, electronic device and storage medium
CN114125883A (en) Network access method and device of intelligent device, electronic device and storage medium
EP1111861A1 (en) Methods and devices providing wireless access to computer networks
CN115051973B (en) Method and device for establishing equipment internal communication
CN115002076B (en) Sensor IP address configuration method, device, vehicle and storage medium
CN112422639B (en) FM-RDS instruction forwarding control method, mobile terminal, bridge equipment and system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200529

RJ01 Rejection of invention patent application after publication