A channel selection method, apparatus, device and storage medium

By calculating the Communication Quality Index (CQI) for each channel and dividing it into multiple sets, the problem of incomplete channel selection in existing technologies is solved, achieving more accurate channel selection and improving wireless communication quality.

CN115696477BActive Publication Date: 2026-06-05CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD
Filing Date
2021-07-26
Publication Date
2026-06-05

Smart Images

  • Figure CN115696477B_ABST
    Figure CN115696477B_ABST
Patent Text Reader

Abstract

The application discloses a channel selection method, which comprises the following steps: determining a communication quality index (CQI) of each first channel in at least two first channels based on information of a wireless access node (AP) on the first channel; dividing the at least two first channels into at least two first channel sets, wherein different first channel sets correspond to different second channels; determining a CQI of a second channel corresponding to each first channel set according to the CQI of the first channel included in the first channel set; and selecting a target channel from the at least two second channels according to the CQI of each second channel. In addition, the application also discloses a channel selection device, equipment and storage medium. The channel selection method provided by the application can consider each first channel in the process of determining a target channel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication technology, and to, but is not limited to, a channel selection method, apparatus, device, and storage medium. Background Technology

[0002] For the 2.4G frequency band, after dividing the 2.4G frequency band into 13 channels, each of these 13 channels can be a data signal transmission channel using wireless signals as the transmission medium.

[0003] In related technologies, wireless routers can select one channel from these 13 channels as a transmission channel. During the channel selection process, since the selection is only made between channels 1, 6, and 11, and not between other channels, the channel selection in related technologies can only be made between a subset of channels, and cannot be made between all channels. Summary of the Invention

[0004] This application provides a channel selection method, apparatus, device, and storage medium to address at least one problem existing in the related art, which can take each channel into account during the process of determining the target channel.

[0005] The technical solution of this application embodiment is implemented as follows:

[0006] In a first aspect, embodiments of this application provide a channel selection method, the method comprising:

[0007] For each of the at least two first channels, the Communication Quality Index (CQI) of the first channel is determined based on the information of the Access Point (AP) on the first channel; the at least two first channels are divided into at least two sets of first channels, and different sets of first channels correspond to different second channels;

[0008] For each of the first channel sets, the CQI of the second channel corresponding to the first channel set is determined based on the CQI of the first channel included in the first channel set;

[0009] Based on the CQI of each of the second channels, a target channel is selected from at least two of the second channels.

[0010] Secondly, embodiments of this application provide a channel selection device, the device comprising:

[0011] The first determining unit is configured to determine the Communication Quality Index (CQI) of each of the at least two first channels based on the information of the Radio Access Node (AP) on the first channel; the at least two first channels are divided into at least two sets of first channels, and different sets of first channels correspond to different second channels.

[0012] The second determining unit is configured to, for each of the first channel sets, determine the CQI of the second channel corresponding to the first channel set based on the CQI of the first channel included in the first channel set;

[0013] A selection unit is configured to select a target channel from at least two second channels based on the CQI of each second channel.

[0014] Thirdly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the channel selection method described in any of the above claims.

[0015] Fourthly, embodiments of this application provide a storage medium storing a computer program, which, when executed by a processor, implements the channel selection method described in any of the preceding claims.

[0016] This application provides a channel selection method, apparatus, device, and storage medium. For each of at least two first channels, a communication quality index (CQI) is determined based on information from a wireless access node (AP) on the first channel. The at least two first channels are divided into at least two sets of first channels, with different sets of first channels corresponding to different second channels. For each set of first channels, the CQI of the corresponding second channel is determined based on the CQI of the first channels included in the set. A target channel is then selected from the at least two second channels based on the CQI of each second channel. Thus, in determining the target channel, the CQI of each first channel is first determined, and the CQI of the corresponding second channel is determined based on the CQI of the first channels included in the set. Then, the target channel is selected from the at least two second channels. Since the CQI of the selected target channel is determined based on the CQI of each first channel, each first channel can be considered in the process of determining the target channel. Attached Figure Description

[0017] Figure 1A This is a schematic diagram of an optional structure of a wireless communication system provided in an embodiment of this application;

[0018] Figure 1BThis is a schematic diagram of an optional structure of a wireless communication system provided in an embodiment of this application;

[0019] Figure 2 A schematic diagram of an optional flow of the channel selection method provided in an embodiment of this application;

[0020] Figure 3 A schematic diagram illustrating the optional location of the partitioned channel provided in an embodiment of this application;

[0021] Figure 4 A schematic diagram illustrating the optional location of the partitioned channel provided in an embodiment of this application;

