CN105554791A - Method, apparatus and system for setting channel for wireless local area network - Google Patents
Method, apparatus and system for setting channel for wireless local area network Download PDFInfo
- Publication number
- CN105554791A CN105554791A CN201610067094.3A CN201610067094A CN105554791A CN 105554791 A CN105554791 A CN 105554791A CN 201610067094 A CN201610067094 A CN 201610067094A CN 105554791 A CN105554791 A CN 105554791A
- Authority
- CN
- China
- Prior art keywords
- channel
- network device
- quality information
- channel quality
- information corresponding
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/12—Setup of transport tunnels
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本公开是关于一种为无线局域网设置信道的方法、装置和系统,属于互联网技术领域。所述方法包括:获取第一网络设备处每个信道对应的信道质量信息,并接收所述第一网络设备建立的无线局域网中的第二网络设备发送的所述第二网络设备处每个信道对应的信道质量信息;根据所述第一网络设备处每个信道对应的信道质量信息,以及所述第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息;在所述每个信道对应的综合信道质量信息中,确定最优的综合信道质量信息,将所述无线局域网的信道设置为所述最优的综合信道质量信息对应的信道。采用本公开,可以降低丢包率。
The disclosure relates to a method, device and system for setting channels for a wireless local area network, and belongs to the technical field of the Internet. The method includes: acquiring channel quality information corresponding to each channel at the first network device, and receiving information about each channel at the second network device sent by a second network device in the wireless local area network established by the first network device. Corresponding channel quality information: according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device, determine the comprehensive channel quality information corresponding to each channel ; In the integrated channel quality information corresponding to each channel, determine the optimal integrated channel quality information, and set the channel of the wireless local area network as the channel corresponding to the optimal integrated channel quality information. By adopting the present disclosure, the packet loss rate can be reduced.
Description
技术领域technical field
本公开是关于互联网技术领域,尤其是关于一种为无线局域网设置信道的方法、装置和系统。The present disclosure relates to the technical field of the Internet, in particular to a method, device and system for setting channels for a wireless local area network.
背景技术Background technique
随着互联网技术的发展,各种各样的网络设备(比如路由器、手机、平板电脑、智能电视等)得到了广泛的应用。终端可以通过路由器等设备创建的无线局域网连入互联网,按照802.11b/g网络标准,无线局域网无线信号的频率可以在2.4~2.4835GHz的频段,该频段可以分为11或13个信道,路由器在创建无线局域网的时候,往往会自动将上述各信道中的一个信道设置为无线局域网的信道。With the development of Internet technology, various network devices (such as routers, mobile phones, tablet computers, smart TVs, etc.) have been widely used. The terminal can connect to the Internet through the wireless LAN created by routers and other equipment. According to the 802.11b/g network standard, the wireless signal frequency of the wireless LAN can be in the frequency band of 2.4-2.4835GHz, which can be divided into 11 or 13 channels. When creating a wireless local area network, one of the above-mentioned channels is often automatically set as the channel of the wireless local area network.
目前,路由器为创建的无线局域网的设置信道的方法往往是扫描路由器处每个信道的信道质量,比如,可以扫描使用每个信道的设备的数量,最终路由器选择一个使用数量最少的信道,即选择一个最优的信道,将无线局域网的信道设置为此最优的信道,这样,可以提高路由器的通信质量。At present, the way for routers to set channels for the created WLAN is often to scan the channel quality of each channel at the router, for example, the number of devices using each channel can be scanned, and finally the router selects a channel with the least number of uses, that is, select An optimal channel, set the channel of the wireless LAN to this optimal channel, so that the communication quality of the router can be improved.
在实现本公开的过程中,发明人发现至少存在以下问题:In the process of realizing the present disclosure, the inventors found at least the following problems:
基于上述处理方式,当在路由器建立的无线局域网中的终端的周围使用该信道的设备数量较多时,即该信道在终端周围信号质量很差时,将会导致路由器与终端传输数据时产生严重的丢包现象,从而,导致丢包率较高。Based on the above processing method, when there are many devices using this channel around the terminal in the wireless LAN established by the router, that is, when the signal quality of the channel around the terminal is very poor, it will cause serious problems when the router and the terminal transmit data. Packet loss phenomenon, thus leading to a higher packet loss rate.
发明内容Contents of the invention
为了克服相关技术中存在的问题,本公开提供了一种为无线局域网设置信道的方法、装置和系统。所述技术方案如下:In order to overcome the problems in related technologies, the present disclosure provides a method, device and system for setting channels for a wireless local area network. Described technical scheme is as follows:
根据本公开实施例的第一方面,提供一种为无线局域网设置信道的方法,所述方法包括:According to a first aspect of an embodiment of the present disclosure, there is provided a method for setting a channel for a wireless local area network, the method comprising:
获取第一网络设备处每个信道对应的信道质量信息,并接收所述第一网络设备建立的无线局域网中的第二网络设备发送的所述第二网络设备处每个信道对应的信道质量信息;Acquiring channel quality information corresponding to each channel at the first network device, and receiving channel quality information corresponding to each channel at the second network device sent by a second network device in the wireless local area network established by the first network device ;
根据所述第一网络设备处每个信道对应的信道质量信息,以及所述第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息;Determine the integrated channel quality information corresponding to each channel according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device;
在所述每个信道对应的综合信道质量信息中,确定最优的综合信道质量信息,将所述无线局域网的信道设置为所述最优的综合信道质量信息对应的信道。In the integrated channel quality information corresponding to each channel, the optimal integrated channel quality information is determined, and the channel of the wireless local area network is set as the channel corresponding to the optimal integrated channel quality information.
可选的,所述获取第一网络设备处每个信道对应的信道质量信息,包括:Optionally, the acquiring channel quality information corresponding to each channel at the first network device includes:
获取第一网络设备处每个信道对应的预设的信道质量参数项的参数值;Obtain the parameter value of the preset channel quality parameter item corresponding to each channel at the first network device;
根据所述第一网络设备处每个信道对应的预设的信道质量参数项的参数值,确定所述第一网络设备处每个信道对应的信道质量信息。The channel quality information corresponding to each channel at the first network device is determined according to the parameter value of the preset channel quality parameter item corresponding to each channel at the first network device.
可选的,所述根据所述第一网络设备处每个信道对应的预设的信道质量参数项的参数值,确定所述第一网络设备处每个信道对应的信道质量信息,包括:Optionally, the determining the channel quality information corresponding to each channel at the first network device according to the parameter value of the preset channel quality parameter item corresponding to each channel at the first network device includes:
根据所述第一网络设备处每个信道对应的预设的信道质量参数项的参数值,以及预设的每个信道质量参数项对应的权重值,确定所述第一网络设备处每个信道对应的信道质量信息。Determine each channel at the first network device according to the parameter value of the preset channel quality parameter item corresponding to each channel at the first network device and the preset weight value corresponding to each channel quality parameter item Corresponding channel quality information.
可选的,所述根据所述第一网络设备处每个信道对应的信道质量信息,以及所述第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息,包括:Optionally, according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device, determining the integrated channel quality information corresponding to each channel ,include:
对所述第一网络设备处每个信道对应的信道质量信息、所述第二网络设备处每个信道对应的信道质量信息、预设的第一网络设备对应的权重值、以及预设的第二网络设备对应的权重值,确定每个信道对应的综合信道质量信息。The channel quality information corresponding to each channel at the first network device, the channel quality information corresponding to each channel at the second network device, the preset weight value corresponding to the first network device, and the preset first network device The weight value corresponding to the second network device determines the comprehensive channel quality information corresponding to each channel.
可选的,所述接收所述第一网络设备建立的无线局域网中的第二网络设备发送的所述第二网络设备处每个信道对应的信道质量信息,包括:Optionally, the receiving the channel quality information corresponding to each channel at the second network device sent by the second network device in the wireless local area network established by the first network device includes:
接收所述第一网络设备建立的无线局域网中的第二网络设备发送的所述第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息;receiving channel quality information corresponding to each channel detected by the second network device at multiple different locations and sent by the second network device in the wireless local area network established by the first network device;
所述根据所述第一网络设备处每个信道对应的信道质量信息,以及所述第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息,包括:The determining the comprehensive channel quality information corresponding to each channel according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device includes:
根据所述第一网络设备处每个信道对应的信道质量信息,以及所述第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息。According to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel detected by the second network device at multiple different positions, determine the integrated channel corresponding to each channel quality information.
这样,可以保证选取的信道在多个不同的位置都是较优的信道,即用户在不同的位置上网,均可有较快的网速。In this way, it can be guaranteed that the selected channel is a better channel in multiple different locations, that is, the user can have a faster network speed when surfing the Internet at different locations.
根据本公开实施例的第二方面,提供一种为无线局域网设置信道的方法,所述方法包括:According to a second aspect of an embodiment of the present disclosure, there is provided a method for setting a channel for a wireless local area network, the method comprising:
获取第二网络设备处每个信道对应的信道质量信息;Obtain channel quality information corresponding to each channel at the second network device;
向第一网络设备发送所述第二网络设备处每个信道对应的信道质量信息,其中,所述第一网络设备是所述第二网络设备所属无线局域网的网关设备。Sending the channel quality information corresponding to each channel at the second network device to the first network device, where the first network device is a gateway device of a wireless local area network to which the second network device belongs.
可选的,所述获取第二网络设备处每个信道对应的信道质量信息,包括:Optionally, the acquiring channel quality information corresponding to each channel at the second network device includes:
获取第二网络设备处每个信道对应的预设的信道质量参数项的参数值;Obtain the parameter value of the preset channel quality parameter item corresponding to each channel at the second network device;
根据所述第二网络设备处每个信道对应的预设的信道质量参数项的参数值,确定所述第二网络设备处每个信道对应的信道质量信息。The channel quality information corresponding to each channel at the second network device is determined according to the parameter value of the preset channel quality parameter item corresponding to each channel at the second network device.
可选的,所述根据所述第二网络设备处每个信道对应的预设的信道质量参数项的参数值,确定所述第二网络设备处每个信道对应的信道质量信息,包括:Optionally, the determining the channel quality information corresponding to each channel at the second network device according to the parameter value of the preset channel quality parameter item corresponding to each channel at the second network device includes:
根据所述第二网络设备处每个信道对应的预设的信道质量参数项的参数值,以及预设的每个信道质量参数项对应的权重值,确定所述第二网络设备处每个信道对应的信道质量信息。Determine each channel at the second network device according to the parameter value of the preset channel quality parameter item corresponding to each channel at the second network device and the preset weight value corresponding to each channel quality parameter item Corresponding channel quality information.
可选的,所述获取第二网络设备处每个信道对应的信道质量信息,包括:Optionally, the acquiring channel quality information corresponding to each channel at the second network device includes:
获取第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息;Acquire channel quality information corresponding to each channel detected by the second network device at multiple different locations;
所述向所述第一网络设备发送所述第二网络设备处每个信道对应的信道质量信息,包括:The sending the channel quality information corresponding to each channel at the second network device to the first network device includes:
向所述第一网络设备发送所述第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息。Sending channel quality information corresponding to each channel detected by the second network device at multiple different locations to the first network device.
根据本公开实施例的第一三方面,提供一种第一网络设备,所述第一网络设备包括:According to the first and third aspects of the embodiments of the present disclosure, a first network device is provided, and the first network device includes:
获取模块,用于获取第一网络设备处每个信道对应的信道质量信息;An acquisition module, configured to acquire channel quality information corresponding to each channel at the first network device;
接收模块,用于接收所述第一网络设备建立的无线局域网中的第二网络设备发送的所述第二网络设备处每个信道对应的信道质量信息;A receiving module, configured to receive channel quality information corresponding to each channel at the second network device sent by the second network device in the wireless local area network established by the first network device;
确定模块,用于根据所述第一网络设备处每个信道对应的信道质量信息,以及所述第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息;A determining module, configured to determine comprehensive channel quality information corresponding to each channel according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device;
设置模块,用于在所述每个信道对应的综合信道质量信息中,确定最优的综合信道质量信息,将所述无线局域网的信道设置为所述最优的综合信道质量信息对应的信道。A setting module, configured to determine the optimal integrated channel quality information in the integrated channel quality information corresponding to each channel, and set the channel of the wireless local area network as the channel corresponding to the optimal integrated channel quality information.
可选的,所述获取模块,包括:Optionally, the acquisition module includes:
获取子模块,用于获取第一网络设备处每个信道对应的预设的信道质量参数项的参数值;An acquisition submodule, configured to acquire a parameter value of a preset channel quality parameter item corresponding to each channel at the first network device;
确定子模块,用于根据所述第一网络设备处每个信道对应的预设的信道质量参数项的参数值,确定所述第一网络设备处每个信道对应的信道质量信息。The determining submodule is configured to determine the channel quality information corresponding to each channel at the first network device according to the parameter value of the preset channel quality parameter item corresponding to each channel at the first network device.
可选的,所述确定子模块,用于:Optionally, the determining submodule is used for:
根据所述第一网络设备处每个信道对应的预设的信道质量参数项的参数值,以及预设的每个信道质量参数项对应的权重值,确定所述第一网络设备处每个信道对应的信道质量信息。Determine each channel at the first network device according to the parameter value of the preset channel quality parameter item corresponding to each channel at the first network device and the preset weight value corresponding to each channel quality parameter item Corresponding channel quality information.
可选的,所述确定模块,用于:Optionally, the determination module is used for:
对所述第一网络设备处每个信道对应的信道质量信息、所述第二网络设备处每个信道对应的信道质量信息、预设的第一网络设备对应的权重值、以及预设的第二网络设备对应的权重值,确定每个信道对应的综合信道质量信息。The channel quality information corresponding to each channel at the first network device, the channel quality information corresponding to each channel at the second network device, the preset weight value corresponding to the first network device, and the preset first network device The weight value corresponding to the second network device determines the comprehensive channel quality information corresponding to each channel.
可选的,所述接收模块,用于:Optionally, the receiving module is used for:
接收所述第一网络设备建立的无线局域网中的第二网络设备发送的所述第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息;receiving channel quality information corresponding to each channel detected by the second network device at multiple different locations and sent by the second network device in the wireless local area network established by the first network device;
所述确定模块,用于:The determining module is used for:
根据所述第一网络设备处每个信道对应的信道质量信息,以及所述第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息。According to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel detected by the second network device at multiple different positions, determine the integrated channel corresponding to each channel quality information.
根据本公开实施例的第四方面,提供一种第二网络设备,所述第二网络设备包括:According to a fourth aspect of an embodiment of the present disclosure, a second network device is provided, and the second network device includes:
获取模块,用于获取第二网络设备处每个信道对应的信道质量信息;An acquisition module, configured to acquire channel quality information corresponding to each channel at the second network device;
发送模块,用于向第一网络设备发送所述第二网络设备处每个信道对应的信道质量信息,其中,所述第一网络设备是所述第二网络设备所属无线局域网的网关设备。A sending module, configured to send channel quality information corresponding to each channel at the second network device to a first network device, wherein the first network device is a gateway device of a wireless local area network to which the second network device belongs.
可选的,所述获取模块,包括:Optionally, the acquisition module includes:
获取子模块,用于获取第二网络设备处每个信道对应的预设的信道质量参数项的参数值;An acquisition submodule, configured to acquire a parameter value of a preset channel quality parameter item corresponding to each channel at the second network device;
确定子模块,用于根据所述第二网络设备处每个信道对应的预设的信道质量参数项的参数值,确定所述第二网络设备处每个信道对应的信道质量信息。The determination submodule is configured to determine the channel quality information corresponding to each channel at the second network device according to the parameter value of the preset channel quality parameter item corresponding to each channel at the second network device.
可选的,所述确定子模块,用于:Optionally, the determining submodule is used for:
根据所述第二网络设备处每个信道对应的预设的信道质量参数项的参数值,以及预设的每个信道质量参数项对应的权重值,确定所述第二网络设备处每个信道对应的信道质量信息。Determine each channel at the second network device according to the parameter value of the preset channel quality parameter item corresponding to each channel at the second network device and the preset weight value corresponding to each channel quality parameter item Corresponding channel quality information.
可选的,所述获取模块,用于:Optionally, the acquiring module is used for:
获取第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息;Acquire channel quality information corresponding to each channel detected by the second network device at multiple different locations;
所述发送模块,用于:The sending module is used for:
向所述第一网络设备发送所述第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息。Sending channel quality information corresponding to each channel detected by the second network device at multiple different locations to the first network device.
根据本公开实施例的第五方面,提供一种为无线局域网设置信道的装置,包括:According to a fifth aspect of an embodiment of the present disclosure, there is provided an apparatus for setting a channel for a wireless local area network, including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:Wherein, the processor is configured as:
获取第一网络设备处每个信道对应的信道质量信息,并接收所述第一网络设备建立的无线局域网中的第二网络设备发送的所述第二网络设备处每个信道对应的信道质量信息;Acquiring channel quality information corresponding to each channel at the first network device, and receiving channel quality information corresponding to each channel at the second network device sent by a second network device in the wireless local area network established by the first network device ;
根据所述第一网络设备处每个信道对应的信道质量信息,以及所述第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息;Determine the integrated channel quality information corresponding to each channel according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device;
在所述每个信道对应的综合信道质量信息中,确定最优的综合信道质量信息,将所述无线局域网的信道设置为所述最优的综合信道质量信息对应的信道。In the integrated channel quality information corresponding to each channel, the optimal integrated channel quality information is determined, and the channel of the wireless local area network is set as the channel corresponding to the optimal integrated channel quality information.
根据本公开实施例的第六方面,提供一种为无线局域网设置信道的装置,包括:According to a sixth aspect of an embodiment of the present disclosure, there is provided an apparatus for setting a channel for a wireless local area network, including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:Wherein, the processor is configured as:
获取第二网络设备处每个信道对应的信道质量信息;Obtain channel quality information corresponding to each channel at the second network device;
向第一网络设备发送所述第二网络设备处每个信道对应的信道质量信息,其中,所述第一网络设备是所述第二网络设备所属无线局域网的网关设备。Sending the channel quality information corresponding to each channel at the second network device to the first network device, where the first network device is a gateway device of a wireless local area network to which the second network device belongs.
根据本公开实施例的第七方面,提供一种为无线局域网设置信道的系统,所述系统包括第一网络设备和第二网络设备,其中:According to a seventh aspect of an embodiment of the present disclosure, there is provided a system for setting channels for a wireless local area network, the system includes a first network device and a second network device, wherein:
所述第一网络设备,用于获取所述第一网络设备处每个信道对应的信道质量信息,并接收所述第一网络设备建立的无线局域网中的所述第二网络设备发送的所述第二网络设备处每个信道对应的信道质量信息;根据所述第一网络设备处每个信道对应的信道质量信息,以及所述第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息;在所述每个信道对应的综合信道质量信息中,确定最优的综合信道质量信息,将所述无线局域网的信道设置为所述最优的综合信道质量信息对应的信道;The first network device is configured to obtain channel quality information corresponding to each channel at the first network device, and receive the information sent by the second network device in the wireless local area network established by the first network device. Channel quality information corresponding to each channel at the second network device; according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device, determine each Comprehensive channel quality information corresponding to each channel; in the comprehensive channel quality information corresponding to each channel, determine the optimal comprehensive channel quality information, and set the channel of the wireless local area network as the optimal comprehensive channel quality information the corresponding channel;
所述第二网络设备,用于获取所述第二网络设备处每个信道对应的信道质量信息;向所述第一网络设备发送所述第二网络设备处每个信道对应的信道质量信息,其中,所述第一网络设备是所述第二网络设备所属无线局域网的网关设备。The second network device is configured to acquire channel quality information corresponding to each channel at the second network device; send the channel quality information corresponding to each channel at the second network device to the first network device, Wherein, the first network device is a gateway device of a wireless local area network to which the second network device belongs.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
本公开实施例中,获取第一网络设备处每个信道对应的信道质量信息,并接收第一网络设备建立的无线局域网中的第二网络设备发送的第二网络设备处每个信道对应的信道质量信息,根据第一网络设备处每个信道对应的信道质量信息,以及第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息,在每个信道对应的综合信道质量信息中,确定最优的综合信道质量信息,将无线局域网的信道设置为最优的综合信道质量信息对应的信道。这样,不会出现最终设置的无线局域网的信道在第一网络设备处最优,在第二网络设备处很差的现象,最终设置的无线局域网的信道是综合最优的,第一网络设备与第二网络设备可以通过综合最优的信道进行通信,从而,可以降低丢包率。In the embodiment of the present disclosure, the channel quality information corresponding to each channel at the first network device is obtained, and the channel corresponding to each channel at the second network device sent by the second network device in the wireless local area network established by the first network device is received For quality information, according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device, determine the comprehensive channel quality information corresponding to each channel, and determine the comprehensive channel quality information corresponding to each channel. In the integrated channel quality information, the optimal integrated channel quality information is determined, and the channel of the wireless local area network is set as the channel corresponding to the optimal integrated channel quality information. In this way, there will be no phenomenon that the channel of the wireless local area network that is finally set is optimal at the first network device and is poor at the second network device. The channel of the wireless local area network that is finally set is comprehensively optimal. The second network device can communicate through the comprehensively optimal channel, thereby reducing the packet loss rate.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。在附图中:The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. In the attached picture:
图1是根据一示例性实施例示出的一种为无线局域网设置信道的方法的流程图;Fig. 1 is a flow chart of a method for setting a channel for a wireless local area network according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种为无线局域网设置信道的方法的流程图;Fig. 2 is a flow chart of a method for setting a channel for a wireless local area network according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种为无线局域网设置信道的方法的流程图;Fig. 3 is a flow chart of a method for setting a channel for a wireless local area network according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种在多个不同位置获取信道质量信息的示意图;Fig. 4 is a schematic diagram of acquiring channel quality information at multiple different locations according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种系统框架示意图;Fig. 5 is a schematic diagram of a system framework according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种选取最优信道的示意图;Fig. 6 is a schematic diagram of selecting an optimal channel according to an exemplary embodiment;
图7是根据一示例性实施例示出的一种为无线局域网设置信道的装置的示意图;Fig. 7 is a schematic diagram of an apparatus for setting channels for a wireless local area network according to an exemplary embodiment;
图8是根据一示例性实施例示出的一种为无线局域网设置信道的装置的示意图;Fig. 8 is a schematic diagram of an apparatus for setting channels for a wireless local area network according to an exemplary embodiment;
图9是根据一示例性实施例示出的一种为无线局域网设置信道的装置的示意图;Fig. 9 is a schematic diagram of an apparatus for setting channels for a wireless local area network according to an exemplary embodiment;
图10是根据一示例性实施例示出的一种为无线局域网设置信道的装置的示意图;Fig. 10 is a schematic diagram of an apparatus for setting channels for a wireless local area network according to an exemplary embodiment;
图11是根据一示例性实施例示出的一种第一网络设备的结构示意图;Fig. 11 is a schematic structural diagram of a first network device according to an exemplary embodiment;
图12是根据一示例性实施例示出的一种第二网络设备的结构示意图。Fig. 12 is a schematic structural diagram of a second network device according to an exemplary embodiment.
通过上述附图,已示出本公开明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本公开的概念。By means of the above-mentioned drawings, certain embodiments of the present disclosure have been shown and will be described in more detail hereinafter. These drawings and written description are not intended to limit the scope of the disclosed concept in any way, but to illustrate the disclosed concept for those skilled in the art by referring to specific embodiments.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
本公开一示例性实施例提供了一种为无线局域网设置信道的方法,该方法可以由第一网络设备和第二网络设备共同实现。第一网络设备中可以设置有处理器、收发器,处理器可以用于确定每个信道对应的综合信道质量信息、以及为无线局域网设置信道的相关处理,收发器可以用于接收和发送数据,还可以设置有存储器,存储器可以用于存储下述处理过程中需要和产生的数据。第二网络设备中可以设置有处理器和收发器,处理器可以用于获取第二网络设备处每个信道对应的信道质量信息,收发器可以用于接收和发送数据,还可以设置有存储器,存储器可以用于存储下述处理过程中需要和产生的数据。An exemplary embodiment of the present disclosure provides a method for setting a channel for a wireless local area network, and the method can be jointly implemented by a first network device and a second network device. The first network device may be provided with a processor and a transceiver, the processor may be used to determine the comprehensive channel quality information corresponding to each channel, and related processing for channel setting for the wireless local area network, and the transceiver may be used to receive and send data, A memory may also be provided, and the memory may be used to store data required and generated during the following processing. The second network device may be provided with a processor and a transceiver, the processor may be used to obtain channel quality information corresponding to each channel at the second network device, the transceiver may be used for receiving and sending data, and a memory may also be provided. The memory can be used to store data required and generated during the processes described below.
如图1所示,该方法中第一网络设备的处理流程可以包括如下的步骤:As shown in Figure 1, the processing flow of the first network device in the method may include the following steps:
在步骤101中,获取第一网络设备处每个信道对应的信道质量信息,并接收第一网络设备建立的无线局域网中的第二网络设备发送的第二网络设备处每个信道对应的信道质量信息。In step 101, the channel quality information corresponding to each channel at the first network device is obtained, and the channel quality information corresponding to each channel at the second network device sent by the second network device in the wireless local area network established by the first network device is received information.
在实施中,第一网络设备当接收到信道优化指令时,可以获取第一网络设备处每个信道对应的信道质量信息。针对第二网络设备发送信道优化请求的情况,第一网络设备可以接收第二网络设备发送的信道优化请求,进而,可以获取第一网络设备处每个信道对应的信道质量信息。另外,第一网络设备还可以接收第二网络设备发送的第二网络设备处每个信道对应的信道质量信息。需要说明的一点,接收第一网络设备建立的无线局域网中的第二网络设备发送的第二网络设备处每个信道对应的信道质量信息,与获取第一网络设备处每个信道对应的信道质量信息并没有先后的时序关系,前者可以先于后者进行,也可以晚于后者进行。In an implementation, when the first network device receives the channel optimization instruction, it may acquire channel quality information corresponding to each channel at the first network device. For the case where the second network device sends a channel optimization request, the first network device may receive the channel optimization request sent by the second network device, and then may acquire channel quality information corresponding to each channel at the first network device. In addition, the first network device may also receive channel quality information corresponding to each channel at the second network device sent by the second network device. It should be noted that receiving the channel quality information corresponding to each channel at the second network device sent by the second network device in the wireless local area network established by the first network device is the same as obtaining the channel quality information corresponding to each channel at the first network device Information does not have a sequential relationship, the former can be carried out before the latter, or it can be carried out later than the latter.
在步骤102中,根据第一网络设备处每个信道对应的信道质量信息,以及第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息。In step 102, the integrated channel quality information corresponding to each channel is determined according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device.
在实施中,第一网络设备获取到第一网络设备处每个信道对应的信道质量信息,以及接收到第二网络设备发送的第二网络设备处每个信道对应的信道质量信息后,可以综合考虑每个信道在第一网络设备处以及在第二网络设备处的信道质量信息,即对于每个信道,可以根据该信道在第一网络设备处以及在第二网络设备处的信道质量信息,确定该信道对应的综合信道质量信息。In implementation, after the first network device obtains the channel quality information corresponding to each channel at the first network device and receives the channel quality information corresponding to each channel at the second network device sent by the second network device, it can synthesize Considering the channel quality information of each channel at the first network device and at the second network device, that is, for each channel, according to the channel quality information at the first network device and at the second network device, The integrated channel quality information corresponding to the channel is determined.
在步骤103中,在每个信道对应的综合信道质量信息中,确定最优的综合信道质量信息,将无线局域网的信道设置为最优的综合信道质量信息对应的信道。In step 103, the optimal integrated channel quality information is determined in the integrated channel quality information corresponding to each channel, and the channel of the wireless local area network is set as the channel corresponding to the optimal integrated channel quality information.
在实施中,第一网络设备确定出每个信道对应的综合信道质量后,可以在其中选取最优的综合信道质量信息,并可以将无线局域网的信道设置为最优的综合信道质量信息对应的信道,即可以将接收到信道优化请求之前的信道切换为最优的综合信道质量信息对应的信道,另外,切换过程可以由第二网络设备触发,也可以在第一网络设备选取最优的综合信道质量信息后自发进行。In implementation, after the first network device determines the integrated channel quality corresponding to each channel, it can select the optimal integrated channel quality information among them, and can set the channel of the wireless local area network as the channel corresponding to the optimal integrated channel quality information. channel, that is, the channel before receiving the channel optimization request can be switched to the channel corresponding to the optimal comprehensive channel quality information. In addition, the switching process can be triggered by the second network device, or the optimal comprehensive channel quality information can be selected on the first network device. The channel quality information is followed spontaneously.
如图2所示,该方法中第二网络设备的处理流程可以包括如下的步骤:As shown in Figure 2, the processing flow of the second network device in this method may include the following steps:
在步骤201中,获取第二网络设备处每个信道对应的信道质量信息。In step 201, channel quality information corresponding to each channel at the second network device is acquired.
在实施中,第二网络设备中可以安装有设置所属的无线局域网的信道的应用程序,用户可以通过该应用程序设置所属的无线局域网的信道,例如,第二网络设备是手机,手机中可以安装有设置路由器创建的无线局域网的信道的应用程序,即用户可以通过手机控制路由器,对其进行设置,其中,手机与路由器可以通过该无线局域网建立无线连接。具体的,当当前的无线局域网的网速较慢时,用户可以通过第二网络设备设置无线局域网的信道,即可以通过第二网络设备控制创建无线局域网的网络设备(可以称为第一网络设备)重新设置无线局域网的信道,可以将这一过程看作是优化信道的过程。In implementation, an application program for setting the channel of the wireless local area network to which it belongs can be installed in the second network device, and the user can set the channel of the wireless local area network to which the user belongs through the application program. For example, the second network device is a mobile phone, and the mobile phone can install There is an application program for setting the channel of the wireless local area network created by the router, that is, the user can control the router and set it through the mobile phone, and the mobile phone and the router can establish a wireless connection through the wireless local area network. Specifically, when the network speed of the current wireless local area network is relatively slow, the user can set the channel of the wireless local area network through the second network device, that is, the network device that creates the wireless local area network (which can be called the first network device) can be controlled by the second network device ) to reset the channel of the wireless local area network, and this process can be regarded as the process of optimizing the channel.
应用程序的主页面可以设置有优化信道选项,当用户想要优化信道时,可以选取优化信道选项,此时将会触发第二网络设备向第一网络设备发送信道优化请求,并获取第二网络设备处每个信道对应的信道质量信息。The main page of the application can be set with an option to optimize the channel. When the user wants to optimize the channel, he can select the option to optimize the channel. At this time, the second network device will be triggered to send a channel optimization request to the first network device, and obtain the second network Channel quality information corresponding to each channel at the device.
在步骤202中,向第一网络设备发送第二网络设备处每个信道对应的信道质量信息,其中,第一网络设备是第二网络设备所属无线局域网的网关设备。In step 202, the channel quality information corresponding to each channel at the second network device is sent to the first network device, wherein the first network device is a gateway device of the wireless local area network to which the second network device belongs.
在实施中,第二网络设备获取到每个信道对应的信道质量信息后,可以将其发送给第一网络设备,即可以将其发送给创建第二网络设备所属的无线局域网的设备。In implementation, after the second network device obtains the channel quality information corresponding to each channel, it may send it to the first network device, that is, it may send it to the device that creates the wireless local area network to which the second network device belongs.
本公开实施例中,获取第一网络设备处每个信道对应的信道质量信息,并接收第一网络设备建立的无线局域网中的第二网络设备发送的第二网络设备处每个信道对应的信道质量信息,根据第一网络设备处每个信道对应的信道质量信息,以及第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息,在每个信道对应的综合信道质量信息中,确定最优的综合信道质量信息,将无线局域网的信道设置为最优的综合信道质量信息对应的信道。这样,不会出现最终设置的无线局域网的信道在第一网络设备处最优,在第二网络设备处很差的现象,最终设置的无线局域网的信道是综合最优的,第一网络设备与第二网络设备可以通过综合最优的信道进行通信,从而,可以降低丢包率。In the embodiment of the present disclosure, the channel quality information corresponding to each channel at the first network device is obtained, and the channel corresponding to each channel at the second network device sent by the second network device in the wireless local area network established by the first network device is received For quality information, according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device, determine the comprehensive channel quality information corresponding to each channel, and determine the comprehensive channel quality information corresponding to each channel. In the integrated channel quality information, the optimal integrated channel quality information is determined, and the channel of the wireless local area network is set as the channel corresponding to the optimal integrated channel quality information. In this way, there will be no phenomenon that the channel of the wireless local area network that is finally set is optimal at the first network device and is poor at the second network device. The channel of the wireless local area network that is finally set is comprehensively optimal. The second network device can communicate through the comprehensively optimal channel, thereby reducing the packet loss rate.
本公开另一示例性实施例提供了一种为无线局域网设置信道的方法,如图3所示,该方法可以由第一网络设备与第二网络设备共同实现,其中,第一网络设备可以是具有创建无线局域网的功能的设备,比如路由器等,第二网络设备可以是通过第一网络设备创建的无线局域网与第一网络设备建立无线连接的设备,比如可以是手机、平板电脑等移动终端,也可以是路由器(第一网络设备)下的子路由器。第一网络设备中可以设置有处理器、收发器,处理器可以用于确定每个信道对应的综合信道质量信息、以及为无线局域网设置信道的相关处理,收发器可以用于接收和发送数据,还可以设置有存储器,存储器可以用于存储下述处理过程中需要和产生的数据。第二网络设备中可以设置有处理器和收发器,处理器可以用于获取第二网络设备处每个信道对应的信道质量信息,收发器可以用于接收和发送数据,还可以设置有存储器,存储器可以用于存储下述处理过程中需要和产生的数据。Another exemplary embodiment of the present disclosure provides a method for setting a channel for a wireless local area network. As shown in FIG. A device with the function of creating a wireless local area network, such as a router, etc., the second network device may be a device that establishes a wireless connection with the first network device through the wireless local area network created by the first network device, such as a mobile terminal such as a mobile phone or a tablet computer, It may also be a sub-router under the router (the first network device). The first network device may be provided with a processor and a transceiver, the processor may be used to determine the comprehensive channel quality information corresponding to each channel, and related processing for channel setting for the wireless local area network, and the transceiver may be used to receive and send data, A memory may also be provided, and the memory may be used to store data required and generated during the following processing. The second network device may be provided with a processor and a transceiver, the processor may be used to obtain channel quality information corresponding to each channel at the second network device, the transceiver may be used for receiving and sending data, and a memory may also be provided. The memory can be used to store data required and generated during the processes described below.
下面将结合实施方式,对图3所示的处理流程进行详细的说明,内容可以如下:The processing flow shown in FIG. 3 will be described in detail below in conjunction with the implementation manner, and the content may be as follows:
在步骤301中,第二网络设备获取第二网络设备处每个信道对应的信道质量信息。In step 301, the second network device acquires channel quality information corresponding to each channel at the second network device.
其中,第二网络设备可以是连接无线局域网的终端,比如是手机、平板电脑等移动终端,信道质量信息可以是用于表征信道的质量的信息,信道可以是无线局域网无线信号的频率,比如,可以是路由器产生的无线信号的频率,按照802.11b/g网络标准,无线局域网无线信号的频率可以在2.4~2.4835GHz的频段,这些频段可以分为11或13个信道,即路由器创建的无线局域网的信道可以是这11或13个信道中的一个。Wherein, the second network device may be a terminal connected to a wireless local area network, such as a mobile terminal such as a mobile phone or a tablet computer, and the channel quality information may be information used to characterize the quality of a channel, and the channel may be a frequency of a wireless signal of the wireless local area network, for example, It can be the frequency of the wireless signal generated by the router. According to the 802.11b/g network standard, the frequency of the wireless LAN wireless signal can be in the frequency band of 2.4-2.4835GHz. These frequency bands can be divided into 11 or 13 channels, that is, the wireless LAN created by the router. The channel can be one of these 11 or 13 channels.
在实施中,第二网络设备中可以安装有设置所属的无线局域网的信道的应用程序,用户可以通过该应用程序设置所属的无线局域网的信道,例如,第二网络设备是手机,手机中可以安装有设置路由器创建的无线局域网的信道的应用程序,即用户可以通过手机控制路由器,对其进行设置,其中,手机与路由器可以通过该无线局域网建立无线连接。具体的,当当前的无线局域网的网速较慢时,用户可以通过第二网络设备设置无线局域网的信道,即可以通过第二网络设备控制创建无线局域网的网络设备(可以称为第一网络设备)重新设置无线局域网的信道,可以将这一过程看作是优化信道的过程。In implementation, an application program for setting the channel of the wireless local area network to which it belongs can be installed in the second network device, and the user can set the channel of the wireless local area network to which the user belongs through the application program. For example, the second network device is a mobile phone, and the mobile phone can install There is an application program for setting the channel of the wireless local area network created by the router, that is, the user can control the router and set it through the mobile phone, and the mobile phone and the router can establish a wireless connection through the wireless local area network. Specifically, when the network speed of the current wireless local area network is relatively slow, the user can set the channel of the wireless local area network through the second network device, that is, the network device that creates the wireless local area network (which can be called the first network device) can be controlled by the second network device ) to reset the channel of the wireless local area network, and this process can be regarded as the process of optimizing the channel.
应用程序的主页面可以设置有优化信道选项,当用户想要优化信道时,可以选取优化信道选项,此时将会触发第二网络设备向第一网络设备发送信道优化请求,并获取第二网络设备处每个信道对应的信道质量信息。The main page of the application can be set with an option to optimize the channel. When the user wants to optimize the channel, he can select the option to optimize the channel. At this time, the second network device will be triggered to send a channel optimization request to the first network device, and obtain the second network Channel quality information corresponding to each channel at the device.
可选的,可以通过预设的信道质量参数项的参数值,确定每个信道对应的信道质量信息,相应的,步骤301的处理过程可以如下:获取第二网络设备处每个信道对应的预设的信道质量参数项的参数值,根据第二网络设备处每个信道对应的预设的信道质量参数项的参数值,确定第二网络设备处每个信道对应的信道质量信息。Optionally, the channel quality information corresponding to each channel may be determined through the parameter value of the preset channel quality parameter item. Correspondingly, the processing procedure of step 301 may be as follows: obtain the preset The parameter value of the channel quality parameter item is set, and the channel quality information corresponding to each channel at the second network device is determined according to the parameter value of the preset channel quality parameter item corresponding to each channel at the second network device.
其中,信道质量参数项可以是用于确定信道质量信息的参数项的。Wherein, the channel quality parameter item may be a parameter item for determining channel quality information.
在实施中,可以预先设置信道质量参数项,其中,第二网络设备可以通过预设的信道质量参数项的参数值确定每个信道的信道质量信息。具体的,当第二网络设备接收到优化信道指令时,可以获取第二网络设备处每个信道对应的预设的信道质量参数项的参数值,其中,信道质量参数项可以是设备数量、信号强度、信道利用率、信噪比等参数项。也就是说,对于每个信道,可以获取第二网络设备处使用该信道的设备数量(比如,可以是使用该信道的路由器的数量)、使用该信道的设备产生的无线局域网无线信号的信号强度值、信道的信道利用率的大小、信道的信噪比的大小。进而,第二网络设备可以根据获取的每个信道对应的预设的信道质量参数项的参数值,确定第二网络设备处每个信道对应的信道质量信息。In an implementation, the channel quality parameter item may be preset, wherein the second network device may determine the channel quality information of each channel through a parameter value of the preset channel quality parameter item. Specifically, when the second network device receives the instruction to optimize the channel, it can obtain the parameter value of the preset channel quality parameter item corresponding to each channel at the second network device, where the channel quality parameter item can be the number of devices, signal Intensity, channel utilization, signal-to-noise ratio and other parameters. That is to say, for each channel, the number of devices using this channel at the second network device (for example, the number of routers using this channel), and the signal strength of wireless local area network wireless signals generated by devices using this channel can be obtained value, the size of the channel utilization ratio of the channel, and the size of the signal-to-noise ratio of the channel. Furthermore, the second network device may determine the channel quality information corresponding to each channel at the second network device according to the acquired parameter value of the preset channel quality parameter item corresponding to each channel.
可选的,可以对上述每个信道质量参数项预先设置权重值,相应的,处理过程可以如下:根据第二网络设备处每个信道对应的预设的信道质量参数项的参数值,以及预设的每个信道质量参数项对应的权重值,确定第二网络设备处每个信道对应的信道质量信息。Optionally, a weight value may be preset for each of the above channel quality parameter items. Correspondingly, the processing may be as follows: according to the parameter value of the preset channel quality parameter item corresponding to each channel at the second network device, and the preset The weight value corresponding to each channel quality parameter item is set to determine the channel quality information corresponding to each channel at the second network device.
在实施中,可以预先设置每个信道质量参数项对应的权重值。获取到第二网络设备处每个信道对应的信道质量参数项的参数值后,可以根据预设的每个信道质量参数项对应的权重值,对各参数值进行加权处理,得到第二网络设备处每个信道对应的信道质量信息。In implementation, the weight value corresponding to each channel quality parameter item may be preset. After obtaining the parameter values of the channel quality parameter items corresponding to each channel at the second network device, each parameter value may be weighted according to the preset weight value corresponding to each channel quality parameter item to obtain the second network device The channel quality information corresponding to each channel.
可选的,第二网络设备可以在多个不同的位置获取信道的信道质量信息,相应的,步骤301的处理过程可以如下:获取第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息。Optionally, the second network device may obtain the channel quality information of the channel at multiple different positions, and correspondingly, the processing procedure of step 301 may be as follows: obtain each channel detected by the second network device at multiple different positions Corresponding channel quality information.
在实施中,第二网络设备可以在多个不同的位置分别获取每个信道对应的信道质量信息,其中,多个不同的位置可以是用户经常通过第一网络设备创建的无线局域网上网的位置,也就是说,对于用户选取的每个位置,第二网络设备可以分别获取每个信道在该位置对应的信道质量信息,如图4所示。In an implementation, the second network device may separately obtain channel quality information corresponding to each channel at multiple different locations, where the multiple different locations may be locations where users often access the Internet through the wireless local area network created by the first network device, That is to say, for each location selected by the user, the second network device may respectively acquire channel quality information corresponding to each channel at the location, as shown in FIG. 4 .
在步骤302中,第二网络设备向第一网络设备发送第二网络设备处每个信道对应的信道质量信息,其中,第一网络设备是第二网络设备所属无线局域网的网关设备。In step 302, the second network device sends channel quality information corresponding to each channel at the second network device to the first network device, wherein the first network device is a gateway device of the wireless local area network to which the second network device belongs.
在实施中,第二网络设备获取到每个信道对应的信道质量信息后,可以将其发送给第一网络设备,即可以将其发送给创建第二网络设备所属的无线局域网的设备,如图5所示。In implementation, after the second network device obtains the channel quality information corresponding to each channel, it can send it to the first network device, that is, it can send it to the device that creates the wireless local area network to which the second network device belongs, as shown in the figure 5.
可选的,针对第二网络设备分别在多个不同的位置获取信道质量信息的情况,相应的,步骤302的处理过程可以如下:向第一网络设备发送第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息。Optionally, for the case where the second network device obtains the channel quality information at multiple different locations, correspondingly, the processing procedure of step 302 may be as follows: send to the first network device The channel quality information corresponding to each channel detected at .
在实施中,对于每个不同的位置,第二网络设备在该位置分别获取每个信道对应的信道质量信息后,可以将在该位置处每个信道对应的信道质量信息发送给第一网络设备。In implementation, for each different location, after the second network device obtains the channel quality information corresponding to each channel at the location, the channel quality information corresponding to each channel at the location can be sent to the first network device .
在步骤303中,第一网络设备获取第一网络设备处每个信道对应的信道质量信息,并接收第一网络设备建立的无线局域网中的第二网络设备发送的第二网络设备处每个信道对应的信道质量信息。In step 303, the first network device obtains the channel quality information corresponding to each channel at the first network device, and receives the channel quality information of each channel at the second network device sent by the second network device in the wireless local area network established by the first network device. Corresponding channel quality information.
在实施中,第一网络设备当接收到信道优化指令时,可以获取第一网络设备处每个信道对应的信道质量信息。针对第二网络设备发送信道优化请求的情况,第一网络设备可以接收第二网络设备发送的信道优化请求,进而,可以获取第一网络设备处每个信道对应的信道质量信息。另外,第一网络设备还可以接收第二网络设备发送的第二网络设备处每个信道对应的信道质量信息。需要说明的一点,接收第一网络设备建立的无线局域网中的第二网络设备发送的第二网络设备处每个信道对应的信道质量信息,与获取第一网络设备处每个信道对应的信道质量信息并没有先后的时序关系,前者可以先于后者进行,也可以晚于后者进行。In an implementation, when the first network device receives the channel optimization instruction, it may acquire channel quality information corresponding to each channel at the first network device. For the case where the second network device sends a channel optimization request, the first network device may receive the channel optimization request sent by the second network device, and then may acquire channel quality information corresponding to each channel at the first network device. In addition, the first network device may also receive channel quality information corresponding to each channel at the second network device sent by the second network device. It should be noted that receiving the channel quality information corresponding to each channel at the second network device sent by the second network device in the wireless local area network established by the first network device is the same as obtaining the channel quality information corresponding to each channel at the first network device Information does not have a sequential relationship, the former can be carried out before the latter, or it can be carried out later than the latter.
可选的,可以通过预设的信道质量参数项的参数值,确定每个信道对应的信道质量信息,相应的,步骤303的处理过程可以如下:获取第一网络设备处每个信道对应的预设的信道质量参数项的参数值,根据第一网络设备处每个信道对应的预设的信道质量参数项的参数值,确定第一网络设备处每个信道对应的信道质量信息。Optionally, the channel quality information corresponding to each channel can be determined through the parameter value of the preset channel quality parameter item. Correspondingly, the processing procedure of step 303 can be as follows: obtain the preset The parameter value of the channel quality parameter item is set, and the channel quality information corresponding to each channel at the first network device is determined according to the parameter value of the preset channel quality parameter item corresponding to each channel at the first network device.
其中,信道质量参数项可以是用于确定信道质量信息的参数项的。Wherein, the channel quality parameter item may be a parameter item for determining channel quality information.
在实施中,可以预先设置信道质量参数项,其中,第一网络设备可以通过预设的信道质量参数项的参数值确定每个信道的信道质量信息。具体的,当第一网络设备接收到优化信道指令时,可以获取第一网络设备处每个信道对应的预设的信道质量参数项的参数值,其中,信道质量参数项可以是设备数量、信号强度、信道利用率、信噪比等参数项。也就是说,对于每个信道,可以获取第一网络设备处使用该信道的设备数量(比如,可以是使用该信道的路由器的数量)、使用该信道的设备产生的无线局域网无线信号的信号强度值、信道的信道利用率的大小、信道的信噪比的大小。进而,第一网络设备可以根据获取的每个信道对应的预设的信道质量参数项的参数值,确定第一网络设备处每个信道对应的信道质量信息。In an implementation, the channel quality parameter item may be preset, wherein the first network device may determine the channel quality information of each channel through a parameter value of the preset channel quality parameter item. Specifically, when the first network device receives the instruction to optimize the channel, it can obtain the parameter value of the preset channel quality parameter item corresponding to each channel at the first network device, where the channel quality parameter item can be the number of devices, signal Intensity, channel utilization, signal-to-noise ratio and other parameters. That is to say, for each channel, the number of devices using the channel at the first network device (for example, the number of routers using the channel), and the signal strength of wireless local area network wireless signals generated by the devices using the channel can be obtained value, the size of the channel utilization ratio of the channel, and the size of the signal-to-noise ratio of the channel. Furthermore, the first network device may determine the channel quality information corresponding to each channel at the first network device according to the acquired parameter value of the preset channel quality parameter item corresponding to each channel.
可选的,可以对上述每个信道质量参数项预先设置权重值,相应的,处理过程可以如下:根据第一网络设备处每个信道对应的预设的信道质量参数项的参数值,以及预设的每个信道质量参数项对应的权重值,确定第一网络设备处每个信道对应的信道质量信息。Optionally, a weight value may be preset for each of the above channel quality parameter items. Correspondingly, the processing may be as follows: according to the parameter value of the preset channel quality parameter item corresponding to each channel at the first network device, and the preset The weight value corresponding to each channel quality parameter item is set to determine the channel quality information corresponding to each channel at the first network device.
在实施中,可以预先设置每个信道质量参数项对应的权重值。获取到第一网络设备处每个信道对应的信道质量参数项的参数值后,可以根据预设的每个信道质量参数项对应的权重值,对各参数值进行加权处理,得到第一网络设备处每个信道对应的信道质量信息。In implementation, the weight value corresponding to each channel quality parameter item may be preset. After obtaining the parameter values of the channel quality parameter items corresponding to each channel at the first network device, each parameter value may be weighted according to the preset weight value corresponding to each channel quality parameter item to obtain the first network device The channel quality information corresponding to each channel.
可选的,针对第二网络设备在多个不同的位置检测每个信道对应的信道质量信息的情况,相应的,处理过程可以如下:接收第一网络设备建立的无线局域网中的第二网络设备发送的第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息。Optionally, for the situation where the second network device detects the channel quality information corresponding to each channel in multiple different locations, correspondingly, the processing procedure may be as follows: receiving the second network device in the wireless local area network established by the first network device The transmitted channel quality information corresponding to each channel detected by the second network device at multiple different locations.
在实施中,第二网络设备向第一网络设备发送分别在多个不同位置处检测的每个信道对应的信道质量信息后,第一网络设备可以接收第二网络设备发送的第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息。In an implementation, after the second network device sends the channel quality information corresponding to each channel detected at multiple different locations to the first network device, the first network device may receive the information sent by the second network device. Channel quality information corresponding to each channel detected at a plurality of different locations.
在步骤304中,第一网络设备根据第一网络设备处每个信道对应的信道质量信息,以及第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息。In step 304, the first network device determines the integrated channel quality information corresponding to each channel according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device.
在实施中,第一网络设备获取到第一网络设备处每个信道对应的信道质量信息,以及接收到第二网络设备发送的第二网络设备处每个信道对应的信道质量信息后,可以综合考虑每个信道在第一网络设备处以及在第二网络设备处的信道质量信息,即对于每个信道,可以根据该信道在第一网络设备处以及在第二网络设备处的信道质量信息,确定该信道对应的综合信道质量信息。In implementation, after the first network device obtains the channel quality information corresponding to each channel at the first network device and receives the channel quality information corresponding to each channel at the second network device sent by the second network device, it can synthesize Considering the channel quality information of each channel at the first network device and at the second network device, that is, for each channel, according to the channel quality information at the first network device and at the second network device, The integrated channel quality information corresponding to the channel is determined.
可选的,可以根据预设的第一网络设备对应的权重值、以及预设的第二网络设备对应的权重值,确定每个信道对应的综合信道质量信息,相应的,步骤304的处理过程可以如下:对第一网络设备处每个信道对应的信道质量信息、第二网络设备处每个信道对应的信道质量信息、预设的第一网络设备对应的权重值、以及预设的第二网络设备对应的权重值,确定每个信道对应的综合信道质量信息。Optionally, the comprehensive channel quality information corresponding to each channel may be determined according to the preset weight value corresponding to the first network device and the preset weight value corresponding to the second network device. Correspondingly, the processing in step 304 It may be as follows: the channel quality information corresponding to each channel at the first network device, the channel quality information corresponding to each channel at the second network device, the preset weight value corresponding to the first network device, and the preset second The weight value corresponding to the network device determines the comprehensive channel quality information corresponding to each channel.
在实施中,可以预先设置第一网络设备、第二网络设备对应的权重值,其中,预先设置的第二网络设备对应的权重值适用于所有在第一网络设备建立的无线局域网中的网络设备。第一网络设备获取到第一网络设备处每个信道对应的信道质量信息(可以称为第一信道质量信息),以及接收到第二网络设备发送的第二网络设备处每个信道对应的信道质量信息(可以称为第二信道质量信息)后,可以根据预先设置的第一网络设备对应的权重值、第二网络设备对应的权重值,对第一信道质量信息与第二信道质量信息进行加权处理,得到每个信道对应的综合信道质量信息。In implementation, the weight values corresponding to the first network device and the second network device can be preset, wherein the preset weight value corresponding to the second network device is applicable to all network devices in the wireless local area network established by the first network device . The first network device obtains the channel quality information corresponding to each channel at the first network device (may be referred to as first channel quality information), and receives the channel corresponding to each channel at the second network device sent by the second network device After the quality information (which may be referred to as the second channel quality information), the first channel quality information and the second channel quality information may be calculated according to the preset weight value corresponding to the first network device and the weight value corresponding to the second network device. Weighting processing is performed to obtain comprehensive channel quality information corresponding to each channel.
可选的,针对第一网络设备接收第二网络设备发送的在多个不同的位置检测的每个信道对应的信道质量信息的情况,相应的,步骤304的处理过程可以如下:根据第一网络设备处每个信道对应的信道质量信息,以及第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息。Optionally, for the case where the first network device receives the channel quality information corresponding to each channel detected at multiple different locations and sent by the second network device, correspondingly, the processing procedure of step 304 may be as follows: According to the first network The channel quality information corresponding to each channel at the device, and the channel quality information corresponding to each channel detected by the second network device at multiple different locations, determine the comprehensive channel quality information corresponding to each channel.
在实施中,第一网络设备接收到第二网络设备发送的在多个不同的位置检测的每个信道对应的信道质量信息后,对于每个信道,第一网络设备可以该信道在第一网络设备处对应的信道质量信息,以及第二网络设备分别在多个不同位置处检测的该信道对应的信道质量信息,确定该信道对应的综合信道质量信息。另外,还可以预先存储用户选择的多个不同位置对应的权重值,这样,根第一网络设备可以据第一网络设备处每个信道对应的信道质量信息、第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息、以及预设的多个不同位置对应的权重值,确定每个信道对应的综合信道质量信息。In an implementation, after the first network device receives the channel quality information corresponding to each channel detected at multiple different locations sent by the second network device, for each channel, the first network device can The channel quality information corresponding to the device, and the channel quality information corresponding to the channel detected by the second network device at multiple different positions respectively, determine the comprehensive channel quality information corresponding to the channel. In addition, the weight values corresponding to multiple different locations selected by the user may also be stored in advance, so that the first network device can use the channel quality information corresponding to each channel at the first network device, and the second network device respectively in multiple different locations. The channel quality information corresponding to each channel detected at the position and the preset weight values corresponding to multiple different positions determine the comprehensive channel quality information corresponding to each channel.
在步骤305中,第一网络设备在每个信道对应的综合信道质量信息中,确定最优的综合信道质量信息,将无线局域网的信道设置为最优的综合信道质量信息对应的信道。In step 305, the first network device determines the optimal integrated channel quality information in the integrated channel quality information corresponding to each channel, and sets the channel of the wireless local area network as the channel corresponding to the optimal integrated channel quality information.
在实施中,第一网络设备确定出每个信道对应的综合信道质量后,可以在其中选取最优的综合信道质量信息,并可以将无线局域网的信道设置为最优的综合信道质量信息对应的信道,即可以将接收到信道优化请求之前的信道切换为最优的综合信道质量信息对应的信道,另外,切换过程可以由第二网络设备触发,也可以在第一网络设备选取最优的综合信道质量信息后自发进行。例如,以信道1和信道6,以参数项为设备数量为例,如图6所示,第一网络设备处有2台设备使用信道1,有4台设备使用信道6,在第二网络设备处有7台设备使用信道1,有3台设备使用信道6,则信道1与信道6比较,第一网络设备选取信道6作为无线局域网的信道。In implementation, after the first network device determines the integrated channel quality corresponding to each channel, it can select the optimal integrated channel quality information among them, and can set the channel of the wireless local area network as the channel corresponding to the optimal integrated channel quality information. channel, that is, the channel before receiving the channel optimization request can be switched to the channel corresponding to the optimal comprehensive channel quality information. In addition, the switching process can be triggered by the second network device, or the optimal comprehensive channel quality information can be selected on the first network device. The channel quality information is followed spontaneously. For example, taking channel 1 and channel 6, and taking the parameter item as the number of devices as an example, as shown in Figure 6, there are 2 devices using channel 1 at the first network device, and 4 devices using channel 6, and at the second network device There are 7 devices using channel 1, and 3 devices using channel 6, then channel 1 is compared with channel 6, and the first network device selects channel 6 as the channel of the wireless local area network.
本公开实施例中,获取第一网络设备处每个信道对应的信道质量信息,并接收第一网络设备建立的无线局域网中的第二网络设备发送的第二网络设备处每个信道对应的信道质量信息,根据第一网络设备处每个信道对应的信道质量信息,以及第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息,在每个信道对应的综合信道质量信息中,确定最优的综合信道质量信息,将无线局域网的信道设置为最优的综合信道质量信息对应的信道。这样,不会出现最终设置的无线局域网的信道在第一网络设备处最优,在第二网络设备处很差的现象,最终设置的无线局域网的信道是综合最优的,第一网络设备与第二网络设备可以通过综合最优的信道进行通信,从而,可以降低丢包率。In the embodiment of the present disclosure, the channel quality information corresponding to each channel at the first network device is obtained, and the channel corresponding to each channel at the second network device sent by the second network device in the wireless local area network established by the first network device is received For quality information, according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device, determine the comprehensive channel quality information corresponding to each channel, and determine the comprehensive channel quality information corresponding to each channel. In the integrated channel quality information, the optimal integrated channel quality information is determined, and the channel of the wireless local area network is set as the channel corresponding to the optimal integrated channel quality information. In this way, there will be no phenomenon that the channel of the wireless local area network that is finally set is optimal at the first network device and is poor at the second network device. The channel of the wireless local area network that is finally set is comprehensively optimal. The second network device can communicate through the comprehensively optimal channel, thereby reducing the packet loss rate.
本公开又一示例性实施例提供了一种第一网络设备,如图7所示,该第一网络设备包括:Yet another exemplary embodiment of the present disclosure provides a first network device. As shown in FIG. 7 , the first network device includes:
获取模块710,用于获取第一网络设备处每个信道对应的信道质量信息;An acquisition module 710, configured to acquire channel quality information corresponding to each channel at the first network device;
接收模块720,用于接收所述第一网络设备建立的无线局域网中的第二网络设备发送的所述第二网络设备处每个信道对应的信道质量信息;A receiving module 720, configured to receive channel quality information corresponding to each channel at the second network device sent by the second network device in the wireless local area network established by the first network device;
确定模块730,用于根据所述第一网络设备处每个信道对应的信道质量信息,以及所述第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息;A determining module 730, configured to determine comprehensive channel quality information corresponding to each channel according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device ;
设置模块740,用于在所述每个信道对应的综合信道质量信息中,确定最优的综合信道质量信息,将所述无线局域网的信道设置为所述最优的综合信道质量信息对应的信道。A setting module 740, configured to determine the optimal integrated channel quality information in the integrated channel quality information corresponding to each channel, and set the channel of the wireless local area network as the channel corresponding to the optimal integrated channel quality information .
可选的,如图8所示,所述获取模块710,包括:Optionally, as shown in FIG. 8, the obtaining module 710 includes:
获取子模块7101,用于获取第一网络设备处每个信道对应的预设的信道质量参数项的参数值;An acquisition submodule 7101, configured to acquire a parameter value of a preset channel quality parameter item corresponding to each channel at the first network device;
确定子模块7102,用于根据所述第一网络设备处每个信道对应的预设的信道质量参数项的参数值,确定所述第一网络设备处每个信道对应的信道质量信息。The determining submodule 7102 is configured to determine channel quality information corresponding to each channel at the first network device according to a parameter value of a preset channel quality parameter item corresponding to each channel at the first network device.
可选的,所述确定子模块7102,用于:Optionally, the determining submodule 7102 is configured to:
根据所述第一网络设备处每个信道对应的预设的信道质量参数项的参数值,以及预设的每个信道质量参数项对应的权重值,确定所述第一网络设备处每个信道对应的信道质量信息。Determine each channel at the first network device according to the parameter value of the preset channel quality parameter item corresponding to each channel at the first network device and the preset weight value corresponding to each channel quality parameter item Corresponding channel quality information.
可选的,所述确定模块730,用于:Optionally, the determining module 730 is configured to:
对所述第一网络设备处每个信道对应的信道质量信息、所述第二网络设备处每个信道对应的信道质量信息、预设的第一网络设备对应的权重值、以及预设的第二网络设备对应的权重值,确定每个信道对应的综合信道质量信息。The channel quality information corresponding to each channel at the first network device, the channel quality information corresponding to each channel at the second network device, the preset weight value corresponding to the first network device, and the preset first network device The weight value corresponding to the second network device determines the comprehensive channel quality information corresponding to each channel.
可选的,所述接收模块720,用于:Optionally, the receiving module 720 is configured to:
接收所述第一网络设备建立的无线局域网中的第二网络设备发送的所述第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息;receiving channel quality information corresponding to each channel detected by the second network device at multiple different locations and sent by the second network device in the wireless local area network established by the first network device;
所述确定模块730,用于:The determining module 730 is configured to:
根据所述第一网络设备处每个信道对应的信道质量信息,以及所述第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息。According to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel detected by the second network device at multiple different positions, determine the integrated channel corresponding to each channel quality information.
基于相同的技术构思,本公开实施例还提供了一种第二网络设备,如图9所示,该第二网络设备包括:Based on the same technical concept, an embodiment of the present disclosure also provides a second network device. As shown in FIG. 9, the second network device includes:
获取模块910,用于获取第二网络设备处每个信道对应的信道质量信息;An obtaining module 910, configured to obtain channel quality information corresponding to each channel at the second network device;
发送模块920,用于向第一网络设备发送所述第二网络设备处每个信道对应的信道质量信息,其中,所述第一网络设备是所述第二网络设备所属无线局域网的网关设备。The sending module 920 is configured to send channel quality information corresponding to each channel at the second network device to a first network device, wherein the first network device is a gateway device of a wireless local area network to which the second network device belongs.
可选的,如图10所示,所述获取模块910,包括:Optionally, as shown in Figure 10, the acquiring module 910 includes:
获取子模块9101,用于获取第二网络设备处每个信道对应的预设的信道质量参数项的参数值;The acquisition submodule 9101 is configured to acquire the parameter value of the preset channel quality parameter item corresponding to each channel at the second network device;
确定子模块9102,用于根据所述第二网络设备处每个信道对应的预设的信道质量参数项的参数值,确定所述第二网络设备处每个信道对应的信道质量信息。The determining submodule 9102 is configured to determine channel quality information corresponding to each channel at the second network device according to a parameter value of a preset channel quality parameter item corresponding to each channel at the second network device.
可选的,所述确定子模块9102,用于:Optionally, the determining submodule 9102 is configured to:
根据所述第二网络设备处每个信道对应的预设的信道质量参数项的参数值,以及预设的每个信道质量参数项对应的权重值,确定所述第二网络设备处每个信道对应的信道质量信息。Determine each channel at the second network device according to the parameter value of the preset channel quality parameter item corresponding to each channel at the second network device and the preset weight value corresponding to each channel quality parameter item Corresponding channel quality information.
可选的,所述获取模块910,用于:Optionally, the acquiring module 910 is configured to:
获取第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息;Acquire channel quality information corresponding to each channel detected by the second network device at multiple different locations;
所述发送模块920,用于:The sending module 920 is configured to:
向所述第一网络设备发送所述第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息。Sending channel quality information corresponding to each channel detected by the second network device at multiple different locations to the first network device.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
本公开实施例中,获取第一网络设备处每个信道对应的信道质量信息,并接收第一网络设备建立的无线局域网中的第二网络设备发送的第二网络设备处每个信道对应的信道质量信息,根据第一网络设备处每个信道对应的信道质量信息,以及第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息,在每个信道对应的综合信道质量信息中,确定最优的综合信道质量信息,将无线局域网的信道设置为最优的综合信道质量信息对应的信道。这样,不会出现最终设置的无线局域网的信道在第一网络设备处最优,在第二网络设备处很差的现象,最终设置的无线局域网的信道是综合最优的,第一网络设备与第二网络设备可以通过综合最优的信道进行通信,从而,可以降低丢包率。In the embodiment of the present disclosure, the channel quality information corresponding to each channel at the first network device is obtained, and the channel corresponding to each channel at the second network device sent by the second network device in the wireless local area network established by the first network device is received For quality information, according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device, determine the comprehensive channel quality information corresponding to each channel, and determine the comprehensive channel quality information corresponding to each channel. In the integrated channel quality information, the optimal integrated channel quality information is determined, and the channel of the wireless local area network is set as the channel corresponding to the optimal integrated channel quality information. In this way, there will be no phenomenon that the channel of the wireless local area network that is finally set is optimal at the first network device and is poor at the second network device. The channel of the wireless local area network that is finally set is comprehensively optimal. The second network device can communicate through the comprehensively optimal channel, thereby reducing the packet loss rate.
需要说明的是:上述实施例提供的为无线局域网设置信道的装置在为无线局域网设置信道时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的为无线局域网设置信道的装置与为无线局域网设置信道的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: the device for setting channels for the wireless local area network provided by the above-mentioned embodiments only uses the division of the above-mentioned functional modules as an example to illustrate when setting channels for the wireless local area network. In practical applications, the above-mentioned functions can be assigned by Completion of different functional modules means that the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device for setting a channel for a wireless local area network provided in the above embodiment and the method embodiment for setting a channel for a wireless local area network belong to the same idea, and its specific implementation process is detailed in the method embodiment, and will not be repeated here.
本公开再一示例性实施例示出了一种网络设备的结构示意图。该网络设备可以是上述所述的第一网络设备,可以是路由器等。Still another exemplary embodiment of the present disclosure shows a schematic structural diagram of a network device. The network device may be the above-mentioned first network device, or may be a router or the like.
参照图11,网络设备1100可以包括以下一个或多个组件:处理组件1102,存储器1104,电源组件1106,多媒体组件1108,音频组件1110,输入/输出(I/O)的接口1112,传感器组件1114,以及通信组件1116。11, network device 1100 may include one or more of the following components: processing component 1102, memory 1104, power supply component 1106, multimedia component 1108, audio component 1110, input/output (I/O) interface 1112, sensor component 1114 , and the communication component 1116.
处理组件1102通常控制网络设备1100的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件1102可以包括一个或多个处理器1120来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1102可以包括一个或多个模块,便于处理组件1102和其他组件之间的交互。例如,处理部件1102可以包括多媒体模块,以方便多媒体组件1108和处理组件1102之间的交互。The processing component 1102 generally controls the overall operations of the network device 1100, such as those associated with the display, telephone calls, data communications, camera operations, and recording operations. The processing element 1102 may include one or more processors 1120 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 1102 may include one or more modules that facilitate interaction between processing component 1102 and other components. For example, processing component 1102 may include a multimedia module to facilitate interaction between multimedia component 1108 and processing component 1102 .
存储器1104被配置为存储各种类型的数据以支持在网络设备1100的操作。这些数据的示例包括用于在网络设备1100上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1104可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1104 is configured to store various types of data to support operations at the network device 1100 . Examples of such data include instructions for any application or method operating on the network device 1100, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1104 can be implemented by any type of volatile or non-volatile memory device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电力组件1106为网络设备1100的各种组件提供电力。电力组件1106可以包括电源管理系统,一个或多个电源,及其他与为音频输出设备1100生成、管理和分配电力相关联的组件。Power component 1106 provides power to various components of network device 1100 . Power components 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for audio output device 1100 .
多媒体组件1108包括在所述网络设备1100和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1108包括一个前置摄像头和/或后置摄像头。当网络设备1100处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 1108 includes a screen providing an output interface between the network device 1100 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 1108 includes a front camera and/or a rear camera. When the network device 1100 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件1110被配置为输出和/或输入音频信号。例如,音频组件1110包括一个麦克风(MIC),当音频输出设备1100处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1104或经由通信组件1116发送。The audio component 1110 is configured to output and/or input audio signals. For example, the audio component 1110 includes a microphone (MIC), which is configured to receive an external audio signal when the audio output device 1100 is in an operation mode, such as a call mode, a recording mode and a voice recognition mode. Received audio signals may be further stored in memory 1104 or sent via communication component 1116 .
I/O接口1112为处理组件1102和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1112 provides an interface between the processing component 1102 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件1114包括一个或多个传感器,用于为网络设备1100提供各个方面的状态评估。例如,传感器组件1114可以检测到网络设备1100的打开/关闭状态,组件的相对定位,例如所述组件为网络设备1100的显示器和小键盘,传感器组件1114还可以检测网络设备1100或网络设备1100一个组件的位置改变,用户与网络设备1100接触的存在或不存在,网络设备1100方位或加速/减速和网络设备1100的温度变化。传感器组件1114可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1114还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1114还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor component 1114 includes one or more sensors for providing status assessments of various aspects of network device 1100 . For example, the sensor component 1114 can detect the on/off status of the network device 1100, the relative positioning of components, such as the display and the keypad of the network device 1100, the sensor component 1114 can also detect the network device 1100 or a network device 1100 Changes in position of components, presence or absence of user contact with network device 1100 , network device 1100 orientation or acceleration/deceleration and temperature changes in network device 1100 . Sensor assembly 1114 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 1114 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件1116被配置为便于网络设备1100和其他设备之间有线或无线方式的通信。网络设备1100可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件1116经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件1116还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 1116 is configured to facilitate wired or wireless communications between network device 1100 and other devices. The network device 1100 can access a wireless network based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,网络设备1100可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, network device 1100 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1104,上述指令可由网络设备1100的处理器1120执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1104 including instructions, which can be executed by the processor 1120 of the network device 1100 to complete the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由网络设备的处理器执行时,使得网络设备能够执行为无线局域网设置信道的方法,该方法包括:A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of the network device, the network device is enabled to perform a method for setting a channel for a wireless local area network, the method comprising:
获取第一网络设备处每个信道对应的信道质量信息,并接收所述第一网络设备建立的无线局域网中的第二网络设备发送的所述第二网络设备处每个信道对应的信道质量信息;Acquiring channel quality information corresponding to each channel at the first network device, and receiving channel quality information corresponding to each channel at the second network device sent by a second network device in the wireless local area network established by the first network device ;
根据所述第一网络设备处每个信道对应的信道质量信息,以及所述第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息;Determine the integrated channel quality information corresponding to each channel according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device;
在所述每个信道对应的综合信道质量信息中,确定最优的综合信道质量信息,将所述无线局域网的信道设置为所述最优的综合信道质量信息对应的信道。In the integrated channel quality information corresponding to each channel, the optimal integrated channel quality information is determined, and the channel of the wireless local area network is set as the channel corresponding to the optimal integrated channel quality information.
可选的,所述获取第一网络设备处每个信道对应的信道质量信息,包括:Optionally, the acquiring channel quality information corresponding to each channel at the first network device includes:
获取第一网络设备处每个信道对应的预设的信道质量参数项的参数值;Obtain the parameter value of the preset channel quality parameter item corresponding to each channel at the first network device;
根据所述第一网络设备处每个信道对应的预设的信道质量参数项的参数值,确定所述第一网络设备处每个信道对应的信道质量信息。The channel quality information corresponding to each channel at the first network device is determined according to the parameter value of the preset channel quality parameter item corresponding to each channel at the first network device.
可选的,所述根据所述第一网络设备处每个信道对应的预设的信道质量参数项的参数值,确定所述第一网络设备处每个信道对应的信道质量信息,包括:Optionally, the determining the channel quality information corresponding to each channel at the first network device according to the parameter value of the preset channel quality parameter item corresponding to each channel at the first network device includes:
根据所述第一网络设备处每个信道对应的预设的信道质量参数项的参数值,以及预设的每个信道质量参数项对应的权重值,确定所述第一网络设备处每个信道对应的信道质量信息。Determine each channel at the first network device according to the parameter value of the preset channel quality parameter item corresponding to each channel at the first network device and the preset weight value corresponding to each channel quality parameter item Corresponding channel quality information.
可选的,所述根据所述第一网络设备处每个信道对应的信道质量信息,以及所述第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息,包括:Optionally, according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device, determining the integrated channel quality information corresponding to each channel ,include:
对所述第一网络设备处每个信道对应的信道质量信息、所述第二网络设备处每个信道对应的信道质量信息、预设的第一网络设备对应的权重值、以及预设的第二网络设备对应的权重值,确定每个信道对应的综合信道质量信息。The channel quality information corresponding to each channel at the first network device, the channel quality information corresponding to each channel at the second network device, the preset weight value corresponding to the first network device, and the preset first network device The weight value corresponding to the second network device determines the comprehensive channel quality information corresponding to each channel.
可选的,所述接收所述第一网络设备建立的无线局域网中的第二网络设备发送的所述第二网络设备处每个信道对应的信道质量信息,包括:Optionally, the receiving the channel quality information corresponding to each channel at the second network device sent by the second network device in the wireless local area network established by the first network device includes:
接收所述第一网络设备建立的无线局域网中的第二网络设备发送的所述第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息;receiving channel quality information corresponding to each channel detected by the second network device at multiple different locations and sent by the second network device in the wireless local area network established by the first network device;
所述根据所述第一网络设备处每个信道对应的信道质量信息,以及所述第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息,包括:The determining the comprehensive channel quality information corresponding to each channel according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device includes:
根据所述第一网络设备处每个信道对应的信道质量信息,以及所述第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息。According to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel detected by the second network device at multiple different positions, determine the integrated channel corresponding to each channel quality information.
本公开实施例中,获取第一网络设备处每个信道对应的信道质量信息,并接收第一网络设备建立的无线局域网中的第二网络设备发送的第二网络设备处每个信道对应的信道质量信息,根据第一网络设备处每个信道对应的信道质量信息,以及第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息,在每个信道对应的综合信道质量信息中,确定最优的综合信道质量信息,将无线局域网的信道设置为最优的综合信道质量信息对应的信道。这样,不会出现最终设置的无线局域网的信道在第一网络设备处最优,在第二网络设备处很差的现象,最终设置的无线局域网的信道是综合最优的,第一网络设备与第二网络设备可以通过综合最优的信道进行通信,从而,可以降低丢包率。In the embodiment of the present disclosure, the channel quality information corresponding to each channel at the first network device is obtained, and the channel corresponding to each channel at the second network device sent by the second network device in the wireless local area network established by the first network device is received For quality information, according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device, determine the comprehensive channel quality information corresponding to each channel, and determine the comprehensive channel quality information corresponding to each channel. In the integrated channel quality information, the optimal integrated channel quality information is determined, and the channel of the wireless local area network is set as the channel corresponding to the optimal integrated channel quality information. In this way, there will be no phenomenon that the channel of the wireless local area network that is finally set is optimal at the first network device and is poor at the second network device. The channel of the wireless local area network that is finally set is comprehensively optimal. The second network device can communicate through the comprehensively optimal channel, thereby reducing the packet loss rate.
本公开再一示例性实施例示出了一种网络设备的结构示意图。该网络设备可以是上述所述的第二网络设备,可以是手机等。Still another exemplary embodiment of the present disclosure shows a schematic structural diagram of a network device. The network device may be the above-mentioned second network device, and may be a mobile phone or the like.
参照图12,网络设备1200可以包括以下一个或多个组件:处理组件1202,存储器1204,电源组件1206,多媒体组件1208,音频组件1210,输入/输出(I/O)的接口1212,传感器组件1214,以及通信组件1216。12, network device 1200 may include one or more of the following components: processing component 1202, memory 1204, power supply component 1206, multimedia component 1208, audio component 1210, input/output (I/O) interface 1212, sensor component 1214 , and the communication component 1216.
处理组件1202通常控制网络设备1200的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件1202可以包括一个或多个处理器1220来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1202可以包括一个或多个模块,便于处理组件1202和其他组件之间的交互。例如,处理部件1202可以包括多媒体模块,以方便多媒体组件1208和处理组件1202之间的交互。The processing component 1202 generally controls the overall operations of the network device 1200, such as those associated with displays, phone calls, data communications, camera operations, and recording operations. The processing element 1202 may include one or more processors 1220 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 1202 may include one or more modules that facilitate interaction between processing component 1202 and other components. For example, processing component 1202 may include a multimedia module to facilitate interaction between multimedia component 1208 and processing component 1202 .
存储器1204被配置为存储各种类型的数据以支持在网络设备1200的操作。这些数据的示例包括用于在网络设备1200上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1204可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1204 is configured to store various types of data to support operations at the network device 1200 . Examples of such data include instructions for any application or method operating on network device 1200, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1204 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电力组件1206为网络设备1200的各种组件提供电力。电力组件1206可以包括电源管理系统,一个或多个电源,及其他与为音频输出设备1200生成、管理和分配电力相关联的组件。Power component 1206 provides power to various components of network device 1200 . Power components 1206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for audio output device 1200 .
多媒体组件1208包括在所述网络设备1200和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1208包括一个前置摄像头和/或后置摄像头。当网络设备1200处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 1208 includes screens that provide an output interface between the network device 1200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 1208 includes a front camera and/or a rear camera. When the network device 1200 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件1210被配置为输出和/或输入音频信号。例如,音频组件1210包括一个麦克风(MIC),当音频输出设备1200处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1204或经由通信组件1216发送。The audio component 1210 is configured to output and/or input audio signals. For example, the audio component 1210 includes a microphone (MIC), which is configured to receive an external audio signal when the audio output device 1200 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. Received audio signals may be further stored in memory 1204 or sent via communication component 1216 .
I/O接口1212为处理组件1202和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1212 provides an interface between the processing component 1202 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件1214包括一个或多个传感器,用于为网络设备1200提供各个方面的状态评估。例如,传感器组件1214可以检测到网络设备1200的打开/关闭状态,组件的相对定位,例如所述组件为网络设备1200的显示器和小键盘,传感器组件1214还可以检测网络设备1200或网络设备1200一个组件的位置改变,用户与网络设备1200接触的存在或不存在,网络设备1200方位或加速/减速和网络设备1200的温度变化。传感器组件1214可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1214还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1214还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor component 1214 includes one or more sensors for providing status assessments of various aspects of network device 1200 . For example, the sensor component 1214 can detect the on/off state of the network device 1200, the relative positioning of components, such as the display and the keypad of the network device 1200, the sensor component 1214 can also detect the network device 1200 or a network device 1200 Changes in position of components, presence or absence of user contact with network device 1200 , network device 1200 orientation or acceleration/deceleration and temperature changes in network device 1200 . Sensor assembly 1214 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 1214 may also include optical sensors, such as CMOS or CCD image sensors, for use in imaging applications. In some embodiments, the sensor component 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件1216被配置为便于网络设备1200和其他设备之间有线或无线方式的通信。网络设备1200可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件1216经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件1216还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 1216 is configured to facilitate wired or wireless communications between network device 1200 and other devices. The network device 1200 can access a wireless network based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1216 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,网络设备1200可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, network device 1200 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1204,上述指令可由网络设备1200的处理器1220执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1204 including instructions, which can be executed by the processor 1220 of the network device 1200 to complete the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由网络设备的处理器执行时,使得网络设备能够执行为无线局域网设置信道的方法,该方法包括:A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of the network device, the network device is enabled to perform a method for setting a channel for a wireless local area network, the method comprising:
获取第二网络设备处每个信道对应的信道质量信息;Obtain channel quality information corresponding to each channel at the second network device;
向第一网络设备发送所述第二网络设备处每个信道对应的信道质量信息,其中,所述第一网络设备是所述第二网络设备所属无线局域网的网关设备。Sending the channel quality information corresponding to each channel at the second network device to the first network device, where the first network device is a gateway device of a wireless local area network to which the second network device belongs.
可选的,所述获取第二网络设备处每个信道对应的信道质量信息,包括:Optionally, the acquiring channel quality information corresponding to each channel at the second network device includes:
获取第二网络设备处每个信道对应的预设的信道质量参数项的参数值;Obtain the parameter value of the preset channel quality parameter item corresponding to each channel at the second network device;
根据所述第二网络设备处每个信道对应的预设的信道质量参数项的参数值,确定所述第二网络设备处每个信道对应的信道质量信息。The channel quality information corresponding to each channel at the second network device is determined according to the parameter value of the preset channel quality parameter item corresponding to each channel at the second network device.
可选的,所述根据所述第二网络设备处每个信道对应的预设的信道质量参数项的参数值,确定所述第二网络设备处每个信道对应的信道质量信息,包括:Optionally, the determining the channel quality information corresponding to each channel at the second network device according to the parameter value of the preset channel quality parameter item corresponding to each channel at the second network device includes:
根据所述第二网络设备处每个信道对应的预设的信道质量参数项的参数值,以及预设的每个信道质量参数项对应的权重值,确定所述第二网络设备处每个信道对应的信道质量信息。Determine each channel at the second network device according to the parameter value of the preset channel quality parameter item corresponding to each channel at the second network device and the preset weight value corresponding to each channel quality parameter item Corresponding channel quality information.
可选的,所述获取第二网络设备处每个信道对应的信道质量信息,包括:Optionally, the acquiring channel quality information corresponding to each channel at the second network device includes:
获取第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息;Acquire channel quality information corresponding to each channel detected by the second network device at multiple different locations;
所述向所述第一网络设备发送所述第二网络设备处每个信道对应的信道质量信息,包括:The sending the channel quality information corresponding to each channel at the second network device to the first network device includes:
向所述第一网络设备发送所述第二网络设备分别在多个不同位置处检测的每个信道对应的信道质量信息。Sending channel quality information corresponding to each channel detected by the second network device at multiple different locations to the first network device.
本公开实施例中,获取第一网络设备处每个信道对应的信道质量信息,并接收第一网络设备建立的无线局域网中的第二网络设备发送的第二网络设备处每个信道对应的信道质量信息,根据第一网络设备处每个信道对应的信道质量信息,以及第二网络设备处每个信道对应的信道质量信息,确定每个信道对应的综合信道质量信息,在每个信道对应的综合信道质量信息中,确定最优的综合信道质量信息,将无线局域网的信道设置为最优的综合信道质量信息对应的信道。这样,不会出现最终设置的无线局域网的信道在第一网络设备处最优,在第二网络设备处很差的现象,最终设置的无线局域网的信道是综合最优的,第一网络设备与第二网络设备可以通过综合最优的信道进行通信,从而,可以降低丢包率。In the embodiment of the present disclosure, the channel quality information corresponding to each channel at the first network device is obtained, and the channel corresponding to each channel at the second network device sent by the second network device in the wireless local area network established by the first network device is received For quality information, according to the channel quality information corresponding to each channel at the first network device and the channel quality information corresponding to each channel at the second network device, determine the comprehensive channel quality information corresponding to each channel, and determine the comprehensive channel quality information corresponding to each channel. In the integrated channel quality information, the optimal integrated channel quality information is determined, and the channel of the wireless local area network is set as the channel corresponding to the optimal integrated channel quality information. In this way, there will be no phenomenon that the channel of the wireless local area network that is finally set is optimal at the first network device and is poor at the second network device. The channel of the wireless local area network that is finally set is comprehensively optimal. The second network device can communicate through the comprehensively optimal channel, thereby reducing the packet loss rate.
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (21)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610067094.3A CN105554791B (en) | 2016-01-29 | 2016-01-29 | A kind of methods, devices and systems that channel is set for WLAN |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610067094.3A CN105554791B (en) | 2016-01-29 | 2016-01-29 | A kind of methods, devices and systems that channel is set for WLAN |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105554791A true CN105554791A (en) | 2016-05-04 |
| CN105554791B CN105554791B (en) | 2019-01-04 |
Family
ID=55833675
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610067094.3A Active CN105554791B (en) | 2016-01-29 | 2016-01-29 | A kind of methods, devices and systems that channel is set for WLAN |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105554791B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109845171A (en) * | 2016-08-12 | 2019-06-04 | 瑞典爱立信有限公司 | For determining the technology of the channel width of the channel used within a wireless communication network |
| CN111432453A (en) * | 2020-02-27 | 2020-07-17 | 深圳市镭神智能系统有限公司 | Communication channel determination method, device and equipment |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20220140203A (en) * | 2021-04-09 | 2022-10-18 | 삼성전자주식회사 | Method of ultra-wideband communication based on sharing of bluetooth communication quality and electronic device therefor |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090092101A1 (en) * | 2001-05-08 | 2009-04-09 | Agere Systems Inc. | Wireless lan with channel swapping between dfs access points |
| CN101730280A (en) * | 2008-10-30 | 2010-06-09 | 国际商业机器公司 | Method for selecting channels in wireless local area network, access point and terminal |
| CN101986746A (en) * | 2010-07-29 | 2011-03-16 | 北京星网锐捷网络技术有限公司 | Method, system and device for testing wireless local area network (WLAN) |
| CN102143590A (en) * | 2011-03-30 | 2011-08-03 | 浙江大学 | 802.11 network resource allocation optimization method |
| CN102378218A (en) * | 2011-11-04 | 2012-03-14 | 中国联合网络通信集团有限公司 | Access point equipment of wireless local area network and channel selection method thereof |
| CN102781115A (en) * | 2012-08-03 | 2012-11-14 | 西安电子科技大学 | Automatic channel selection method based on channel order in dense wireless fidelity (WiFi) |
| CN104219713A (en) * | 2014-01-28 | 2014-12-17 | 化存卿 | Chanel allocation and user correlating method for wireless local area network |
| CN104754678A (en) * | 2015-04-10 | 2015-07-01 | 中国电力科学研究院 | Method for selecting optimal channels for APs (access points) in wireless network |
| CN104968023A (en) * | 2015-06-10 | 2015-10-07 | 小米科技有限责任公司 | Working channel adjusting method, device and equipment |
| CN105263173A (en) * | 2015-09-17 | 2016-01-20 | 小米科技有限责任公司 | Channel switching method and device |
-
2016
- 2016-01-29 CN CN201610067094.3A patent/CN105554791B/en active Active
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090092101A1 (en) * | 2001-05-08 | 2009-04-09 | Agere Systems Inc. | Wireless lan with channel swapping between dfs access points |
| CN101730280A (en) * | 2008-10-30 | 2010-06-09 | 国际商业机器公司 | Method for selecting channels in wireless local area network, access point and terminal |
| CN101986746A (en) * | 2010-07-29 | 2011-03-16 | 北京星网锐捷网络技术有限公司 | Method, system and device for testing wireless local area network (WLAN) |
| CN102143590A (en) * | 2011-03-30 | 2011-08-03 | 浙江大学 | 802.11 network resource allocation optimization method |
| CN102378218A (en) * | 2011-11-04 | 2012-03-14 | 中国联合网络通信集团有限公司 | Access point equipment of wireless local area network and channel selection method thereof |
| CN102781115A (en) * | 2012-08-03 | 2012-11-14 | 西安电子科技大学 | Automatic channel selection method based on channel order in dense wireless fidelity (WiFi) |
| CN104219713A (en) * | 2014-01-28 | 2014-12-17 | 化存卿 | Chanel allocation and user correlating method for wireless local area network |
| CN104754678A (en) * | 2015-04-10 | 2015-07-01 | 中国电力科学研究院 | Method for selecting optimal channels for APs (access points) in wireless network |
| CN104968023A (en) * | 2015-06-10 | 2015-10-07 | 小米科技有限责任公司 | Working channel adjusting method, device and equipment |
| CN105263173A (en) * | 2015-09-17 | 2016-01-20 | 小米科技有限责任公司 | Channel switching method and device |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109845171A (en) * | 2016-08-12 | 2019-06-04 | 瑞典爱立信有限公司 | For determining the technology of the channel width of the channel used within a wireless communication network |
| CN111432453A (en) * | 2020-02-27 | 2020-07-17 | 深圳市镭神智能系统有限公司 | Communication channel determination method, device and equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105554791B (en) | 2019-01-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6427203B2 (en) | Wireless access point access method, apparatus, program and recording medium | |
| EP3136793B1 (en) | Method and apparatus for awakening electronic device | |
| CN109451877B (en) | Unmanned aerial vehicle control method and device, unmanned aerial vehicle and remote control equipment | |
| EP3226432B1 (en) | Method and devices for sharing media data between terminals | |
| CN108337025B (en) | Method and device for transmitting uplink signal | |
| CN106657780A (en) | Image previewing method and device | |
| CN106657585B (en) | Frequency adjustment method and device for walkie-talkie | |
| CN106327607A (en) | Automobile data recorder video acquisition method and device, and automobile data recorder | |
| CN106375479A (en) | Data sharing method and device | |
| CN107071862A (en) | Account binding method and device and smart machine | |
| CN105978984A (en) | Method and device used for synchronizing images | |
| JP2018503150A (en) | Method, apparatus, program and recording medium for processing touch screen point reports | |
| CN105979196A (en) | Method and device for controlling camera shooting device | |
| CN105554791A (en) | Method, apparatus and system for setting channel for wireless local area network | |
| CN107612888A (en) | Enterprise customer space creation method and device | |
| CN106559479A (en) | Multimedia file downloading method, designated equipment and terminal | |
| CN106465160A (en) | Network function switching method and device | |
| CN106572397A (en) | Interaction method and device for live video application | |
| CN111541922B (en) | Method, device and storage medium for displaying interface input information | |
| CN106658668A (en) | Information processing method and device | |
| CN106341872A (en) | Router accessing method and apparatus | |
| CN107105005A (en) | The method and device of synchrodata | |
| CN107371222A (en) | Method and device for disabling virtual card | |
| CN106503215A (en) | Process the method and device of picture | |
| US20220346083A1 (en) | Methods and apparatuses for determining network allocation vector, and storage media |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |