[0024] It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. It should be noted that related terms such as "first" and "second" can be used to describe various components, but these terms do not limit the components. These terms are only used to distinguish one component from another. For example, without departing from the scope of the present invention, the first component may be referred to as the second component, and the second component may also be referred to as the first component similarly. The term "and/or" refers to a combination of any one or more of related items and descriptive items.
[0025] Such as figure 1 , figure 2 , image 3 As shown, figure 1 It is a schematic flow chart of the first embodiment of the wireless router automatic channel selection test method of the present invention; figure 2 It is a schematic diagram of the detailed process of step S20 in the first embodiment of the wireless router automatic channel selection test method of the present invention; image 3 It is a detailed flowchart of step S30 in the first embodiment of the wireless router automatic channel selection test method of the present invention.
[0026] The wireless router automatic channel selection test method of the present invention includes the following steps:
[0027] Step S10: Obtain channel information in the environment where the wireless router to be tested is located. The channel information includes the channel name and channel number; in step S10, the channel information in the environment where the wireless router to be tested is located can be obtained through a WIFI analyzer; For example, the acquired channel names include channel 1, channel 3, channel 6, and channel 8; that is, the number of channels is 4;
[0028] Step S20, select a marked channel from the channel name based on the first preset rule, and place a non-traffic AP terminal in the marked channel, where the number of AP terminals is less than the number of channels; the AP terminal represents an existing wireless AP device; for example , The AP terminal includes a first AP device, a second AP device, and a third AP device; the first AP device belongs to an existing AP device under the TP brand; the second AP device belongs to an existing AP device under the Mercury brand; The third AP device belongs to an existing AP device under the Leike brand; the first preset rule includes selecting a channel name with a smaller number from the channels in the environment where the wireless router is located, and it is called a tag channel; for example, it can be from channel 1 , Channel 3, Channel 6, and Channel 8, select Channel 1, Channel 3, and Channel 6; the number of marked channels is less than the number of channels. It can be understood as: place the no-flow AP end in the marked channel, and make a channel not place the AP end; that is, channel 8. Specifically, placing a non-traffic AP end in the marking channel can be understood as: setting the AP end as the marking channel; for example: the first AP device is set to channel 1; the second AP device is set to channel 3; the third AP device is set It is channel 6; the AP without traffic means that the bandwidth of the AP is adjusted to be adaptive; and the distance between the first AP device and the wireless router under test is 1 meter; the distance between the second AP device and the wireless router under test is 3 meters ; The third AP reprinted to inform that the distance from the wireless router to be tested is 5 meters.
[0029] Step S30, start the wireless router, and obtain the channel name selected by the wireless router;
[0030] After performing step S20, perform step S30, start the wireless router, and obtain the channel name selected by the wireless router. For step S30, it is more preferable to start the wireless router, obtain the channel name selected by the wireless router, and determine whether the selected channel name is a channel without an AP side, and if the selected channel name is a channel without an AP side, execute Step S40; For example, if the wireless router to be tested selects channel 8, and channel 8 is not placed on the AP side; it means that the performance of the wireless router to be tested to automatically select the channel when the first layer interferes is excellent and reliable.
[0031] Step S40, stop the wireless router, and perform CTS message interference operation in the mark channel;
[0032] In step S40, specifically, in step S40, the CTS message interference operation is performed on the marked channels, such as channel 1, channel 3, and channel 6, that is, the Duration field in the CTS message=30296us; the Duration of the CTS message The field refers to the length of time that the data frame needs to occupy the channel for transmission, and the node or terminal that receives the message will update its NAV bit according to the Duration field to back off. Therefore, the current design uses the Commview for wifi tool to send CTS messages in the channel to cause interference, and controls the size of the interference through the size of the message's Duration field and the packet rate. According to the experiment, sending the following messages can cause the wireless in the channel to fail to connect ( Duration=30296us, 3000 per second):
[0033] Step S50, start the wireless router, and obtain the channel name selected by the wireless router.
[0034] In step S50, start the wireless router and obtain the channel name selected by the wireless router; if the wireless router selected this time is still channel 8; it means that after two test results, the automatic selection of the wireless router to be tested can be synthesized The channel performance is excellent and stable. The wireless router automatic channel selection test method of the present invention is applied to the test of the wireless router, especially for the automatic channel selection. After the channel is occupied by several APs, the automatic channel selection test is performed on the wireless router, and then the CTS is passed. The message interference operation realizes the secondary interference of the channel, and then the automatic channel selection test is performed on the wireless router. This test method has many interference methods, and the test results are more comprehensive than those mentioned in the background art.
[0035] Such as figure 2 As shown, preferably, step S20 specifically includes:
[0036] Step S21, selecting a tag channel from the channel names based on the first preset rule;
[0037] Step S22, waiting for bandwidth adaptation, check the strength of all channels retrieved by the wireless router to be tested.
[0038] Such as image 3 As shown, preferably, step S30 specifically includes:
[0039] Step S31, repeatedly starting the wireless router 5 times;
[0040] Step S32: Obtain the channel name selected after each restart of the wireless router.
[0041] The above are only the preferred embodiments of the present invention, and do not limit the scope of the present invention. Any equivalent structure or equivalent process transformation made using the content of the description and drawings of the present invention, or directly or indirectly applied to other related technical fields , The same reason is included in the scope of patent protection of the present invention.