[0022] Figure 5 A schematic diagram of an optional flow of the channel selection method provided in an embodiment of this application;

[0023] Figure 6 A schematic diagram of an optional flow of the channel selection method provided in an embodiment of this application;

[0024] Figure 7 This is a schematic diagram of an optional structure of the channel selection device provided in the embodiments of this application;

[0025] Figure 8 This is a schematic diagram of an optional structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0026] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the specific technical solutions of the application will be further described in detail below with reference to the accompanying drawings of the embodiments of this application. The following embodiments are used to illustrate the embodiments of this application, but are not intended to limit the scope of the embodiments of this application.

[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which embodiments of this application belong. The terminology used herein in the description of embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of this application. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.

[0028] Before providing a further detailed description of this application, the nouns and terms used in the embodiments of this application will be explained, and the nouns and terms used in the embodiments of this application shall be interpreted as follows.

[0029] 1) Wireless AP, used to connect wireless and wired networks. By setting up a wireless AP between the wireless and wired networks, data transmission between the wireless and wired networks can be achieved.

[0030] 2) A channel is a data signal transmission channel that uses wireless signals as the transmission medium.

[0031] 3) Communication Quality Index (CQI) is used to characterize the busyness of the channel. The higher the CQI, the busier the channel and the more serious the co-channel interference.

[0032] The channel selection method provided in this application embodiment can be applied to... Figure 1A or Figure 1B The wireless communication system 100 shown is as follows: Figure 1A As shown, the wireless communication system 100 includes: an access point 10 and at least two electronic devices 20. The access point 10 is a device capable of forming a wireless local area network based on the transmitted signal, such as a router, a mobile phone with hotspot function, etc. Each of the at least two electronic devices 20 is a device that accesses the wireless local area network formed by the access point 10, such as a mobile phone, an air conditioner, a computer, etc.

[0033] like Figure 1B As shown, the wireless communication system 100 includes at least two access points 10 and at least two electronic devices 20.

[0034] The channel selection method of this application embodiment can be applied to an access point. For each of at least two first channels, the access point determines the Communication Quality Index (CQI) of the first channel based on the information of the wireless AP on the first channel. The at least two first channels are divided into at least two sets of first channels, and different sets of first channels correspond to different second channels. For each set of first channels, the CQI of the second channel corresponding to the first channel set is determined according to the CQI of the first channels included in the first channel set. Based on the CQI of each second channel, a target channel is selected from at least two second channels.

[0035] The present application will now be described in further detail with reference to the accompanying drawings and specific embodiments.

[0036] Figure 2 This is a schematic diagram illustrating the implementation process of a channel selection method provided in an embodiment of this application. This method is applied to an access point, such as... Figure 2 As shown, the method may include the following steps:

[0037] S201. For each of the at least two first channels, determine the communication quality index (CQI) of the first channel based on the information of the wireless AP on the first channel.

[0038] Here, the first channel is defined as a channel obtained by dividing the frequency band of the wireless local area network (WLAN), and each divided channel has a center frequency. The number of channels obtained after dividing the WLAN frequency band can be 2 or 13; this embodiment does not limit this. The WLAN frequency band can be 2.4 GHz or other frequency bands; this embodiment does not limit this either.

[0039] In one example, such as Figure 3 As shown, the 2.4 GHz band is divided into 13 first channels, which are: Channel C1 to Channel C... 13 The center frequencies of channels C1, C2, C3, C4, C5, C6, C7, C8, and C9 are 2.412 GHz, 2.417 GHz, 2.422 GHz, 2.427 GHz, 2.432 GHz, 2.437 GHz, 2.442 GHz, 2.447 GHz, 2.452 GHz, and 2.452 GHz respectively. 10 The center frequency is 2.457 GHz, and the channel is C. 11 The center frequency is 2.462 GHz, and the channel is C. 12 The center frequency is 2.467 GHz, and the channel is C. 13 Its center frequency is 2.472 GHz.

[0040] In this embodiment of the application, the first channel set is defined as the channel set after dividing the first channel. Each first channel set may include at least two first channels.

[0041] In this embodiment of the application, after dividing the frequency band of the wireless local area network, at least two first channels can be divided into at least two sets of first channels. That is, the first channel set can be divided according to the first channel. For example, the first channel set can be divided according to the frequency range of the non-overlapping channels in the first channel.

[0042] In one example, such as Figure 4 As shown, channels C1, C6, and C7 are... 11 There are three non-overlapping channels.

