A local area network channel selection method, device and computer readable storage medium

By receiving and weighting the historical and current interference energy reported by each access point in the local area network, determining the weighted value of the channel and sorting it, the problem of channel updates resulting in reduced stability during anti-interference is solved, network stability and anti-interference balance is achieved, and user experience is improved.

CN119789178APending Publication Date: 2025-04-08YISHENG (WUHAN) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411978010.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

The prior art updates the channel when anti-interference leads to a reduced stability of network usage, and it is impossible to achieve anti-environmental interference and maintain network stability evenly.

Method used

By receiving the historical interference energy reported by each access point in the local area network, obtaining the current interference energy, and weighting the two, obtaining the interference energy weighted values ​​of each channel, and sorting the channel according to these values ​​to determine the current optimal channel.

Benefits of technology

An adaptive LAN channel selection scheme is realized, effectively avoiding the reduction in stability caused by updating channels due to anti-interference, and the effect of anti-environmental interference and maintaining network stability is achieved evenly, enhancing the user's network usage experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119789178A_ABST
    Figure CN119789178A_ABST
Patent Text Reader

Abstract

The present invention discloses a local area network channel selection method, device and computer-readable storage medium, wherein the method comprises: receiving historical interference energy reported by each access point in the local area network; obtaining current interference energy, and performing weighted calculation on the current interference energy and the historical interference energy to obtain the interference energy weighted value of each channel; and sorting the channels according to the interference energy weighted value to determine the current optimal channel. The present invention implements an adaptive local area network channel selection scheme, effectively avoiding the reduction of usage stability caused by updating the channel for anti-interference, achieving anti-environmental interference and maintaining network stability in a balanced manner, and enhancing the user's network usage experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network communication technology, and in particular to a local area network channel selection method, device and computer-readable storage medium. Background Art

[0002] In the prior art, when a router is powered on, the channel is fixed, but the surrounding energy interference changes dynamically. Therefore, there are currently related technical solutions that can select the best working channel according to different environmental conditions.

[0003] However, while selecting the best working channel according to different environmental conditions, it is impossible to effectively take into account the network stability requirements of users when using the network.

[0004] Therefore, how to effectively avoid the reduction in usage stability caused by updating channels for anti-interference, and to achieve anti-environmental interference and maintain network stability in a balanced manner, has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] In order to overcome the deficiencies in the prior art, the purpose of the present invention is to provide a local area network channel selection method, device and computer-readable storage medium to solve the problem of reduced stability of use caused by updating channels for anti-interference.

[0006] The present invention proposes a local area network channel selection method, which is applied to a master device in a local area network. The method comprises:

[0007] Receiving historical interference energy reported by each access point in the local area network;

[0008] Acquire current interference energy, and perform weighted calculation on the current interference energy and the historical interference energy to obtain a weighted value of interference energy of each channel;

[0009] Channels are sorted according to the interference energy weighted values ​​to determine a current optimal channel.

[0010] Optionally, the receiving historical interference energy reported by each access point in the local area network specifically includes:

[0011] Sending a notification message to each of the access points at a preset interval, so that the access point receiving the notification message collects the interference energy value and reports the interference capability value to the master device;

[0012] The interference capability values ​​reported by the respective access points are aggregated as the historical interference energy.

[0013] Optionally, the acquiring current interference energy and performing weighted calculation on the current interference energy and the historical interference energy to obtain a weighted value of interference energy of each channel specifically includes:

[0014] Determine the number of the access points in the local area network and the interference energy of a channel reported by each of the access points;

[0015] A total energy value of a channel collected by all the access points is calculated according to the interference energy of the channel of the quantity.

[0016] Optionally, the acquiring current interference energy, and performing weighted calculation on the current interference energy and the historical interference energy to obtain a weighted value of interference energy of each channel, further includes:

[0017] Determine an average interference energy of a current channel, as well as an average energy interference value of the current channel stored historically, and an average energy interference value of the current channel collected in real time;

[0018] The energy interference value of the current channel is calculated based on the average interference energy of the current channel and the historically stored average energy interference value of the current channel.

