Wireless Channel Selection Method, Device, Electronic Device and Readable Storage Medium

By filtering candidate wireless channels that are not affected by channel interference factors, and using the first channel congestion degree to select the target wireless channel, the problem of low accuracy in wireless channel selection in the prior art is solved, and a higher accuracy channel selection is achieved.

CN115604852BActive Publication Date: 2025-07-25SHENZHEN SKYWORTH SOFTWARE
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211397005.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-09
Publication Date
2025-07-25
Estimated Expiration
2042-11-09

AI Technical Summary

Technical Problem

Existing wireless channel selection algorithms such as ChannelAlgBusyTime algorithm Because the channel congestion of the wireless channel is easily affected by channel interference factors such as adjacent channels and communication environments, the selected wireless channel may not have the best signal quality and the selection accuracy is low.

Method used

Obtain the busy wireless channels under the current channel width, filter out the candidate wireless channels that are not affected by channel interference factors, and select the target wireless channel through the first channel congestion degree of the candidate wireless channel.

Benefits of technology

The accuracy of wireless channel selection is improved, the impact of channel interference factors on channel congestion is avoided, and the selected wireless channel is ensured that the signal quality is the best.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115604852B_ABST
    Figure CN115604852B_ABST
Patent Text Reader

Abstract

The present application discloses a wireless channel selection method, apparatus, electronic device, and readable storage medium, which are applied to the field of wireless communication technologies. The wireless channel selection method includes: obtaining busy wireless channels under the current channel width, where the busy wireless channels are wireless channels in a busy state; screening at least one candidate wireless channel from the available wireless channel group under the current channel width according to the busy wireless channels, where the candidate wireless channels are wireless channels not affected by channel interference factors; and selecting a target wireless channel from the candidate wireless channels according to the first channel congestion degree of each candidate wireless channel. The present application solves the technical problem of low selection accuracy in wireless channel selection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication technologies, and in particular, to a method and apparatus for selecting a wireless channel, an electronic device, and a readable storage medium. Background Art

[0002] With the continuous development of wireless communication technologies and the increasing demand for multimedia services by users, the optimization and design of wireless communication networks have also faced new challenges. Currently, users usually rely on wireless channel algorithms to select wireless channels. Taking the ChannelAlgBusyTime algorithm with the highest accuracy in selecting wireless channels as an example, it calculates the channel congestion degree (BusyTime) of all wireless channels under the channel width, and then selects the wireless channel with the lowest channel congestion degree as the optimal wireless channel. However, since the channel congestion degree of some wireless channels among all wireless channels is easily affected by channel interference factors such as adjacent channels and communication environments, there are errors in the channel congestion degree of some wireless channels, and thus the wireless channels selected by the ChannelAlgBusyTime algorithm may not be the wireless channels with the best signal quality in the wireless communication frequency band. Therefore, the current accuracy in selecting wireless channels is low. Summary of the Invention

[0003] The main objective of this application is to provide a method and apparatus for selecting a wireless channel, an electronic device, and a readable storage medium, aiming to solve the technical problem of low accuracy in selecting wireless channels in the prior art.

[0004] To achieve the above objective, this application provides a method for selecting a wireless channel, and the method for selecting a wireless channel includes:

[0005] Obtain busy wireless channels under the current channel width, where the busy wireless channels are wireless channels in a busy state;

[0006] According to the busy wireless channels, screen out at least one candidate wireless channel from the available wireless channel group under the current channel width, where the candidate wireless channels are wireless channels not affected by channel interference factors;

[0007] Select a target wireless channel from the candidate wireless channels according to the first channel congestion degree of each candidate wireless channel.

[0008] Optionally, the step of screening out at least one candidate wireless channel from the available wireless channel group under the current channel width according to the busy wireless channels includes:

[0009] Detect whether the channel signal strength of the busy wireless channels is greater than a first preset signal strength threshold;

[0010] If so, obtain the initially screened available wireless channel group by initially screening the available wireless channel group;

[0011] Perform secondary screening on the initially screened available wireless channel group according to the second channel congestion degree of the busy wireless channel to obtain at least one of the candidate wireless channels.

[0012] Optionally, the step of performing secondary screening on the initially screened available wireless channel group according to the second channel congestion degree of the busy wireless channel to obtain at least one of the candidate wireless channels includes:

[0013] Obtain the neighboring impact channels of the busy wireless channel;

[0014] Detect whether to screen the neighboring impact channels according to the second channel congestion degree;

[0015] If so, obtain at least one of the candidate wireless channels by screening the neighboring impact channels in the initially screened available wireless channel group;

[0016] If not, use at least one first wireless channel in the initially screened available wireless channel group as the candidate wireless channel.

[0017] Optionally, the step of detecting whether to screen the neighboring impact channels according to the second channel congestion degree includes:

[0018] Calculate the third channel congestion degree of the neighboring impact channel according to the second channel congestion degree and the channel impact weight of the neighboring impact channel;

[0019] Detect whether the third channel congestion degree is greater than a preset channel congestion degree threshold;

[0020] If so, determine to screen the neighboring impact channels;

[0021] If not, determine not to screen the neighboring impact channels.

[0022] Optionally, the step of obtaining the initially screened available wireless channel group by initially screening the available wireless channel group includes:

[0023] Obtain the adjacent wireless channels of the busy wireless channel;

[0024] Screen out the busy wireless channel and the adjacent wireless channels in the wireless channel group to obtain the initially screened available wireless channel group.