[0043] For channel C1 with a center frequency of 2.412 GHz, the frequency range of channel C1 is 22 MHz, that is, the frequency range is from 2.401 GHz to 2.422 GHz. Since the center frequencies of channel C2 (2.417 GHz) and channel C3 (2.422 GHz) are within the frequency range of channel C1 (2.401 GHz to 2.422 GHz), channels C1, C2, and C3 can be assigned to a first channel set.

[0044] For channel C6 with a center frequency of 2.437, the frequency range of channel C6 is from 2.426 GHz to 2.448 GHz. Since the center frequencies of channels C4 (2.427), C5 (2.432), C6 (2.437), C7 (2.442), and C8 (2.447) are all within the frequency range of channel C6 (2.426 GHz to 2.448 GHz), channels C4 to C8 can be assigned to a first channel set.

[0045] For channel C with a center frequency of 2.462 Hz 11 Channel C 11 The frequency range is from 2.451 GHz to 2.473 GHz. Since the center frequency of channel C9 is 2.452 GHz, and channel C... 10 Center frequency 2.457, channel C 11 Center frequency 2.462, channel C 12 The center frequency is 2.467 and the channel is C. 13 The center frequency of 2.472 is located in channel C. 11 The frequency range is from 2.451 GHz to 2.473 GHz, therefore, channels C9 to C... 13 It is assigned to a first channel set.

[0046] In this embodiment of the application, after dividing the first channel set, different first channel sets can correspond to different second channels. The second channel can be any channel in the first channel set.

[0047] In one example, when the first channel set includes channels C1, C2, and C3, the second channel corresponding to the first channel set can be channel C1, and the second channel of the first channel set can be denoted as...

[0048] In one example, when the first channel set includes channels C1, C2, and C3, the second channel corresponding to the first channel set can be channel C2, and the second channel of the first channel set can be denoted as...

[0049] In practical applications, the access point can select a second channel from the first channels included in the first channel set according to the preset channel selection rules. The embodiments of this application do not limit the content of the channel selection rules.

[0050] In this embodiment, the information of the wireless AP includes at least one of the following: number, signal strength, receive rate, and transmit rate. The access point determines the CQI of the first channel based on the information of the wireless APs on each first channel.

[0051] S202. For each of the first channel sets, determine the CQI of the second channel corresponding to the first channel set based on the CQI of the first channel included in the first channel set.

[0052] In one example, the second channel is Second channel The corresponding first channel set includes the following first channels: channel C1, channel C2, and channel C3. Therefore, the second channel can be determined based on the CQI of channel C1, the CQI of channel C2, and the CQI of channel C3. CQI.

[0053] In this embodiment, for each first channel set, determining the CQI of the second channel corresponding to the first channel set based on the CQI of the first channels included in the first channel set includes: for each first channel set, summing the CQIs of the first channels included in the first channel set to determine the CQI of the second channel corresponding to the first channel set; or, for each first channel set, performing a weighted summation of the CQIs of the first channels included in the first channel set to determine the CQI of the second channel corresponding to the first channel set. This embodiment does not limit the method used to determine the CQI of the second channel corresponding to the first channel set based on the CQIs of the first channels included in the first channel set.

[0054] In one example, for each first channel set, the CQI of the first channel included in the first channel set is summed to determine the CQI of the second channel corresponding to the first channel set. This can be calculated using the following formulas (1) to (3).

[0055] For a first channel set including channel C1, channel C2, and channel C3, calculate the second channel corresponding to the first channel set. The CQI can be expressed by formula (1):

[0056]

[0057] For example, if the CQI of channel C1 is 12, the CQI of channel C2 is 13, and the CQI of channel C3 is 14, then by summing the CQI 12 of channel C1, the CQI 13 of channel C2, and the CQI 14 of channel C3 using formula (1), the second channel corresponding to the first channel set can be obtained. The CQI is 39.

[0058] For a first channel set including channels C4 to C8, calculate the second channel corresponding to the first channel set. The CQI can be expressed by formula (2):

[0059]

[0060] For channels C9 to C 13 Given a first set of channels, calculate the second channel corresponding to the first set of channels. The CQI can be expressed by formula (3):

[0061]

[0062] In another example, for each first channel set, the CQI of the second channel corresponding to the first channel set is determined by weighted summation of the CQIs of the first channels included in the first channel set, which can be calculated by the following formulas (4) to (6).

[0063] For a first channel set including channel C1, channel C2, and channel C3, calculate the second channel corresponding to the first channel set. The CQI can be expressed by formula (4):

[0064]

[0065] For a first channel set including channels C4 to C8, calculate the second channel corresponding to the first channel set. The CQI can be expressed by formula (5):

[0066]

[0067] For channels C9 to C 13 Given a first set of channels, calculate the second channel corresponding to the first set of channels. The CQI can be expressed by formula (6):

