A wireless router-based testing method, system, device and storage medium

By scanning the wireless router's identification code and using a switch to connect a virtual network card, the problem of only being able to test one-to-one in existing technologies is solved, enabling efficient and low-cost testing of multiple routers.

CN116528277BActive Publication Date: 2026-03-27东莞市智微智能科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-20
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Existing wireless router testing methods can only be performed one-to-one, which is costly and inefficient, and cannot test multiple routers simultaneously.

Method used

By scanning the wireless router's identification code, configuration information is generated and multiple routers are connected via a switch. Test logs are uploaded using virtual network cards and the switch, enabling simultaneous testing of multiple routers.

Benefits of technology

It enables low-cost and efficient performance testing of multiple routers, improving testing efficiency and allowing for simultaneous performance testing of multiple routers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116528277B_ABST
    Figure CN116528277B_ABST
Patent Text Reader

Abstract

The application relates to a wireless router-based test method, system, device and storage medium, wherein the test method is simple, a plurality of routers are connected with a switch, the switch is connected with an upper computer, the test method can effectively overcome the defect that only one-to-one connection test of the router can be carried out in the prior art, the test cost is low, one upper computer can realize performance detection test of a plurality of routers, the test efficiency is improved, and the performance of the plurality of routers can be simultaneously tested in a high-efficiency and intelligent manner.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to wireless router testing technical field, more particularly, to a kind of based on wireless router's test method, system, equipment and storage medium. BACKGROUND

[0002] With the rapid development of wireless router technology, the continuous update of wireless router drives the method of its test also needs continuous progress.In the testing process, it is particularly important to capture useful test logs to locate the problem of wireless router;Currently, the commonly used method for obtaining test logs is to use the SecureCRT software installed on PC to directly connect to the serial port of wireless router to record logs;But each time test, PC can only one-to-one test with wireless router, cannot simultaneously test multiple wireless routers, this test method is high in cost, and low in efficiency. SUMMARY

[0003] The technical problem to be solved by the present application is to provide a kind of based on wireless router's test method, system, equipment and storage medium for the above-mentioned defects of prior art.

[0004] The technical scheme adopted by the present application to solve its technical problems is: a kind of based on wireless router's test method, comprising the following steps:

[0005] S10: the identification code attached to multiple wireless routers is scanned, and the identification code obtained by scanning is sent to the host computer;The host computer verifies whether the identification code can be tested, if not, error information is prompted;

[0006] S20: the host computer generates configuration information according to the received identification code, and transmits the configuration information to the switch;The switch configures the connection state of its port and the WAN interface of the wireless router according to the configuration information, and tests the WAN interface;

[0007] S30: the host computer also adds multiple virtual network cards corresponding to the testable wireless router one by one, and associates the configuration information of the wireless router with the corresponding virtual network card;

[0008] S40: the wireless router in step S30 sends test logs to the switch continuously for three times, the switch detects the data validity after obtaining multiple test logs, and uploads multiple valid test logs to the host computer;The host computer receives and stores multiple valid test logs.

[0009] The wireless router-based test method, wherein in the step S20, the host computer acquires the WAN port IP address and its address mask, the LAN port IP address and its address mask of the wireless router; calculates the WAN port network segment of the wireless router according to the WAN port IP address and its address mask of the wireless router; and calculates the LAN port network segment of the wireless router according to the LAN port IP address and its address mask of the wireless target router.

[0010] The wireless router-based test method, wherein if the LAN port network segment of the wireless router is the same as the WAN port network segment, the host computer reconfigures the LAN port network segment of the wireless router to be different from the WAN port network segment.

[0011] The wireless router-based test method, wherein the test method further comprises the following step: S50, reading the detection results recorded in the test log after the test is completed, and analyzing whether the interface connection of the corresponding wireless router is normal according to the detection results.

[0012] The wireless router-based test method, wherein in the step S30, the effective test log is an information log matched with preset key information.

[0013] On the other hand, the application provides a wireless router-based test system, wherein the test system comprises:

[0014] The scanning module scans the identification codes attached on the plurality of wireless routers and sends the scanned identification codes to the host computer;

[0015] The verification module verifies whether the identification codes can be tested, and if not, prompts error information;