[0019] Optionally, the acquiring current interference energy, and performing weighted calculation on the current interference energy and the historical interference energy to obtain a weighted value of interference energy of each channel, further includes:

[0020] Determining the number of available channels of the local area network;

[0021] The energy interference value of the current channel of the available channel number is calculated according to the energy interference value calculation method of the current channel.

[0022] Optionally, the performing channel sorting according to the interference energy weighted value specifically includes:

[0023] performing channel sorting on energy interference values ​​of current channels of the number of available channels;

[0024] The target channel with the smallest interference energy value is determined according to the channel ranking.

[0025] Optionally, the performing channel sorting according to the interference energy weighted value further includes:

[0026] Determine the current actual working channel;

[0027] If the actual working channel is the same as the target channel, no channel adjustment is performed; otherwise, the current actual working channel is switched to the target channel.

[0028] Optionally, after performing channel sorting according to the interference energy weighted value, the method further comprises:

[0029] The interference energy of the target channel is updated into the historical interference energy.

[0030] The present invention also proposes a local area network channel selection device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the local area network channel selection method as described in any one of the above items when executed by the processor.

[0031] The present invention also proposes a computer-readable storage medium, on which a local area network channel selection program is stored. When the local area network channel selection program is executed by a processor, the steps of the local area network channel selection method as described in any one of the above items are implemented.

[0032] The LAN channel selection method, device and computer-readable storage medium of the present invention receive the historical interference energy reported by each access point in the LAN; obtain the current interference energy, and perform weighted calculation on the current interference energy and the historical interference energy to obtain the interference energy weighted value of each channel; sort the channels according to the interference energy weighted value to determine the current optimal channel. The present invention realizes an adaptive LAN channel selection scheme, effectively avoids the reduction of usage stability caused by updating the channel for anti-interference, achieves anti-environmental interference and maintains network stability in a balanced manner, and enhances the user's network usage experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0034] Figure 1 is a first flow chart of the local area network channel selection method of the present invention;

[0035] Figure 2 is a second flow chart of the local area network channel selection method of the present invention;

[0036] Figure 3 is a third flow chart of the local area network channel selection method of the present invention;

[0037] Figure 4 is a fourth flow chart of the local area network channel selection method of the present invention;

[0038] Figure 5 is a fifth flow chart of the local area network channel selection method of the present invention;

[0039] Figure 6 is a sixth flow chart of the local area network channel selection method of the present invention;

[0040] Figure 7 This is the seventh flow chart of the local area network channel selection method of the present invention. DETAILED DESCRIPTION

[0041] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0042] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0043] Figure 1 This embodiment proposes a method for selecting a channel in a local area network, which is applied to a master device in a local area network. The method includes:

[0044] S1. Receive historical interference energy reported by each access point in the local area network;

[0045] S2. Obtain current interference energy, and perform weighted calculation on the current interference energy and the historical interference energy to obtain a weighted value of interference energy of each channel;

[0046] S3. Sort channels according to the interference energy weighted values ​​to determine a current optimal channel.

[0047] In this embodiment, considering that the best working channel is selected according to different environmental conditions, the stability problem caused by channel switching must also be taken into account. Therefore, when performing channel sorting, this embodiment comprehensively considers the energy interference of the current channel last time, and weights the energy interference of the last time and the energy interference currently detected, thereby effectively reducing the problem of frequent channel switching caused by occasional interference. Specifically, in this embodiment, first, a local area network with at least one WiFi access point is preset, and the main device of the local area network starts notification regularly to perform real-time statistics on the interference energy in the local area network environment, for example, calculating the weighted value of the interference energy of each channel; then, the main device of the local area network sorts the collected energy values ​​of each channel, for example, calculating the optimal channel according to the weighted value of the currently statistical energy interference; finally, according to the optimal interference result finally selected, real-time channel comparison and adjustment are performed, thereby improving the user's network experience.