[0068]

[0069] Here, w1 represents the first channels C1, C6, and C7. 11The corresponding weights, w2, are the first channel C2, C4, C7, C... 10 and C 12 The corresponding weights, w3, are the first channel C3, C5, C8, C9, and C... 13 The corresponding weights, where w1>w2>w3.

[0070] In practical applications, w1>w3>w2 can also be the order of magnitude. This application does not impose any restrictions on the size relationship between w1, w2 and w3.

[0071] S203. Select a target channel from at least two second channels based on the CQI of each second channel.

[0072] Here, the selection criteria for choosing a target channel from at least two second channels based on the CQI of each second channel may include: taking the second channel corresponding to the smallest CQI as the target channel.

[0073] In one example, at least two second channels are included, including: second channel second channel Second Channel Among them, the second channel The CQI is 39, second channel The CQI is 40, second channel The CQI is 41. Select the second channel from 39, 40, and 41 that corresponds to the smallest CQI of 39. As the target channel.

[0074] This application provides a channel selection method. For each of at least two first channels, a Communication Quality Index (CQI) is determined based on information from a Radio Access Node (AP) on the first channel. The at least two first channels are divided into at least two sets of first channels, with different sets of first channels corresponding to different second channels. For each set of first channels, the CQI of the corresponding second channel is determined based on the CQI of the first channels included in the set. Then, a target channel is selected from the at least two second channels based on the CQI of each second channel. Thus, in determining the target channel, the CQI of each first channel is first determined, and the CQI of the corresponding second channel is determined based on the CQI of the first channels included in the set. Finally, a target channel is selected from the at least two second channels. Since the CQI of the selected target channel is determined based on the CQI of each first channel, each first channel can be considered in the process of determining the target channel.

[0075] In some embodiments, such as Figure 5As shown, S201 above includes:

[0076] S501. Determine whether the current time meets the set time period.

[0077] Here, the time period can be one or more time periods.

[0078] When the set time period includes multiple time periods, the time interval between two adjacent time periods is less than or equal to the time interval threshold. This application embodiment does not impose such a limitation.

[0079] In one example, when the set time period is a continuous period of time, the continuous period can be from 24:00 to 5:00 the next day, or it can be from 23:00 to 4:00 the next day. This application embodiment does not limit this.

[0080] In another example, the time interval threshold is 3 minutes. The set time period can be from 23:30 to 24:00 and from 24:05 to 5:00 the next day, or it can be from 23:30 to 24:00 and from 24:03 to 4:00 the next day. This application embodiment does not limit this.

[0081] If the current time meets the set time period, then execute S502: determine whether the data traffic meets the first traffic condition.

[0082] If the data traffic meets the first traffic condition, execute S503: Based on the information of the wireless AP on the first channel, determine the communication quality index (CQI) of the first channel.

[0083] Here, the data traffic refers to the data traffic existing on the first channel, which includes the data traffic generated by downstream devices on the first channel. Downstream devices are devices connected to the channel via an access point, and can include electronic devices such as mobile phones and power devices.

[0084] The first traffic condition includes: data traffic is less than or equal to the traffic threshold.

[0085] It should be noted that the embodiments of this application do not limit the specific value of the traffic threshold. For example, the traffic threshold can be 0 or 1.

[0086] In this embodiment of the application, if the current time is within the set time period, it is determined whether the data traffic of each first channel is less than or equal to the traffic threshold. For the first channel with data traffic less than or equal to the traffic threshold, the communication quality index (CQI) of each first channel is determined based on the information of the wireless AP on each first channel. For the first channel with data traffic greater than the traffic threshold, it waits for a set time. After waiting for the set time, it is determined whether the current time meets the set time period, and so on.

[0087] like Figure 5 As shown, if it is determined that the data flow does not meet the first flow condition, execute S504: wait for the set time.

[0088] After waiting for the set time, the above S501 can continue to be executed.

[0089] Here, the time setting can be 30 minutes or 1 hour, and this application embodiment does not limit it.

[0090] If the current time does not meet the set time period, then execute S505: determine whether there is a connected device.

[0091] Here, when the access point is a router, the router can determine whether there is a downstream device by calling the functions of the basic module encapsulated in the router's chip. If a downstream device is found to exist, the router can determine information such as the downstream device's Media Access Control (MAC) address, connection method, signal strength, negotiation rate, and real-time rate.

[0092] If it is determined that there is no downstream device, execute S503: Based on the information of the wireless AP on the first channel, determine the communication quality index (CQI) of the first channel.

[0093] If a downstream device is confirmed to exist, execute S502: Determine whether the data traffic meets the first traffic condition.