[0025] Optionally, the step of obtaining the busy wireless channel under the current channel width includes:

[0026] Obtain a wireless channel source set under the current channel width, where the wireless channel source set includes at least one wireless channel identifier;

[0027] Take the current wireless channels corresponding to each of the wireless channel identifiers as the busy wireless channels.

[0028] Optionally, before the step of obtaining the busy wireless channels under the current channel width, the wireless channel selection method further includes:

[0029] Detect whether the low signal strength of a second wireless channel under the current channel width is greater than a second preset signal strength threshold;

[0030] If so, block the second wireless channel.

[0031] To achieve the above object, the present application further provides a wireless channel selection device, and the wireless channel selection device includes:

[0032] An acquisition module, configured to acquire busy wireless channels under the current channel width, where the busy wireless channels are wireless channels in a busy state;

[0033] A screening module, configured to screen out at least one candidate wireless channel from the available wireless channel group under the current channel width according to the busy wireless channels, where the candidate wireless channels are wireless channels not affected by channel interference factors;

[0034] A selection module, configured to select a target wireless channel from each of the candidate wireless channels according to the first channel congestion degree of each of the candidate wireless channels.

[0035] Optionally, the screening module is further configured to:

[0036] Detect whether the channel signal strength of the busy wireless channel is greater than a first preset signal strength threshold;

[0037] If so, obtain a first-screened available wireless channel group by initially screening the available wireless channel group;

[0038] Perform a second screening on the first-screened available wireless channel group according to the second channel congestion degree of the busy wireless channel to obtain at least one of the candidate wireless channels.

[0039] Optionally, the screening module is further configured to:

[0040] Obtain the adjacent influence channels of the busy wireless channel;

[0041] Detect whether to screen the adjacent influence channels according to the second channel congestion degree;

[0042] If so, at least one of the candidate wireless channels is obtained by screening the neighboring interfering channels from the available wireless channel group after the initial screening;

[0043] If not, at least one first wireless channel in the available wireless channel group after the initial screening is used as the candidate wireless channel.

[0044] Optionally, the screening module is further configured to:

[0045] Calculate a third channel congestion degree of the neighboring interfering channel according to the second channel congestion degree and the channel interference weight of the neighboring interfering channel;

[0046] Detect whether the third channel congestion degree is greater than a preset channel congestion degree threshold;

[0047] If so, it is determined to screen the neighboring interfering channel;

[0048] If not, it is determined not to screen the neighboring interfering channel.

[0049] Optionally, the screening module is further configured to:

[0050] Obtain adjacent wireless channels of the busy wireless channel;

[0051] Screen out the busy wireless channel and the adjacent wireless channels from the wireless channel group to obtain the available wireless channel group after the initial screening.

[0052] Optionally, the obtaining module is further configured to:

[0053] Obtain a wireless channel source set under the current channel width, where the wireless channel source set includes at least one wireless channel identifier;

[0054] Use the current wireless channels corresponding to the respective wireless channel identifiers as the busy wireless channels.

[0055] Optionally, the wireless channel selection device is further configured to:

[0056] Detect whether the low signal strength of the second wireless channel under the current channel width is greater than a second preset signal strength threshold;

[0057] If so, block the second wireless channel.

[0058] This application further provides an electronic device, where the electronic device includes: a memory, a processor, and a program of the wireless channel selection method stored on the memory and executable on the processor. When the program of the wireless channel selection method is executed by the processor, the steps of the wireless channel selection method as described above can be implemented.

[0059] The present application also provides a computer-readable storage medium, on which a program for implementing the wireless channel selection method is stored. When the program of the wireless channel selection method is executed by a processor, the steps of the wireless channel selection method as described above are implemented.

[0060] The present application also provides a computer program product, including a computer program, which implements the steps of the wireless channel selection method as described above when executed by a processor.

[0061] The present application provides a wireless channel selection method, apparatus, electronic device, and readable storage medium. That is, obtain busy wireless channels under the current channel width, where the busy wireless channels are wireless channels in a busy state; according to the busy wireless channels, screen out at least one candidate wireless channel from the available wireless channel group under the current channel width, where the candidate wireless channels are wireless channels not affected by channel interference factors; select a target wireless channel from the candidate wireless channels based on the first channel congestion degree of each candidate wireless channel. Since the candidate wireless channels are wireless channels not affected by channel interference factors, and then select the target wireless channel from the candidate wireless channels through the first channel congestion degree, the purpose of avoiding the influence of channel interference factors on the first channel congestion degree can be achieved. That is, the purpose of accurately reflecting the busy degree of the candidate wireless channels under the channel width through each first channel congestion degree is achieved. Instead of when selecting the wireless channel with the best signal quality, calculating the channel congestion degree of all wireless channels and selecting the wireless channel with the smallest channel congestion degree as the target channel. Therefore, the technical defect that the channel congestion degree of some wireless channels in all wireless channels is easily affected by channel interference factors, resulting in errors in the channel congestion degree of some wireless channels, is overcome. Furthermore, the selected wireless channel may not be the wireless channel with the best signal quality in the wireless communication frequency band. Therefore, the selection accuracy of wireless channel selection is improved. Description of the Drawings

[0062] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.

[0064] Figure 1 It is a schematic flowchart of the first embodiment of the wireless channel selection method of the present application;

[0065] Figure 2 It is a channel schematic diagram of the 2.4GHz frequency band for the wireless channel selection method of this application;

[0066] Figure 3 It is a schematic flowchart of the second embodiment of the wireless channel selection method of this application;