[0048] The beneficial effect of this embodiment is that by receiving the historical interference energy reported by each access point in the local area network; obtaining the current interference energy, and performing weighted calculation on the current interference energy and the historical interference energy to obtain the interference energy weighted value of each channel; and sorting the channels according to the interference energy weighted value to determine the current optimal channel, an adaptive local area network channel selection scheme is implemented, which effectively avoids the reduction of usage stability caused by updating the channel for anti-interference, achieves anti-environmental interference and maintains network stability in a balanced manner, and enhances the user's network usage experience.

[0049] Figure 2 is a second flow chart of the local area network channel selection method of the present invention. Based on the above embodiment, the receiving of historical interference energy reported by each access point in the local area network specifically includes:

[0050] S11, sending a notification message to each of the access points at a preset interval, so that the access point receiving the notification message collects an interference energy value and reports the interference capability value to the master device;

[0051] S12: Summarize the interference capability values ​​reported by the access points as the historical interference energy.

[0052] Optionally, in this embodiment, the interval time is adjusted according to the historical interference energy. For example, the higher the historical interference energy is, the shorter the interval time is. Conversely, the lower the historical interference energy is, the longer the interval time is.

[0053] Optionally, in this embodiment, the interval time is adjusted according to the current interference energy. For example, the higher the current interference energy is, the shorter the interval time is. Conversely, the lower the current interference energy is, the longer the interval time is.

[0054] Optionally, in this embodiment, the interval time is adjusted according to the number of channels. For example, the more the number of channels is, the shorter the interval time is. Conversely, the fewer the number of channels is, the longer the interval time is.

[0055] Thereby, the reporting period of each access point can be adjusted timely and effectively, and at the same time, additional data processing burden on each access point is avoided.

[0056] Figure 3 3 is a flow chart of the local area network channel selection method of the present invention. Based on the above embodiment, the current interference energy is obtained, and the current interference energy and the historical interference energy are weightedly calculated to obtain the interference energy weighted value of each channel, which specifically includes:

[0057] S21, determining the number of the access points in the local area network and the interference energy of a channel reported by each of the access points;

[0058] S22: Calculate a total energy value of a channel collected by all the access points according to the interference energy of the number of channels.

[0059] Optionally, in this embodiment, the historical interference energy is the interference energy collected within a time interval. In this case, the total energy value of a channel collected by all the access points is calculated according to the interference energy of the channel.

[0060] Optionally, in this embodiment, first, assume that the number of the access points in the local area network is m, wherein the interference energy of a channel reported by a single access point is Em; then, calculate a total channel energy value Esum collected by all the access points based on the historical interference energy, wherein Esum=E1+E2+E3+…+Em; optionally, the interference energy of the channel in this embodiment refers to the noise energy of the channel, and the noise energy is characterized by noise power; further, the noise power in this embodiment is calculated by multiplying the noise power spectral density by the channel bandwidth.

[0061] Optionally, in this embodiment, the historical interference energy is the interference energy collected within p time intervals. At this time, a total energy value Esum of a channel collected by all the access points is calculated based on the historical interference energy, wherein Esum=(E1+E2+E3+…+Em)*p; Optionally, the historical interference energy of this embodiment is the average of the interference energies collected at multiple time intervals before the current moment, wherein the above time interval is set according to the type of channel, and the number of collections (i.e., the number p above) is set according to the bandwidth of the channel; Optionally, the historical interference energy of this embodiment is the average of the interference energy collected within a continuous preset time period before the current moment, wherein the duration of the preset time period is set according to one or more of the channel type, bandwidth and load; Optionally, the historical interference energy of this embodiment is the interference energy collected when the channel is in a working state before the current moment.

[0062] Therefore, by appropriately adjusting the interference energy collection method, the calculation of the total channel energy value can better meet the current statistical needs. For example, by adjusting the above-mentioned collection time interval, the number of collections and the preset collection period, the calculation efficiency or calculation accuracy of the historical interference energy can be dynamically adjusted, thereby providing a more effective data basis for the subsequent weighted value calculation.

[0063] Figure 4is a fourth flow chart of the local area network channel selection method of the present invention, based on the above embodiment, the current interference energy is obtained, and the current interference energy and the historical interference energy are weightedly calculated to obtain the interference energy weighted value of each channel, and further includes:

[0064] S23, determining an average interference energy of a current channel, an average energy interference value of the current channel stored historically, and an average energy interference value of the current channel collected in real time;