[0094] If the data traffic meets the first traffic condition, execute S503: Determine the communication quality index (CQI) of the first channel based on the information of the wireless AP on the first channel.

[0095] Here, if the data traffic meets the first traffic condition, the downstream device can be considered a long-term connection of a low-power device, such as a long-term connection of IoT smart devices like refrigerators and air conditioners, rather than a user's internet browsing behavior, such as playing games or watching videos. Therefore, since the downstream device is a long-term connection with low-power functionality, rather than a user's internet browsing behavior, the step of determining the Communication Quality Index (CQI) of the first channel based on the information of the wireless access node (AP) on the first channel has minimal interference to the user, provided the data traffic meets the first traffic condition.

[0096] In this embodiment of the application, if the current time is not within the set time period, it is determined whether there is a downstream device for each first channel. For the first channel without a downstream device, the communication quality index (CQI) of each first channel is determined based on the information of the wireless access node (AP) on each first channel. For the first channel with a downstream device, it is determined whether the data traffic generated by the downstream device meets the first traffic condition. If the data traffic meets the first traffic condition, the communication quality index (CQI) of each first channel is determined based on the information of the wireless access node (AP) on each first channel.

[0097] In some embodiments, if the current time meets the set time period, the method further includes: determining whether the downstream device exists; if the downstream device does not exist, or if the downstream device exists and the data traffic generated by the downstream device is less than the traffic threshold, determining that the data traffic meets the first traffic condition.

[0098] In some embodiments, such as Figure 6 As shown, if the current time does not meet the set time period, the method further includes:

[0099] S601. Determine whether the maximum value of the signal strength of the connected device is less than or equal to the trigger threshold.

[0100] If the maximum value of the signal strength is less than or equal to the trigger threshold, execute the above S505: determine whether the attached device exists.

[0101] In some embodiments, the information of the wireless AP includes: number N, signal strength, receive rate RxRate, and transmit rate TxRate. Here, the number N is the number of wireless APs connected to a first channel; the signal strength can be represented by the Received Signal Strength Indication (RSSI), which can be used to characterize the signal strength of a first channel; the receive rate characterizes the rate at which data is received on the first channel; and the transmit rate characterizes the rate at which data is transmitted on the first channel.

[0102] Table 1 shows the information of the wireless APs monitored by the access point.

[0103] Table 1. Examples of Wireless APs

[0104]

[0105]

[0106] As shown in Table 1, the MAC address is used to represent the address of a wireless AP, and the SSID is used to identify the wireless AP.

[0107] In this embodiment of the application, S201 includes: for each first channel, determining a first weight corresponding to the signal strength, a second weight corresponding to the receiving rate, and a third weight corresponding to the transmitting rate; and determining the CQI of the first channel based on the signal strength, the receiving rate, the transmitting rate, the first weight, the second weight, and the third weight.

[0108] Here, for each first channel, the signal strength, receive rate RxRate, transmit rate TxRate, and first weight w of all wireless APs on the first channel can be used as the basis. α Second weight w β and the third weight w γ Calculate the CQI of the first channel.

[0109] In this embodiment of the application, for each of the first channels, the signal strength RSSI of a wireless AP on the first channel, for example, the i-th wireless AP, can be used as a reference. i Receive rate RxRate i Sending rate TxRate i First weight w α Second weight w β and the third weight w γ Determine the CQI of the first channel. i Among them, the CQI of the first channel i It can be expressed by formula (7):

[0110] CQI i =w α *RSSI i +w β *RxRate i +w γ *TxRate i Formula (7).

[0111] In some embodiments, before determining the CQI of the first channel based on the signal strength, the receiving rate, the transmitting rate, the first weight, the second weight, and the third weight, the method further includes: performing linear normalization processing on the signal strength, the receiving rate, and the transmitting rate, respectively.

[0112] Here, the linear normalization formula can be expressed by formula (8):

[0113]

[0114] Currently, Wi-Fi devices supporting IEEE 802.11 use the limited available natural resource of radio frequency to provide wireless communication between devices. With the increasing integration of wireless devices, spectrum interference has become a major problem for wireless network efficiency. When performing wireless data transmission, wireless devices must select the optimal channel from a limited number of wireless channels to transmit communication. When multiple devices simultaneously select the same channel, co-channel interference (also known as "co-channel interference") occurs. Wireless access points (APs) on the same channel will adhere to the CSMA / CA protocol rules and use a contention-based MAC protocol to avoid collisions and ensure normal system service. However, when multiple wireless devices select channels with similar frequency bands, overlapping channel interference (also known as "adjacent-channel interference") occurs. In this case, wireless APs cannot adhere to the CSMA / CA protocol rules and will continuously collide and interfere with each other. Overlapping channel interference severely degrades the user experience.