[0067] Figure 4 It is a schematic diagram of an embodiment of the wireless channel selection device of this application;

[0068] Figure 5 It is a schematic diagram of the device structure of the hardware operating environment involved in the wireless channel selection method in the embodiment of this application.

[0069] The realization of the purpose, functional features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. Specific Embodiments

[0070] In order to make the above objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0071] Embodiment 1

[0072] First of all, it should be understood that in a crowded communication network environment, it is usually very difficult to manually select a wireless channel with relatively good signal quality for communication. Moreover, the channel signal quality of the wireless channel plays a very important role in the normal operation of the entire wireless communication system. Therefore, a wireless channel selection algorithm is usually adopted to automatically select the most reasonable wireless channel for the user. Currently, common wireless channel algorithms include the ChannelAlgApCnt algorithm, the ChannelAlgApCCA algorithm, and the ChannelAlgBusyTime algorithm. Among them, the ChannelAlgApCnt algorithm calculates the interference value by counting the number of APs (Access Points) of each wireless channel under the channel width, and then selects the channel with fewer APs as the target wireless channel. The ChannelAlgApCCA algorithm obtains the target wireless channel by calculating CCA (Clear Channel Assessment) and RSSI (Received Signal Strength Indicator). The ChannelAlgBusyTime algorithm takes the wireless channel with the smallest calculated BusyTime as the target wireless channel. However, the existing wireless channel automatic selection algorithms all have obvious technical defects. For example, the ChannelAlgApCnt algorithm's counting of the number of APs in the surrounding wireless channels cannot truly reflect the actual situation of each channel, so it often fails to select the wireless channel with the best signal quality as the target wireless channel. The ChannelAlgApCCA algorithm can measure the channel busy and channel idle conditions to a certain extent, but CCA is hardware-related, making it difficult to distinguish CCA levels. Due to the limitations of the above two algorithms and the relatively high accuracy of the ChannelAlgBusyTime algorithm in selecting wireless channels, various wireless modules of the ChannelAlgBusyTime algorithm are currently available. However, in a large number of multi-channel traffic tests, it is found that the ChannelAlgBusyTime algorithm may still not select the wireless channel with the best signal quality. After in-depth analysis, it is found that the reason is that there are errors in the channel congestion degree of some wireless channels, which may lead to misordering when sorting the channel congestion degree, so that the selected wireless channel is not the wireless channel with the relatively best expected channel quality. Therefore, there is an urgent need for a method to improve the accuracy of wireless channel selection.

[0073] An embodiment of the present application provides a wireless channel selection method. In the first embodiment of the wireless channel selection method of the present application, refer to Figure 1 , the wireless channel selection method includes:

[0074] Step S10, obtain the busy wireless channels under the current channel width, where the busy wireless channels are wireless channels in a busy state;

[0075] Step S20, based on the busy wireless channels, screen out at least one candidate wireless channel from the available wireless channel group under the current channel width, where the candidate wireless channels are wireless channels not affected by channel interference factors;

[0076] In this embodiment, it should be noted that a wireless channel is a data signal transmission channel using radio wave signals as the transmission medium. IEEE 802.11 is the current general standard for wireless local area networks. Its working group divides two independent communication frequency bands, namely 2.4 GHz and 5 GHz. Among them, each wireless communication frequency band is divided into several wireless channels (Channel), and the channel bandwidth is the difference between the maximum frequency and the minimum frequency in a wireless channel. For example, the effective channel bandwidth of the 2.4 GHz frequency band can specifically be 20 MHz and 40 MHz, and the effective channel bandwidth of the 5 GHz frequency band can specifically be 20 MHz, 40 MHz, and 80 MHz, etc. Refer to Figure 2 , Figure 2 to represent the channel schematic diagram under the 2.4 GHz frequency band. Among them, the channel bandwidth is 22 MHz, 20 MHz is the effective channel bandwidth, and 2 MHz is the isolation band.

[0077] In addition, it should be noted that the wireless channel selection method is applied to a wireless channel selection device, and the wireless channel selection device can specifically be an intelligent device such as a mobile phone, a computer, or a personal PC. When the wireless channel selection device loads the wireless driver, the user configures the wireless automatic channel, or the wireless channel selection device automatically enters the channel adjustment period, the wireless channel selection method is enabled. The current channel width is used to characterize the channel width of the communication frequency band where the wireless channel selection device is currently located, and then the busy wireless channels are obtained by scanning the currently located communication frequency band. The busy wireless channels are wireless channels in a busy state. For example, when there is a communication device accessing a wireless channel, that is, the wireless channel is a wireless channel with data transmission, then the wireless channel is the busy wireless channel. Among them, the channel adjustment period can specifically be 1 hour, one day, or three days, etc., and the access channel can specifically be one or more.