[0065] S24. Calculate the energy interference value of the current channel according to the average interference energy of the current channel and the historically stored average energy interference value of the current channel.

[0066] Optionally, in this embodiment, an average interference energy of a current channel is assumed to be Eavg, wherein Eavg=Esum / m, wherein Esum is a total energy value of a channel collected by all access points, and m is the number of access points. Therefore, the average interference energy Eavg of a channel can be calculated by the formula Esum / m; assume a current channel is Ch_old, the average energy interference value of the current channel stored historically is Eavg_old, and the average energy interference value of the current channel collected in real time is Eavg_new; according to the Eavg_old and the Eavg_new, the energy interference value Eavg_Ch_old of the current channel is calculated, wherein Eavg_Ch_old=Eavg_old*k1+Eavg_new*k2, k1+k2=1, wherein k1 and k2 are weight values ​​when calculating the energy interference value of the current channel using the average energy interference value of the current channel stored historically and the average energy interference value of the current channel collected in real time, respectively.

[0067] Optionally, in this embodiment, the k1 and k2 values ​​are set according to the channel switching frequency in a historical period from the current moment. For example, when the channel switching frequency is higher than a preset value, the k1 value is lowered and the k2 value is increased. Conversely, when the channel switching frequency is lower than the preset value, the k1 value is increased and the k2 value is lowered. Alternatively, when the channel switching frequency is equal to the preset value, the current k1 value and the k2 value are maintained. Alternatively, when the channel switching frequency is equal to the preset value, the k1 value and the k2 value are both 0.5.

[0068] Therefore, by adjusting the weights k1 and k2 corresponding to the Eavg_old and the Eavg_new respectively, the calculation method of the energy interference value Eavg_Ch_old of the current channel is made more flexible and associated with the channel switching frequency, thereby providing a more efficient and real-time adjustment strategy.

[0069] Figure 5 The fifth flow chart of the local area network channel selection method of the present invention, based on the above embodiment, the current interference energy is obtained, and the current interference energy and the historical interference energy are weightedly calculated to obtain the interference energy weighted value of each channel, and also includes:

[0070] S25, determining the number of available channels of the local area network;

[0071] S26. Calculate the energy interference value of the current channel of the available channels according to the energy interference value calculation method of the current channel.

[0072] Optionally, in this embodiment, the number of available channels of the local area network is assumed to be n; according to the calculation method of the energy interference value Eavg_Ch_old of the current channel, the energy interference values ​​of the n current channels are calculated to be Eavg_1, Eavg_2...Eavg_n-1, Eavg_n.

[0073] Optionally, in this embodiment, the calculated energy interference values ​​of n current channels are saved as Eavg_1, Eavg_2, . . . Eavg_n-1, Eavg_n, so as to be used in the next channel interference calculation.

[0074] Figure 6 is a sixth flow chart of the local area network channel selection method of the present invention. Based on the above embodiment, the channel sorting according to the interference energy weighted value specifically includes:

[0075] S31, performing channel sorting on the energy interference value of the current channel of the number of available channels;

[0076] S32. Determine a target channel with a minimum interference energy value according to the channel ranking.

[0077] Optionally, in this embodiment, the energy interference values ​​Eavg_1, Eavg_2, ..., Eavg_n-1, Eavg_n of n current channels are sorted; and the channel Ch_new having the smallest interference energy value is determined according to the channel sorting.

[0078] Optionally, in this embodiment, multiple channels with the smallest interference energy values, for example, the three smallest channels, are determined, thereby providing more options for subsequent channel comparison.

[0079] Figure 7 is a seventh flow chart of the local area network channel selection method of the present invention, based on the above embodiment, the channel sorting according to the interference energy weighted value also includes:

[0080] S33, determining the current actual working channel;

[0081] S34. If the actual working channel is the same as the target channel, no channel adjustment is performed; otherwise, the current actual working channel is switched to the target channel.

[0082] Optionally, in this embodiment, the current actual working channel Ch_old is obtained; if the actual working channel Ch_old is the same as the channel Ch_new, no channel adjustment is performed, otherwise, the current actual working channel is switched from the channel Ch_old to the channel Ch_new.