[0115] Home routers offer two channel selection modes: automatic and manual. In manual mode, the router is typically set to wireless channel 6 by default. Dual-band routers have 13 WiFi channels on the 2.4GHz (2.4-2.4835GHz) band and 5 channels on the 5GHz band. For the 2.4GHz band, channels 1, 6, and 11 have no overlap, meaning they can operate independently without interference.

[0116] Once the router successfully executes the automatic channel selection mode and no anomalies are detected, it will not update the selected wireless channel. When the surrounding Wi-Fi environment changes over time, this channel selection method can cause the router to get stuck in an infinite loop of channel congestion, thus degrading wireless communication quality.

[0117] While related technologies have achieved automatic selection of wireless channels to some extent, the following shortcomings still exist:

[0118] First, the scenarios considered are not comprehensive, and the model is too simplistic.

[0119] The methods used in related technologies all assume that wireless APs follow channel switching rules, that is, they only consider scenarios where wireless channels are 1, 6, and 11, while ignoring cases where individual wireless APs are on channels other than 1, 6, and 11.

[0120] Second, the reference criteria for channel selection are limited and the methods are crude.

[0121] The methods used in related technologies only select the number of wireless APs and the signal strength RSSI on each wireless channel as reference indicators for single numerical comparison, while ignoring the impact of other factors such as the data transmission frequency and transmission and reception speed of the wireless AP on the communication quality of the wireless AP; moreover, the data processing of the reference indicators is coarse and there is a lot of interference, which increases the error of channel selection.

[0122] Third, the methods used in related technologies are too theoretical and neglect practical operation, so they are not very meaningful in actual use.

[0123] The methods used in related technologies involve periodically scanning beacon frames within various wireless channels (e.g., at 30-minute intervals). However, in actual use, when wireless devices are connected to the router, and the router's Wi-Fi chip is scanning for nearby wireless access points (APs) in STA mode, it needs to switch to each channel sequentially and listen for beacon frames periodically sent by the APs (at least 70-100 milliseconds). In AP mode, the router's Wi-Fi chip remains fixed on one channel, maintaining the Wi-Fi connection with connected devices but unable to send or receive data, resulting in network latency. Therefore, indiscriminately performing periodic channel scanning using the above method would severely degrade the user's internet experience, especially for gamers who have high requirements for network speed and latency.

[0124] In view of the above-mentioned deficiencies, this application provides a channel selection method, including the following steps:

[0125] Step 1: The router performs periodic monitoring of surrounding Wi-Fi information in Do Not Disturb mode, scanning beacon frames in each wireless channel one by one.

[0126] Preferably, step 1 based on the Do Not Disturb mode refers to:

[0127] The router prioritizes user internet access and is configured by default to continuously check for connected wireless devices and their data traffic during a fixed time period [d1, d2] late at night. If no match is found, it waits for a certain period until the conditions are met. Only when there are no connected devices or no data traffic from connected devices will the router perform a scan of beacon frames on each wireless channel to obtain information about surrounding wireless access points.

[0128] For the remaining time periods outside of [d1, d2], set a trigger threshold for the signal strength of the connected devices, and periodically query and obtain the maximum signal strength RSSI of the connected devices. max And compare it with the trigger threshold, when RSSI max When the threshold is triggered, the router continuously checks whether there are any connected wireless devices. Only when there are no connected devices will the router trigger the task of scanning each channel.

[0129] In a typical home environment, the surrounding Wi-Fi environment is generally stable and changes infrequently. Therefore, home routers do not need to periodically monitor surrounding Wi-Fi information frequently. To avoid disturbing users' internet access, routers can avoid performing scans of various wireless channels during peak user activity times.

[0130] Step 2: Based on the monitoring results of Step 1, obtain the interference level of each wireless channel, and select the channel with the least interference as the optimal channel for router AP mode to transmit data.

[0131] Preferably, step 2 specifically includes the following steps:

[0132] 1) Obtain the number N of wireless APs operating on each wireless channel, the signal strength RSSI, the average receive rate RxRate, and the average transmit rate TxRate;

[0133] 2) Based on the parameters mentioned in step 1), calculate the Communication Quality Index (CQI) for each wireless AP;

[0134] 3) Preferably, the CQI calculation method in step 2) is as follows: operating in channel C m For the i-th wireless AP, its signal strength RSSI, average receive rate RxRate, and average transmit rate TxRate are linearly normalized to obtain the RSSI. i RxRate i TxRate i The weighting coefficients are set as w α w β w γ Calculate the communication quality metrics of the wireless AP.