[0078] In this embodiment, it should be noted that the available channel group is used to represent multiple wireless channels that can be accessed and used. In order to improve the accuracy of the target wireless channel selected based on the ChannelAlgBusyTime algorithm, it is necessary to analyze the reasons why some wireless channels are interfered. That is, analyze the channel interference factors. For this purpose, a multi-channel traffic injection test scenario is set up. By injecting traffic, a multi-channel interference environment is simulated, and then it is expected to select the wireless channel with the least influence from channel interference factors as the target wireless channel. For example, in an implementable manner, in a shielded room environment, the available wireless channel group includes channels 1, 2, 3... 11. Among them, channels 1, 2, 3, 7, 9, 10, and 11 are all busy wireless channels, and channels 4, 5, 6, and 8 are idle wireless channels (wireless channels without communication device access). Since each busy wireless channel will affect other wireless channels within the channel width range. For example, in a communication scenario with a channel bandwidth of 22 MHz in the 2.4 GHz communication band, busy wireless channel 5 will affect channels 3, 4, 6, and 7. Busy wireless channel 4 will affect channels 2, 3, 5, and 6. When the wireless channel selection device enables auto (Wlan automatic authentication function) in the shielded room environment, due to the influence of some channel interference factors, it is impossible to ensure the accuracy of the BusyTime obtained from the register of the wireless module of the wireless channel selection device. For example, assume that the BusyTime of channel 1 is the smallest in a certain test, then channel 1 is selected as the target wireless channel. But in essence, the wireless channel with the least influence from channel interference factors is channel 5. The reasons for this phenomenon include but are not limited to: 1) During the traffic injection test, due to the difference in traffic values, the read BusyTime will vary greatly, and in the normal test environment or actual application scenario, it is impossible to limit the traffic values and the differences in traffic values of different channels. 2) Different communication devices in the same environment and even on the same wireless channel will have a large difference in BusyTime. 3) In the real test environment, it is impossible to completely shield low-intensity interference signals, and the existence of low-intensity interference signals will also affect BusyTime. Furthermore, the candidate wireless channels are wireless channels that are not affected by channel interference factors, and the candidate wireless channels can be one or more.

[0079] As an example, steps S10 to S20 include: scanning the busy wireless channels under the channel width of the current communication band where the wireless channel selection device is located; screening the available wireless channel group under the current channel width according to the busy wireless channels to obtain at least one candidate wireless channel, where the candidate wireless channel is a wireless channel that is not affected by channel interference factors.

[0080] Among them, the step of obtaining the busy wireless channels under the current channel width includes:

[0081] Step A10: Obtain the wireless channel source set under the current channel width, where the wireless channel source set includes at least one wireless channel identifier.

[0082] Step A20: Use the current wireless channels corresponding to each of the wireless channel identifiers as the busy wireless channels.

[0083] In this embodiment, it should be noted that the wireless channel source set is composed of at least one wireless channel source, and the scanning results of the busy wireless channels can be displayed in real time on the visualization interface of the wireless channel device. For example, in an implementable manner, when the user clicks the "Automatically Match Channels" button on the visualization interface, the wireless channel device will display a busy channel display list on the visualization interface after a preset time period. The busy channel display list includes at least SSID (Service Set Identifier), the number of wireless channels, and RSSI, etc. Different communication devices can use the same wireless channel with different SSIDs, the same communication device can use different wireless channels with the same SSID, and different communication devices can use different wireless channels with the same SSID. The current wireless channels corresponding to each wireless channel identifier in the busy channel display list can be marked as busy wireless channels.

[0084] As an example, steps A10 to A20 include: in response to a channel selection operation input by the user on a preset visualization interface, obtain the wireless channel source set under the current channel width, where the wireless channel source set includes at least one wireless channel identifier; use the current wireless channels corresponding to each of the wireless channel identifiers as the busy wireless channels.

[0085] The step of screening at least one candidate wireless channel from the available wireless channel group under the current channel width according to the busy wireless channels includes:

[0086] Step B10: Detect whether the channel signal strength of the busy wireless channel is greater than a first preset signal strength threshold.

[0087] Step B20: If so, obtain the initially screened available wireless channel group by initially screening the available wireless channel group.

[0088] Step B30: Perform a secondary screening on the initially screened available wireless channel group according to the second channel congestion degree of the busy wireless channel to obtain at least one of the candidate wireless channels.

[0089] In this embodiment, it should be noted that when the channel signal strength of the busy radio channel is greater than a certain signal strength, it can be determined that the busy radio channel interferes with adjacent radio channels. Furthermore, the busy radio channel and its adjacent radio channels are used as the radio channels to be screened for the initial screening of the available radio channel group. Therefore, the available radio channel group after the initial screening is the available radio channel group after screening the busy radio channels with a channel signal strength greater than the first preset signal strength threshold and the adjacent radio channels of the busy radio channels with a channel signal strength greater than the first preset signal strength threshold. For example, in an implementable manner, assume that the available radio channel group includes channels 1, 2, 3, 4, and 5, and the first preset signal strength threshold is -75 dbm. Among them, channels 3 and 4 are busy radio channels, the channel signal strength of channel 3 is less than -75 dbm, and the channel signal strength of channel 4 is greater than -75 dbm. Then channels 3, 4, and 5 are the radio channels to be screened, and the available radio channel group after the initial screening includes channels 1 and 2.

[0090] As an example, steps B10 to B30 include: detecting whether the channel signal strength of the busy radio channel is greater than the first preset signal strength threshold; if the channel signal strength threshold is greater than the first preset signal strength threshold, then obtaining the available radio channel group after the initial screening by initially screening the available radio channel group, where the available radio channel group after the initial screening includes one or more radio channels; if the available radio channel group after the initial screening includes one radio channel, then using this radio channel as the candidate radio channel, and if the available radio channel group after the initial screening includes multiple radio channels, then performing a secondary screening on the available radio channel group after the initial screening according to the second channel congestion degree of the busy radio channel to obtain at least one candidate radio channel.

[0091] Among them, the step of performing a secondary screening on the available radio channel group after the initial screening according to the second channel congestion degree of the busy radio channel to obtain at least one candidate radio channel includes:

