Network system channel setting method, electronic devices and computer-readable storage media
By determining the central access point and adjacent access points based on signal strength values in the network system and setting distinct channels, the problem of low channel setting efficiency in the network system is solved, thereby reducing the number of channels and improving network performance.
Patent Information
- Application Number
- CN202210619375.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-30
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2042-05-30
AI Technical Summary
In network systems, existing technologies often result in low channel setup efficiency and a large number of channels being used when there are many access points, making it difficult to effectively reduce their usage.
By obtaining the signal strength value between any two access points in the network system, the central access point and adjacent access points with proximity are determined, and channels that are different from those of the central access point are set for adjacent access points. The signal strength value is used to feed back the distance between access points, thereby realizing the automatic setting of channels and reducing the number of channels.
It improves the efficiency of channel setup, reduces the number of channels used in the network system, reduces the probability of interference between access points, and improves network performance.
Smart Images

Figure CN115190486B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wireless networking technology, and in particular to a channel setting method for a networking system, an electronic device, and a computer-readable storage medium. Background Technology
[0002] As the requirements for wireless network coverage continue to increase, networking systems composed of multiple access points are needed to adapt to application scenarios with high coverage requirements. In existing technologies, to avoid channel interference between access points, the channels corresponding to each access point in the networking system need to be manually configured sequentially. When there are many access points, without channel surveying, the number of channels used will be excessive; if channel surveying is performed, it needs to be done one by one, resulting in low efficiency in channel configuration. Therefore, how to reduce the number of channels used in a networking system and improve the efficiency of channel configuration has become an urgent problem to be solved. Summary of the Invention
[0003] The main technical problem addressed by this application is to provide a channel setting method, electronic device, and computer-readable storage medium for a networking system, which can reduce the number of channels used in the networking system and improve the efficiency of channel setting.
[0004] To address the aforementioned technical problems, this application provides a method for setting channels in a network system, comprising: obtaining a signal strength value between any two access points in the network system; the network system including multiple access points; determining a central access point and adjacent access points with a proximity relationship to the central access point based on the signal strength value; the proximity relationship being defined as the channel strength value between two access points being greater than a strength threshold; setting a channel different from that of the central access point for the adjacent access points that have not been set with a channel; wherein the channel set for the central access point is a first channel, and the channels set for any two adjacent access points with the proximity relationship are a second channel and a third channel, respectively; selecting any one of the adjacent access points as a new central access point, and returning to the step of determining the central access point and adjacent access points with a proximity relationship to the central access point based on the signal strength value, until all access points have been set with channels.
[0005] To address the aforementioned technical problems, a second aspect of this application provides an electronic device comprising: a memory and a processor coupled to each other, wherein the memory stores program data, and the processor invokes the program data to execute the method described in the first aspect.
[0006] To solve the above-mentioned technical problems, a third aspect of this application provides a computer storage medium storing program data thereon, wherein the program data, when executed by a processor, implements the method described in the first aspect.
[0007] The above scheme includes multiple access points in the network system. It obtains the signal strength value between any two access points in the network system. Based on the signal strength value, it determines the current central access point and adjacent access points with proximity to the central access point. Proximity is defined as a signal strength value between two access points exceeding a strength threshold. The signal strength value reflects the distance between access points, thus identifying access points spatially close to the central access point as adjacent access points. For adjacent access points without a channel, a channel distinct from the central access point is set. Among all adjacent access points corresponding to the current central access point, any two adjacent access points with the proximity relationship have their channels set as the second and third channels, respectively. That is, the channels between adjacent access points with a proximity relationship are distinct, while the channels between adjacent access points without a proximity relationship are the same. This achieves channel reuse between adjacent access points without a proximity relationship, reducing the number of channels used in the network system. When all adjacent access points have channels set, any adjacent access point is selected as the new central access point. The above steps are repeated until channels are set for all access points in the network system, thus automating channel setting and improving efficiency. Attached Figure Description
[0008] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:
[0009] Figure 1 This is a flowchart illustrating one implementation method of the channel setting method for the networking system of this application;
[0010] Figure 2 yes Figure 1 A schematic diagram of an application scenario corresponding to step S103 in the middle;
[0011] Figure 3 yes Figure 1 A schematic diagram of an application scenario corresponding to another implementation method of step S103;
[0012] Figure 4 yes Figure 1 A schematic diagram of an application scenario corresponding to step S104 in the middle;
[0013] Figure 5 This is a flowchart illustrating another embodiment of the channel setting method for the networking system of this application;
[0014] Figure 6 This is a schematic diagram of the structure of one embodiment of the electronic device of this application;
[0015] Figure 7 This is a schematic diagram of one embodiment of the computer-readable storage medium of this application. Detailed Implementation
[0016] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0017] In this paper, the terms "system" and "network" are often used interchangeably. The term "and / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Additionally, the character " / " generally indicates that the preceding and following related objects have an "or" relationship. Furthermore, "many" in this paper means two or more.
[0018] Please see Figure 1 , Figure 1 This is a flowchart illustrating one embodiment of the channel setting method for the networking system of this application. The method includes:
[0019] S101: Obtain the signal strength value between any two access points in the network system, which includes multiple access points.
[0020] Specifically, multiple access points constitute a network system, and the Received Signal Strength Indication (RSSI) between any two access points in the network system is obtained. The signal strength value is related to the distance between any two access points, and is usually inversely proportional.
[0021] In one application mode, after the network system is set up, all access points in the network system are set to the same initial channel, and signal scanning is performed within the initial channel to determine the signal strength value between any two access points in the network system.
[0022] In another application, after the network system is set up, any access point in the network system is selected as the master access point. The master access point sends signals to other access points in the network system that are different from the master access point to determine the signal strength values between the other access points and the master access point. By traversing all access points in the network system and taking each access point as the master access point once, the signal strength value between any two access points in the network system can be obtained.
[0023] In a specific application scenario, the access point is a wireless access point (AP). Multiple access points form a network system to expand the coverage of wireless signals. The access points in the network system are uniformly set as the initial channel, and signal scanning is performed within the initial channel so that the signal strength values between any two access points in the network system can be determined in the initial channel, thereby obtaining the signal strength values between any two access points in the network system.
[0024] S102: Based on the signal strength value, determine the central access point and adjacent access points in the network system that are adjacent to the central access point, wherein the proximity relationship is defined as the channel strength value between the two access points being greater than the strength threshold.
[0025] Specifically, the current central access point in the network system is determined. Based on the signal strength values of the access points in the network system relative to the central access point, access points with signal strength values greater than the strength threshold between them and the central access point are determined, thus obtaining adjacent access points that are adjacent to the central access point.
[0026] Furthermore, the proximity relationship is defined as the channel strength value between two access points being greater than the strength threshold. The signal strength value between two access points is inversely proportional to the distance between them. Therefore, the proximity relationship can also be expressed as the distance between two access points being less than the distance threshold, thus obtaining access points that are spatially close to the central access point as adjacent access points.
[0027] S103: Set channels for adjacent access points that have not been set up, which are different from those of the central access point. The channel set for the central access point is the first channel, and the channels set for any two adjacent access points with a proximity relationship are the second channel and the third channel, respectively.
[0028] Specifically, when assigning channels to adjacent access points that are not currently configured with channels, the channels of these adjacent access points are distinct from those of the central access point. This reduces the probability of mutual interference between the central access point and adjacent access points. When adjacent access points are adjacent, their channels are also distinct. When adjacent access points are not adjacent, they can be assigned the same channel. The channel assigned to the central access point is defined as the first channel. Therefore, the channels assigned to any two adjacent access points with an adjacent relationship are designated as the second and third channels, respectively. This enables channel reuse between adjacent access points without an adjacent relationship, reducing the number of channels used in the network system.
[0029] In one application method, the channel of the central access point is used as the first channel. When none of the adjacent access points have a channel set, a second channel, different from that of the central access point, is set for any adjacent access point. A third channel is set for adjacent access points that are adjacent to both the central access point and the access point that was last set to a channel. Then, a second channel is set for adjacent access points that are adjacent to both the central access point and the access point that was last set to a channel. This process continues until all adjacent access points have a channel set. The channels between adjacent access points that are adjacent are the second channel and the third channel, respectively. The channels between adjacent access points that are not adjacent are either the second channel or the third channel.
[0030] For the application scenarios corresponding to the above application methods, please refer to Figure 2 , Figure 2 yes Figure 1 The diagram illustrates an application scenario of one embodiment corresponding to step S103. For ease of explanation, the signal coverage area of the access point is represented by a regular hexagon. Access points without a channel are shown without fill, while access points with a channel have the same fill pattern. At this time, the first channel corresponding to the central access point is channel 1. A second channel, distinct from the central access point, is set for any adjacent access point as channel 6. Adjacent access points that are adjacent to both the central access point and the access point with the most recently set channel are assigned a third channel as channel 11. Adjacent access points that are adjacent to both the central access point and the access point with the most recently set channel are assigned a second channel as channel 6, and so on, resulting in the following... Figure 2 The final channel settings result is shown in the image.
[0031] In another application, the channel of the central access point is used as the first channel. When some adjacent access points have already been configured with channels, adjacent access points that are adjacent to both the central access point and the adjacent access points with configured channels are identified as access points to be configured. The channels corresponding to the access points to be configured and the adjacent access points that are adjacent to both the central access point and the central access point are marked as the second channel. A third channel, different from the first and second channels, is set for the access points to be configured. The second channel is set for the adjacent access points that are adjacent to both the central access point and the access point with the most recent channel configuration. Then, the third channel is set for the adjacent access points that are adjacent to both the central access point and the access point with the most recent channel configuration. This process continues until all adjacent access points have been configured with channels. The channels between adjacent access points with adjacent relationships are the second channel and the third channel, respectively. The channels between adjacent access points without adjacent relationships are either the second channel or the third channel.
[0032] For the application scenarios corresponding to the above application methods, please refer to Figure 3 , Figure 3 yes Figure 1 The diagram illustrates an application scenario of another implementation method corresponding to step S103. In this case, the central access point is the rightmost access point with channel 6 already configured. Channel 6 is marked as the first channel. Some adjacent access points corresponding to the central access point have already configured channels. Adjacent access points that are adjacent to both the central access point and the adjacent access points with configured channels are identified as access points to be configured. In the diagram, these are blank access points that are adjacent to both channel 6 and channel 11. The channels corresponding to both the access points to be configured and the adjacent access points adjacent to the central access point are marked as the second channel. Figure 3 In the diagram, the second channel is channel 11. Taking a clockwise direction as an example, a third channel, distinct from the first and second channels, is set for the access point to be configured. Figure 3 In this process, the third channel is channel 1. Adjacent access points that are adjacent to both the central access point and the access point whose channel was most recently configured are assigned the second channel as channel 11. Similarly, adjacent access points that are adjacent to both the central access point and the access point whose channel was most recently configured are assigned the third channel as channel 1, and so on, resulting in the following... Figure 3 The final channel settings result is shown in the image.
[0033] S104: Select any adjacent access point as the new central access point, and return to the step of determining the central access point and adjacent access points with proximity to the central access point in the network system based on the signal strength value, until all access points are equipped with channels.
[0034] Specifically, by selecting any adjacent access point as the new central access point, one can return to the steps of determining the central access point and adjacent access points with proximity to the central access point in the network system based on the signal strength value.
[0035] Optionally, any access point that has already served as a central access point will not be used again as a new access point to improve the traversal efficiency of access points until all access points have been configured with channels.
[0036] In one application mode, the access points with configured channels are known. When selecting adjacent access points, based on the signal strength value between any two access points, the adjacent access points that are close to the access points without configured channels can be selected as the new central access point. This process returns to the step of determining the central access point and adjacent access points that are close to the central access point in the network system based on the signal strength value. This process is repeated until all access points have configured channels.
[0037] It can be understood that the meaning shown in step S103 above is... Figure 2 and Figure 3 This corresponds to step S104, which involves selecting an adjacent access point as the new central access point.
[0038] Further, please refer to Figure 4 , Figure 4 yes Figure 1 A schematic diagram of an application scenario corresponding to step S104 of the above-mentioned implementation method is shown. Figures 2-3 The final channel configuration for all access points in the network system is as follows: Figure 4 As shown, the channel settings of the entire network system can be completed using only the first, second, and third channels. When terminal devices connected to the access point roam, the best access point can be quickly selected, improving network performance.
[0039] The above scheme includes multiple access points in the network system. It obtains the signal strength value between any two access points in the network system. Based on the signal strength value, it determines the current central access point and adjacent access points with proximity to the central access point. Proximity is defined as a signal strength value between two access points exceeding a strength threshold. The signal strength value reflects the distance between access points, thus identifying access points spatially close to the central access point as adjacent access points. For adjacent access points without a channel, a channel distinct from the central access point is set. Among all adjacent access points corresponding to the current central access point, any two adjacent access points with the proximity relationship have their channels set as the second and third channels, respectively. That is, the channels between adjacent access points with a proximity relationship are distinct, while the channels between adjacent access points without a proximity relationship are the same. This achieves channel reuse between adjacent access points without a proximity relationship, reducing the number of channels used in the network system. When all adjacent access points have channels set, any adjacent access point is selected as the new central access point. The above steps are repeated until channels are set for all access points in the network system, thus automating channel setting and improving efficiency.
[0040] Please see Figure 5 , Figure 5 This is a flowchart illustrating another embodiment of the channel setting method for the networking system of this application. The method includes:
[0041] S501: In response to the completion of the networking system, select any access point as the master access point and set the initial channel of the master access point, designate access points different from the master access point as slave access points, and set the channels of all slave access points as the initial channels.
[0042] Specifically, when the networking system is initially completed, any access point is selected as the master access point, and the channel of the master access point is set as the initial channel. Access points that are different from the master access point are designated as slave access points, and the channels of the slave access points are also set as the initial channels, thereby temporarily unifying the channels corresponding to the access points in the networking system.
[0043] In one application scenario, after the networking system completes its networking, any access point is selected as the master access point. The initial channel of the master access point is set, and the channels of all slave access points are set to be the same as its own. Consequently, the channels of the slave access points are also set to the initial channels.
[0044] S502: Perform a signal scan within the initial channel to obtain the signal strength value between any two access points in the network system.
[0045] Specifically, signal scanning is performed within the initial channel to determine the signal strength value between any two access points in the network system within the initial channel. By setting the same initial channel for all access points in the network system and performing signal scanning on the same channel, the efficiency of obtaining the signal strength value between any two access points in the network system is improved.
[0046] S503: Based on the signal strength value, determine the central access point and adjacent access points in the network system that are adjacent to the central access point. The adjacent relationship is defined as the channel strength value between the two access points being greater than the strength threshold.
[0047] Specifically, the current central access point in the network system is obtained. Based on the signal strength value of the access points in the network system relative to the central access point, access points with signal strength values greater than the central access point are found. Then, adjacent access points with distances less than the distance threshold from the central access point are obtained. Here, the signal strength value is inversely proportional to the distance, and the distance threshold is determined based on the strength threshold.
[0048] In one application scenario, the distance between any two access points is determined based on the signal strength value. Access points whose distance from the central access point is less than a distance threshold are designated as adjacent access points. This allows us to obtain access points that are spatially close to the central access point, which are access points where the channel is likely to conflict with the central access point.
[0049] S504: Detect whether adjacent access points have channels set up, and obtain the channel detection results of adjacent access points.
[0050] Specifically, the system detects whether adjacent access points have been configured with channels, thereby obtaining the channel detection results for adjacent access points. The channel detection results for each adjacent access point include whether a channel has been configured or not.
[0051] S505: Based on the channel detection results, adjacent access points are divided into set access points and / or unset access points, and at least one unset access point is extracted as an access point to be set.
[0052] Specifically, adjacent access points are classified based on channel detection results, into configured access points and / or unconfigured access points. When an unconfigured access point exists, it is extracted as the access point to be configured, so as to improve the efficiency of configuring the channel of the access point.
[0053] Optionally, when the networking system completes networking for the first time, after obtaining the signal strength value between any two access points in the networking system, the initial channel corresponding to the master access point is retained, and the master access point is used as the central access point when setting the channel, while the initial channels corresponding to all subordinate access points are cleared.
[0054] In one application mode, in response to the fact that all adjacent access points are unconfigured access points, any one unconfigured access point is extracted as the access point to be configured; in response to the fact that the adjacent access points include both configured and unconfigured access points, at least one unconfigured access point that is adjacent to both the configured access point and the central access point is extracted as the access point to be configured; in response to the fact that all adjacent access points are configured access points, the step of selecting any one adjacent access point as the new central access point is entered.
[0055] Specifically, when all adjacent access points are unconfigured, this usually corresponds to the scenario when the entire network system starts setting up channels. Except for the current central access point which has a channel, other access points do not have channels set up yet. Therefore, all adjacent access points are unconfigured, and any unconfigured access point is selected as the access point to be configured.
[0056] Furthermore, when adjacent access points include both configured and unconfigured access points, it typically means that at least some access points in the entire network system have already configured channels. During the traversal of access points in the network system, at least one unconfigured access point that is adjacent to both the configured access point and the central access point is extracted as the access point to be configured, thereby improving the efficiency of obtaining the access point to be configured. Moreover, the channel of the access point to be configured can be configured according to the channel that is different from the central access point and different from the channel of the configured access point that is adjacent to the access point to be configured, thereby reducing the probability of channel interference between access points.
[0057] It is understandable that when all adjacent access points are already configured, all adjacent access points corresponding to the current central access point already have channels configured, and the process proceeds to the step of selecting any adjacent access point as the new central access point.
[0058] S506: Based on the channel and channel detection results corresponding to the central access point, set a channel for the access point to be configured that is different from that of the central access point.
[0059] Specifically, the channel corresponding to the access point to be configured is different from the channel of the central access point. When configuring the channel for the access point to be configured, based on the channel detection results, if the access point that is adjacent to both the access point to be configured and the central access point is a configured access point, then the channel of the access point to be configured is configured according to the channels that are different from the central access point and the channels that are different from the channels of the configured access points that are adjacent to the access point to be configured. If the access point that is adjacent to both the access point to be configured and the central access point is an unconfigured access point, then the access point to be configured only needs to be configured with a channel that is different from the channel of the central access point.
[0060] In one application mode, in response to the fact that all adjacent access points are unconfigured access points, a second channel, different from the first channel, is configured for the access point to be configured; in response to the fact that the adjacent access points include both configured and unconfigured access points, the configured access points that are adjacent to both the access point to be configured and the central access point are considered as adjacent configured access points. When the channel configured by the adjacent configured access point is the second channel, a third channel, different from the first and second channels, is configured for the access point to be configured; when the channel configured by the adjacent configured access point is the third channel, a second channel, different from both the first and third channels, is configured for the access point to be configured.
[0061] Specifically, when all adjacent access points are unconfigured, a second channel, distinct from the first channel, is set for the access point to be configured. When adjacent access points include both configured and unconfigured access points, based on the fact that the access point to be configured selected in the previous application method is adjacent to both the configured and central access points, the configured access points that are adjacent to both the access point to be configured and the central access point are considered as adjacent configured access points. During the process of labeling the channels corresponding to adjacent access points, if the channel set by the adjacent configured access point is the second channel, a third channel, distinct from the first and second channels, is set for the access point to be configured. If the channel set by the adjacent configured access point is the third channel, a second channel, distinct from both the first and third channels, is set for the access point to be configured.
[0062] Furthermore, after the above process, when the channel corresponding to the central access point is the first channel, the channels set for any two adjacent access points with a proximity relationship are the second channel and the third channel, respectively. When there are more than two adjacent access points, the second channel and / or the third channel can be reused, thereby reducing the number of channels used in the network system. When the terminal device connected to the access point roams, it can quickly select the best access point, thus improving the network performance.
[0063] In another application, after dividing adjacent access points into set access points and / or unset access points based on channel detection results, and extracting at least one unset access point as an access point to be set, the method further includes: dividing adjacent access points into first adjacent access points and second adjacent access points, wherein the first adjacent access points and the second adjacent access points are adjacent to each other, and the signal strength value between any two first adjacent access points or any two second adjacent access points is less than the strength threshold.
[0064] Specifically, based on the signal strength value, all adjacent access points corresponding to the current central access point are divided to obtain the first adjacent access point and the second adjacent access point. When dividing the adjacent access points, the first adjacent access point and the second adjacent access point have a proximity relationship. The signal strength value between any two first adjacent access points or any two second adjacent access points is less than the strength threshold, that is, there is no proximity relationship between any two first adjacent access points or any two second adjacent access points. Thus, the first adjacent access points and the second adjacent access points that can share the channel are obtained at once.
[0065] Furthermore, based on the channel corresponding to the central access point and the channel detection results, a channel different from the central access point is set for the access points to be set, including: treating all unset access points as access points to be set; responding to both the first and second adjacent access points being unset access points, setting a second channel different from the first channel for the first adjacent access point, and setting a third channel different from the first and second channels for the second adjacent access point; responding to the first adjacent access points including set access points and the set channel being the second channel and / or the second adjacent access points including set access points and the set channel being the third channel, setting a second channel for the access points to be set in the first adjacent access points, and setting a third channel for the access points to be set in the second adjacent access points; responding to the first adjacent access points including set access points and the set channel being the third channel and / or the second adjacent access points including set access points and the set channel being the second channel, setting a third channel for the access points to be set in the first adjacent access points, and setting a second channel for the access points to be set in the second adjacent access points.
[0066] Specifically, all unconfigured access points are treated as access points to be configured. When all first adjacent access points and second adjacent access points are unconfigured access points, a second channel, different from the first channel, is configured for the first adjacent access points, and a third channel, different from the first and second channels, is configured for the second adjacent access points, so as to unify the channels of the first adjacent access points and the second adjacent access points.
[0067] Furthermore, when the first adjacent access point includes an already configured access point and the configured channel is the second channel, and / or the second adjacent access point includes an already configured access point and the configured channel is the third channel, it means that the channels corresponding to all first adjacent access points can be configured as the second channel, and the channels corresponding to all second adjacent access points can be configured as the third channel. The second channel is configured for the access point to be configured in the first adjacent access point, and the third channel is configured for the access point to be configured in the second adjacent access point, so that the channels corresponding to all first adjacent access points are configured as the second channel, and the channels corresponding to all second adjacent access points are configured as the third channel.
[0068] It is understandable that when the first adjacent access point includes an already configured access point with its configured channel being the third channel, and / or the second adjacent access point includes an already configured access point with its configured channel being the second channel, it means that the channels corresponding to all first adjacent access points can be set to the third channel, and the channels corresponding to all second adjacent access points can be set to the second channel. The third channel is set for the access points to be configured in the first adjacent access points, and the second channel is set for the access points to be configured in the second adjacent access points, so that the channels corresponding to all first adjacent access points are set to the third channel, and the channels corresponding to all second adjacent access points are set to the second channel. This improves the efficiency of channel configuration for adjacent access points.
[0069] S507: Determine whether all adjacent access points have channels configured.
[0070] Specifically, if all adjacent access points have channels, proceed to step S508; otherwise, proceed to step S504, until all adjacent access points have channels.
[0071] S508: Determine whether all access points have channels configured.
[0072] Specifically, if all access points are equipped with channels, proceed to step S510; otherwise, proceed to step S509.
[0073] S509: Select any adjacent access point as the new central access point.
[0074] Specifically, after the above steps, the adjacent access points must be access points with channels. Therefore, selecting any adjacent access point as the new central access point can ensure that the new central access point must have channels, so that during the loop, the adjacent access points corresponding to the new central access point can be set with channels different from those of the central access point.
[0075] In one application mode, it is detected whether all access points in the network system have channels set up, and all access points are divided into completed access points and incomplete access points; among the adjacent access points that are adjacent to the incomplete access points, one adjacent access point is selected as the new central access point.
[0076] Specifically, the system detects whether all access points in the network system have channels set up, thereby dividing all access points into completed access points and incomplete access points. Based on the signal strength value, it determines whether adjacent access points are adjacent to incomplete access points. Among the adjacent access points that are adjacent to incomplete access points, one adjacent access point is selected as the new central access point. This ensures that there will be incomplete access points among the adjacent access points corresponding to the new central access point, thereby improving the efficiency of setting up channels for each access point in the network system.
[0077] Optionally, the number of incomplete access points with proximity relationships corresponding to each adjacent access point is counted, and the adjacent access point with the largest number is selected as the new central access point, so that as many channels corresponding to incomplete access points as possible can be set in each loop, thereby improving the setting efficiency.
[0078] Furthermore, after detecting whether all access points in the network system have channels set up and dividing all access points into completed access points and incomplete access points, the method further includes: in response to the fact that all adjacent access points do not have a proximity relationship with the incomplete access point, selecting a completed access point that has a proximity relationship with the incomplete access point as the new central access point.
[0079] In situations where access points in a network system are relatively dispersed, there may be a scenario where none of the current adjacent access points have a corresponding incomplete access point with a proximity relationship. In this case, a completed access point with a proximity relationship to an incomplete access point is selected as the new central access point. This ensures that the new central access point is necessarily configured with a channel, and that the adjacent access points corresponding to the new central access point necessarily include incomplete access points. This allows the adjacent access points corresponding to the new central access point to be configured with channels different from those of the central access point during the loop process, reducing the number of loops and improving the efficiency of channel configuration.
[0080] S510: Confirm that all access points have channels configured.
[0081] Specifically, the loop ends and the channel setup is completed when all access points have been configured with channels.
[0082] In this embodiment, after the initial setup of the network system is completed, the access points within the network system are assigned the same initial channel, and signal scanning is performed on the same channel, improving the efficiency of obtaining the signal strength values between any two access points in the network system. When the channel of the central access point is the first channel, the second and third channels are set for adjacent access points, so that the channels set for any two adjacent access points with a proximity relationship are the second and third channels, respectively, thereby realizing channel reuse, reducing the number of channels used by the network system. When terminal devices connected to the access point roam, they can quickly select the best access point, improving network performance and optimizing the method of selecting a new central access point, so that among the adjacent access points corresponding to the new central access point, there must be access points without channels set, thereby improving the efficiency of setting channels for each access point in the network system.
[0083] Please see Figure 6 , Figure 6This is a schematic diagram of the structure of an embodiment of the electronic device of this application. The electronic device 60 includes a memory 601 and a processor 602 coupled to each other. The memory 601 stores program data (not shown in the figure), and the processor 602 calls the program data to implement the method in any of the above embodiments. For the description of the relevant content, please refer to the detailed description of the above method embodiments, which will not be repeated here.
[0084] Please see Figure 7 , Figure 7 This is a schematic diagram of a computer-readable storage medium according to an embodiment of the present application. The computer-readable storage medium 70 stores program data 700. When the program data 700 is executed by a processor, it implements the method in any of the above embodiments. For a detailed description of the relevant content, please refer to the detailed description of the above method embodiments, which will not be repeated here.
[0085] It should be noted that the units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0086] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0087] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0088] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for setting channel in a networking system, characterized in that, The method includes: Obtain the signal strength value between any two access points in the network system; the network system includes multiple access points. Based on the signal strength value, the central access point and adjacent access points with proximity to the central access point in the network system are determined; the proximity relationship is defined as the channel strength value between two access points being greater than a strength threshold. Setting a channel different from the central access point for adjacent access points that have not been configured with a channel includes: detecting whether the adjacent access points have been configured with a channel to obtain the channel detection result of the adjacent access points; dividing the adjacent access points into configured access points and / or unconfigured access points based on the channel detection result, and extracting at least one unconfigured access point as an access point to be configured; setting a channel different from the central access point for the access point to be configured based on the channel corresponding to the central access point and the channel detection result; wherein the channel configured for the central access point is the first channel, and the channels configured for any two adjacent access points with the proximity relationship are the second channel and the third channel, respectively. Select any of the adjacent access points as the new central access point, and return to the step of determining the central access point and adjacent access points with proximity to the central access point in the network system based on the signal strength value, until all access points are equipped with channels; After dividing the adjacent access points into set access points and / or unset access points based on the channel detection results, and extracting at least one unset access point as an access point to be set, the method further includes: dividing the adjacent access points into first adjacent access points and second adjacent access points, wherein the first adjacent access points and the second adjacent access points have the proximity relationship, and the signal strength value between any two first adjacent access points or any two second adjacent access points is less than the strength threshold. The step of setting a channel different from the central access point for the access point to be set based on the channel corresponding to the central access point and the channel detection result includes: treating all unset access points as the access points to be set; in response to both the first adjacent access point and the second adjacent access point being unset access points, setting a second channel different from the first channel for the first adjacent access point, and setting a third channel different from the first channel and the second channel for the second adjacent access point; in response to the first adjacent access point including a set access point and the set channel being the second channel and / or the second adjacent access point including a set access point and the set channel being the third channel, setting the second channel for the access point to be set in the first adjacent access point, and setting the third channel for the access point to be set in the second adjacent access point; in response to the first adjacent access point including a set access point and the set channel being the third channel and / or the second adjacent access point including a set access point and the set channel being the second channel, setting the third channel for the access point to be set in the first adjacent access point, and setting the second channel for the access point to be set in the second adjacent access point.
2. The channel setting method for a networking system according to claim 1, characterized in that, Obtaining the signal strength value between any two access points in the network system includes: In response to the completion of the networking system, any one of the access points is selected as the master access point and the initial channel of the master access point is set. Access points that are different from the master access point are designated as slave access points, and the channels of all slave access points are set to the initial channel. A signal scan is performed within the initial channel to obtain the signal strength value between any two access points in the network system.
3. The channel setting method for a networking system according to claim 1, characterized in that, The step of extracting at least one unconfigured access point as an access point to be configured includes: In response to the fact that all the adjacent access points are unset access points, any one of the unset access points is extracted as the access point to be set. In response to the fact that the adjacent access points include the set access points and the unset access points, at least one unset access point that has the proximity relationship with both the set access points and the central access point is extracted as the access point to be set. In response to the fact that all the adjacent access points are the already set access points, proceed to the step of selecting any one of the adjacent access points as the new central access point.
4. The channel setting method for a networking system according to claim 3, characterized in that, The step of setting a channel for the access point to be configured that is different from that of the central access point based on the channel corresponding to the central access point and the channel detection result includes: In response to the fact that all the adjacent access points are the unconfigured access points, a second channel, different from the first channel, is set for the access point to be configured; In response to the adjacent access points including the already configured access points and the unconfigured access points, the already configured access points that have the proximity relationship with both the access point to be configured and the central access point are designated as adjacent already configured access points. When the channel configured by the adjacent already configured access point is the second channel, a third channel different from the first channel and the second channel is configured for the access point to be configured. When the channel configured by the adjacent already configured access point is the third channel, a second channel different from the first channel and the third channel is configured for the access point to be configured.
5. The channel setting method for a networking system according to claim 1, characterized in that, Selecting any of the adjacent access points as the new central access point includes: The system detects whether all access points in the network system have channels configured, and divides all access points into completed access points and incomplete access points. Among the neighboring access points that have the proximity relationship with the incomplete access point, select one of the neighboring access points as the new central access point.
6. The channel setting method for a networking system according to claim 5, characterized in that, After detecting whether all access points in the network system have channels set up, and classifying all access points into completed access points and incomplete access points, the method further includes: In response to the fact that none of the adjacent access points have a proximity relationship with the incomplete access point, a completed access point that has a proximity relationship with the incomplete access point is selected as the new central access point.
7. An electronic device, characterized in that, include: A memory and a processor are coupled to each other, wherein the memory stores program data, and the processor invokes the program data to perform the method as described in any one of claims 1-6.
8. A computer-readable storage medium storing program data thereon, characterized in that, When the program data is executed by the processor, it implements the method as described in any one of claims 1-6.
Citation Information
Patent Citations
Dedicated channel for fast initial link setup in a wireless network
CN106134257A