[0135] 4) Reclassify all wireless APs into channel categories 1, 6, and 11 according to their channel frequency band span, and calculate the CQI for each of the reclassified channel categories 1, 6, and 11. That is, the channel... Corresponding channel C l ~C3, Channel Corresponding channels C4 to C8, channel Corresponding channels C9~C 13 .

[0136] 5) Based on the parameters obtained in step 4) and Channel rating is performed, and the channel with the minimum value is selected as the optimal channel.

[0137] The channel selection method provided in this application has the following effects:

[0138] First, the router uses a do-not-disturb mode to periodically monitor surrounding Wi-Fi information, effectively avoiding issues such as downstream devices being unable to recover data and network latency caused by channel switching, thus not affecting the user's internet experience.

[0139] Secondly, the channel selection mechanism has diverse reference criteria. It selects multiple dimensions such as signal strength, data transmission frequency, and speed, and uses quantitative calculation methods to effectively reflect the communication quality of the wireless AP on the channel.

[0140] Third, the channel selection mechanism considers all channels (13 channels corresponding to the 2.4 GHz band), not just channels 1, 6, and 11. Based on the frequency band span, all channels are classified into channel categories 1, 6, and 11, and the corresponding communication quality indicators are calculated to achieve channel rating.

[0141] Figure 7 A channel selection device provided in the embodiments of this application, such as Figure 7 As shown, the device includes:

[0142] The first determining unit 701 is configured to determine the communication quality index (CQI) of each of the at least two first channels based on the information of the wireless access node (AP) on the first channel; the at least two first channels are divided into at least two sets of first channels, and different sets of first channels correspond to different second channels.

[0143] The second determining unit 702 is configured to, for each of the first channel sets, determine the CQI of the second channel corresponding to the first channel set based on the CQI of the first channel included in the first channel set;

[0144] The selection unit 703 is used to select a target channel from at least two second channels based on the CQI of each second channel.

[0145] In some embodiments, the first determining unit 701 is further configured to:

[0146] Determine if the current time meets the set time period;

[0147] If the current time meets the set time period, then if the data traffic meets the first traffic condition, the communication quality index (CQI) of the first channel is determined based on the information of the wireless access node (AP) on each first channel.

[0148] If the current time does not meet the set time period, and it is determined that there is no downstream device, the communication quality index (CQI) of the first channel is determined based on the information of the wireless access node (AP) on the first channel.

[0149] In some embodiments, the apparatus 700 further includes: a determining unit, configured to:

[0150] Determine whether the aforementioned downstream device exists;

[0151] In the absence of the downstream device, or in the presence of the downstream device and the data traffic generated by the downstream device is less than the traffic threshold, the data traffic is determined to meet the first traffic condition.

[0152] In some embodiments, the determining unit is further configured to:

[0153] Determine whether the maximum signal strength of the connected device is less than or equal to the trigger threshold;

[0154] If the maximum value of the signal strength is less than or equal to the trigger threshold, determine whether the attached device exists.

[0155] In some embodiments, the first determining unit 701 is further configured to:

[0156] When the information of the wireless AP includes signal strength, receiving rate and transmitting rate, for each of the first channels, a first weight corresponding to the signal strength, a second weight corresponding to the receiving rate and a third weight corresponding to the transmitting rate are determined.

[0157] The CQI of the first channel is determined based on the signal strength, the receiving rate, the transmitting rate, the first weight, the second weight, and the third weight.

[0158] In some embodiments, the apparatus 700 further includes: a processing unit, configured to:

[0159] Before determining the CQI of the first channel based on the signal strength, the receiving rate, the transmitting rate, the first weight, the second weight, and the third weight, the signal strength, the receiving rate, and the transmitting rate are linearly normalized respectively.

[0160] In some embodiments, the second determining unit 702 is further configured to:

[0161] The CQIs of the first channels included in the first channel set are summed to obtain the CQI of the second channel corresponding to the first channel set.

[0162] This application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the channel selection method described in any of the above embodiments.

[0163] This application also provides a storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, it implements the channel selection method described in any of the above embodiments.

[0164] It should be noted that the information processing device provided in this application embodiment includes various units that can be implemented by a processor in an electronic device; of course, it can also be implemented by specific logic circuits; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field-programmable gate array (FPGA), etc.

[0165] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0166] It should be noted that, in the embodiments of this application, if the above-described information processing method is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to the related technology, 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.) to execute all or part of the methods described in the 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), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.