[0092] Step C10, obtaining the adjacent influence channels of the busy radio channel;

[0093] Step C20, detecting whether to screen the adjacent influence channels according to the second channel congestion degree;

[0094] Step C30, if so, then obtaining at least one candidate radio channel by screening the adjacent influence channels in the available radio channel group after the initial screening;

[0095] Step C40, if not, then use at least one first wireless channel in the initially screened available wireless channel group as the candidate wireless channel.

[0096] In this embodiment, it should be noted that since a busy wireless channel can interfere not only with adjacent wireless channels but also with surrounding wireless channels. Therefore, the adjacent affected channel is used to represent the adjacent wireless channels affected by the busy wireless channel. Furthermore, it can be determined whether the adjacent affected channel of the busy wireless channel is interfered by the busy wireless channel by checking whether the second channel congestion level of the busy wireless channel is greater than the channel congestion interference value. For example, in an implementable manner, assume that the current channel width is 22 MHz, channel 6 is the busy wireless channel, the channel congestion interference value is 2500, the adjacent wireless channels of the busy wireless channel are channel 4 and channel 5, and the adjacent affected channels of the busy wireless channel are channel 3 and channel 7. When the second channel congestion level of the busy wireless channel is 3000, it is determined that channel 3 and channel 7 will be interfered by channel 6. Furthermore, in order to avoid the interference of the busy wireless channel with a second channel congestion level greater than the channel congestion interference value on the adjacent affected channels. Thus, the purpose of screening out the wireless channels with errors in the read BusyTime due to traffic value differences is achieved, so the interference of the busy wireless channel on the adjacent affected channels caused by traffic value differences between different wireless channels is avoided. Furthermore, the technical defect that the BusyTime of the adjacent affected channel has an error is eliminated, so the accuracy of wireless channel selection is improved.

[0097] As an example, steps C10 to C40 include: obtaining the adjacent affected channels of the busy wireless channel according to the channel width corresponding to the busy wireless channel; detecting whether to screen the adjacent affected channels according to the magnitude relationship between the second channel congestion level and the channel congestion interference value; if the second channel congestion level is greater than the channel congestion interference value, then screen out the adjacent affected channels in the initially screened available wireless channel group to obtain at least one of the candidate wireless channels; if the second channel congestion level is not greater than the channel congestion interference value, then do not screen out the adjacent affected channels in the initially screened wireless channels, and use at least one first wireless channel in the initially screened available wireless channel group as the candidate wireless channel.

[0098] Among them, the step of obtaining the initially screened available wireless channel group by initially screening the available wireless channel group includes:

[0099] Step D10, obtaining the adjacent wireless channels of the busy wireless channel;

[0100] Step D20: Screen out the busy radio channels and the adjacent radio channels from the radio channel group to obtain the initially screened available radio channel group.

[0101] As an example, steps D10 to D20 include: obtaining the adjacent radio channels of the busy radio channels according to the number of channels of the busy radio channels, where the adjacent radio channels may be left adjacent radio channels and / or right adjacent radio channels; screening out the busy radio channels with channel signal strength greater than the first preset signal strength threshold and the adjacent radio channels of the busy radio channels with channel signal strength greater than the first preset signal strength threshold from the available radio channel group to obtain the initially screened available radio channel group.

[0102] Step S30: Select a target radio channel from each of the candidate radio channels according to the first channel congestion degree of each candidate radio channel.

[0103] In this embodiment, it should be noted that the target radio channel is used to represent the radio channel with the best signal quality selected for the user in the available channel group. The candidate radio channels may be one or more radio channels. If there is only one candidate radio channel, directly use this candidate channel as the target radio channel. If there are multiple candidate radio channels, since the candidate radio channels are radio channels not affected by channel interference factors, the BusyTime (the first channel congestion degree) of the candidate radio channels can accurately reflect the channel busy situation of these channels. Therefore, the candidate radio channel with the smallest first channel congestion degree can be used as the target radio channel.

[0104] As an example, step S30 includes: if there is only one candidate radio channel, use this candidate radio channel as the target radio channel; if there are multiple candidate radio channels, read the first channel congestion degree of each candidate radio channel, and select the candidate radio channel with the smallest first channel congestion degree as the target radio channel.

[0105] Wherein, before the step of obtaining the busy radio channels under the current channel width, the radio channel selection method further includes:

[0106] Step E10: Detect whether the low signal strength of the second radio channel under the current channel width is greater than the second preset signal strength threshold;

[0107] Step E20: If so, block the second radio channel.

[0108] In this embodiment, it should be noted that in a real application scenario, there are usually signals with low signal strength, and such signals will also interfere with the accuracy of the channel congestion degree. Further, when there is a signal with low signal strength in a certain channel, the channel corresponding to the signal is not considered as an available wireless channel. That is, the second wireless channel is used to represent that there is a low-intensity interference signal in the wireless channel, and the second preset signal strength threshold is used to distinguish whether the low signal strength in the wireless channel is a low-intensity interference signal.

[0109] As an example, steps E10 to E20 include: detecting whether the low signal strength of the second wireless channel under the current channel width is greater than the second preset signal strength threshold; if the low signal strength is greater than the second preset signal strength threshold, then the second wireless channel is used as an unavailable wireless channel. Since when the low signal in the wireless channel is a low interference signal, the wireless channel corresponding to the low interference signal is directly filtered out. Further, the technical defect that the channel congestion degree of the wireless channel corresponding to the low interference signal is inaccurate due to the existence of the low interference signal can be avoided, and thus the selection accuracy of the wireless channel selection can be improved.