[0016] The production module generates configuration information according to the received identification codes and transmits the configuration information to the switch;

[0017] The test module configures the connection state of the port thereof and the WAN interface of the wireless router according to the configuration information, and tests the WAN interface;

[0018] The host control module configures a plurality of virtual network cards corresponding to the testable wireless routers one by one, and associates the configuration information of the wireless routers with the corresponding virtual network cards;

[0019] The transmission module continuously sends the test log of the wireless router to the switch, the switch detects the data validity after acquiring a plurality of test logs, and uploads a plurality of effective test logs to the host computer; the host computer receives and stores a plurality of effective test logs.

[0020] In another aspect, the application provides an apparatus, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method as described above when executing the computer program.

[0021] In another aspect, the application provides a readable storage medium, wherein the storage medium stores a computer program, and wherein the computer program implements the steps of the method as described above when executed by a processor.

[0022] The application has the beneficial effect that the test method, system, device and storage medium based on wireless routers in the application have the advantages of simple test method, low test cost, and the like. BRIEF DESCRIPTION OF DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the following will further describe the application with reference to the drawings and embodiments, and the drawings in the following description are only some embodiments of the application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings:

[0024] Figure 1 is a flowchart of a test method based on wireless routers provided by an embodiment of the application;

[0025] Figure 2 is a structural schematic diagram of a test system based on wireless routers provided by an embodiment of the application;

[0026] Figure 3 is a structural schematic diagram of a device for testing based on wireless routers provided by an embodiment of the application. DETAILED DESCRIPTION

[0027] The terms "first", "second", "third", and "fourth" and the like in the description and claims of the application and the drawings are used to distinguish between similar objects, not to describe a particular order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but can optionally include other steps or units not listed or can optionally include other steps or units inherent to the process, method, product or device.

[0028] Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase "in an embodiment" in various places in the specification are not necessarily all referring to the same embodiment, nor are they necessarily mutually exclusive of one another. It is expressly understood that any of the embodiments described herein can be incorporated into any other embodiment.

[0029] "Multiple" refers to two or more. "And / or", describing the association relationship of the associated objects, means that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist together, and B exists alone. The character " / " generally represents that the associated objects before and after are in an "or" relationship.

[0030] Furthermore, the terms "upper", "lower", "front", "back", "left", "right", "upper end", "lower end", "vertical", and the like indicating the orientation are all with reference to the attitude position of the device or equipment described in the scheme in normal use.

[0031] In order to make the purposes, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be described clearly and completely below. Obviously, the described embodiments are part of the embodiments of the present application, not all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the present application.

[0032] Embodiment one:

[0033] A test method based on a wireless router according to a preferred embodiment of the present application, as shown in Figure 1 The method comprises the following steps:

[0034] S10: Scanning the identification codes attached to a plurality of wireless routers, and sending the scanned identification codes to an upper computer; the upper computer verifies whether the identification codes can be tested, and if not, prompts an error message;

[0035] Among them, the scanning gun is used to scan a plurality of wireless routers, and the identification codes are transmitted to the upper computer through the data line.

[0036] S20: The upper computer generates configuration information according to the received identification codes, and transmits the configuration information to a switch; the switch configures the connection state of its port and the WAN interface of the wireless router according to the configuration information, and tests the WAN interface;

[0037] The plurality of wireless routers are connected with the switch through network cables, the switch is connected with the host computer, the configuration information is sent to the switch, and the switch tests the WAN interface of the wireless router according to the configuration information; the operation is simple, and the plurality of wireless routers can be tested simultaneously.

[0038] Further, in step S20, the host computer acquires the WAN port IP address and the address mask of the wireless router, the LAN port IP address and the address mask; the WAN port network segment of the wireless router is calculated according to the WAN port IP address and the address mask of the wireless router; the LAN port network segment of the wireless router is calculated according to the LAN port IP address and the address mask of the wireless router; it should be pointed out that the data of each network device is collected by the LAN port and sent to the adjacent node of the external network by the WAN port; after the WAN port receives the data of the external network, the data is distributed to each host connected by the LAN port according to the routing table;

[0039] Further, if the LAN port network segment of the wireless router is the same as the WAN port network segment, the host computer reconfigures the LAN port network segment of the wireless router to be different from the WAN port network segment; the address of the LAN port network segment is different from the address of the WAN port network segment, so that different IP addresses can be allocated.