[0167] Correspondingly, this application provides an electronic device including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the program, it implements the information processing method provided in the above embodiments. This electronic device can be either a client or a server.

[0168] Correspondingly, embodiments of this application provide a storage medium, namely a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps in the information processing method provided in the above embodiments.

[0169] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0170] It should be noted that, Figure 8 A schematic diagram of a hardware entity of an electronic device, such as Figure 8 As shown, the electronic device 800 includes: a processor 801, at least one communication bus 802, at least one external communication interface 804, and a memory 805. The communication bus 802 is configured to enable communication between these components. In one example, the electronic device 800 further includes: a user interface 803, wherein the user interface 803 may include a display screen, and the external communication interface 804 may include standard wired and wireless interfaces.

[0171] The memory 805 is configured to store instructions and applications executable by the processor 801, and can also cache data to be processed or already processed by the processor 801 and various modules in the electronic device (e.g., image data, audio data, voice communication data and video communication data), which can be implemented by flash memory or random access memory (RAM).

[0172] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of the present application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.

[0173] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0174] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0175] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0176] In addition, each functional unit in the embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0177] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.

[0178] Alternatively, if the integrated units described in the embodiments of this application are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, 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.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0179] The above description is merely an embodiment of this application, but the protection scope of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the protection scope of this application. Therefore, the protection scope of this application should be determined by the protection scope of the claims.

Claims

1. A channel selection method, characterized in that, The method includes: For each of the at least two first channels, the communication quality index (CQI) of the first channel is determined based on the information of the wireless access node (AP) on the first channel; the at least two first channels are divided into at least two sets of first channels, and different sets of first channels correspond to different second channels; For each of the first channel sets, the CQI of the second channel corresponding to the first channel set is determined based on the CQI of the first channel included in the first channel set; Based on the CQI of each of the second channels, a target channel is selected from at least two of the second channels.

2. The method according to claim 1, characterized in that, The step of determining the Communication Quality Index (CQI) of the first channel based on the information of the wireless access node (AP) on the first channel includes: Determine if the current time meets the set time period; If the current time meets the set time period, then if the data traffic meets the first traffic condition, the communication quality index (CQI) of the first channel is determined based on the information of the wireless access node (AP) on the first channel. If the current time does not meet the set time period, and it is determined that there is no downstream device, the communication quality index (CQI) of the first channel is determined based on the information of the wireless access node (AP) on the first channel.

3. The method according to claim 2, characterized in that, If the current time meets the set time period, the method further includes: Determine whether the aforementioned downstream device exists; In the absence of the downstream device, or in the presence of the downstream device and the data traffic generated by the downstream device is less than the traffic threshold, the data traffic is determined to meet the first traffic condition.

4. The method according to claim 2, characterized in that, If the current time does not meet the set time period, the method further includes: Determine whether the maximum signal strength of the connected device is less than or equal to the trigger threshold; If the maximum value of the signal strength is less than or equal to the trigger threshold, determine whether the attached device exists.

5. The method according to claim 1, characterized in that, The information of the wireless AP includes: signal strength, receive rate, and transmit rate; determining the communication quality index (CQI) of the first channel based on the information of the wireless AP on the first channel includes: For each of the first channels, a first weight corresponding to the signal strength, a second weight corresponding to the receiving rate, and a third weight corresponding to the transmitting rate are determined. The CQI of the first channel is determined based on the signal strength, the receiving rate, the transmitting rate, the first weight, the second weight, and the third weight.

6. The method according to claim 5, characterized in that, Before determining the CQI of the first channel based on the signal strength, the receiving rate, the transmitting rate, the first weight, the second weight, and the third weight, the method further includes: The signal strength, the receiving rate, and the transmitting rate are respectively subjected to linear normalization.

7. The method according to claim 1, characterized in that, For each of the first channel sets, determining the CQI of the second channel corresponding to the first channel set based on the CQI of the first channels included in the first channel set includes: The CQIs of the first channels included in the first channel set are summed to obtain the CQI of the second channel corresponding to the first channel set.

8. A channel selection device, characterized in that, The device includes: The first determining unit is configured to determine the Communication Quality Index (CQI) of each of the at least two first channels based on the information of the Radio Access Node (AP) on the first channel; the at least two first channels are divided into at least two sets of first channels, and different sets of first channels correspond to different second channels. The second determining unit is configured to, for each of the first channel sets, determine the CQI of the second channel corresponding to the first channel set based on the CQI of the first channel included in the first channel set; A selection unit is configured to select a target channel from at least two second channels based on the CQI of each second channel.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the channel selection method according to any one of claims 1 to 7.

10. A storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the channel selection method according to any one of claims 1 to 7.