[0110] The embodiment of the present application provides a method for selecting a wireless channel, that is, obtaining a busy wireless channel under the current channel width, where the busy wireless channel is a wireless channel in a busy state; according to the busy wireless channel, screening at least one candidate wireless channel from the available wireless channel group under the current channel width, where the candidate wireless channel is a wireless channel not affected by channel interference factors; selecting a target wireless channel from the candidate wireless channels according to the first channel congestion degree of each candidate wireless channel. Since the candidate wireless channel is a wireless channel not affected by channel interference factors, by selecting the target wireless channel from the candidate wireless channels according to the first channel congestion degree, the purpose of avoiding the influence of channel interference factors on the first channel congestion degree can be achieved. That is, the purpose of accurately reflecting the busy degree of the candidate wireless channel under the channel width through each first channel congestion degree is achieved. Instead of when selecting the wireless channel with the best signal quality, calculating the channel congestion degree of all wireless channels to select the wireless channel with the smallest channel congestion degree as the target channel. Therefore, the technical defect that the channel congestion degree of some wireless channels in all wireless channels is easily affected by channel interference factors, resulting in errors in the channel congestion degree of some wireless channels, is overcome. Therefore, the selection accuracy of the wireless channel selection is improved.

[0111] Embodiment 2

[0112] Further, referring to Figure 3, in another embodiment of the present application, the same or similar content as that in the above-mentioned first embodiment can be referred to the above introduction and will not be repeated hereinafter. On this basis, the step of detecting whether to screen the adjacent interfering channel according to the second channel congestion degree includes:

[0113] Step F10, calculating the third channel congestion degree of the adjacent interfering channel according to the second channel congestion degree and the channel interference weight of the adjacent interfering channel;

[0114] Step F20, detecting whether the third channel congestion degree is greater than a preset channel congestion degree threshold;

[0115] Step F30, if so, determining to screen the adjacent interfering channel;

[0116] Step F40, if not, determining not to screen the adjacent interfering channel.

[0117] In this embodiment, it should be noted that due to the different distances between the busy wireless channel and its adjacent interfering channels. In some extreme cases, even if the second channel congestion degree of the busy wireless channel is greater than the channel congestion degree interference value, it does not necessarily interfere with the adjacent interfering channels at a relatively long distance. Therefore, the adjacent interfering channels of the busy wireless channel that are not interfered can be not screened, and whether to screen the adjacent interfering channels of the busy wireless channel can be determined by the magnitude relationship between the third channel congestion degree and the preset congestion degree threshold. For example, in an implementable manner, assume that the available wireless channel group after the initial screening includes channel 4, channel 5, channel 6, channel 7, and channel 8, and the preset channel congestion degree threshold is 2000. Among them, the second channel congestion degree of the busy wireless channel 6 is 5000, the second channel congestion degree of the busy wireless channel 8 is 3000, the channel interference weight of the busy wireless channel 6 on channel 5 and channel 7 is 0.8, and the channel interference weight of the busy wireless channel 6 on channel 4 and channel 8 is 0.2. The third channel congestion degree of each channel can be calculated through the following channel congestion degree calculation formula:

[0118] B = δ i *B0 + B i

[0119] where B is the third channel congestion degree, B i is the channel congestion degree of the i-th channel, B0 is the second channel congestion degree, and δ iLet \(w_i\) be the channel impact weight of the \(i\)-th channel. Then the third channel congestion degree of channel 4 is 1000, the third channel congestion degree of channel 5 is 4000, the third channel congestion degree of channel 7 is 4000, and the third channel congestion degree of channel 8 is 4000. Thus, channels 5, 7, and 8 are all neighboring impact channels that need to be screened, and channel 4 is a neighboring impact channel that does not need to be screened.

[0120] As an example, steps F10 to F40 include: calculating the third channel congestion degree of the neighboring impact channels through the second channel congestion degree, the channel impact weight of the neighboring impact channels, and a preset channel congestion degree calculation formula; detecting whether the third channel congestion degree is greater than a preset channel congestion degree threshold; if the third channel congestion degree is greater than the preset channel congestion degree threshold, then determining to screen the neighboring impact channels; if the third channel congestion degree is not greater than the preset channel congestion degree threshold, then determining not to screen the neighboring impact channels.

[0121] The embodiment of the present application provides a method for screening neighboring impact channels. That is, according to the second channel congestion degree and the channel impact weight of the neighboring impact channels, calculate the third channel congestion degree of the neighboring impact channels; detect whether the third channel congestion degree is greater than a preset channel congestion degree threshold; if so, determine to screen the neighboring impact channels; if not, determine not to screen the neighboring impact channels. Compared with the channel screening method in which when the second channel congestion degree of a busy wireless channel is greater than a first preset signal strength threshold, the adjacent wireless channels and neighboring impact channels of the busy wireless channel are screened out in the available wireless channel group. The embodiment of the present application accurately defines the specific influence degree of a busy wireless channel on neighboring impact channels through the channel impact weight, and then only screens neighboring impact channels with substantial interference. That is, it avoids the risk of screening out the target wireless channel when screening the available wireless channel group. Therefore, it lays a foundation for improving the accuracy of wireless channel selection.

[0122] Embodiment III

[0123] The embodiment of the present application also provides a wireless channel selection device. Refer to Figure 4 , the wireless channel selection device includes:

[0124] An acquisition module 101, configured to acquire a busy wireless channel under the current channel width, where the busy wireless channel is a wireless channel in a busy state;

