A master-slave routing networking method, device, and computer-readable storage medium
By employing a master-slave routing networking method that performs multi-channel beacon scanning and name matching after the router is powered on, the networking failure caused by DFS probing is resolved, achieving more efficient MLO networking connections and improving networking success rate and user experience.
Patent Information
- Application Number
- CN202611543970.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-30
- Publication Date
- 2026-11-17
AI Technical Summary
In existing technologies, the problem of MLO networking failure caused by DFS detection during the startup process of master and slave routers is particularly evident in home WiFi 7 routers. In the 2.4G+5G networking mode, the 5G WiFi may be operating on the radar frequency when it starts up, resulting in connection failure.
A master-slave routing networking method is proposed. After the slave router is powered on, it performs multi-channel beacon scanning to create 2.4G and 5G WiFi lists and performs name matching respectively. If the match is successful, the networking connection is initiated. If it fails, the list is updated and the matching is repeated until the networking is successful or terminated.
It improves the success rate of MLO networking with master-slave routing, avoids networking failures caused by DFS probing, and enhances the user's networking experience and connection efficiency.
Smart Images

Figure CN123123958A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wireless communication technology, and in particular to a master-slave routing networking method, device, and computer-readable storage medium. Background Technology
[0002] Currently, WiFi 7's MLO (Multi-Link Operation) is a core feature of the next-generation wireless network standard (IEEE 802.11be). MLO allows devices to connect simultaneously and utilize multiple frequency bands (such as 2.4GHz, 5GHz, and 6GHz) for parallel transmission and data aggregation. By aggregating the bandwidth of different frequency bands, it greatly improves the overall data transmission rate and throughput.
[0003] Currently, home WiFi 7 routers are widely used. Some large homes use multiple WiFi 7 network devices to support network coverage. The mainstream MLO networking method in China uses a 2.4G+5G networking method. When the bandwidth is in 160M mode, after the router is plugged in, the extended router (slave router) and the main router may work on the radar frequency during the 5G WiFi startup process, which requires DFS (Dynamic Frequency Selection) detection. This can cause the 5G connection to fail during the router startup process, thus causing the MLO networking to fail.
[0004] In summary, optimizing the MLO network connection after the master-slave routers start up, and avoiding the problem of MLO network failure caused by DFS probing, has become an urgent technical problem to be solved. Summary of the Invention
[0005] In order to overcome the shortcomings of the prior art, the present invention aims to provide a master-slave routing networking method, device and computer-readable storage medium to solve the problem that the MLO networking connection process after the master-slave routing is started may fail due to DFS detection.
[0006] This invention proposes a master-slave routing networking method, applied to slave routing, the method comprising: When both the main router and the slave router are powered on, and the slave router is in the preset detection period, a multi-channel beacon scan is initiated, and a 2.4G WiFi list and a 5G WiFi list are created based on the scan results; Perform the first match between the main router's 2.4G WiFi name and the 2.4G WiFi list, and the second match between the main router's 5G WiFi name and the 5G WiFi list, respectively. If both the first and second matches are successful, then initiate a 2.4G WiFi network connection and a 5G WiFi network connection to the main router; If the first match is successful and the second match fails, a 2.4G WiFi network connection is initiated to the main router. If the connection is successful, a 5G WiFi network connection is initiated to the main router. If the first match fails but the second match succeeds, a 5G WiFi network connection is initiated to the main router. If the connection is successful, a 2.4G WiFi network connection is then initiated to the main router. If the first and second matches both fail, the list is updated and the matching is performed repeatedly. If the process fails after multiple attempts, the network connection to the main router is terminated.
[0007] Optionally, if both the first and second matches are successful, a 2.4G WiFi network connection or a 5G WiFi network connection is initiated to the main router, specifically including: If the 2.4G WiFi and 5G WiFi networks with the main router are successfully connected, the networking process ends. If the 2.4G WiFi network connection and / or 5G WiFi network connection with the main router fails, repeat the operation of initiating the 2.4G WiFi network connection and 5G WiFi network connection with the main router multiple times. If the scan fails after multiple attempts, a multi-channel beacon scan will be re-initiated.
[0008] Optionally, if the first match succeeds and the second match fails, a 2.4G WiFi network connection is initiated to the main router. If the connection is successful, a 5G WiFi network connection is then initiated to the main router, specifically including: If the 5G WiFi network connection with the main router is successful, the 2.4G WiFi list will be updated multiple times and the first matching will be performed.
[0009] Optionally, the step of repeatedly updating the 2.4G WiFi list and performing the first matching further includes: If the first match is successful, the 5G WiFi network connection with the main router is disconnected, and a 2.4G WiFi network connection and a 5G WiFi network connection are established with the main router. If the first matching fails after repeatedly updating the 2.4G WiFi list and performing the first matching, the current 5G WiFi network connection with the main router is maintained.
[0010] Optionally, updating the 2.4G WiFi list and the 5G WiFi list multiple times, and repeatedly performing the first matching and the second matching, further includes: If both the first and second matches are successful, then initiate a 2.4G WiFi network connection and a 5G WiFi network connection to the main router; If the first match is successful and the second match fails, a 2.4G WiFi network connection is initiated to the main router. If the connection is successful, a 5G WiFi network connection is initiated to the main router. If the first match fails but the second match succeeds, a 5G WiFi network connection is initiated to the main router. If the connection is successful, a 2.4G WiFi network connection is then initiated to the main router. If the first and second matches both fail, the list is updated and the matching is performed repeatedly. If the process fails after multiple attempts, the network connection to the main router is terminated.
[0011] Optionally, if both the first and second matches fail, the list is updated and the matching is performed repeatedly, further including: If both the first and second matches fail, update the 2.4G WiFi list and the 5G WiFi list multiple times, and repeat the first and second matches multiple times. If both the first and second matches are successful, then initiate a 2.4G WiFi network connection and a 5G WiFi network connection to the main router; If the first match is successful and the second match fails, a 2.4G WiFi network connection is initiated to the main router. If the connection is successful, a 5G WiFi network connection is initiated to the main router. If the first match fails but the second match succeeds, a 5G WiFi network connection is initiated to the main router. If the connection is successful, a 2.4G WiFi network connection is then initiated to the main router. If the first and second matches both fail, the list is updated and the matching is performed repeatedly. If the process fails after multiple attempts, the network connection to the main router is terminated.
[0012] Optionally, updating the 2.4G WiFi list and the 5G WiFi list multiple times, and repeatedly performing the first matching and the second matching, further includes: Prioritize updating the 5G WiFi list multiple times, and repeat the second matching process multiple times; If the second match is successful, a 5G WiFi network connection is initiated to the main router. If the connection is successful, a 2.4G WiFi network connection is then initiated to the main router. If the second match fails, the 2.4G WiFi list will be updated multiple times, and the first match will be performed multiple times.
[0013] Optionally, the list can be updated and the matching can be performed multiple times based on one or more settings, such as the number of the first item in the 2.4G WiFi list, the number of the second item in the 5G WiFi list, and the historical matching status of the first and second matches.
[0014] The present invention also proposes a master-slave routing networking device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the master-slave routing networking method as described in any of the preceding claims.
[0015] The present invention also proposes a computer-readable storage medium storing a master-slave routing networking program, wherein when the master-slave routing networking program is executed by a processor, the steps of the master-slave routing networking method as described in any of the above claims are implemented.
[0016] The master-slave routing networking method, device, and computer-readable storage medium of the present invention, when both the master and slave routers are powered on and the slave router is in a preset detection period, initiates a multi-channel beacon scan and creates a 2.4G WiFi list and a 5G WiFi list based on the scan results; performs a first match between the master router's 2.4G WiFi name and the 2.4G WiFi list, and a second match between the master router's 5G WiFi name and the 5G WiFi list, respectively; if both the first and second matches are successful, initiates a 2.4G WiFi networking connection or a 5G WiFi networking connection to the master router; if the first match is successful but the second match fails, initiates a 2.4G WiFi networking connection to the master router, and if the connection is successful, initiates a 5G WiFi networking connection to the master router; if the first match fails but the second match succeeds, initiates a 5G WiFi networking connection to the master router, and if the connection is successful, initiates a 2.4G WiFi networking connection to the master router; if both the first and second matches fail, the list is updated and the matching is performed repeatedly; if all attempts fail, the network connection to the master router is terminated. This invention provides a more efficient and convenient master-slave routing networking scheme, which improves the success rate of MLO networking between master and slave routers, avoids networking failures caused by DFS detection after router startup, and enhances the user's networking experience. Attached Figure Description
[0017] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings: Figure 1 This is a flowchart of the first embodiment of the master-slave routing networking method of the present invention; Figure 2 This is a flowchart of the second embodiment of the master-slave routing networking method of the present invention; Figure 3This is a flowchart of the third embodiment of the master-slave routing networking method of the present invention; Figure 4 This is a flowchart of the fourth embodiment of the master-slave routing networking method of the present invention; Figure 5 This is a flowchart of the fifth embodiment of the master-slave routing networking method of the present invention; Figure 6 This is a flowchart of the sixth embodiment of the master-slave routing networking method of the present invention; Figure 7 This is a flowchart of the seventh embodiment of the master-slave routing networking method of the present invention; Figure 8 This is a flowchart of the eighth embodiment of the master-slave routing networking method of the present invention. Detailed Implementation
[0018] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0019] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.
[0020] Example 1 Figure 1 This is a flowchart of the first embodiment of the master-slave routing network method of the present invention. A master-slave routing network method, applied to a slave router, the method includes: S1. When both the main router and the slave router are powered on, and the slave router is in the preset detection period, initiate a multi-channel beacon scan, and create a 2.4G WiFi list and a 5G WiFi list based on the scan results. S2. Perform the first match between the 2.4G WiFi name and the 2.4G WiFi list of the main router, and the second match between the 5G WiFi name and the 5G WiFi list of the main router respectively; S3. If both the first and second matches are successful, initiate a 2.4G WiFi network connection and a 5G WiFi network connection to the main router. S4. If the first match is successful and the second match fails, then initiate a 2.4G WiFi networking connection to the main router. If the connection is successful, then initiate a 5G WiFi networking connection to the main router. S5. If the first match fails but the second match succeeds, initiate a 5G WiFi network connection to the main router. If the connection is successful, then initiate a 2.4G WiFi network connection to the main router. S6. If the first and second matches both fail, update the list and perform matching multiple times. If all attempts fail, terminate the network connection to the main router.
[0021] In this embodiment, considering that in the current MLO network, if the master router operates in the radar band, the slave router cannot connect to the 5G band when silent, resulting in the network always being in a 2.4G single-link connection state; based on this, this embodiment determines the connection time point of the 2.4G and / or 5G link by judging whether the 2.4G and / or 5G band signals can be scanned, thereby ensuring the successful MLO network formation of master and slave routers.
[0022] In this embodiment, the 2.4G WiFi name of the main router is configured as SSID_2.4G, the 5G WiFi name is configured as SSID_5G, and the DFS detection time of the main router is 60s.
[0023] In this embodiment, after the main router and the slave router are powered on, the main router enters AP mode (i.e., access point mode), and the slave router enters Repeater mode (i.e., relay mode). The signal scanning module of the slave router initiates a beacon scan, scanning channels 1 to 13 of the 2.4G band, with each channel scan lasting 100ms, for a total scan time of 1.3s. The 5G band scan includes 13 channels: 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, and 165, with each channel scan lasting 100ms, for a total scan time of 1.3s. The total scan time for the 2.4G and 5G bands is 2.6s.
[0024] In this embodiment, after the scan is completed, the signal scanning module of the slave router sends the scanned 2.4G WiFi list results and 5G WiFi list results to the connection judgment module of the slave router. The connection judgment module of the slave router matches the 2.4G WiFi name SSID_2.4G of the master router with the above-mentioned 2.4G WiFi list, and also matches the 5G WiFi name SSID_5G of the master router with the above-mentioned 5G WiFi list. After the matching is completed, the network control is finally implemented according to the matching results.
[0025] In this embodiment, in step one, if both the 2.4G beacon and the 5G beacon of the main router are matched in their respective lists, the slave router initiates an MLO networking connection to the main router. That is, the slave router establishes a 2.4G WiFi networking connection and a 5G WiFi networking connection with the main router. The main router responds to the connection message of the slave router, and the slave router monitors the networking result: if the MLO networking between the main router and the slave router is successful, the process ends; if the MLO networking fails, the slave router initiates a networking connection with the main router again. If the MLO networking fails multiple times (e.g., 3 times), the main router's beacon signal is rescanned. In this embodiment, in step two, if only the main router's 2.4G beacon is matched in the 2.4G WiFi list, the secondary router sends a message to the main router, that is, the secondary router initiates a 2.4G network connection to the main router. The main router responds to the connection message initiated by the secondary router. At the same time, the secondary router will implement corresponding network control based on the network results: First, if the 2.4G network between the main router and the secondary router is successful, the secondary router will rescan the main router's 5G beacon signal: (1) If the 5G beacon signal is detected, the secondary router disconnects the 2.4G network connection with the main router and repeats the MLO network connection in step 1; (2) If the 5G beacon signal is not detected, the scan is initiated again. If it is not detected multiple times (e.g., 10 times), the current 2.4G network connection is maintained; Second, if the 2.4G network between the main router and the secondary router fails, the secondary router will rescan the main router's 2.4G and 5G beacon signals, that is, repeat the above step one until the network is terminated or the network is successfully established. In this embodiment, in step three, if the 2.4G and 5G beacons of the main router cannot be matched in their respective lists, the secondary router initiates another scan. If the 2.4G and 5G beacons of the main router are not found in multiple consecutive scans (e.g., 3 times), the networking connection operation between the secondary router and the main router ends.
[0026] The beneficial effect of this embodiment is that when both the main router and the slave router are powered on, and the slave router is in a preset detection period, a multi-channel beacon scan is initiated, and a 2.4G WiFi list and a 5G WiFi list are created based on the scan results. A first match is performed between the main router's 2.4G WiFi name and the 2.4G WiFi list, and a second match is performed between the main router's 5G WiFi name and the 5G WiFi list. If both the first and second matches are successful, a 2.4G WiFi network connection and a 5G WiFi network connection are initiated to the main router. If the first match is successful but the second match fails, a 2.4G WiFi network connection is initiated to the main router. If the connection is successful, a 5G WiFi network connection is initiated to the main router. If the first match fails but the second match succeeds, a 5G WiFi network connection is initiated to the main router. If the connection is successful, a 2.4G WiFi network connection is initiated to the main router. If both the first and second matches fail, the list is updated and the matching is performed repeatedly. If the process fails after multiple repetitions, the network connection to the main router is terminated. This achieves a more efficient and convenient master-slave routing networking scheme, improves the success rate of master-slave routing in MLO networking, avoids network failure caused by DFS detection after router startup, and enhances the user's networking experience.
[0027] Example 2 Figure 2 This is a flowchart of the second embodiment of the master-slave routing networking method of the present invention. Based on the above embodiment, if both the first matching and the second matching are successful, a 2.4G WiFi networking connection or a 5G WiFi networking connection is initiated to the master router, specifically including: S31. If the 2.4G WiFi network connection and 5G WiFi network connection with the main router are successful, the networking process ends. S32. If the 2.4G WiFi network connection and / or 5G WiFi network connection with the main router fails, repeat the operation of initiating the 2.4G WiFi network connection and 5G WiFi network connection to the main router multiple times. S33. If the scan still fails after multiple attempts, then re-initiate the multi-channel beacon scan.
[0028] In this embodiment, it is first determined whether the 2.4G WiFi networking connection and 5G WiFi networking connection between the secondary router and the primary router are successful. If successful, it is determined that MLO networking has been achieved and the networking process ends. If it fails, the operation of initiating the 2.4G WiFi networking connection and 5G WiFi networking connection to the primary router is repeated multiple times. If it still fails after repeating multiple times, the multi-channel beacon scan is re-initiated and the subsequent matching and networking operations are performed again.
[0029] The beneficial effect of this embodiment is that by determining whether the 2.4G WiFi network connection and 5G WiFi network connection between the slave router and the master router are successful, if the 2.4G WiFi network connection and 5G WiFi network connection with the master router are successful, the networking process ends; if the 2.4G WiFi network connection and / or 5G WiFi network connection with the master router fails, the operation of initiating the 2.4G WiFi network connection and 5G WiFi network connection with the master router is repeated multiple times; if it still fails after repeating multiple times, the multi-channel beacon scan is re-initiated; thereby improving the connection efficiency between the slave router and the master router, and ensuring that the slave router can eventually establish an MLO network connection with the master router through 2.4G WiFi and 5G WiFi.
[0030] Example 3 Figure 3 This is a flowchart of the third embodiment of the master-slave routing networking method of the present invention. Based on the above embodiment, if the first match is successful and the second match fails, a 2.4G WiFi networking connection is initiated to the master router. If the connection is successful, a 5G WiFi networking connection is then initiated to the master router. Specifically, this includes: S41. If the 2.4G WiFi network connection with the main router is successful, then update the 5G WiFi list multiple times and perform the second matching. S42. If the second match is successful, disconnect the 2.4G WiFi network connection with the main router and establish a 2.4G WiFi network connection and a 5G WiFi network connection with the main router. S43. If the second match fails after multiple attempts, maintain the current 2.4G WiFi network connection with the main router.
[0031] In this embodiment, after repeatedly updating the 5G WiFi list and performing the second matching, if the second matching is successful, the 2.4G WiFi networking connection with the main router is disconnected, and before establishing a 5G WiFi networking connection with the main router, the 5G WiFi list is repeatedly updated and the second matching is performed; if the second matching is successful, the 2.4G WiFi networking connection with the main router is disconnected, and a 2.4G WiFi networking connection and a 5G WiFi networking connection are established with the main router to achieve MLO networking.
[0032] In this embodiment, if the second matching fails after repeated attempts, the current 2.4G WiFi network connection with the main router is maintained.
[0033] In this embodiment, after maintaining the current 2.4G WiFi network connection with the main router for a preset time (for example, starting the timer when maintaining the current 2.4G WiFi network connection with the main router starts, and after three minutes, the 5G WiFi network connection is tried again), the 5G WiFi list is updated again and the second matching is performed; if the second matching is successful, the 2.4G WiFi network connection with the main router is disconnected, and a 2.4G WiFi network connection and a 5G WiFi network connection are established with the main router, that is, MLO networking is realized.
[0034] The beneficial effect of this embodiment is that, when a successful 2.4G WiFi network connection with the main router is established, the 5G WiFi list is updated multiple times and a second matching is performed. If the second matching is successful, the 2.4G WiFi network connection with the main router is disconnected, and a 2.4G WiFi network connection and a 5G WiFi network connection are established with the main router. If the second matching fails after multiple repetitions, the current 2.4G WiFi network connection with the main router is maintained. This allows the secondary router to select 5G WiFi in real time to form a network connection with the main router, and it can still attempt to form a 2.4G WiFi network connection and a 5G WiFi network connection with the main router even when not using 5G WiFi, thereby achieving MLO networking.
[0035] Example 4 Figure 4 This is a flowchart of the fourth embodiment of the master-slave routing networking method of the present invention. Based on the above embodiment, if the first matching fails and the second matching succeeds, a 5G WiFi networking connection is initiated to the master router. If the connection is successful, a 2.4G WiFi networking connection is then initiated to the master router. If the connection is successful, a 2.4G WiFi networking connection is then initiated to the master router. Specifically, this includes: S51. If the 5G WiFi network connection with the main router is successful, the 2.4G WiFi list is updated multiple times and the first matching is performed. In this embodiment, when the 5G WiFi network connection between the secondary router and the main router fails, the 5G WiFi list is updated multiple times and the second matching is performed multiple times. During this process, the secondary router attempts to establish a 5G WiFi network connection with the main router. If multiple attempts still fail, the 2.4G WiFi list is updated multiple times and the first matching is performed multiple times. During this process, the secondary router attempts to establish a 2.4G WiFi network connection with the main router.
[0036] Furthermore, in this embodiment, if the 5G WiFi network connection with the main router is successful, the networking process will not end, and the 2.4G WiFi list will continue to be updated. Optionally, if the 5G WiFi network connection with the main router is successful, and after a preset time interval, the above-mentioned multi-channel beacon scan is initiated again, and the subsequent matching and networking operations are performed again, thereby realizing the 2.4G WiFi network connection and 5G WiFi network connection between the router and the main router, i.e., MLO networking.
[0037] The beneficial effect of this embodiment is that when the secondary router successfully establishes a 5G WiFi network connection with the primary router, the networking process ends; however, if the 5G WiFi network connection with the primary router fails, the 2.4G WiFi list and the 5G WiFi list are updated multiple times, and the first and second matching processes are repeated multiple times. This ensures that the secondary router can establish a network connection at least once, whether it's attempting a 2.4G WiFi network connection or a 5G WiFi network connection with the primary router. Based on this, the secondary router can then continue to attempt to establish both 2.4G WiFi and 5G WiFi network connections with the primary router.
[0038] Example 5 Figure 5 This is a flowchart of the fifth embodiment of the master-slave routing networking method of the present invention. Based on the above embodiment, the 2.4G WiFi list and the 5G WiFi list are updated repeatedly, and the first matching and the second matching are performed repeatedly, further including: S52. If the first match is successful, disconnect the 5G WiFi network connection with the main router and establish a 2.4G WiFi network connection and a 5G WiFi network connection with the main router. S53. If the first matching fails after repeatedly updating the 2.4G WiFi list and performing the first matching, then maintain the current 5G WiFi networking connection with the main router.
[0039] In this embodiment, if the 5G WiFi is detected after repeated scanning, the original 2.4G network connection is disconnected and MLO networking is performed. If MLO networking fails multiple times, the 2.4G network is maintained.
[0040] Furthermore, in this embodiment, if MLO networking fails multiple times, the 2.4G networking is maintained, and after a preset interval, the 2.4G WiFi list is updated again and the first matching is performed.
[0041] Furthermore, in this embodiment, after a preset time interval, the 2.4G WiFi list is updated again and the first matching is performed. If the first matching still fails, the preset time interval is increased, and the system waits for the next update of the 2.4G WiFi list and the next first matching operation. This allows the secondary router to improve its networking connection efficiency with the primary router and, while ensuring the establishment of a 2.4G network, to establish a 5G WiFi network connection with the primary router, thereby achieving MLO networking.
[0042] Example 6 Figure 6 This is a flowchart of the sixth embodiment of the master-slave routing networking method of the present invention. Based on the above embodiment, if both the first match and the second match fail, the list is updated and the matching is performed repeatedly, further including: S61. If both the first and second matching fail, update the 2.4G WiFi list and the 5G WiFi list multiple times, and repeat the first and second matching processes multiple times. S62. If both the first and second matches are successful, initiate a 2.4G WiFi networking connection and a 5G WiFi networking connection to the main router to achieve MLO networking. S63. If the first match is successful and the second match fails, then initiate a 2.4G WiFi networking connection to the main router. If the connection is successful, then initiate a 5G WiFi networking connection to the main router. S64. If the first match fails but the second match succeeds, initiate a 5G WiFi networking connection to the main router. If the connection is successful, then initiate a 2.4G WiFi networking connection to the main router. S65. If the first and second matches both fail, update the list and perform matching multiple times. If all attempts fail, terminate the network connection to the main router.
[0043] In this embodiment, one approach is to first repeatedly update the 5G WiFi list and repeatedly perform the second matching process. During this process, the slave router attempts to establish a 5G WiFi network connection with the master router. If the attempts still fail, the 2.4G WiFi list is updated repeatedly, and the first matching process is performed repeatedly. During this process, the slave router attempts to establish a 2.4G WiFi network connection with the master router. In this embodiment, another approach is to perform a first matching and a second matching operation after each update of the 2.4G WiFi list and the 5G WiFi list, and repeat this process. Furthermore, after each cycle, the operations of steps one, two, and three in the above embodiment are repeated, thereby enabling the secondary router to improve the networking connection efficiency with the primary router and also ensuring priority for 5G WiFi networking connection with the primary router.
[0044] Example 7 Figure 7 This is a flowchart of the seventh embodiment of the master-slave routing networking method of the present invention. Based on the above embodiment, the 2.4G WiFi list and the 5G WiFi list are updated repeatedly, and the first matching and the second matching are performed repeatedly, further including: S66, prioritize updating the 5G WiFi list multiple times, and repeat the second matching multiple times; S67. If the second match is successful, initiate a 5G WiFi networking connection to the main router. If the connection is successful, then initiate a 2.4G WiFi networking connection to the main router. S68. If the second match fails, update the 2.4G WiFi list multiple times and repeat the first match multiple times.
[0045] In this embodiment, similar to the second method in Embodiment Six above, the 5G WiFi list is updated repeatedly, and the second matching is performed repeatedly. If the second matching is successful, a 5G WiFi network connection is initiated to the main router. If the connection is successful, a 2.4G WiFi network connection is then initiated to the main router. If the second matching fails, the operation of updating the 2.4G WiFi list and the 5G WiFi list is performed repeatedly at intervals, as well as the operation of performing the first matching and the second matching at intervals. That is, the operation of updating the 2.4G WiFi list once, performing the first matching, then updating the 5G WiFi list once, and performing the second matching is performed, and so on in multiple cycles until the network is successfully formed, or the network formation operation stops after reaching a preset number of attempts.
[0046] The beneficial effect of this embodiment is that by prioritizing and repeatedly updating the 5G WiFi list and repeatedly performing the second matching, if the second matching is successful, a 5G WiFi networking connection is initiated to the main router. If the connection is successful, a 2.4G WiFi networking connection is then initiated to the main router. If the second matching fails, the 2.4G WiFi list is updated and the first matching is performed repeatedly. This optimizes the retry logic, ensuring networking connection efficiency and increasing the priority of 5G WiFi networking connection with the main router.
[0047] Example 8 Figure 8 This is a flowchart of the eighth embodiment of the master-slave routing networking method of the present invention. Based on the above embodiments, S10, Obtain the first item number of the 2.4G WiFi list, the second item number of the 5G WiFi list, and the historical matching status of the first and second matches; S20. The list is updated and the matching is performed repeatedly based on one or more settings, including the first item number of the 2.4G WiFi list, the second item number of the 5G WiFi list, and the historical matching status of the first and second matches.
[0048] In this embodiment, the update threshold for the 2.4G WiFi list is set according to the number of the first item in the 2.4G WiFi list. For example, if 2.4G scans channels 1 to 13, which contain 13 items, then the subsequent update threshold for the 2.4G WiFi list is 13 times.
[0049] In this embodiment, the threshold for the number of times the 5G WiFi list is updated is set according to the number of the second item in the 5G WiFi list. For example, if 13 channels (36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, and 165) are scanned for 5G channels, and there are 13 items in total, then the threshold for the number of times the 5G WiFi list is updated is 13.
[0050] In this embodiment, the initial threshold for the first match and the second match is set to 13 times. Based on this, the initial threshold increases by 0.5 times for each failed match. If the threshold is less than 1, no rematch is performed. The initial threshold decreases by 0.5 times for each successful match. The increase or decrease of the initial threshold is effective within a preset usage period (for example, the usage period is set according to a preset restart plan).
[0051] The beneficial effect of this embodiment is that by repeatedly updating the list and performing matching multiple times based on one or more settings, such as the first item number of the 2.4G WiFi list, the second item number of the 5G WiFi list, and the historical matching status of the first and second matches, the adaptive setting and dynamic adjustment of the number of times the list is updated and the matching is performed are achieved. This eliminates the tedious operation of manual setting, reduces the user's learning cost, improves network connection efficiency, and ensures network connection success rate.
[0052] Example 9 Based on the above embodiments, the present invention also proposes a master-slave routing networking device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the master-slave routing networking method as described in any of the above embodiments.
[0053] It should be noted that the above-described device embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the device embodiments, which will not be repeated here.
[0054] Example 10 Based on the above embodiments, the present invention also proposes a computer-readable storage medium storing a master-slave routing networking program, which, when executed by a processor, implements the steps of the master-slave routing networking method as described in any of the above embodiments.
[0055] It should be noted that the above-described medium embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the medium embodiments, which will not be repeated here.
[0056] The master-slave routing networking method, device, and computer-readable storage medium of the present invention, when both the master and slave routers are powered on and the master router is in a preset detection period, initiates a multi-channel beacon scan and creates a 2.4G WiFi list and a 5G WiFi list based on the scan results; performs a first match between the master router's 2.4G WiFi name and the 2.4G WiFi list, and a second match between the master router's 5G WiFi name and the 5G WiFi list; if both the first and second matches are successful, initiates a 2.4G WiFi networking connection or a 5G WiFi networking connection to the master router; if the first match is successful but the second match fails, initiates a 2.4G WiFi networking connection to the master router, and if the connection is successful, initiates a 5G WiFi networking connection to the master router; if the first match fails but the second match succeeds, initiates a 5G WiFi networking connection to the master router, and if the connection is successful, initiates a 2.4G WiFi networking connection to the master router; if both the first and second matches fail, repeats updating the list and performing matching multiple times, and if all attempts fail, ends the process of initiating a networking connection to the master router. This achieves a more efficient and convenient master-slave routing networking scheme, improves the success rate of master-slave routing in MLO networking, avoids network failure caused by DFS detection after router startup, and enhances the user's networking experience.
[0057] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0058] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0059] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0060] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.
Claims
1. A master-slave routing network method, applied to slave routing, characterized in that, The method includes: When both the main router and the slave router are powered on, and the slave router is in the preset detection period, a multi-channel beacon scan is initiated, and a 2.4G WiFi list and a 5G WiFi list are created based on the scan results; Perform a first match between the main router's 2.4G WiFi name and the 2.4G WiFi list, and a second match between the main router's 5G WiFi name and the 5G WiFi list, respectively. If both the first and second matching are successful, then initiate a 2.4G WiFi network connection and a 5G WiFi network connection to the main router; If the first match is successful and the second match fails, a 2.4G WiFi network connection is initiated to the main router. If the connection is successful, a 5G WiFi network connection is initiated to the main router. If the first match fails but the second match succeeds, a 5G WiFi network connection is initiated to the main router. If the connection is successful, a 2.4G WiFi network connection is then initiated to the main router. If both the first and second matches fail, the list is updated and the matching is performed repeatedly. If the matching fails after multiple attempts, the process of initiating a network connection to the main router is terminated.
2. The master-slave routing networking method according to claim 1, characterized in that, If both the first and second matching are successful, a 2.4G WiFi network connection and a 5G WiFi network connection will be initiated to the main router, specifically including: If the 2.4G WiFi and 5G WiFi networks with the main router are successfully connected, the networking process ends. If the 2.4G WiFi network connection and / or 5G WiFi network connection with the main router fails, repeat the operation of initiating the 2.4G WiFi network connection and 5G WiFi network connection with the main router multiple times. If the scan fails after multiple attempts, a multi-channel beacon scan will be re-initiated.
3. The master-slave routing networking method according to claim 1, characterized in that, If the first match is successful and the second match fails, a 2.4G WiFi network connection is initiated to the main router. If the connection is successful, a 5G WiFi network connection is then initiated to the main router. Specifically, this includes: If a successful network connection with the main router's 2.4G WiFi is established, the 5G WiFi list will be updated multiple times and the second matching process will be performed. If the second match is successful, disconnect the 2.4G WiFi network connection with the main router, and establish a 2.4G WiFi network connection and a 5G WiFi network connection with the main router. If the second matching fails after multiple attempts, the current 2.4G WiFi network connection with the main router will be maintained.
4. The master-slave routing networking method according to claim 1, characterized in that, If the first match fails but the second match succeeds, a 5G WiFi network connection is initiated to the main router. If the connection is successful, a 2.4G WiFi network connection is then initiated to the main router. Specifically, this includes: If the 5G WiFi network connection with the main router is successful, the 2.4G WiFi list will be updated multiple times and the first matching will be performed.
5. The master-slave routing networking method according to claim 4, characterized in that, The step of repeatedly updating the 2.4G WiFi list and performing the first matching further includes: If the first match is successful, the 5G WiFi network connection with the main router is disconnected, and a 2.4G WiFi network connection and a 5G WiFi network connection are established with the main router. If the first matching fails after repeatedly updating the 2.4G WiFi list and performing the first matching, the current 5G WiFi network connection with the main router is maintained.
6. The master-slave routing networking method according to claim 1, characterized in that, If both the first and second matches fail, the process of repeatedly updating the list and performing matching further includes: If both the first and second matching fail, the 2.4G WiFi list and the 5G WiFi list are updated multiple times, and the first and second matching are performed multiple times. If both the first and second matching are successful, then initiate a 2.4G WiFi network connection and a 5G WiFi network connection to the main router; If the first match is successful and the second match fails, a 2.4G WiFi network connection is initiated to the main router. If the connection is successful, a 5G WiFi network connection is initiated to the main router. If the first match fails but the second match succeeds, a 5G WiFi network connection is initiated to the main router. If the connection is successful, a 2.4G WiFi network connection is then initiated to the main router. If both the first and second matches fail, the list is updated and the matching is performed repeatedly. If the matching fails after multiple attempts, the process of initiating a network connection to the main router is terminated.
7. The master-slave routing networking method according to claim 6, characterized in that, The step of repeatedly updating the 2.4G WiFi list and the 5G WiFi list, and repeatedly performing the first matching and the second matching, further includes: The 5G WiFi list is updated repeatedly, and the second matching is performed repeatedly. If the second match is successful, then initiate a 5G WiFi networking connection to the main router. If the connection is successful, then initiate a 2.4G WiFi networking connection to the main router. If the second match fails, the 2.4G WiFi list is updated multiple times, and the first match is performed multiple times.
8. The master-slave routing networking method according to any one of claims 1-7, characterized in that, The list is updated and the matching is performed repeatedly based on one or more settings, including the first item number of the 2.4G WiFi list, the second item number of the 5G WiFi list, and the historical matching status of the first and second matches.
9. A master-slave routing networking device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the master-slave routing networking method as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an application master-slave routing networking program, which, when executed by a processor, implements the steps of the master-slave routing networking method as described in any one of claims 1 to 8.