[0083] Optionally, in this embodiment, if one of the three channels with the least interference is the same as the channel Ch_old, switching is not necessary, thereby further reducing the switching frequency and avoiding the problem of poor network stability caused by frequent switching.

[0084] Optionally, after performing channel sorting according to the interference energy weighted value, the method further comprises:

[0085] The interference energy of the target channel is updated into the historical interference energy.

[0086] Optionally, Eavg_Ch_new of the channel Ch_new is updated to the historical interference energy.

[0087] Based on the above embodiments, the present invention also proposes a local area network channel selection device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the local area network channel selection method as described in any one of the above items.

[0088] It should be noted that the above-mentioned device embodiment and method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable in the device embodiment, which will not be repeated here.

[0089] Based on the above embodiments, the present invention also proposes a computer-readable storage medium, which stores a LAN channel selection program. When the LAN channel selection program is executed by a processor, the steps of the LAN channel selection method as described in any of the above items are implemented.

[0090] It should be noted that the above-mentioned medium embodiment and method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable in the medium embodiment, which will not be repeated here.

[0091] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0092] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0093] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A local area network channel selection method, applied to a master device in a local area network, characterized in that: The method comprises: Receiving historical interference energy reported by each access point in the local area network; Acquire current interference energy, and perform weighted calculation on the current interference energy and the historical interference energy to obtain a weighted value of interference energy for each channel; Channels are sorted according to the interference energy weighted values ​​to determine a current optimal channel.

2. The local area network channel selection method according to claim 1, characterized in that: The receiving the historical interference energy reported by each access point in the local area network specifically includes: Sending a notification message to each of the access points at a preset interval, so that the access point receiving the notification message collects the interference energy value and reports the interference capability value to the master device; The interference capability values ​​reported by the respective access points are aggregated as the historical interference energy.

3. The local area network channel selection method according to claim 1, characterized in that: The obtaining of current interference energy and performing weighted calculation on the current interference energy and the historical interference energy to obtain a weighted value of interference energy of each channel specifically includes: Determine the number of the access points in the local area network and the interference energy of a channel reported by each of the access points; A total energy value of a channel collected by all the access points is calculated according to the interference energy of the channel of the quantity.

4. The local area network channel selection method according to claim 3, characterized in that: The obtaining of current interference energy, and performing weighted calculation on the current interference energy and the historical interference energy to obtain a weighted value of interference energy of each channel, further includes: Determine an average interference energy of a current channel, as well as an average energy interference value of the current channel stored historically, and an average energy interference value of the current channel collected in real time; The energy interference value of the current channel is calculated based on the average interference energy of the current channel and the historically stored average energy interference value of the current channel.

5. The local area network channel selection method according to claim 4, characterized in that: The obtaining of current interference energy, and performing weighted calculation on the current interference energy and the historical interference energy to obtain a weighted value of interference energy of each channel, further includes: Determining the number of available channels of the local area network; The energy interference value of the current channel of the available channel number is calculated according to the energy interference value calculation method of the current channel.

6. The local area network channel selection method according to claim 5, characterized in that: The performing channel sorting according to the interference energy weighted value specifically includes: performing channel sorting on energy interference values ​​of current channels of the number of available channels; The target channel with the smallest interference energy value is determined according to the channel ranking.

7. The local area network channel selection method according to claim 6, characterized in that: The performing channel sorting according to the interference energy weighted value further includes: Determine the current actual working channel; If the actual working channel is the same as the target channel, no channel adjustment is performed; otherwise, the current actual working channel is switched to the target channel.

8. The local area network channel selection method according to claim 7, characterized in that: After the channels are sorted according to the interference energy weighted values, the method further comprises: The interference energy of the target channel is updated into the historical interference energy.

9. A local area network channel selection device, characterized in that: The device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the local area network channel selection method according to any one of claims 1 to 8 when executed by the processor.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a local area network channel selection program, and when the local area network channel selection program is executed by the processor, the steps of the local area network channel selection method according to any one of claims 1 to 8 are implemented.