[0125] A screening module 102, configured to screen at least one candidate wireless channel from the available wireless channel group under the current channel width according to the busy wireless channel, where the candidate wireless channel is a wireless channel not affected by channel interference factors;

[0126] The selection module 103 is configured to select a target wireless channel from among the candidate wireless channels according to the first channel congestion degree of each of the candidate wireless channels.

[0127] Optionally, the screening module 102 is further configured to:

[0128] Detect whether the channel signal strength of the busy wireless channel is greater than a first preset signal strength threshold;

[0129] If so, obtain a group of initially screened available wireless channels by initially screening the group of available wireless channels;

[0130] Perform a secondary screening on the group of initially screened available wireless channels according to the second channel congestion degree of the busy wireless channel to obtain at least one of the candidate wireless channels.

[0131] Optionally, the screening module 102 is further configured to:

[0132] Obtain the neighboring influence channels of the busy wireless channel;

[0133] Detect whether to screen the neighboring influence channels according to the second channel congestion degree;

[0134] If so, obtain at least one of the candidate wireless channels by screening the neighboring influence channels in the group of initially screened available wireless channels;

[0135] If not, use at least one first wireless channel in the group of initially screened available wireless channels as the candidate wireless channel.

[0136] Optionally, the screening module 102 is further configured to:

[0137] Calculate the third channel congestion degree of the neighboring influence channels according to the second channel congestion degree and the channel influence weight of the neighboring influence channels;

[0138] Detect whether the third channel congestion degree is greater than a preset channel congestion degree threshold;

[0139] If so, determine to screen the neighboring influence channels;

[0140] If not, determine not to screen the neighboring influence channels.

[0141] Optionally, the screening module 102 is further configured to:

[0142] Obtain the adjacent wireless channels of the busy wireless channel;

[0143] Screen the busy radio channels and the adjacent radio channels from the radio channel group to obtain the available radio channel group after the initial screening.

[0144] Optionally, the obtaining module 101 is further configured to:

[0145] Obtain a radio channel source set under the current channel width, where the radio channel source set includes at least one radio channel identifier;

[0146] Use the current radio channels corresponding to each of the radio channel identifiers as the busy radio channels.

[0147] Optionally, the radio channel selection device is further configured to:

[0148] Detect whether the low signal strength of the second radio channel under the current channel width is greater than a second preset signal strength threshold;

[0149] If so, block the second radio channel.

[0150] The radio channel selection device provided by the present invention adopts the radio channel selection method in the above embodiment, and solves the technical problem of low selection accuracy in radio channel selection. Compared with the prior art, the beneficial effects of the radio channel selection device provided by the embodiments of the present invention are the same as those of the radio channel selection method provided by the above embodiment, and other technical features in the radio channel selection device are the same as those disclosed in the method of the above embodiment, and will not be elaborated herein.

[0151] Embodiment 4

[0152] The embodiment of the present invention provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the radio channel selection method in Embodiment 1 above.

[0153] Next, refer to Figure 5 , which shows a schematic structural diagram of an electronic device suitable for implementing the embodiments of the present disclosure. The electronic device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is only an example, and should not impose any limitation on the functions and usage scope of the embodiments of the present disclosure.

[0154] As Figure 5As shown, the electronic device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. In the RAM 1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus.

[0155] Generally, the following systems may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device may allow the electronic device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows an electronic device having various systems, it should be understood that it is not required to implement or have all the shown systems. More or fewer systems may be alternatively implemented or had.

[0156] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for executing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device 1009, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above functions defined in the method of the embodiment of the present disclosure are executed.

[0157] The electronic device provided by the present invention adopts the wireless channel selection method in the above embodiment, and solves the technical problem of low selection accuracy in wireless channel selection. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as those of the wireless channel selection method provided by the above embodiment, and other technical features in the electronic device are the same as those disclosed in the method of the above embodiment, which will not be elaborated herein.

[0158] It should be understood that each part of the present disclosure may be implemented by hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics may be combined in a suitable manner in any one or more embodiments or examples.

[0159] As described above, it is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims described above.

[0160] Embodiment Five

[0161] This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the wireless channel selection method in the above embodiment.

[0162] The computer-readable storage medium provided by the embodiment of the present invention may be, for example, a USB flash drive, but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program can be used by or combined with an instruction execution system, apparatus, or device. The program code contained on the computer-readable storage medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0163] The above computer-readable storage medium may be included in an electronic device; or it may exist separately without being assembled into the electronic device.

[0164] The above computer-readable storage medium carries one or more programs. When the above one or more programs are executed by an electronic device, the electronic device is caused to: obtain a busy wireless channel under the current channel width; screen out at least one candidate wireless channel from the available wireless channel group under the current channel width according to the busy wireless channel, where the candidate wireless channel is a wireless channel not affected by channel interference factors; and select a target wireless channel from the candidate wireless channels according to the first channel congestion degree of each candidate wireless channel.

[0165] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partially on the user's computer, execute as a stand-alone software package, execute partially on the user's computer and partially on a remote computer, or execute entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0166] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0167] The modules described in the embodiments of the present disclosure may be implemented in software or in hardware. In some cases, the name of the module does not constitute a limitation on the unit itself.

[0168] The computer-readable storage medium provided by the present invention stores computer-readable program instructions for performing the above-mentioned wireless channel selection method, which solves the technical problem of low accuracy in wireless channel selection. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiments of the present invention are the same as those of the wireless channel selection method provided by the above embodiments, and will not be elaborated here.