[0040] S30: The host computer further adds a plurality of virtual network cards corresponding to the testable wireless routers one by one, and associates the configuration information of the wireless router with the corresponding virtual network card; the same segment of the plurality of routers is convenient for multi-machine testing;

[0041] The effective test log is an information log matched with the preset key information.

[0042] S40: The wireless router in step S30 sends the test log to the switch for three times in succession, the switch detects the data validity after acquiring the plurality of test logs, and uploads the plurality of effective test logs to the host computer; the host computer receives and stores the plurality of effective test logs;

[0043] S50: After the test is completed, the detection result recorded in the test log is read, and whether the interface connection of the corresponding wireless router is normal is analyzed according to the detection result.

[0044] If the interface connection of the wireless router is normal, the detection result shows OK; if the interface connection of the wireless router is not normal, the detection result shows error.

[0045] The wireless router-based test method provided in the application has the advantages that the test method is simple, the plurality of routers are connected with the switch, and then the switch is connected with the upper computer, the test cost is low, the test of the performance of the plurality of routers by one upper computer is realized, the test efficiency is improved, and the performance of the plurality of routers is tested simultaneously, efficiently and intelligently.

[0046] Embodiment two:

[0047] Figure 2 The structure schematic diagram of the wireless router-based test system provided in the embodiment of the application is shown, only the parts related to the embodiment of the application are shown for the convenience of description, and the structure schematic diagram comprises the following parts:

[0048] The scanning module 201 scans the identification code attached on the plurality of wireless routers and sends the scanned identification code to the upper computer;

[0049] The verification module 202 verifies whether the identification code can be tested, and if not, an error information is prompted;

[0050] The production module 203 generates configuration information according to the received identification code and transmits the configuration information to the switch;

[0051] The test module 204 configures the connection state of the port and the WAN interface of the wireless router according to the configuration information, and tests the WAN interface;

[0052] The plurality of wireless routers are connected with the switch through the network cable, the switch is connected with the upper computer, the configuration information is sent to the switch after the connection, the WAN interface of the wireless router is tested by the switch according to the configuration information, the operation is simple, and the plurality of wireless routers can be tested simultaneously.

[0053] Further, the upper computer obtains the WAN port IP address and the address mask of the wireless router, the LAN port IP address and the address mask of the wireless router, calculates the WAN port network segment of the wireless router according to the WAN port IP address and the address mask of the wireless router, and calculates the LAN port network segment of the wireless router according to the LAN port IP address and the address mask of the wireless target router; it is worth mentioning that the data of each network device is collected by the lan port and sent to the adjacent node of the external network by the wan port; after the wan port receives the data of the external network, the data is distributed to each host connected by the lan port according to the routing table;

[0054] Further, if the LAN port network segment of the wireless router is the same as the WAN port network segment, the upper computer reconfigures the LAN port network segment of the wireless router which is different from the WAN port network segment; the address of the LAN port network segment is different from the address of the WAN port network segment, so that different IP addresses are allocated.

[0055] The main control module 205: configure a plurality of virtual network cards corresponding to the testable wireless router one by one, and associate the configuration information of the wireless router with the corresponding virtual network card;

[0056] The transmission module 206: continuously sends the test log of the wireless router to the switch, the switch detects the data validity after obtaining a plurality of test logs, and uploads a plurality of valid test logs to the upper computer; the upper computer receives and stores a plurality of valid test logs.

[0057] In the embodiment of the application, the modules of the wireless router test system can be realized by corresponding hardware or software modules, and each module can be an independent software or hardware module, or can be integrated into a software or hardware module, which does not limit the application.

[0058] Embodiment three:

[0059] Figure 3 The structure of the device for testing the wireless router provided by the embodiment of the application is shown, and only the parts related to the embodiment of the application are shown, which includes:

[0060] In the embodiment of the application, a device is provided, which includes a memory 301, a processor 302, and a computer program 303 stored in the memory and executable on the processor, which implements the steps in the above-mentioned method embodiments for testing the wireless router when executed by the processor, for example, Figure 1 The steps S10 to S50 shown. Alternatively, the computer program implements the functions of the modules in the above-mentioned wireless router test system when executed by the processor, for example, Figure 2 The modules 201 to 206 shown.

