CN113824612B - Network equipment compatibility testing method, terminal equipment and storage medium - Google Patents

Network equipment compatibility testing method, terminal equipment and storage medium Download PDF

Info

Publication number
CN113824612B
CN113824612B CN202111109777.8A CN202111109777A CN113824612B CN 113824612 B CN113824612 B CN 113824612B CN 202111109777 A CN202111109777 A CN 202111109777A CN 113824612 B CN113824612 B CN 113824612B
Authority
CN
China
Prior art keywords
equipment
tested
accompanying
command
test
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.)
Active
Application number
CN202111109777.8A
Other languages
Chinese (zh)
Other versions
CN113824612A (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.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital 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 Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN202111109777.8A priority Critical patent/CN113824612B/en
Publication of CN113824612A publication Critical patent/CN113824612A/en
Application granted granted Critical
Publication of CN113824612B publication Critical patent/CN113824612B/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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Abstract

The invention discloses a network equipment compatibility testing method, which is used for terminal equipment, wherein the terminal equipment is connected with accompanying equipment and equipment to be tested in an easy mesh network, and the method comprises the following steps: based on the received test instruction, acquiring a selected configuration command in a preset configuration command set; if the equipment to be tested is the control end, sending the selected configuration command to the equipment to be tested so that the equipment to be tested can be configured by using the selected configuration command and control the accompanying equipment to be configured synchronously; acquiring first synchronization information of the equipment to be tested and a first interaction message of the equipment to be tested and the equipment to be tested; and obtaining a first compatibility test result based on the first synchronization information and the first interaction message. The invention discloses a terminal device and a computer-readable storage medium. By using the method of the invention, technicians do not need to manually test, and the test time of the compatibility test of the equipment to be tested is greatly reduced, thereby improving the test efficiency.

Description

Network equipment compatibility testing method, terminal equipment and storage medium
Technical Field
The present invention relates to the field of network testing, and in particular, to a method for testing compatibility of network devices, a terminal device, and a computer-readable storage medium.
Background
With the continuous development of wifi technology, the era of rapid network development has been entered, and the requirements of people on the network are higher and higher, and a new wifi technology-easy mesh is derived. After a plurality of network devices (such as routers) are networked through easy mesh, the method has wider coverage capability and meets the requirement of people on large-area network coverage.
The existing network devices are various, and compatibility tests need to be performed on different network devices (network devices supporting easy mesh) to determine whether the different network devices can be communicated with each other.
At present, technicians manually utilize different network devices to establish networking and test the network devices among the networking to obtain test results.
However, when a test is performed by using a conventional test method, the test efficiency is extremely low.
Disclosure of Invention
The invention mainly aims to provide a network equipment compatibility testing method, terminal equipment and a computer readable storage medium, and aims to solve the technical problem that the testing efficiency is extremely low when the existing testing method is used for testing in the prior art.
In order to achieve the above object, the present invention provides a network device compatibility testing method, which is used for a terminal device, where the terminal device is connected to an accessory device in an easymesh networking and a device to be tested in the easymesh networking, and the method includes:
based on the received test instruction, acquiring a selected configuration command in a preset configuration command set;
if the equipment to be tested is a control end, sending the selected configuration command to the equipment to be tested so that the equipment to be tested can be configured by using the selected configuration command and control the accompanying equipment to be configured synchronously;
acquiring first synchronization information of the equipment to be tested, and acquiring a first interaction message of the equipment to be tested and the equipment to be tested;
and obtaining a first compatibility test result of the equipment to be tested based on the first synchronization information and the first interaction message.
Optionally, after the step of obtaining the selected configuration command in the preset configuration command set based on the received test instruction, the method further includes:
if the equipment to be tested is the agent terminal, the selected configuration command is sent to the accompanying equipment, so that the accompanying equipment can be configured by using the selected configuration command and can be controlled to carry out configuration synchronization on the equipment to be tested;
acquiring second synchronous information of the equipment to be tested, and acquiring a second interactive message of the equipment to be tested and the accompanying equipment;
and obtaining a second compatibility test result of the equipment to be tested based on the second synchronous information and the second interactive message.
Optionally, the preset accompanying device and the terminal device in the easymesh networking are both connected with a switch controller; before the step of obtaining the selected configuration command in the preset configuration command set based on the received test instruction, the method further includes:
determining the accompanying equipment in the preset accompanying equipment based on the received preset test requirement;
and controlling the equipment to be tested and the accompanying equipment to be connected with a power supply by using the switch controller.
Optionally, before the step of determining the slave device in the preset slave device based on the received preset test requirement, the method further includes:
initializing preset accompanying equipment to obtain the initialized preset accompanying equipment;
and initializing the equipment to be tested to obtain the initialized equipment to be tested.
Optionally, after the step of obtaining the first compatibility test result of the device to be tested based on the first synchronization information and the first interaction packet, the method includes:
when the first compatibility test result is that the test of the equipment to be tested fails, returning to execute the step of sending the selected configuration command to the equipment to be tested until the first compatibility test result is that the test is successful or the cycle number reaches a preset number, and obtaining a third compatibility test result;
and storing the third compatibility test result and outputting the third compatibility test result.
In the alternative,
the commands in the preset configuration command set are serial port commands, telnet commands or Web page control commands.
Alternatively to this, the first and second parts may,
the selected configuration command comprises a wifi configuration changing command, an easy mesh topology discovering command, an Ap capability query command, a Client capability query command, an Ap Link Metric query command, a Beacon Metric query command, an Associated STA Link Metric query command, an unossociated STA Link Metric query command, a WPS onbroadcasting configuration command, an association command or a disassociation command.
Optionally, the terminal device, the accompanying device and the device to be tested are all arranged in a shielding room, and the shielding room is used for shielding external electromagnetic interference.
In addition, to achieve the above object, the present invention further provides a terminal device, where the terminal device includes: the network device compatibility testing system comprises a memory, a processor and a network device compatibility testing program which is stored in the memory and runs on the processor, wherein the network device compatibility testing program realizes the steps of the network device compatibility testing method according to any item when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, on which a network device compatibility test program is stored, where the network device compatibility test program, when executed by a processor, implements the steps of the network device compatibility test method according to any one of the above items.
The technical scheme of the invention provides a network equipment compatibility testing method, which is used for terminal equipment, wherein the terminal equipment is connected with accompanying equipment in an easymesh networking and equipment to be tested in the easymesh networking, and the method comprises the following steps: based on the received test instruction, acquiring a selected configuration command in a preset configuration command set; if the equipment to be tested is a control end, sending the selected configuration command to the equipment to be tested so that the equipment to be tested can be configured by using the selected configuration command and control the accompanying equipment to be configured synchronously; acquiring first synchronization information of the accompanying equipment, and acquiring a first interactive message of the equipment to be tested and the accompanying equipment; and obtaining a first compatibility test result of the equipment to be tested based on the first synchronization information and the first interaction message.
In the existing testing method, technicians manually utilize different network devices to establish networking, and the technicians manually perform compatibility testing on the network devices among the networking to obtain testing results, so that the manual testing duration of the technicians is long, and the testing efficiency is extremely low. In the method, the terminal equipment automatically obtains the first compatibility test result of the equipment to be tested based on the first synchronization information of the accompanying equipment and the first interaction message of the equipment to be tested and the accompanying equipment, and a technician does not need to manually test, so that the test time of the compatibility test of the equipment to be tested is greatly reduced, and the test efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the embodiments or technical solutions of 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 structures shown in the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a terminal device in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a first embodiment of a method for testing compatibility of network devices according to the present invention;
FIG. 3 is a topology diagram of device connections in the networking of the present invention;
FIG. 4 is a diagram illustrating a test report corresponding to a compatibility test result according to the present invention;
fig. 5 is a block diagram of a first embodiment of a network device compatibility testing apparatus according to the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a terminal device in a hardware operating environment according to an embodiment of the present invention.
In general, a terminal device includes: at least one processor 301, a memory 302, and a network device compatibility test program stored on the memory and executable on the processor, the network device compatibility test program configured to implement the steps of the network device compatibility test method as previously described.
The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in a wake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. The processor 301 may further include an AI (Artificial Intelligence) processor for processing operations related to the network device compatibility test method, so that the network device compatibility test method model may be trained and learned autonomously, thereby improving efficiency and accuracy.
Memory 302 may include one or more computer-readable storage media, which may be non-transitory. Memory 302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 302 is used to store at least one command for execution by processor 301 to implement the network device compatibility testing methods provided by the method embodiments herein.
In some embodiments, the terminal may further include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected by buses or signal lines. Various peripheral devices may be connected to communication interface 303 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 304, a display screen 305, and a power source 306.
The communication interface 303 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 301 and the memory 302. In some embodiments, processor 301, memory 302, and communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302 and the communication interface 303 may be implemented on a single chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 304 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 304 communicates with a communication network and other communication devices via electromagnetic signals. The rf circuit 304 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. Radio frequency circuitry 304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 304 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 305 is a touch display screen, the display screen 305 also has the ability to capture touch signals on or above the surface of the display screen 305. The touch signal may be input to the processor 301 as a control signal for processing. At this point, the display screen 305 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 305 may be a front panel of the electronic device; in other embodiments, the display screens 305 may be at least two, respectively disposed on different surfaces of the electronic device or in a folded design; in still other embodiments, the display screen 305 may be a flexible display screen disposed on a curved surface or a folded surface of the electronic device. Even further, the display screen 305 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 305 may be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The power supply 306 is used to power various components in the electronic device. The power source 306 may be alternating current, direct current, disposable or rechargeable. When the power source 306 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery can also be used to support fast charge technology. Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a network device compatibility test program is stored on the computer-readable storage medium, and when the network device compatibility test program is executed by a processor, the steps of the network device compatibility test method described above are implemented. Therefore, a detailed description thereof will be omitted. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application. It is determined as an example that the program command may be deployed to be executed on one terminal device or on a plurality of terminal devices located at one site, or on a plurality of terminal devices distributed at a plurality of sites and interconnected by a communication network.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The computer-readable storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
Based on the hardware structure, the embodiment of the network equipment compatibility testing method is provided.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of a network device compatibility testing method according to the present invention, where the method is used for a terminal device, and the method includes the following steps:
step S11: based on the received test instruction, a selected configuration command is obtained in a preset configuration command set.
It should be noted that the execution main body of the present invention is a terminal device, the terminal device is installed with a network device compatibility test program, and when the terminal device executes the network device compatibility test program, the steps of the network device compatibility test method of the present invention are implemented.
Referring to fig. 3, fig. 3 is a topology diagram of device connection in networking of the present invention. Generally, the terminal device is connected with a companion device in an easymesh networking and a device to be tested in the easymesh networking. In the easy mesh networking, a plurality of accompanying devices and one device to be tested are usually included, and the network device compatibility testing party of the invention is mainly used for testing the device to be tested, so that the plurality of accompanying devices need to have good compatibility, namely the plurality of accompanying devices are subjected to compatibility testing, and the testing result of the compatibility testing is that the plurality of accompanying devices are all qualified. The device under test and the device under test can be network devices supporting easy mesh networking, such as a wireless router or a wireless gateway supporting easy mesh.
The terminal device can be connected with a plurality of accompanying devices and devices to be tested through a switch, the accompanying devices and the devices to be tested are connected with other accompanying terminals (wireless devices or wired devices can be used, such as computers, personal computers or smart phones and the like, and in the figure 3, the accompanying terminals are all wireless devices) respectively, and one accompanying terminal is connected with one accompanying device or one device to be tested.
Wherein, terminal equipment can be through the switch to wired connection's mode is connected with accompanying equipment and the equipment that awaits measuring respectively, in order to guarantee that terminal equipment can with accompany equipment and the stable communication of equipment that awaits measuring. The slave device and the device to be tested are respectively connected with the corresponding wireless devices, so that when the selected configuration command comprises an association command or a disassociation command, association operation or disassociation operation of the wireless devices is achieved.
In specific application, the terminal equipment, the accompanying equipment and the equipment to be tested are all arranged in a shielding room, and the shielding room is used for shielding external electromagnetic interference. When the steps of the network equipment compatibility test method are executed, each equipment is not interfered by external electromagnetic waves, complete synchronous information (including first synchronous information and second synchronous information) and interactive messages (including first interactive messages and second interactive messages) can be captured, and the success rate of the obtained compatibility test results (including first compatibility test results and second compatibility test results) is high.
In addition, the test instruction may be sent by the user based on a requirement, and the test instruction may include a specific test item, and the selected configuration command obtained from the preset configuration command set is used to test the test item, that is, based on the test item in the test instruction, the selected configuration command is determined in the preset configuration command set. The command in the preset configuration command set can be a serial port command, a Telnet command or a Web page control command; specifically, the commands in the preset configuration command set may include a wifi configuration change command, an easyMesh topology discovery command, an Ap capability query command, a Client capability query command, an Ap Link Metric query command, a Beacon Metric query command, an Associated STA Link Metric query command, an unoscicated STA Link Metric query command, a WPS onboarrding configuration command, an association command, or a disassociation command. That is, one or more of the commands in the preset configuration command set may be selected for testing, or all of the commands in the preset configuration command set may be used as test commands.
Based on the test instruction, the selected configuration command determined in the preset configuration command set may include one or more of a wifi configuration change command, an easyMesh topology discovery command, an Ap capability query command, a Client capability query command, an Ap Link Metric query command, a Beacon Metric query command, an Associated STA Link Metric query command, an unossociated STA Link Metric query command, a WPS onkeying configuration command, an association command, or a disassociation command.
Further, preset accompanying equipment, the terminal equipment and the equipment to be tested in the easy mesh networking are connected with a switch controller; before the step of obtaining the selected configuration command in the preset configuration command set based on the received test instruction, the method further includes: determining the accompanying equipment in the preset accompanying equipment based on the received preset test requirement; and controlling the equipment to be tested and the accompanying equipment to be connected with a power supply by using the switch controller. The preset test requirements can be various types of test requirements sent by a user, and the preset test requirements can include specific composition information of networking, for example, the number of the pieces of accompanying equipment required in networking, the equipment information of the pieces of accompanying equipment required in networking, and the like.
It should be noted that, in the present invention, the accessory device is a part or all of the preset accessory device, the device to be tested, and the terminal device are all connected to the switch controller, and the switch controller is used for performing on-off control of the power supply for the accessory device and the device to be tested. Usually, more accompanying devices are arranged in an easy mesh networking, that is, the preset accompanying devices, one of which is connected with one of the accompanying terminals (refer to fig. 3, the accompanying terminal is a wireless terminal); under different test requirements, different numbers of the accompanying devices are required, and the corresponding numbers of the accompanying devices are determined based on the preset test requirements, wherein the corresponding numbers of the accompanying devices are the accompanying devices for executing the steps S11 to S14 of the invention. Generally, the number of the accompanying devices at a time is not less than 2, that is, the total number of the accompanying devices and the devices under test is not less than 3.
It can be understood that the switch controller controls the connection between the accessory device and the device to be tested and the power supply, so that the accessory device and the device to be tested can normally obtain the power supply to perform the steps of the network device compatibility testing method of the present invention. For other preset accompanying equipment in the accompanying equipment, the other preset accompanying equipment is not used in the test process, and the terminal equipment controls the other preset accompanying equipment to be disconnected with the power supply through the switch controller.
In the specific application, when the number of the accompanying equipment is multiple, the network equipment compatibility test method is executed for multiple times of cycle execution, only one accompanying equipment is required to be controlled to be connected with a power supply each time, then the network equipment compatibility test method is executed once to obtain a compatibility test result corresponding to the accompanying equipment, then the next accompanying equipment is connected with the power supply, the steps are repeated until the multiple accompanying equipment obtain the corresponding compatibility test results, and the compatibility test results corresponding to the multiple accompanying equipment are integrated to obtain a final compatibility test result.
Further, before the step of determining the accompanied device in the preset accompanied device based on the received preset test requirement, the method further includes: initializing a preset accompanying device to obtain the initialized preset accompanying device; and initializing the equipment to be tested to obtain the initialized equipment to be tested.
It should be noted that, in order to avoid that residual data information (configuration information and the like in a previous test process) in preset accompanying equipment has a bad influence on the test process, the accompanying equipment needs to be initialized (which may be factory setting restoration or reset operation and the like); similarly, the device to be tested may also be a tested device, so that the device to be tested also needs to be initialized; after the device to be tested and the accompanying device are initialized, the step of determining the accompanying device in the preset accompanying device based on the received preset test requirement can be continuously executed.
In the embodiment, the device to be tested and the accompanying device are initialized, so that the testing process is not interfered by residual information, and the accuracy of the final compatibility testing result (including the first compatibility testing result and the second compatibility testing result) is higher.
Step S12: and if the equipment to be tested is a control end, sending the selected configuration command to the equipment to be tested so that the equipment to be tested is configured by using the selected configuration command and controls the accompanying equipment to perform configuration synchronization.
Step S13: and acquiring first synchronization information of the accompanying equipment, and acquiring a first interactive message of the equipment to be tested and the accompanying equipment.
Step S14: and obtaining a first compatibility test result of the equipment to be tested based on the first synchronization information and the first interaction message.
Meanwhile, if the equipment to be tested is an agent terminal, the selected configuration command is sent to the accompanying equipment, so that the accompanying equipment can be configured by using the selected configuration command and can be controlled to be synchronously configured; acquiring second synchronous information of the equipment to be tested, and acquiring a second interactive message of the equipment to be tested and the accompanying equipment; and obtaining a second compatibility test result of the equipment to be tested based on the second synchronous information and the second interactive message.
It should be noted that the device under test may be a proxy (Agent) or a Controller (Controller) in the easymesh networking. When the roles (the roles are the agent side or the control side) of the devices to be tested are different, the corresponding test processes may be different.
Namely, when the device to be tested is a control terminal, based on the selected configuration command, the device to be tested serving as the control terminal synchronously configures the slave device serving as the agent terminal, obtains synchronous information (namely the first synchronous information) generated by the slave device in the synchronous configuration process, and obtains an interactive message between the device to be tested and the slave device, wherein the interactive message is the first interactive message; when the device to be tested is the agent terminal, based on the selected configuration command, the slave device serving as the control terminal performs synchronous configuration on the device to be tested serving as the agent terminal, obtains synchronous information (namely, the second synchronous information) generated by the device to be tested in the synchronous configuration process, and obtains an interactive message between the device to be tested and the slave device, wherein the interactive message is the second interactive message.
Specifically, before the control end performs synchronous configuration on the agent end, the terminal device starts a packet capturing function, so that when the control end performs synchronous configuration on the agent end, the interactive messages (including the first interactive messages and the second interactive messages) and the synchronous information (including the first synchronous information and the second synchronous information) are captured in real time until the configuration process is finished, and all the interactive messages and all the synchronous information in the configuration process are obtained.
Generally, before the control end performs synchronous configuration on the agent end, the terminal device starts a packet capturing function, then the terminal device controls the device to be tested and the accompanying device to perform networking based on a networking instruction sent by a user so as to obtain the easy mesh networking, and then the step S12 is continuously performed.
It can be understood that, for the case that the number of the accompanied equipment devices is multiple, the equipment to be tested needs to perform configuration synchronization on the accompanied equipment devices, and obtain multiple first interaction messages and multiple first synchronization information corresponding to the accompanied equipment devices, so as to synthesize the multiple first interaction messages and the multiple first synchronization information to obtain a first compatibility test result; similarly, for the condition that the number of the accompanied equipment is multiple, the accompanied equipment needs to be configured and synchronized with the equipment to be tested respectively, and obtain multiple second interaction messages and multiple second synchronization information corresponding to the accompanied equipment, so as to synthesize the multiple second interaction messages and the multiple second synchronization information, and obtain a second compatibility test result. One piece of accompanying equipment corresponds to one interactive message (a first interactive message or a second interactive message) and one piece of synchronous information (first synchronous information or second synchronous information).
Specifically, the interactive messages (including the first interactive message and the second interactive message) and the synchronization information (including the first synchronization information and the second synchronization information) may be captured, filtered, and analyzed by using tools such as Wireshark or omnipek, so as to obtain the corresponding compatibility test result. A test report is then generated based on the final compatibility test result.
Further, after the step of obtaining the first compatibility test result of the device under test based on the first synchronization information and the first interaction packet, the method includes: when the first compatibility test result is that the test of the equipment to be tested fails, returning to execute the step of sending the selected configuration command to the equipment to be tested until the first compatibility test result is that the test is successful or the cycle number reaches a preset number, and obtaining a third compatibility test result; and storing the third compatibility test result and outputting the third compatibility test result.
It should be noted that when the first compatibility test result indicates that the device under test fails to be tested, it indicates that the device under test is incompatible with the accompanying device and other devices in the easymesh networking, and the device under test is not qualified; at this time, it may be that the devices are connected in a wireless manner, and at the same time, the data exchange process is complex, so that the obtained first interaction message is incomplete and accurate enough, and the first interaction message and the first synchronization information need to be captured for multiple times until the first compatibility test result indicates that the device to be tested is successfully tested (indicating that the device to be tested is compatible with the accompanying device and other devices in the easy mesh network and the device to be tested is qualified), or the capture frequency reaches a preset frequency (which may be 3 times in the present invention, and a user sets a corresponding preset frequency based on a requirement, which is not limited by the present invention), and capture of the first interaction message and the first synchronization information is stopped, and at this time, the obtained first compatibility test result is the third compatibility test result.
If the first compatibility test result obtained in a certain cycle is successful in testing the equipment to be tested within the preset times, the third compatibility test result is successful in testing the equipment to be tested, and if the first compatibility test result obtained in the preset times is failed in testing the equipment to be tested, the third compatibility test result is failed in testing the equipment to be tested.
In addition, in the present invention, the compatibility test result (including the first compatibility test result, the second compatibility test result, and the third compatibility test result) may include specific test result information, that is, also include the key information of the synchronization information and the interactive packet, in addition to the test success of the device to be tested or the test failure of the device to be tested.
In addition, after the compatibility test result (including the first compatibility test result, the second compatibility test result, or the third compatibility test result) is obtained, the compatibility test result may be stored, so that the stored compatibility test result may be directly utilized in a subsequent other test process. Meanwhile, the compatibility test result can be directly output, so that a user can visually check the compatibility test result.
Further, a test report may be generated using the compatibility test result. The test report may be in the form of a table, and the test report may include specific data information in the compatibility test result. Meanwhile, when the test report is obtained, the test report can be output.
Referring to fig. 4, fig. 4 is a schematic diagram of a test report corresponding to a compatibility test result of the present invention. The compatibility test result may be a first compatibility test result, a second compatibility test result, or a third compatibility test result.
It should be noted that, in other embodiments, the wireless device connected to the accessory device and/or the device under test may also be installed with the network device compatibility test program of the present invention, which is used as an "execution subject" to execute the steps of the network device compatibility test method of the present invention.
The technical scheme of the invention provides a network equipment compatibility testing method, which is used for terminal equipment, wherein the terminal equipment is connected with accompanying equipment in an easymesh networking and equipment to be tested in the easymesh networking, and the method comprises the following steps: based on the received test instruction, acquiring a selected configuration command in a preset configuration command set; if the equipment to be tested is a control end, sending the selected configuration command to the equipment to be tested so that the equipment to be tested can be configured by using the selected configuration command and control the accompanying equipment to be configured synchronously; acquiring first synchronization information of the equipment to be tested, and acquiring a first interaction message of the equipment to be tested and the equipment to be tested; and obtaining a first compatibility test result of the equipment to be tested based on the first synchronization information and the first interaction message.
In the existing testing method, technicians manually utilize different network devices to establish networking, and the technicians manually perform compatibility testing on the network devices among the networking to obtain testing results, so that the manual testing duration of the technicians is long, and the testing efficiency is extremely low. In the method, the terminal equipment automatically obtains the first compatibility test result of the equipment to be tested based on the first synchronization information of the accompanying equipment and the first interaction message of the equipment to be tested and the accompanying equipment, and a technician does not need to manually test, so that the test time of the compatibility test of the equipment to be tested is greatly reduced, and the test efficiency is improved.
Referring to fig. 5, fig. 5 is a block diagram of a first embodiment of a network device compatibility testing apparatus according to the present invention, where the apparatus is used for a terminal device, and based on the same inventive concept as the foregoing embodiment, the apparatus includes:
the receiving module 10 is configured to obtain a selected configuration command in a preset configuration command set based on the received test instruction.
And a sending module 20, configured to send the selected configuration command to the device to be tested if the device to be tested is a control end, so that the device to be tested performs configuration by using the selected configuration command, and controls the accompanying device to perform configuration synchronization.
The obtaining module 30 is configured to obtain first synchronization information of the accessory device, and obtain a first interaction packet between the device to be tested and the accessory device.
An obtaining module 40, configured to obtain a first compatibility test result of the device to be tested based on the first synchronization information and the first interaction packet.
It should be noted that, since the steps executed by the apparatus of this embodiment are the same as the steps of the foregoing method embodiment, the specific implementation and the achievable technical effects thereof can refer to the foregoing embodiment, and are not described herein again.
The above description is only an alternative embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, which are within the spirit of the present invention, are included in the scope of the present invention.

Claims (10)

1. A network equipment compatibility test method is characterized in that the method is used for terminal equipment, the terminal equipment is connected with accompanying equipment in an easymesh networking and equipment to be tested in the easymesh networking, and the method comprises the following steps:
based on the received test instruction, acquiring a selected configuration command in a preset configuration command set;
if the equipment to be tested is a control end, sending the selected configuration command to the equipment to be tested so that the equipment to be tested is configured by using the selected configuration command and controls the accompanied equipment serving as an agent end to carry out configuration synchronization;
acquiring first synchronization information of the equipment to be tested, and acquiring a first interaction message of the equipment to be tested and the equipment to be tested;
and obtaining a first compatibility test result of the equipment to be tested based on the first synchronization information and the first interaction message.
2. The method of claim 1, wherein after the step of obtaining the selected configuration command in a preset configuration command set based on the received test instruction, the method further comprises:
if the equipment to be tested is the agent end, the selected configuration command is sent to the accompanying equipment, so that the accompanying equipment serving as a control end performs configuration by using the selected configuration command and controls the equipment to be tested to perform configuration synchronization;
acquiring second synchronous information of the equipment to be tested, and acquiring a second interactive message of the equipment to be tested and the accompanying equipment;
and obtaining a second compatibility test result of the equipment to be tested based on the second synchronous information and the second interactive message.
3. The method as claimed in claim 1, wherein a preset accompanying device, the terminal device and the device to be tested in the easymesh networking are all connected with a switch controller; before the step of obtaining the selected configuration command in the preset configuration command set based on the received test instruction, the method further includes:
determining the accompanying equipment in the preset accompanying equipment based on the received preset test requirement;
and controlling the equipment to be tested and the accompanying equipment to be connected with a power supply by using the switch controller.
4. The method of claim 3, wherein prior to the step of determining the device under test in the pre-set device under test based on the received pre-set test requirements, the method further comprises:
initializing a preset accompanying device to obtain the initialized preset accompanying device;
and initializing the equipment to be tested to obtain the initialized equipment to be tested.
5. The method of claim 1, wherein after the step of obtaining a first compatibility test result for the device under test based on the first synchronization information and the first interaction packet, the method comprises:
when the first compatibility test result is that the test of the equipment to be tested fails, returning to execute the step of sending the selected configuration command to the equipment to be tested until the first compatibility test result is that the test is successful or the cycle number reaches a preset number, and obtaining a third compatibility test result;
and storing the third compatibility test result and outputting the third compatibility test result.
6. The method of claim 5,
the commands in the preset configuration command set are serial commands, telnet commands or Web page control commands.
7. The method of claim 6,
the selected configuration command comprises a wifi configuration changing command, an easy mesh topology discovering command, an Ap capability query command, a Client capability query command, an Ap Link Metric query command, a Beacon Metric query command, an Associated STA Link Metric query command, an unossociated STA Link Metric query command, a WPS onbroadcasting configuration command, an association command or a disassociation command.
8. The method as claimed in any one of claims 1 to 7, wherein the terminal device, the accompanying device and the device under test are all disposed in a shielding chamber, and the shielding chamber is used for shielding external electromagnetic interference.
9. A terminal device, characterized in that the terminal device comprises: a memory, a processor, and a network device compatibility test program stored on the memory and running on the processor, the network device compatibility test program when executed by the processor implementing the steps of the network device compatibility test method of any of claims 1 to 8.
10. A computer-readable storage medium, having a network device compatibility test program stored thereon, which when executed by a processor implements the steps of the network device compatibility test method of any one of claims 1 to 8.
CN202111109777.8A 2021-09-22 2021-09-22 Network equipment compatibility testing method, terminal equipment and storage medium Active CN113824612B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111109777.8A CN113824612B (en) 2021-09-22 2021-09-22 Network equipment compatibility testing method, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111109777.8A CN113824612B (en) 2021-09-22 2021-09-22 Network equipment compatibility testing method, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113824612A CN113824612A (en) 2021-12-21
CN113824612B true CN113824612B (en) 2023-01-24

Family

ID=78920881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111109777.8A Active CN113824612B (en) 2021-09-22 2021-09-22 Network equipment compatibility testing method, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113824612B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697238B (en) * 2022-03-30 2023-04-28 四川九州电子科技股份有限公司 System and method for testing robustness of communication equipment system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10387011B2 (en) * 2015-05-08 2019-08-20 Rockwell Automation Technologies, Inc. System and method to capture and document cross-product compatibility status information for industrial devices
CN105183631A (en) * 2015-07-16 2015-12-23 小米科技有限责任公司 Equipment test methods and devices
CN108282366B (en) * 2018-01-22 2020-06-30 珠海格力电器股份有限公司 Unit data synchronization method, system and computer readable storage medium
JP7102311B2 (en) * 2018-09-27 2022-07-19 キヤノン株式会社 Communication equipment, control methods for communication equipment, and programs
CN109639534B (en) * 2019-01-11 2021-03-02 锐捷网络股份有限公司 Method, device and computer storage medium for testing network transmission performance
CN109587013B (en) * 2019-01-18 2022-08-19 深圳壹账通智能科技有限公司 APP network compatibility testing method and device, computer equipment and storage medium
CN111090577B (en) * 2019-10-12 2024-04-09 平安壹钱包电子商务有限公司 Multi-terminal synchronous test method and device, computer equipment and storage medium
CN111491316B (en) * 2020-04-09 2022-11-11 深圳市共进电子股份有限公司 Master-slave mode configuration method, device, equipment terminal and readable storage medium
CN111757334A (en) * 2020-07-07 2020-10-09 太仓市同维电子有限公司 Method for rapidly realizing Easy Mesh household wireless networking
CN112954670A (en) * 2021-01-28 2021-06-11 上海同耀通信技术有限公司 Mesh distributed networking authentication system and testing method

Also Published As

Publication number Publication date
CN113824612A (en) 2021-12-21

Similar Documents

Publication Publication Date Title
CN112911556B (en) Method for establishing classical Bluetooth connection between dual mode Bluetooth devices and dual mode Bluetooth device
CN110032512B (en) Debugging method of small program, related equipment and terminal
WO2021027926A1 (en) Relay reselection method, device and medium
CN108738008A (en) Bluetooth pairing methods and system
CN106101776B (en) Method, smart machine and the speaker of volume adjustment
CN104105218A (en) Method and system for achieving Android system mobile phone hotspot WPS connection
CN103856376A (en) Intelligent interaction method and intelligent interaction system
CN110381489A (en) Bluetooth connecting method, display terminal and television set
CN113824612B (en) Network equipment compatibility testing method, terminal equipment and storage medium
US20230378767A1 (en) Charging control method and apparatus, electronic device, and charger
CN113824613B (en) Network reliability test method, test system and storage medium
CN111432387B (en) Many-to-many switching module, multi-machine wireless communication system and communication method thereof
CN112583907A (en) Connection method and device, smart home equipment and computer readable storage medium
CN110012512A (en) A kind of condition processing method and relevant device
CN112689172A (en) Program playing method and device, set top box and storage medium
CN112882773B (en) Network performance detection method, device, test terminal and storage medium
CN106060492B (en) A kind of projecting method and device
CN112350895B (en) Keep-alive method and device for application program, equipment and computer readable storage medium
CN110849407B (en) Sensor testing method and device, storage medium and electronic equipment
CN113965787A (en) Picture sharing method and device, display terminal and storage medium
CN112612593A (en) Bluetooth control method, device, terminal equipment and computer readable storage medium
CN114546865A (en) Order attribution information obtaining method and device, debugging equipment and storage medium
WO2024061091A1 (en) Network communication method and apparatus, and network-side device, terminal and medium
JP6061480B2 (en) Communication device control method and communication device
CN113573421A (en) Network connection method, mobile router, wireless device, and storage medium

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