[0169] Embodiment Six

[0170] The present application also provides a computer program product, including a computer program which, when executed by a processor, implements the steps of the wireless channel selection method as described above.

[0171] The computer program product provided by the present application solves the technical problem of low accuracy in wireless channel selection. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiments of the present invention are the same as those of the wireless channel selection method provided by the above embodiments, and will not be elaborated herein.

[0172] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application accordingly. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be similarly included in the patent scope of the present application.

Claims

1. A method for selecting a wireless channel, characterized in that The wireless channel selection method includes: Obtain busy wireless channels under the current channel width, where the busy wireless channels are wireless channels in a busy state. Before obtaining the busy wireless channels under the current channel width, it further includes detecting whether the low signal strength of the second wireless channel under the current channel width is greater than the second preset signal strength threshold. If so, block the second wireless channel; According to the busy wireless channels, screen out at least one candidate wireless channel from the available wireless channel group under the current channel width, where the candidate wireless channels are wireless channels not affected by channel interference factors; Select a target wireless channel from each of the candidate wireless channels based on the first channel congestion degree of each candidate wireless channel; The step of screening out at least one candidate wireless channel from the available wireless channel group under the current channel width according to the busy wireless channels includes: Detect whether the channel signal strength of the busy wireless channels is greater than the first preset signal strength threshold; If so, obtain the initially screened available wireless channel group by initially screening the available wireless channel group; Perform a secondary screening on the initially screened available wireless channel group according to the second channel congestion degree of the busy wireless channels to obtain at least one of the candidate wireless channels; The step of performing a secondary screening on the initially screened available wireless channel group according to the second channel congestion degree of the busy wireless channels to obtain at least one of the candidate wireless channels includes: Obtain the adjacent influence channels of the busy wireless channels according to the channel width corresponding to the busy wireless channels; Detect whether to screen the adjacent influence channels according to the magnitude relationship between the second channel congestion degree and the channel congestion degree interference value; If the second channel congestion degree is greater than the channel congestion degree interference value, screen out the adjacent influence channels in the initially screened available wireless channel group to obtain at least one of the candidate wireless channels; If the second channel congestion degree is not greater than the channel congestion degree interference value, do not screen out the adjacent influence channels in the initially screened available wireless channel group, and use at least one first wireless channel in the initially screened available wireless channel group as the candidate wireless channel.

2. The wireless channel selection method according to claim 1, wherein, The step of detecting whether to screen the adjacent influence channels according to the second channel congestion degree includes: Calculate the third channel congestion degree of the adjacent influence channels according to the second channel congestion degree and the channel influence weight of the adjacent influence channels; Detect whether the third channel congestion degree is greater than the preset channel congestion degree threshold; If so, determine to screen the adjacent influence channels; If not, determine not to screen the adjacent influence channels.

3. The wireless channel selection method according to claim 1, wherein The step of obtaining the initially screened available wireless channel group by initially screening the available wireless channel group includes: Obtain the adjacent wireless channels of the busy wireless channels; Screen out the busy wireless channels and the adjacent wireless channels in the wireless channel group to obtain the initially screened available wireless channel group.

4. The wireless channel selection method according to claim 1, wherein The steps of obtaining the busy radio channels at the current channel width include: Obtaining a set of radio channel sources at the current channel width, where the set of radio channel sources includes at least one radio channel identifier; Regarding the current radio channels corresponding to each of the radio channel identifiers as the busy radio channels.

5. A wireless channel selection device, characterized in that The radio channel selection device includes: An acquisition module, configured to acquire busy radio channels at the current channel width; the acquisition module is further configured to, before acquiring the busy radio channels at the current channel width, detect whether the low signal strength of a second radio channel at the current channel width is greater than a second preset signal strength threshold, and if so, block the second radio channel; A screening module, configured to screen out at least one candidate radio channel from the available radio channel group at the current channel width according to the busy radio channels, where the candidate radio channels are radio channels not affected by channel interference factors; The screening module is specifically configured to detect whether the channel signal strength of the busy radio channels is greater than a first preset signal strength threshold; if so, obtain an initially screened available radio channel group by initially screening the available radio channel group; and perform a secondary screening on the initially screened available radio channel group according to the second channel congestion degree of the busy radio channels to obtain at least one of the candidate radio channels; The screening module is further specifically configured to obtain adjacent influence channels of the busy radio channels according to the channel width corresponding to the busy radio channels; detect whether to screen the adjacent influence channels according to the magnitude relationship between the second channel congestion degree and the channel congestion degree interference value; if the second channel congestion degree is greater than the channel congestion degree interference value, screen out the adjacent influence channels from the initially screened available radio channel group to obtain at least one of the candidate radio channels; if the second channel congestion degree is not greater than the channel congestion degree interference value, do not screen out the adjacent influence channels from the initially screened available radio channel group, and use at least one first radio channel in the initially screened available radio channel group as the candidate radio channels; A selection module, configured to select a target radio channel from each of the candidate radio channels according to the first channel congestion degree of each of the candidate radio channels.

6. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; where The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the steps of the radio channel selection method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, A program for implementing the radio channel selection method is stored on the computer-readable storage medium, and the program for implementing the radio channel selection method is executed by a processor to implement the steps of the radio channel selection method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Signal processing method and wireless network access equipment

    CN113708858A

  • Method and apparatus for selecting a radio channel for transmitting an audio signal to a radio local receiver

    US20090149143A1