[0061] Embodiment four:

[0062] In the embodiment of the application, a readable storage medium is provided, which stores a computer program, which implements the steps in the above-mentioned method embodiments for testing the wireless router when executed by the processor, for example, Figure 1 The steps S10 to S50 shown. Alternatively, the computer program implements the functions of the modules in the above-mentioned wireless router test system when executed by the processor, for example, Figure 2 The functions of each module shown.

[0063] The computer readable storage medium of the embodiment of the application can include any entity or device, recording medium capable of carrying computer program code, for example, ROM / RAM, magnetic disk, optical disk, flash memory, etc.

[0064] The above merely describes preferred embodiments of the present application, and is not used to limit the present application, any modification, equivalent replacement and improvement within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims

1. A wireless router-based testing method, characterized by, The method comprises the following steps: S10: scanning the identification code attached to the plurality of wireless routers and sending the scanned identification code to the host computer; the host computer verifies whether the identification code can be tested, and if not, prompts an error message; S20: the host computer generates configuration information according to the received identification code and transmits the configuration information to the switch; The switch configures the connection state of its port and the WAN interface of the wireless router according to the configuration information, and tests the WAN interface; The host computer obtains the WAN port IP address and its address mask, the LAN port IP address and its address mask of the wireless router, calculates the WAN port network segment of the wireless router according to the WAN port IP address and its address mask of the wireless router, and calculates the LAN port network segment of the wireless router according to the LAN port IP address and its address mask of the wireless router; If the LAN port network segment of the wireless router is the same as the WAN port network segment, the host computer reconfigures the LAN port network segment of the wireless router which is different from the WAN port network segment; S30: the host computer configures a plurality of virtual network cards corresponding to the testable wireless routers through the master module, and associates the configuration information of the wireless router with the corresponding virtual network card; S40: the wireless router in step S30 continuously sends three test logs to the switch, the switch detects the data validity after obtaining a plurality of test logs, and uploads a plurality of valid test logs to the host computer; the host computer receives and stores a plurality of valid test logs.

2. The wireless router based testing method of claim 1, wherein, The test method further comprises the following steps: S50: reading the detection results recorded in the test log after the test is completed, and analyzing whether the interface connection of the corresponding wireless router is normal according to the detection results.

3. The wireless router based testing method of claim 1, wherein, In S30, the valid test log is an information log matched with the preset key information.

4. A wireless router based testing system, characterized by, The test system comprises: A scanning module for scanning the identification code attached to the plurality of wireless routers and sending the scanned identification code to the host computer; A verification module for verifying whether the identification code can be tested, and if not, prompting an error message; A production module for generating configuration information according to the received identification code and transmitting the configuration information to the switch; A test module for configuring the connection state of its port and the WAN interface of the wireless router according to the configuration information, and testing the WAN interface; The host computer obtains the WAN port IP address and its address mask, the LAN port IP address and its address mask of the wireless router, calculates the WAN port network segment of the wireless router according to the WAN port IP address and its address mask of the wireless router, and calculates the LAN port network segment of the wireless router according to the LAN port IP address and its address mask of the wireless router; If the LAN port network segment of the wireless router is the same as the WAN port network segment, the host computer reconfigures the LAN port network segment of the wireless router which is different from the WAN port network segment; The master control module is configured to configure a plurality of virtual network cards corresponding to the testable wireless router one by one, and associate the configuration information of the wireless router with the corresponding virtual network cards; The transmission module continuously sends the test log of the wireless router to the switch, the switch detects the data validity after obtaining a plurality of test logs, and uploads a plurality of valid test logs to the upper computer; the upper computer receives and stores a plurality of valid test logs.

5. An apparatus comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein, The processor executes the computer program to realize the steps of the method of any one of claims 1 to 3.

6. A readable storage medium, wherein a computer program is stored in the storage medium, and the computer program is used for executing the method according to any one of claims 1-5. The computer program is executed by the processor to realize the steps of the method of any one of claims 1 to 3.

Citation Information

Patent Citations

  • Router testing method and related product

    CN110808870A

  • BMS controller detection method and apparatus, and electronic device

    CN114740817A