WO2023124835A1 - Channel switching method and apparatus, and device and computer-readable storage medium - Google Patents

Channel switching method and apparatus, and device and computer-readable storage medium Download PDF

Info

Publication number
WO2023124835A1
WO2023124835A1 PCT/CN2022/136991 CN2022136991W WO2023124835A1 WO 2023124835 A1 WO2023124835 A1 WO 2023124835A1 CN 2022136991 W CN2022136991 W CN 2022136991W WO 2023124835 A1 WO2023124835 A1 WO 2023124835A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel
preset
scanned
switching
initial
Prior art date
Application number
PCT/CN2022/136991
Other languages
French (fr)
Chinese (zh)
Inventor
王祥河
Original Assignee
深圳创维数字技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 深圳创维数字技术有限公司 filed Critical 深圳创维数字技术有限公司
Publication of WO2023124835A1 publication Critical patent/WO2023124835A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/02Selection of wireless resources by user or terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/54Allocation or scheduling criteria for wireless resources based on quality criteria
    • H04W72/542Allocation or scheduling criteria for wireless resources based on quality criteria using measured or perceived quality

Definitions

  • the present application relates to the technical field of wireless communication, and in particular to a channel switching method, device, equipment and computer-readable storage medium.
  • Automatic channel selection detects the distribution of wireless channels around when the wireless device is started, and selects the best channel to work. Currently, automatic channel selection needs to be disconnected when performing channel scanning. All client devices connected to the wireless device, resulting in the problem that the client device is often dropped during automatic channel selection.
  • the main purpose of the present application is to provide a channel switching method, device, equipment and computer-readable storage medium, aiming at solving the technical problem that the user terminal equipment is disconnected when automatic channel selection is performed for channel scanning.
  • the present application provides a channel switching method, the channel switching method comprising:
  • the step of switching the initial channel to the target channel in the preset channels to be scanned it includes:
  • one of the other channels to be scanned is selected as the target channel.
  • the step of switching channels according to the channel information includes:
  • the step of switching channels according to the optimal channel includes:
  • the step of performing channel scanning on the preset channel to be scanned within the preset scan time it includes:
  • the product of the time interval and the number of sending times is used as the preset scanning time.
  • step of acquiring a preset channel to be scanned includes:
  • the state of the initial channel is a congestion state, then detecting whether there is channel switching on the initial channel within a preset switching time;
  • the step of: acquiring a preset channel to be scanned is performed.
  • the step of detecting whether the state of the initial channel is a congestion state includes:
  • Detecting whether the state of the initial channel is a congestion state according to the received signal strength indication, packet loss rate, packet retransmission times, and physical interface rate.
  • the present application also provides a channel switching device, which includes:
  • a channel acquisition module configured to acquire the initial channel of the wireless device, and acquire a preset channel to be scanned
  • a channel scanning module configured to switch the initial channel to a target channel in the preset channel to be scanned, and perform channel scanning on the target channel within the preset scan time, to obtain the channel of the preset channel to be scanned channel information;
  • a channel scanning module configured to re-switch the target channel to the initial channel
  • a channel switching module configured to output the channel information based on the initial channel, and perform channel switching according to the channel information.
  • the present application also provides a channel switching device, the channel switching device includes a memory, a processor, and a channel switching program stored in the memory and operable on the processor, the When the above-mentioned channel switching program is executed by the processor, the steps of the above-mentioned channel switching method are realized.
  • the present application also provides a computer-readable storage medium, on which a channel switching program is stored, and when the channel switching program is executed by a processor, the above-mentioned channel switching method is implemented. A step of.
  • the present application provides a channel switching method, device, device, and computer-readable storage medium.
  • the initial channel is switched to the target channel in the preset channel to be scanned.
  • scan the target channel within the preset scan time to obtain the channel information of the preset channel to be scanned, switch the target channel back to the original channel, output the channel information based on the initial channel, and perform channel switching according to the channel information.
  • Perform channel scanning on the preset channel to be scanned within a set time obtain the channel information of the preset channel to be scanned, switch back to the initial channel, output reply channel information based on the initial channel, and perform channel switching according to the channel information.
  • the channel scanning time of the scanning channel switch back to the initial channel after the scanning is completed, and reply the channel information through the initial channel, avoiding that due to the long channel scanning time, the user end device cannot receive the response signal for a long time, causing the user end device to actively shut down In this way, the technical effect that the client equipment will not be dropped during the channel scanning process is realized.
  • Fig. 1 is a schematic structural diagram of a device in a hardware operating environment involved in an embodiment of the present application
  • FIG. 2 is a schematic flow chart of the first embodiment of the channel switching method of the present application.
  • FIG. 3 is a schematic diagram of a channel switching process involved in the solution of the embodiment of the present application.
  • FIG. 4 is a schematic diagram of the device structure of the channel switching device of the present application.
  • FIG. 1 is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the present application.
  • the device in this embodiment of the present application may be a terminal device such as a PC (personal computer, personal computer), a portable computer, or a server.
  • a terminal device such as a PC (personal computer, personal computer), a portable computer, or a server.
  • the channel switching device may include: a processor 1001, such as a CPU (Central Processing Unit, central processing unit), communication bus 1002, user interface 1003, network interface 1004, memory 1005.
  • a processor 1001 such as a CPU (Central Processing Unit, central processing unit)
  • communication bus 1002 is used to realize connection and communication between these components.
  • the user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may include a standard wired interface and a wireless interface (such as Wireless-Fidelity (Wireless-Fidelity, WI-FI).
  • the memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or It may be a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory.
  • RAM Random Access Memory
  • NVM Non-Volatile Memory
  • the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .
  • the screen projection control device may also include an RF (Radio Frequency, radio frequency) circuit, a sensor, an audio circuit, a WiFi module; an input unit, such as a display screen, a touch screen; an optional network interface except WiFi in the wireless interface , bluetooth, probes, etc.
  • RF Radio Frequency, radio frequency
  • FIG. 1 does not constitute a limitation on the device, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
  • the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a channel switching program.
  • the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server;
  • the user interface 1003 is mainly used to connect to the client (client) and perform data communication with the client;
  • the processor 1001 can be used to call the screen projection control program stored in memory 1005, and perform the following operations:
  • FIG. 2 is a schematic flowchart of a first embodiment of the channel switching method of the present application.
  • the channel switching method includes:
  • Step S10 obtaining the initial channel of the wireless device, and obtaining a preset channel to be scanned;
  • automatic channel selection mostly only works during the startup phase of wireless devices. It takes a long time to scan channels during the startup process of wireless devices, which affects the startup time and user experience of wireless devices. Therefore, in this embodiment, channel scanning is performed after the wireless device is turned on, which can reduce the time for starting the wireless device and improve customer experience.
  • a channel is also referred to as a channel or a frequency band, and is a data signal transmission channel using a wireless signal as a transmission carrier.
  • Obtain the initial channel of the wireless device and obtain the preset channel to be scanned.
  • the initial channel can be the current working channel after the wireless device is turned on, or it can be the optimal channel switched after the wireless device is turned on.
  • the preset channel to be scanned is the preset Channels to be scanned, for example, the 2.4G frequency band is divided into 13 channels, and China adopts European/ETSI (European Telecommunications Standards Institute, European Telecommunications Standards Institute) standard uses 1-13 channels.
  • European/ETSI European Telecommunications Standards Institute, European Telecommunications Standards Institute
  • a preset channel scan list can be obtained.
  • the preset channel scan list includes multiple channels, such as channels 1-13, and preset channels to be scanned It is other channels in the preset channel scan list except the initial channel.
  • the wireless devices in this embodiment include but are not limited to wireless devices such as 5G, 2.4G or WiFi devices, as long as there are optional frequency ranges, the devices need to perform frequency switching.
  • Step S20 switching the initial channel to a target channel in the preset channels to be scanned, and performing channel scanning on the target channel within a preset scan time to obtain channel information of the preset channel to be scanned;
  • Step S30 re-switching the target channel to the initial channel
  • Step S40 outputting the channel information based on the initial channel, and performing channel switching according to the channel information.
  • channel scanning is performed on the preset channel to be scanned to reselect an optimal channel, specifically: switching the initial channel to the preset channel to be scanned The target channel, and scan the target channel within the preset scan time to obtain the channel information of the target channel, end the channel scan within the preset scan time, and switch the target channel to the initial channel again, and then based on the initial channel
  • the channel information that is, reply a probe response frame based on the initial channel to the user equipment connected to the current wireless device
  • the preset scanning channel can be one or more, and when the preset scanning channel is one, the preset Assuming that the scan channel is used as the target channel, the probe response frame in this embodiment can be a Probe Response message to respond to the probe message of the user equipment end, so as to avoid the situation that the user equipment end actively goes offline due to not receiving a response for a long time.
  • a timer can be set to start counting when switching to the target channel, and to count the channel information of the target channel. When the preset scan time is reached, switch the target channel to the initial channel again, and reply the channel based on the initial channel information.
  • this embodiment by limiting the channel scanning time of the target channel, switch again after the scan is completed To the initial channel, and reply the channel information through the initial channel, avoiding the phenomenon that the user end device cannot receive the response signal for a long time due to the long channel scanning time, which causes the user end device to actively disconnect, thus realizing the process of channel scanning Among them, the technical effect that the user terminal device will not be disconnected, compared with the prior art that performs channel scanning during the startup process of the wireless device and affects the startup time, this embodiment performs channel scanning after the wireless device is turned on, which can reduce the startup time of the wireless device. Time to improve customer experience.
  • step S20 before the step of switching the initial channel to the target channel in the preset channels to be scanned, further includes:
  • Step A if there are multiple preset channels to be scanned, then determine other channels to be scanned that have not undergone switching operations among all the preset channels to be scanned;
  • Step B if there are multiple other channels to be scanned, selecting one of the other channels to be scanned as the target channel.
  • the switching operation is to switch the initial channel to the channel to be scanned for channel scanning. After switching the preset channel to be scanned each time to perform channel scanning, continue to perform the switching operation on the preset channels to be scanned. Scanning channels are switched operations for channel scanning. As another implementation, the preset channel scan list can be obtained.
  • the order of each preset channel to be scanned can be determined, such as determining the first preset to be scanned.
  • the channel is the target scanning channel, and each preset channel to be scanned is used as the target scanning channel in sequence according to the order, and the steps are followed in turn: switch the initial channel to the target channel, and perform channel scanning on the target channel within the preset scanning time to obtain the target channel channel information, and re-switch the target channel to the initial channel, that is, to scan each preset channel to be scanned in turn, and switch to the initial channel after the scanning of each preset channel to be scanned is completed, and pass through the initial channel in turn
  • Reply the channel information of each preset channel to be scanned that is, perform a complete channel scanning step for each preset channel to be scanned, "switch from the initial channel to the preset channel to be scanned, and then switch to the initial channel after scanning", for example , the preset channels to be scanned include channel 1, channel 2, channel 3,
  • the initial channel is determined to be channel 1
  • the target scanning channel in the channels to be scanned is determined to be 2
  • the initial channel 1 is switched to the target channel 2.
  • switch the target channel 2 to the initial channel 1 and then determine the target channel as channel 3, switch the initial channel 1 to channel 3, perform channel scanning on channel 3 within the preset scanning time, and obtain the channel 3 channel information.
  • switch channel 3 to the initial channel 1 after the scan is completed, and so on to perform channel scan on channel 4.
  • the determination of the target scanning channel may be determined sequentially, may also be determined randomly, or may be in other ways, and its function is to perform channel scanning on all preset channels to be scanned. In this embodiment, it is also possible to detect whether all preset channels to be scanned have been scanned, and if the scan is not completed, switch to the next channel to be scanned, and repeat the channel scanning operation.
  • the wireless device after the wireless device is powered on, Scan the preset channels to be scanned in sequence, switch to the initial channel after scanning each preset channel to be scanned, and respond to the user terminal device through the initial channel, without disconnecting the client device, and further control the Preset the scanning time of the channel to be scanned, which avoids the problem of active disconnection of the user equipment, and provides a channel scanning mechanism that does not disconnect the user equipment.
  • This mechanism greatly expands the application scenarios of automatic channels and improves product reliability. user experience.
  • the step of performing channel switching according to the channel information includes:
  • Step D counting the channel information of each of the preset channels to be scanned, and obtaining the number of service set identifiers in the channel information of each of the preset to-be-scanned channels and the signal strength corresponding to the service set identifiers;
  • Step E determining an optimal channel among the preset channels to be scanned according to the number and the signal strength, and performing channel switching according to the optimal channel.
  • the channel information corresponding to each preset channel to be scanned is returned from the initial channel, and the channel information of each preset channel to be scanned is counted, and each Preset the number of service set identifiers (SSID information) in the channel information of the channel to be scanned, and obtain the signal strength (RSSI) corresponding to each service set identifier.
  • a wireless device corresponds to a unique service set identifier, that is, statistics Preset the number of wireless devices in each channel to be scanned and the corresponding signal strength of each wireless device, and obtain the preset to be scanned according to the number of wireless devices in each preset channel to be scanned and the corresponding signal strength of each wireless device The best channel in the channel, and switch the channel according to the best channel.
  • the number of service set identifiers of each preset channel to be scanned can be added to the signal strength corresponding to the service set identifier to obtain a signal interference value.
  • the larger the signal interference value the greater the corresponding preset channel to be scanned.
  • the greater the degree of congestion the smaller the corresponding signal interference value is, indicating that the congestion degree of the preset channel to be scanned is smaller.
  • the optimal channel among the preset channels to be scanned can be obtained, and the optimal channel is the signal
  • the channel with the smallest interference value is then switched according to the optimal channel.
  • the optimal channel with the best quality can be quickly and accurately calculated through the above method.
  • the step of switching channels according to the optimal channel includes:
  • Step e1 feeding back the optimal channel to all UEs, and switching the initial channel to the optimal channel.
  • all the client devices mentioned above are all the client devices connected to the wireless device. After obtaining the optimal channel among the preset channels to be scanned, the optimal channel is fed back to the current All client devices of the wireless device, that is, notify all client devices connected to the wireless device that the current initial channel is about to be switched to the optimal channel, and the client receives and records the optimal channel, and then switches the initial channel to the optimal channel , so that all client devices use the optimal channel to communicate with AP (Access Point, wireless access point) devices.
  • AP Access Point, wireless access point
  • the step of performing channel scanning on the target channel within the preset scanning time includes:
  • Step F obtaining the time interval and the number of sending times of the detection message sent by the client device
  • Step G taking the product of the time interval and the sending times as the preset scanning time.
  • the protocol of the client device stipulates that if the client device does not receive a response within the preset time or the preset number of times, the client device will actively disconnect. Therefore, in this embodiment, Obtain the time interval and the number of sending times of the detection message sent by the user terminal equipment, and use the product of the time interval and the number of sending times as the preset scan time, and perform channel scanning on the target channel within the preset scan time.
  • the preset scan time is The scanning time is set as the time when the client device is offline, so it is necessary to complete the channel scanning operation on the target channel before the client device is offline. The scanning steps are the same as scanning the target channel within the preset scanning time.
  • the current channel is detected.
  • the current channel is the initial channel, and it is judged whether the current channel is congested. If the current channel is relatively congested, it is further judged whether the current channel has just been switched (within the preset switching time). If The current channel has not been switched just now, indicating that the channel switching operation can be performed, then obtain the channel scan list, switch to the corresponding channel in the channel scan list for scanning, and end the scan before the client is disconnected. The end of the scan means the end of the scan within the preset scan time, and then switch to the working channel (initial channel) to reply to the client detection message, and then check whether all channels are scanned.
  • the congestion of each channel is calculated by algorithm According to the congestion situation of each channel, the channel with the best quality is selected, that is, the optimal channel is selected, and the client is notified of the channel to be switched, so that the client uses the new optimal channel to communicate with the AP. After the channel with the best quality is selected, there is no need to switch channels within the preset time, so the wireless device enters the sleep time, and also enters the preset sleep time when the current channel is not congested, avoiding frequent switching.
  • a limited scan time is calculated through the time interval and the number of sending probe messages sent by the user terminal equipment to control the scan time for channel scanning of the preset channel to be scanned, and switch to the initial channel immediately after the scan is completed.
  • Channel through the initial channel to respond to the detection message of the user equipment, to achieve the effect of not dropping the line during the scanning process.
  • the second embodiment of the channel switching method of the present application is proposed.
  • step S10 before the step of obtaining the preset channel to be scanned, it also includes:
  • Step H detecting whether the state of the initial channel is a congestion state
  • Step I if the state of the initial channel is congested, then detecting whether there is channel switching on the initial channel within the preset switching time.
  • Step J if there is no channel switching on the initial channel within the preset switching time, then perform the step of acquiring a preset channel to be scanned.
  • the step of obtaining the preset channel to be scanned it is detected whether the state of the initial channel is a congested state. If the state of the initial channel is a congested state, it means that the current initial channel is relatively congested, and channel scanning is required to Re-scan the optimal channel for channel switching, and detect whether there is channel switching in the initial channel within the preset switching time, wherein the preset switching time is the switching frequency of the channel, if there is no channel switching in the initial channel within the preset switching time, then It means that the initial channel has not been switched for a period of time, and then the subsequent steps of obtaining the preset channel to be scanned are performed.
  • the switching frequency of the initial channel is further detected, and when the initial channel has been switched within the preset switching time, channel switching is not performed, thereby avoiding frequent Channel switching.
  • the wireless device After obtaining the initial channel of the wireless device, it detects whether the state of the initial channel is a congested state. If the state of the initial channel is not congested, the wireless device sleeps. After the wireless device sleeps for a preset sleep time, it detects the current state. In the actual environment, the surrounding wireless environment may change during the working process of the router, causing strong wireless interference. At this time, it is necessary to re-switch the channel, so the preset cycle time can be set for the current The initial channel is detected. In this embodiment, before acquiring the preset channel to be scanned, the congestion state of the initial channel is detected, and if the initial channel is not congested, channel switching is not performed, thereby avoiding frequent channel switching.
  • step H if the step of detecting whether the state of the initial channel is a congestion state includes:
  • Step h1 obtaining the received signal strength, packet loss rate, packet retransmission times and physical interface rate of the initial channel
  • Step h2 according to the received signal strength indication, packet loss rate, packet retransmission times and physical interface rate, detect whether the state of the initial channel is a congestion state.
  • a timer can be set to regularly detect the state of the initial channel, obtain the received signal strength (Received Signal Strength Indication, RSSI), packet loss rate, packet retransmission times, and physical interface rate of the initial channel, according to the received Signal strength indicator, packet loss rate, packet retransmission times and physical interface rate to detect whether the initial channel state is congested state, where the packet loss rate (Loss Tolerance or Packet Loss Rate) refers to the number of lost data packets in the test accounted for The ratio of sending data groups.
  • received signal strength (RSSI), packet loss rate, packet retransmission times, and physical interface rate can reflect the initial channel congestion. The greater the packet loss rate, the greater the packet retransmission rate. If the number of times increases and the negotiation rate is unstable, it means that the state of the initial channel is congested, and channel scanning is started, and other parameters in the initial channel that can reflect the congestion of the initial channel can also be detected.
  • the user terminal device can be kept offline, but within a very short preset scanning time, the communication strength between the user terminal and the router is weak, which may affect the user's online experience, so If the initial channel has already been switched within the preset switching time, channel switching is not performed, which avoids frequent channel switching, further improves customer experience, greatly improves the application range of automatic channel selection, and enables the product to have Better user experience, maximize product performance.
  • the present application also provides a channel switching device, as shown in Figure 4, the channel switching device includes: a channel acquisition module A10, used to obtain the initial channel of the wireless device, and obtain a preset channel to be scanned; a channel scanning module A20, used to The initial channel is switched to the target channel in the preset channel to be scanned, and channel scanning is performed on the target channel within the preset scan time to obtain channel information of the preset channel to be scanned; channel scanning module A20 , further configured to re-switch the target channel to the initial channel; a channel switching module A30, configured to output the channel information based on the initial channel, and perform channel switching according to the channel information.
  • the specific embodiments of the channel switching device of the present application are basically the same as the above embodiments of the channel switching method, and will not be repeated here.
  • the present application also provides a channel switching device, wherein the channel switching device includes a memory, a processor, and a channel switching program stored in the memory and operable on the processor, and the channel switching program is executed by The processor implements the steps of the channel switching method described in any one of the above embodiments when executed.
  • the specific embodiments of the channel switching device of the present application are basically the same as the above embodiments of the channel switching method, and will not be repeated here.
  • the present application also provides a computer-readable storage medium, where a channel switching program is stored on the computer-readable storage medium, and when the channel switching program is executed by a processor, the channel switching method as described in any one of the above embodiments is implemented A step of.
  • the specific embodiments of the computer-readable storage medium of the present application are basically the same as the above embodiments of the channel switching method, and will not be repeated here.
  • the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM) as described above. , magnetic disk, optical disk), including several instructions to make a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the methods described in various embodiments of the present application.

Abstract

The present application belongs to the technical field of wireless communications. Disclosed are a channel switching method and apparatus, and a device and a computer-readable storage medium. The channel switching method comprises: acquiring an initial channel of a wireless device, and acquiring preset channels to be scanned; switching the initial channel to a target channel in said preset channels, and performing channel scanning on the target channel within a preset scanning time, so as to obtain channel information of said preset channel; and re-switching the target channel to the initial channel.

Description

信道切换方法、装置、设备及计算机可读存储介质Channel switching method, device, equipment and computer-readable storage medium
本申请要求于2021年12月28日申请的、申请号为202111638850.0的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application with application number 202111638850.0 filed on December 28, 2021, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请涉及无线通讯技术领域,尤其涉及一种信道切换方法、装置、设备及计算机可读存储介质。The present application relates to the technical field of wireless communication, and in particular to a channel switching method, device, equipment and computer-readable storage medium.
背景技术Background technique
随着无线设备应用的迅速普及,5G和2.4G等工作信道的干扰无处不在,相近的无线路由器采用相同或重叠信道会形成信道拥堵的情况,相互影响无线链路质量,为了避免信道重叠造成的相互干扰,自动信道选择是减少信道拥堵情况的一个重要措施,自动信道选择在无线设备启动时检测周围无线信道分布情况,选择最佳信道工作,目前自动信道选择在进行信道扫描时需要断开与无线设备连接的所有的用户端设备,导致在自动信道选择时用户端设备经常掉线的问题。With the rapid popularization of wireless device applications, the interference of working channels such as 5G and 2.4G is ubiquitous. Similar wireless routers using the same or overlapping channels will cause channel congestion and affect the quality of wireless links. In order to avoid channel overlap Automatic channel selection is an important measure to reduce channel congestion. Automatic channel selection detects the distribution of wireless channels around when the wireless device is started, and selects the best channel to work. Currently, automatic channel selection needs to be disconnected when performing channel scanning. All client devices connected to the wireless device, resulting in the problem that the client device is often dropped during automatic channel selection.
技术问题technical problem
本申请的主要目的在于提供一种信道切换方法、装置、设备及计算机可读存储介质,旨在解决自动信道选择进行信道扫描时用户端设备掉线的技术问题。The main purpose of the present application is to provide a channel switching method, device, equipment and computer-readable storage medium, aiming at solving the technical problem that the user terminal equipment is disconnected when automatic channel selection is performed for channel scanning.
技术解决方案technical solution
为实现上述目的,本申请提供一种信道切换方法,所述信道切换方法包括:In order to achieve the above purpose, the present application provides a channel switching method, the channel switching method comprising:
获取无线设备的初始信道,并获取预设待扫描信道;Obtain the initial channel of the wireless device, and obtain the preset channel to be scanned;
将所述初始信道切换至所述预设待扫描信道中的目标信道,并在预设扫描时间内对所述目标信道进行信道扫描,得到所述预设待扫描信道的信道信息;Switching the initial channel to a target channel in the preset channel to be scanned, and performing channel scanning on the target channel within a preset scan time, to obtain channel information of the preset channel to be scanned;
将所述目标信道重新切换为所述初始信道;re-switching the target channel to the initial channel;
基于所述初始信道输出所述信道信息,并根据所述信道信息进行信道切换。outputting the channel information based on the initial channel, and performing channel switching according to the channel information.
在一实施例中,所述将所述初始信道切换至所述预设待扫描信道中的目标信道的步骤之前,包括:In one embodiment, before the step of switching the initial channel to the target channel in the preset channels to be scanned, it includes:
若存在多个预设待扫描信道,则确定所有所述预设待扫描信道中未进行切换操作的其他待扫描信道;If there are multiple preset channels to be scanned, then determine other channels to be scanned that have not been switched in all the preset channels to be scanned;
若存在多个其他待扫描信道,则在各所述其他待扫描信道中选择一个其他待扫描信道作为目标信道。If there are multiple other channels to be scanned, one of the other channels to be scanned is selected as the target channel.
在一实施例中,所述根据所述信道信息进行信道切换的步骤包括:In an embodiment, the step of switching channels according to the channel information includes:
统计各所述待扫描信道的信道信息,并获取各所述待扫描信道的信道信息中服务集标识的数量和所述服务集标识对应的信号强度;Counting the channel information of each channel to be scanned, and obtaining the number of service set identifiers in the channel information of each channel to be scanned and the signal strength corresponding to the service set identifier;
根据所述数量和所述信号强度确定所述待扫描信道中的最优信道,并根据所述最优信道进行信道切换。Determine an optimal channel among the channels to be scanned according to the number and the signal strength, and perform channel switching according to the optimal channel.
在一实施例中,所述根据所述最优信道进行信道切换的步骤包括:In an embodiment, the step of switching channels according to the optimal channel includes:
将所述最优信道反馈至所有用户端设备,并将所述初始信道切换为所述最优信道。Feedback the optimal channel to all UEs, and switch the initial channel to the optimal channel.
在一实施例中,所述在预设扫描时间内对所述预设待扫描信道进行信道扫描的步骤之前,包括:In one embodiment, before the step of performing channel scanning on the preset channel to be scanned within the preset scan time, it includes:
获取用户端设备发送探测报文的时间间隔和发送次数;Obtain the time interval and number of sending probe packets sent by the client device;
将所述时间间隔和所述发送次数的乘积作为所述预设扫描时间。The product of the time interval and the number of sending times is used as the preset scanning time.
在一实施例中,所述获取预设待扫描信道的步骤之前包括:In one embodiment, before the step of acquiring a preset channel to be scanned includes:
检测所述初始信道的状态是否为拥堵状态;Detecting whether the state of the initial channel is a congestion state;
若所述初始信道的状态为拥堵状态,则检测所述初始信道在预设切换时间内是否存在信道切换;If the state of the initial channel is a congestion state, then detecting whether there is channel switching on the initial channel within a preset switching time;
若所述初始信道在预设切换时间内不存在信道切换,则执行步骤:获取预设待扫描信道。If there is no channel switching on the initial channel within the preset switching time, the step of: acquiring a preset channel to be scanned is performed.
在一实施例中,所述检测所述初始信道的状态是否为拥堵状态的步骤包括:In one embodiment, the step of detecting whether the state of the initial channel is a congestion state includes:
获取所述初始信道的接收信号强度、丢包率、报文重传次数和物理接口速率;Acquiring the received signal strength, packet loss rate, packet retransmission times and physical interface rate of the initial channel;
根据所述接收信号强度指示、丢包率、报文重传次数和物理接口速率,检测所述初始信道的状态是否为拥堵状态。Detecting whether the state of the initial channel is a congestion state according to the received signal strength indication, packet loss rate, packet retransmission times, and physical interface rate.
此外,为实现上述目的,本申请还提供一种信道切换装置,所述信道切换装置包括:In addition, in order to achieve the above purpose, the present application also provides a channel switching device, which includes:
信道获取模块,用于获取无线设备的初始信道,并获取预设待扫描信道;A channel acquisition module, configured to acquire the initial channel of the wireless device, and acquire a preset channel to be scanned;
信道扫描模块,用于将所述初始信道切换至所述预设待扫描信道中的目标信道,并在预设扫描时间内对所述目标信道进行信道扫描,得到所述预设待扫描信道的信道信息;A channel scanning module, configured to switch the initial channel to a target channel in the preset channel to be scanned, and perform channel scanning on the target channel within the preset scan time, to obtain the channel of the preset channel to be scanned channel information;
信道扫描模块,用于将所述目标信道重新切换为所述初始信道;a channel scanning module, configured to re-switch the target channel to the initial channel;
信道切换模块,用于基于所述初始信道输出所述信道信息,并根据所述信道信息进行信道切换。A channel switching module, configured to output the channel information based on the initial channel, and perform channel switching according to the channel information.
此外,为实现上述目的,本申请还提供一种信道切换设备,所述信道切换设备包括存储器、处理器、以及存储在所述存储器上并可在所述处理器上运行的信道切换程序,所述信道切换程序被处理器执行时实现如上述的信道切换方法的步骤。In addition, in order to achieve the above object, the present application also provides a channel switching device, the channel switching device includes a memory, a processor, and a channel switching program stored in the memory and operable on the processor, the When the above-mentioned channel switching program is executed by the processor, the steps of the above-mentioned channel switching method are realized.
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有信道切换程序,所述信道切换程序被处理器执行时实现如上述的信道切换方法的步骤。In addition, in order to achieve the above object, the present application also provides a computer-readable storage medium, on which a channel switching program is stored, and when the channel switching program is executed by a processor, the above-mentioned channel switching method is implemented. A step of.
有益效果Beneficial effect
本申请提供一种信道切换方法、装置、设备及计算机可读存储介质,通过获取无线设备的初始信道,并获取预设待扫描信道,将初始信道切换至预设待扫描信道中的目标信道,并在预设扫描时间内对目标信道进行信道扫描,得到预设待扫描信道的信道信息,将目标信道重新切换回初始信道,基于初始信道输出信道信息,并根据信道信息进行信道切换,在预设时间内对预设待扫描信道进行信道扫描,得到预设待扫描信道的信道信息,并切换回初始信道,基于初始信道输出回复信道信息,并根据信道信息进行信道切换,本申请通过限制对待扫描信道的信道扫描时间,在扫描完成后切换回初始信道,并通过初始信道回复信道信息,避免了由于信道扫描时间过长,用户端设备长时间接收不到回应信号,导致用户端设备主动掉线的现象,从而实现了在信道扫描的过程中,用户端设备不会掉线的技术效果。The present application provides a channel switching method, device, device, and computer-readable storage medium. By obtaining the initial channel of the wireless device and obtaining the preset channel to be scanned, the initial channel is switched to the target channel in the preset channel to be scanned. And scan the target channel within the preset scan time to obtain the channel information of the preset channel to be scanned, switch the target channel back to the original channel, output the channel information based on the initial channel, and perform channel switching according to the channel information. Perform channel scanning on the preset channel to be scanned within a set time, obtain the channel information of the preset channel to be scanned, switch back to the initial channel, output reply channel information based on the initial channel, and perform channel switching according to the channel information. The channel scanning time of the scanning channel, switch back to the initial channel after the scanning is completed, and reply the channel information through the initial channel, avoiding that due to the long channel scanning time, the user end device cannot receive the response signal for a long time, causing the user end device to actively shut down In this way, the technical effect that the client equipment will not be dropped during the channel scanning process is realized.
附图说明Description of drawings
图1是本申请实施例方案涉及的硬件运行环境的设备的结构示意图;Fig. 1 is a schematic structural diagram of a device in a hardware operating environment involved in an embodiment of the present application;
图2为本申请信道切换方法第一实施例的流程示意图;FIG. 2 is a schematic flow chart of the first embodiment of the channel switching method of the present application;
图3为本申请实施例方案涉及的信道切换流程示意图;FIG. 3 is a schematic diagram of a channel switching process involved in the solution of the embodiment of the present application;
图4为本申请信道切换装置的装置结构示意图。FIG. 4 is a schematic diagram of the device structure of the channel switching device of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
本发明的实施方式Embodiments of the present invention
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
参照图1,图1为本申请实施例方案涉及的硬件运行环境的设备结构示意图。Referring to FIG. 1 , FIG. 1 is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the present application.
本申请实施例设备可以为PC(personal computer,个人计算机)、便携计算机、服务器等终端设备。The device in this embodiment of the present application may be a terminal device such as a PC (personal computer, personal computer), a portable computer, or a server.
如图1所示,该信道切换设备可以包括:处理器1001,例如CPU(Central Processing Unit,中央处理器),通信总线1002,用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选的用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如无线保真(Wireless-Fidelity,WI-FI)。存储器1005可以是高速的随机存取存储器(Random Access Memory,RAM)存储器,也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in Figure 1, the channel switching device may include: a processor 1001, such as a CPU (Central Processing Unit, central processing unit), communication bus 1002, user interface 1003, network interface 1004, memory 1005. Wherein, the communication bus 1002 is used to realize connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (such as Wireless-Fidelity (Wireless-Fidelity, WI-FI). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or It may be a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .
在一实施例中,投屏控制装置还可以包括RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块;输入单元,比如显示屏,触摸屏;网络接口可选除无线接口中除WiFi外,蓝牙、探针等等。In one embodiment, the screen projection control device may also include an RF (Radio Frequency, radio frequency) circuit, a sensor, an audio circuit, a WiFi module; an input unit, such as a display screen, a touch screen; an optional network interface except WiFi in the wireless interface , bluetooth, probes, etc.
本领域技术人员可以理解,图1中示出的结构并不构成对设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 1 does not constitute a limitation on the device, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及信道切换程序。As shown in FIG. 1 , the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a channel switching program.
在图1所示的设备中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的投屏控制程序,并执行以下操作:In the device shown in Figure 1, the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect to the client (client) and perform data communication with the client; and the processor 1001 can be used to call the screen projection control program stored in memory 1005, and perform the following operations:
获取无线设备的初始信道,并获取预设待扫描信道;Obtain the initial channel of the wireless device, and obtain the preset channel to be scanned;
将所述初始信道切换至所述预设待扫描信道中的目标信道,并在预设扫描时间内对所述目标信道进行信道扫描,得到所述预设待扫描信道的信道信息;Switching the initial channel to a target channel in the preset channel to be scanned, and performing channel scanning on the target channel within a preset scan time, to obtain channel information of the preset channel to be scanned;
将所述目标信道重新切换为所述初始信道;re-switching the target channel to the initial channel;
基于所述初始信道输出所述信道信息,并根据所述信道信息进行信道切换。outputting the channel information based on the initial channel, and performing channel switching according to the channel information.
基于上述硬件结构,提出本申请信道切换方法各个实施例。Based on the above hardware structure, various embodiments of the channel switching method of the present application are proposed.
本申请实施例提供了一种信道切换方法,参照图2,图2为本申请信道切换方法第一实施例的流程示意图。An embodiment of the present application provides a channel switching method. Referring to FIG. 2 , FIG. 2 is a schematic flowchart of a first embodiment of the channel switching method of the present application.
在本实施例中,所述信道切换方法包括:In this embodiment, the channel switching method includes:
步骤S10,获取无线设备的初始信道,并获取预设待扫描信道;Step S10, obtaining the initial channel of the wireless device, and obtaining a preset channel to be scanned;
目前自动信道选择有很多限定条件,例如自动信道选择大多只工作在无线设备的开机启动阶段,在无线设备开机过程中进行信道扫描需要花费很长时间,从而影响无线设备的开机时间和用户体验,因此在本实施例中,在无线设备开机后进行信道扫描,可缩减无线设备的开机时间,提升客户体验。At present, there are many restrictions on automatic channel selection. For example, automatic channel selection mostly only works during the startup phase of wireless devices. It takes a long time to scan channels during the startup process of wireless devices, which affects the startup time and user experience of wireless devices. Therefore, in this embodiment, channel scanning is performed after the wireless device is turned on, which can reduce the time for starting the wireless device and improve customer experience.
在本实施例中,信道也称作通道或频段,是以无线信号作为传输载体的数据信号传送通道。获取无线设备的初始信道,并获取预设待扫描信道,初始信道可以为无线设备开机后的当前工作信道,也可以是无线设备开机后切换的最优信道,预设待扫描信道为预设的待扫描的信道,例如2.4G频段划分为13个信道,中国采用欧洲/ETSI(European Telecommunications Standards Institute,欧洲电信标准化协会)标准使用1-13信道,本实施例中可获取预设信道扫描列表,预设信道扫描列表中包括多个信道,如信道1-13,预设待扫描信道则为预设信道扫描列表中除初始信道之外的其他信道。本实施例中无线设备包括但不限于5G、2.4G或WiFi设备等无线设备,只要是存在有可选频率范围,需要进行频率切换的设备。In this embodiment, a channel is also referred to as a channel or a frequency band, and is a data signal transmission channel using a wireless signal as a transmission carrier. Obtain the initial channel of the wireless device, and obtain the preset channel to be scanned. The initial channel can be the current working channel after the wireless device is turned on, or it can be the optimal channel switched after the wireless device is turned on. The preset channel to be scanned is the preset Channels to be scanned, for example, the 2.4G frequency band is divided into 13 channels, and China adopts European/ETSI (European Telecommunications Standards Institute, European Telecommunications Standards Institute) standard uses 1-13 channels. In this embodiment, a preset channel scan list can be obtained. The preset channel scan list includes multiple channels, such as channels 1-13, and preset channels to be scanned It is other channels in the preset channel scan list except the initial channel. The wireless devices in this embodiment include but are not limited to wireless devices such as 5G, 2.4G or WiFi devices, as long as there are optional frequency ranges, the devices need to perform frequency switching.
步骤S20,将所述初始信道切换至所述预设待扫描信道中的目标信道,并在预设扫描时间内对所述目标信道进行信道扫描,得到所述预设待扫描信道的信道信息;Step S20, switching the initial channel to a target channel in the preset channels to be scanned, and performing channel scanning on the target channel within a preset scan time to obtain channel information of the preset channel to be scanned;
步骤S30,将所述目标信道重新切换为所述初始信道;Step S30, re-switching the target channel to the initial channel;
步骤S40,基于所述初始信道输出所述信道信息,并根据所述信道信息进行信道切换。Step S40, outputting the channel information based on the initial channel, and performing channel switching according to the channel information.
在本实施例中,在初始信道的状态为拥堵状态的情况下,对预设待扫描信道进行信道扫描以重新选择出一个最优信道,具体为:将初始信道切换至预设待扫描信道中的目标信道,并在预设扫描时间内对该目标信道进行信道扫描,得到目标信道的信道信息,在预设扫描时间内结束信道扫描,并将目标信道重新切换到初始信道,进而基于初始信道输出所述信道信息,即基于初始信道回复探测响应帧至连接到当前无线设备的用户设备端,其中预设扫描信道可以为一个或多个,在预设扫描信道为一个时,将所述预设扫描信道作为目标信道,本实施例中的探测响应帧可以为Probe Response报文,以向用户设备端探测报文作出响应,避免用户设备端由于长时间未接收响应而主动下线的情况。In this embodiment, when the state of the initial channel is a congested state, channel scanning is performed on the preset channel to be scanned to reselect an optimal channel, specifically: switching the initial channel to the preset channel to be scanned The target channel, and scan the target channel within the preset scan time to obtain the channel information of the target channel, end the channel scan within the preset scan time, and switch the target channel to the initial channel again, and then based on the initial channel Output the channel information, that is, reply a probe response frame based on the initial channel to the user equipment connected to the current wireless device, wherein the preset scanning channel can be one or more, and when the preset scanning channel is one, the preset Assuming that the scan channel is used as the target channel, the probe response frame in this embodiment can be a Probe Response message to respond to the probe message of the user equipment end, so as to avoid the situation that the user equipment end actively goes offline due to not receiving a response for a long time.
作为另一实施例,可设置定时器,在切换至目标信道时开始计时,统计目标信道的信道信息,在到达预设扫描时间时,将目标信道重新切换到初始信道,并基于初始信道回复信道信息。As another embodiment, a timer can be set to start counting when switching to the target channel, and to count the channel information of the target channel. When the preset scan time is reached, switch the target channel to the initial channel again, and reply the channel based on the initial channel information.
本实施例中,通过获取无线设备的初始信道,并获取预设待扫描信道,将初始信道切换至预设待扫描信道中的目标信道,并在预设扫描时间内对目标信道进行信道扫描,得到目标信道的信道信息,将目标信道重新切换为初始信道,基于初始信道输出信道信息,并根据信道信息进行信道切换,本实施例通过限制对目标信道的信道扫描时间,在扫描完成后重新切换到初始信道,并通过初始信道回复信道信息,避免了由于信道扫描时间过长,用户端设备长时间接收不到回应信号,导致用户端设备主动掉线的现象,从而实现了在信道扫描的过程中,用户端设备不会掉线的技术效果,相比于现有技术在无线设备开机过程中进行信道扫描影响开机时间,本实施例在无线设备开机后进行信道扫描,可缩减无线设备的开机时间,提升客户体验。In this embodiment, by obtaining the initial channel of the wireless device and obtaining the preset channel to be scanned, switching the initial channel to the target channel in the preset channel to be scanned, and performing channel scanning on the target channel within the preset scan time, Obtain the channel information of the target channel, re-switch the target channel to the initial channel, output the channel information based on the initial channel, and perform channel switching according to the channel information. In this embodiment, by limiting the channel scanning time of the target channel, switch again after the scan is completed To the initial channel, and reply the channel information through the initial channel, avoiding the phenomenon that the user end device cannot receive the response signal for a long time due to the long channel scanning time, which causes the user end device to actively disconnect, thus realizing the process of channel scanning Among them, the technical effect that the user terminal device will not be disconnected, compared with the prior art that performs channel scanning during the startup process of the wireless device and affects the startup time, this embodiment performs channel scanning after the wireless device is turned on, which can reduce the startup time of the wireless device. Time to improve customer experience.
进一步地,上述步骤S20,将所述初始信道切换至所述预设待扫描信道中的目标信道的步骤之前,还包括:Further, the above step S20, before the step of switching the initial channel to the target channel in the preset channels to be scanned, further includes:
步骤A,若存在多个预设待扫描信道,则确定所有所述预设待扫描信道中未进行切换操作的其他待扫描信道;Step A, if there are multiple preset channels to be scanned, then determine other channels to be scanned that have not undergone switching operations among all the preset channels to be scanned;
步骤B,若存在多个其他待扫描信道,则在各所述其他待扫描信道中选择一个其他待扫描信道作为目标信道。Step B, if there are multiple other channels to be scanned, selecting one of the other channels to be scanned as the target channel.
在本实施例中,若预设待扫描信道存在多个,则确定所有待扫描信道中未进行切换操作的其他待扫描信道,若存在多个其他待扫描信道,则各其他待扫描信道中选择一个其他待扫描信道作为目标信道。切换操作是将初始信道切换到待扫描信道进行信道扫描的切换操作,每次对预设待扫描信道进行切换操作以进行信道扫描后,继续对预设待扫描信道中还未进行切换操作的待扫描信道都进行切换操作以进行信道扫描。作为另一实施方式,可获取预设信道扫描列表,若信道扫描列表中包括多个预设待扫描信道,则可以确定各预设待扫描信道的顺序,如确定排序第一的预设待扫描信道为目标扫描信道,按照排序依次将各个预设待扫描信道作为目标扫描信道,并依次进行:将初始信道切换为目标信道,并在预设扫描时间内对目标信道进行信道扫描,获取目标信道的信道信息,并将目标信道重新切换至初始信道的步骤,即依次对各预设待扫描信道进行扫描,并分别在各预设待扫描信道扫描结束后,切换至初始信道,通过初始信道依次回复各预设待扫描信道的信道信息,即对每一个预设待扫描信道进行一个完整的信道扫描步骤“由初始信道切换到预设待扫描信道,扫描完成后再切换至初始信道”,例如,预设待扫描信道中包括信道1、信道2、信道3和信道4,此时确定初始信道为信道1,则确定待扫描信道中的目标扫描信道为2,将初始信道1切换为目标信道2,在预设扫描时间内对目标信道2进行信道扫描,获取目标信道2的信道信息。并在扫描完成后将目标信道2切换至初始信道1,进而再确定目标信道为信道3,将初始信道1切换为信道3,在预设扫描时间内对信道3进行信道扫描,获取信道3的信道信息。并在扫描完成后将信道3切换至初始信道1,如此依次类推对信道4进行信道扫描。其中,目标扫描信道的确定可以是按照顺序依次确定,也可以是随机确定,也可以是其它的方式,其作用在于对所有的预设待扫描信道均进行信道扫描。在本实施例中,还可以检测所有的预设待扫描信道是否完成扫描,若未完成扫描则切换到下一个待扫描的信道,重复进行信道扫描操作。In this embodiment, if there are multiple preset channels to be scanned, other channels to be scanned that have not been switched in all channels to be scanned are determined, and if there are multiple other channels to be scanned, each other channel to be scanned is selected. One of the other channels to be scanned serves as the target channel. The switching operation is to switch the initial channel to the channel to be scanned for channel scanning. After switching the preset channel to be scanned each time to perform channel scanning, continue to perform the switching operation on the preset channels to be scanned. Scanning channels are switched operations for channel scanning. As another implementation, the preset channel scan list can be obtained. If the channel scan list includes multiple preset channels to be scanned, the order of each preset channel to be scanned can be determined, such as determining the first preset to be scanned. The channel is the target scanning channel, and each preset channel to be scanned is used as the target scanning channel in sequence according to the order, and the steps are followed in turn: switch the initial channel to the target channel, and perform channel scanning on the target channel within the preset scanning time to obtain the target channel channel information, and re-switch the target channel to the initial channel, that is, to scan each preset channel to be scanned in turn, and switch to the initial channel after the scanning of each preset channel to be scanned is completed, and pass through the initial channel in turn Reply the channel information of each preset channel to be scanned, that is, perform a complete channel scanning step for each preset channel to be scanned, "switch from the initial channel to the preset channel to be scanned, and then switch to the initial channel after scanning", for example , the preset channels to be scanned include channel 1, channel 2, channel 3, and channel 4. At this time, if the initial channel is determined to be channel 1, then the target scanning channel in the channels to be scanned is determined to be 2, and the initial channel 1 is switched to the target channel 2. Perform a channel scan on the target channel 2 within the preset scan time to obtain channel information of the target channel 2. And after the scanning is completed, switch the target channel 2 to the initial channel 1, and then determine the target channel as channel 3, switch the initial channel 1 to channel 3, perform channel scanning on channel 3 within the preset scanning time, and obtain the channel 3 channel information. And switch channel 3 to the initial channel 1 after the scan is completed, and so on to perform channel scan on channel 4. Wherein, the determination of the target scanning channel may be determined sequentially, may also be determined randomly, or may be in other ways, and its function is to perform channel scanning on all preset channels to be scanned. In this embodiment, it is also possible to detect whether all preset channels to be scanned have been scanned, and if the scan is not completed, switch to the next channel to be scanned, and repeat the channel scanning operation.
在本实施例中,相比于在无线设备开机的过程中对所有信道进行信道扫描,或在进行信道扫描时需要断开所有的用户端设备的方式,本实施例在无线设备开机结束后,对预设待扫描信道依次进行扫描,在对每一个预设待扫描信道扫描完毕后均切换至初始信道,通过初始信道向用户端设备进行响应,不需要断开客户端设备,进一步地控制对预设待扫描信道的扫描时间,避免了用户端设备主动掉线的问题,提供了用户设备端不掉线的信道扫描机制,该机制极大的扩展了自动信道的应用场景,改善了产品的用户体验。In this embodiment, compared to performing channel scanning on all channels during the power-on process of the wireless device, or disconnecting all client devices during channel scanning, in this embodiment, after the wireless device is powered on, Scan the preset channels to be scanned in sequence, switch to the initial channel after scanning each preset channel to be scanned, and respond to the user terminal device through the initial channel, without disconnecting the client device, and further control the Preset the scanning time of the channel to be scanned, which avoids the problem of active disconnection of the user equipment, and provides a channel scanning mechanism that does not disconnect the user equipment. This mechanism greatly expands the application scenarios of automatic channels and improves product reliability. user experience.
进一步地,上述步骤S40中,根据所述信道信息进行信道切换的步骤包括:Further, in the above step S40, the step of performing channel switching according to the channel information includes:
步骤D,统计各所述预设待扫描信道的信道信息,并获取各所述预设待扫描信道的信道信息中服务集标识的数量和所述服务集标识对应的信号强度;Step D, counting the channel information of each of the preset channels to be scanned, and obtaining the number of service set identifiers in the channel information of each of the preset to-be-scanned channels and the signal strength corresponding to the service set identifiers;
步骤E,根据所述数量和所述信号强度确定所述预设待扫描信道中的最优信道,并根据所述最优信道进行信道切换。Step E, determining an optimal channel among the preset channels to be scanned according to the number and the signal strength, and performing channel switching according to the optimal channel.
在本实施例中,对多个预设待扫描信道分别进行信道扫描后,由初始信道回复各个预设待扫描信道对应的信道信息,并统计各个预设待扫描信道的信道信息,分别获取各个预设待扫描信道的信道信息中服务集标识(SSID信息)的数量,并获取各个服务集标识对应的信号强度(RSSI),可以理解的是一个无线设备对应唯一一个服务集标识,也就是统计预设各个待扫描信道中的无线设备的数量,以及各个无线设备对应的信号强度,根据各个预设待扫描信道中的无线设备的数量,以及各个无线设备对应的信号强度,得到预设待扫描信道中的最优信道,并根据最优信道进行信道切换。In this embodiment, after channel scanning is performed on a plurality of preset channels to be scanned, the channel information corresponding to each preset channel to be scanned is returned from the initial channel, and the channel information of each preset channel to be scanned is counted, and each Preset the number of service set identifiers (SSID information) in the channel information of the channel to be scanned, and obtain the signal strength (RSSI) corresponding to each service set identifier. It can be understood that a wireless device corresponds to a unique service set identifier, that is, statistics Preset the number of wireless devices in each channel to be scanned and the corresponding signal strength of each wireless device, and obtain the preset to be scanned according to the number of wireless devices in each preset channel to be scanned and the corresponding signal strength of each wireless device The best channel in the channel, and switch the channel according to the best channel.
具体地,可以分别将每个预设待扫描信道的服务集标识数量与其服务集标识对应的信号强度相加,得到信号干扰值,该信号干扰值越大则说明对应的预设待扫描信道的拥堵程度越大,对应地信号干扰值越小则说明预设待扫描信道的拥堵程度越小,此时通过比较则可得出预设待扫描信道中的最优信道,最优信道即为信号干扰值最小的信道,进而根据最优信道进行信道切换,本实施例中通过上述方式可快速准确地计算得出质量最好的最优信道。Specifically, the number of service set identifiers of each preset channel to be scanned can be added to the signal strength corresponding to the service set identifier to obtain a signal interference value. The larger the signal interference value, the greater the corresponding preset channel to be scanned. The greater the degree of congestion, the smaller the corresponding signal interference value is, indicating that the congestion degree of the preset channel to be scanned is smaller. At this time, by comparison, the optimal channel among the preset channels to be scanned can be obtained, and the optimal channel is the signal The channel with the smallest interference value is then switched according to the optimal channel. In this embodiment, the optimal channel with the best quality can be quickly and accurately calculated through the above method.
进一步地,上述步骤E中,根据所述最优信道进行信道切换的步骤包括:Further, in the above step E, the step of switching channels according to the optimal channel includes:
步骤e1,将所述最优信道反馈至所有用户端设备,并将所述初始信道切换为所述最优信道。Step e1, feeding back the optimal channel to all UEs, and switching the initial channel to the optimal channel.
在本实施例中,所述的所有用户端设备为连接上无线设备的所有的用户端设备,在得到预设待扫描信道中的最优信道后,先将该最优信道反馈至连接到当前无线设备的所有的用户端设备,也即通知所有连接上无线设备的用户端设备即将切换当前的初始信道为最优信道,用户端接收记录该最优信道,再将初始信道切换为最优信道,以使所有用户端设备使用最优信道与AP(Access Point,无线接入点)设备进行通信。In this embodiment, all the client devices mentioned above are all the client devices connected to the wireless device. After obtaining the optimal channel among the preset channels to be scanned, the optimal channel is fed back to the current All client devices of the wireless device, that is, notify all client devices connected to the wireless device that the current initial channel is about to be switched to the optimal channel, and the client receives and records the optimal channel, and then switches the initial channel to the optimal channel , so that all client devices use the optimal channel to communicate with AP (Access Point, wireless access point) devices.
通常,在进行自动信道选择时,在信道扫描时将所有用户端设备强制下线,且在信道切换时也会将所有用户端设备强制下线,使所有用户端设备重新扫描到无线设备,用户端设备与无线设备重新关联才可以正常通信,因此,在本实施例中,在进行信道切换之前,将最优信道的信道通知到所有用户端设备,使用户切换使用最优信道与AP设备进行通信,以此实现不需要将所有用户端设备强制下线,从而保证了在信道切换的过程中,连接的客户端设备不会掉线的效果。Usually, when performing automatic channel selection, all client devices are forced to go offline during channel scanning, and all client devices are also forced to go offline during channel switching, so that all client devices can re-scan to wireless devices, and users Therefore, in this embodiment, before channel switching, the channel of the optimal channel is notified to all user end devices, so that the user switch uses the optimal channel to communicate with the AP device. In this way, it is not necessary to force all client devices to go offline, thereby ensuring that the connected client devices will not go offline during the channel switching process.
进一步地,上述步骤S20,在预设扫描时间内对所述目标信道进行信道扫描的步骤包括:Further, in the above step S20, the step of performing channel scanning on the target channel within the preset scanning time includes:
步骤F,获取用户端设备发送探测报文的时间间隔和发送次数;Step F, obtaining the time interval and the number of sending times of the detection message sent by the client device;
步骤G,将所述时间间隔和所述发送次数的乘积作为所述预设扫描时间。Step G, taking the product of the time interval and the sending times as the preset scanning time.
在本实施例中,由于用户端设备的协议规定,即若用户端设备在预设时间或预设次数内未收到回应,则用户端设备将主动掉线,因此,在本实施例中,获取用户端设备发送探测报文的时间间隔和发送次数,将时间间隔和发送次数的乘积作为预设扫描时间,在所述预设扫描时间内对目标信道进行信道扫描,可以理解的是,预设扫描时间为用户端设备掉线的时间,因此需要在用户端设备掉线之前,完成对目标信道的信道扫描操作,需要说明的是,在预设扫描时间内对预设待扫描信道进行信道扫描的步骤与在预设扫描时间内对目标信道扫描的方式相同。In this embodiment, because the protocol of the client device stipulates that if the client device does not receive a response within the preset time or the preset number of times, the client device will actively disconnect. Therefore, in this embodiment, Obtain the time interval and the number of sending times of the detection message sent by the user terminal equipment, and use the product of the time interval and the number of sending times as the preset scan time, and perform channel scanning on the target channel within the preset scan time. It can be understood that the preset scan time is The scanning time is set as the time when the client device is offline, so it is necessary to complete the channel scanning operation on the target channel before the client device is offline. The scanning steps are the same as scanning the target channel within the preset scanning time.
如图3所示,检测当前信道,此时当前信道即为初始信道,判断当前信道是否比较拥堵,若当前信道比较拥堵,则进一步判断当前信道是否刚刚(预设切换时间内)切换过,若当前信道刚刚未进行过切换,说明可以进行信道切换操作,则获取信道扫描列表,切换到信道扫描列表中相应的信道进行扫描,并在客户端断开之前结束扫描,此时客户端断开之前结束扫描即在预设扫描时间内结束扫描,然后切换至工作信道(初始信道)回复客户端探测报文,进而检测所有信道是否扫描完成,若所有信道扫描完成,则通过算法计算各个信道的拥堵情况,根据各个信道的拥堵情况,选择出质量最好的信道,也即选择出最优信道,通知客户端即将切换的信道,以使得客户端使用新的最优信道跟AP进行通信,同时在选择出质量最好的信道之后,在预设时间内不需要再进行信道切换,因此无线设备进入睡眠时间,且在当前信道不拥堵的情况下也进入预设的睡眠时间,避免频繁切换。As shown in Figure 3, the current channel is detected. At this time, the current channel is the initial channel, and it is judged whether the current channel is congested. If the current channel is relatively congested, it is further judged whether the current channel has just been switched (within the preset switching time). If The current channel has not been switched just now, indicating that the channel switching operation can be performed, then obtain the channel scan list, switch to the corresponding channel in the channel scan list for scanning, and end the scan before the client is disconnected. The end of the scan means the end of the scan within the preset scan time, and then switch to the working channel (initial channel) to reply to the client detection message, and then check whether all channels are scanned. If all channels are scanned, the congestion of each channel is calculated by algorithm According to the congestion situation of each channel, the channel with the best quality is selected, that is, the optimal channel is selected, and the client is notified of the channel to be switched, so that the client uses the new optimal channel to communicate with the AP. After the channel with the best quality is selected, there is no need to switch channels within the preset time, so the wireless device enters the sleep time, and also enters the preset sleep time when the current channel is not congested, avoiding frequent switching.
在本实施例中,通过用户端设备发送探测报文的时间间隔和发送次数来计算一个限制扫描时间,以控制对预设待扫描信道进行信道扫描的扫描时间,在扫描完成后立即切换为初始信道,通过初始信道响应用户端设备的探测报文,实现了在扫描过程中都不掉线的效果。In this embodiment, a limited scan time is calculated through the time interval and the number of sending probe messages sent by the user terminal equipment to control the scan time for channel scanning of the preset channel to be scanned, and switch to the initial channel immediately after the scan is completed. Channel, through the initial channel to respond to the detection message of the user equipment, to achieve the effect of not dropping the line during the scanning process.
基于上述第一实施例,提出本申请信道切换方法的第二实施例,在本实施例中,上述步骤S10中,获取预设待扫描信道的步骤之前,还包括:Based on the above first embodiment, the second embodiment of the channel switching method of the present application is proposed. In this embodiment, in the above step S10, before the step of obtaining the preset channel to be scanned, it also includes:
步骤H,检测所述初始信道的状态是否为拥堵状态;Step H, detecting whether the state of the initial channel is a congestion state;
步骤I,若所述初始信道的状态为拥堵状态,则检测所述初始信道在预设切换时间内是否存在信道切换。Step I, if the state of the initial channel is congested, then detecting whether there is channel switching on the initial channel within the preset switching time.
步骤J,若所述初始信道在预设切换时间内不存在信道切换,则执行步骤:获取预设待扫描信道。Step J, if there is no channel switching on the initial channel within the preset switching time, then perform the step of acquiring a preset channel to be scanned.
在本实施例中,在获取预设待扫描信道的步骤之前,检测初始信道的状态是否为拥堵状态,若初始信道的状态为拥堵状态,则说明当前的初始信道较为拥堵,需要进行信道扫描以重新扫描出最优信道进行信道切换,检测初始信道在预设切换时间内是否存在信道切换,其中预设切换时间为信道的切换频率,若初始信道在预设切换时间内不存在信道切换,则说明初始信道有一段时间未进行信道切换,则执行后续获取预设待扫描信道的步骤。本实施例中在初始信道的状态为拥堵状态的情况下,进一步检测初始信道的切换频率,在初始信道在预设切换时间内已经进行过切换的情况下,不进行信道切换,避免了频繁的信道切换。In this embodiment, before the step of obtaining the preset channel to be scanned, it is detected whether the state of the initial channel is a congested state. If the state of the initial channel is a congested state, it means that the current initial channel is relatively congested, and channel scanning is required to Re-scan the optimal channel for channel switching, and detect whether there is channel switching in the initial channel within the preset switching time, wherein the preset switching time is the switching frequency of the channel, if there is no channel switching in the initial channel within the preset switching time, then It means that the initial channel has not been switched for a period of time, and then the subsequent steps of obtaining the preset channel to be scanned are performed. In this embodiment, when the state of the initial channel is a congested state, the switching frequency of the initial channel is further detected, and when the initial channel has been switched within the preset switching time, channel switching is not performed, thereby avoiding frequent Channel switching.
本实施例在获取无线设备的初始信道之后,检测初始信道的状态是否为拥堵状态,若初始信道的状态不为拥堵状态,则无线设备进行睡眠,无线设备睡眠预设睡眠时间后,再检测当前的初始信道的拥堵情况,由于在实际环境中,可能路由器工作过程中周围无线环境发生了变化,引起较强的无线干扰,此时需要重新进行信道切换,因此可以设置预设周期时间对当前的初始信道进行检测。本实施例中,在获取预设待扫描信道之前,检测初始信道的拥堵状态,在初始信道不拥堵的情况下,不进行信道切换,避免了频繁的信道切换。In this embodiment, after obtaining the initial channel of the wireless device, it detects whether the state of the initial channel is a congested state. If the state of the initial channel is not congested, the wireless device sleeps. After the wireless device sleeps for a preset sleep time, it detects the current state. In the actual environment, the surrounding wireless environment may change during the working process of the router, causing strong wireless interference. At this time, it is necessary to re-switch the channel, so the preset cycle time can be set for the current The initial channel is detected. In this embodiment, before acquiring the preset channel to be scanned, the congestion state of the initial channel is detected, and if the initial channel is not congested, channel switching is not performed, thereby avoiding frequent channel switching.
进一步地,上述步骤H,若检测所述初始信道的状态是否为拥堵状态的步骤包括:Further, in the above step H, if the step of detecting whether the state of the initial channel is a congestion state includes:
步骤h1,获取所述初始信道的接收信号强度、丢包率、报文重传次数和物理接口速率;Step h1, obtaining the received signal strength, packet loss rate, packet retransmission times and physical interface rate of the initial channel;
步骤h2,根据所述接收信号强度指示、丢包率、报文重传次数和物理接口速率,检测所述初始信道的状态是否为拥堵状态。Step h2, according to the received signal strength indication, packet loss rate, packet retransmission times and physical interface rate, detect whether the state of the initial channel is a congestion state.
在本实施例中,可以设置定时器,定时检测初始信道的状态,获取初始信道的接收信号强度(Received Signal Strength Indication,RSSI)、丢包率、报文重传次数和物理接口速率,根据接收信号强度指示、丢包率、报文重传次数和物理接口速率检测初始信道的状态是否为拥堵状态,其中丢包率(Loss Tolerance或Packet Loss Rate)是指测试中所丢失数据包数量占所发送数据组的比率,在本实施例中,接收信号强度(RSSI)、丢包率、报文重传次数和物理接口速率可以反映初始信道的拥堵情况,丢包率越大,报文重传次数增大,协商速率不稳定,则说明初始信道的状态为拥堵状态,开始进行信道扫描,还可以检测初始信道中其他可以反映初始信道拥堵情况的参数。In this embodiment, a timer can be set to regularly detect the state of the initial channel, obtain the received signal strength (Received Signal Strength Indication, RSSI), packet loss rate, packet retransmission times, and physical interface rate of the initial channel, according to the received Signal strength indicator, packet loss rate, packet retransmission times and physical interface rate to detect whether the initial channel state is congested state, where the packet loss rate (Loss Tolerance or Packet Loss Rate) refers to the number of lost data packets in the test accounted for The ratio of sending data groups. In this embodiment, received signal strength (RSSI), packet loss rate, packet retransmission times, and physical interface rate can reflect the initial channel congestion. The greater the packet loss rate, the greater the packet retransmission rate. If the number of times increases and the negotiation rate is unstable, it means that the state of the initial channel is congested, and channel scanning is started, and other parameters in the initial channel that can reflect the congestion of the initial channel can also be detected.
在本实施例的信道扫描过程中可以保持用户端设备不掉线,但在极短的预设扫描时间内,用户端与路由器之间的通信强度较弱,可能会影响用户的上网体验,因此在初始信道在预设切换时间内已经进行过切换的情况下,不进行信道切换,避免了频繁的信道切换,进一步提升客户体验,很大程度上提高了自动信道选择的应用范围,使产品拥有更好的用户体验,最大程度上发挥产品性能。In the channel scanning process of this embodiment, the user terminal device can be kept offline, but within a very short preset scanning time, the communication strength between the user terminal and the router is weak, which may affect the user's online experience, so If the initial channel has already been switched within the preset switching time, channel switching is not performed, which avoids frequent channel switching, further improves customer experience, greatly improves the application range of automatic channel selection, and enables the product to have Better user experience, maximize product performance.
本申请还提供一种信道切换装置,如图4所示信道切换装置包括:信道获取模块A10,用于获取无线设备的初始信道,并获取预设待扫描信道;信道扫描模块A20,用于将所述初始信道切换至所述预设待扫描信道中的目标信道,并在预设扫描时间内对所述目标信道进行信道扫描,得到所述预设待扫描信道的信道信息;信道扫描模块A20,还用于将所述目标信道重新切换为所述初始信道;信道切换模块A30,用于基于所述初始信道输出所述信道信息,并根据所述信道信息进行信道切换。本申请信道切换装置的具体实施例与上述信道切换方法各实施例基本相同,在此不作赘述。The present application also provides a channel switching device, as shown in Figure 4, the channel switching device includes: a channel acquisition module A10, used to obtain the initial channel of the wireless device, and obtain a preset channel to be scanned; a channel scanning module A20, used to The initial channel is switched to the target channel in the preset channel to be scanned, and channel scanning is performed on the target channel within the preset scan time to obtain channel information of the preset channel to be scanned; channel scanning module A20 , further configured to re-switch the target channel to the initial channel; a channel switching module A30, configured to output the channel information based on the initial channel, and perform channel switching according to the channel information. The specific embodiments of the channel switching device of the present application are basically the same as the above embodiments of the channel switching method, and will not be repeated here.
本申请还提供一种信道切换设备,其中,所述信道切换设备包括存储器、处理器、以及存储在所述存储器上并可在所述处理器上运行的信道切换程序,所述信道切换程序被处理器执行时实现如以上任一项实施例所述的信道切换方法的步骤。本申请信道切换设备的具体实施例与上述信道切换方法各实施例基本相同,在此不作赘述。The present application also provides a channel switching device, wherein the channel switching device includes a memory, a processor, and a channel switching program stored in the memory and operable on the processor, and the channel switching program is executed by The processor implements the steps of the channel switching method described in any one of the above embodiments when executed. The specific embodiments of the channel switching device of the present application are basically the same as the above embodiments of the channel switching method, and will not be repeated here.
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有信道切换程序,所述信道切换程序被处理器执行时实现如以上任一项实施例所述的信道切换方法的步骤。本申请计算机可读存储介质的具体实施例与上述信道切换方法各实施例基本相同,在此不作赘述。The present application also provides a computer-readable storage medium, where a channel switching program is stored on the computer-readable storage medium, and when the channel switching program is executed by a processor, the channel switching method as described in any one of the above embodiments is implemented A step of. The specific embodiments of the computer-readable storage medium of the present application are basically the same as the above embodiments of the channel switching method, and will not be repeated here.
可以理解的是,在本说明书的描述中,参考术语“一实施例”、“另一实施例”、“其他实施例”、或“第一实施例~第N实施例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。It can be understood that, in the description of this specification, referring to the terms "one embodiment", "another embodiment", "other embodiments", or "the first embodiment to the Nth embodiment" means that A specific feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, as used herein, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or system comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or system. Without further limitations, an element defined by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system comprising that element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM) as described above. , magnetic disk, optical disk), including several instructions to make a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the methods described in various embodiments of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structures or equivalent process transformations made by using the description of the application and the accompanying drawings are directly or indirectly used in other related technical fields. , are all included in the patent protection scope of the present application in the same way.

Claims (10)

  1. 一种信道切换方法,其中,所述信道切换方法包括步骤:A channel switching method, wherein the channel switching method comprises the steps of:
    获取无线设备的初始信道,并获取预设待扫描信道;Obtain the initial channel of the wireless device, and obtain the preset channel to be scanned;
    将所述初始信道切换至所述预设待扫描信道中的目标信道,并在预设扫描时间内对所述目标信道进行信道扫描,得到所述目标信道的信道信息;switching the initial channel to a target channel in the preset channels to be scanned, and performing channel scanning on the target channel within a preset scan time to obtain channel information of the target channel;
    将所述目标信道重新切换为所述初始信道;re-switching the target channel to the initial channel;
    基于所述初始信道输出所述信道信息,并根据所述信道信息进行信道切换。outputting the channel information based on the initial channel, and performing channel switching according to the channel information.
  2. 如权利要求1所述的信道切换方法,其中,所述将所述初始信道切换至所述预设待扫描信道中的目标信道的步骤之前,包括:The channel switching method according to claim 1, wherein, before the step of switching the initial channel to the target channel in the preset channel to be scanned, the steps include:
    若存在多个预设待扫描信道,则确定所有所述预设待扫描信道中未进行切换操作的其他待扫描信道;If there are multiple preset channels to be scanned, then determine other channels to be scanned that have not been switched in all the preset channels to be scanned;
    若存在多个所述其他待扫描信道,则在各所述其他待扫描信道中选择一个其他待扫描信道作为目标信道。If there are multiple other channels to be scanned, one of the other channels to be scanned is selected as the target channel.
  3. 如权利要求2所述的信道切换方法,其中,所述根据所述信道信息进行信道切换的步骤包括:The channel switching method according to claim 2, wherein the step of performing channel switching according to the channel information comprises:
    统计各所述预设待扫描信道的信道信息,并获取各所述预设待扫描信道的信道信息中服务集标识的数量和所述服务集标识对应的信号强度;Counting the channel information of each preset channel to be scanned, and acquiring the number of service set identifiers in the channel information of each preset channel to be scanned and the signal strength corresponding to the service set identifier;
    根据所述数量和所述信号强度确定所述预设待扫描信道中的最优信道,并根据所述最优信道进行信道切换。Determine an optimal channel among the preset channels to be scanned according to the number and the signal strength, and perform channel switching according to the optimal channel.
  4. 如权利要求3所述的信道切换方法,其中,所述根据所述最优信道进行信道切换的步骤包括:The channel switching method according to claim 3, wherein the step of performing channel switching according to the optimal channel comprises:
    将所述最优信道反馈至所有用户端设备,并将所述初始信道切换为所述最优信道。Feedback the optimal channel to all UEs, and switch the initial channel to the optimal channel.
  5. 如权利要求1所述的信道切换方法,其中,所述在预设扫描时间内对所述目标信道进行信道扫描的步骤之前,包括:The channel switching method according to claim 1, wherein, before the step of performing channel scanning on the target channel within the preset scanning time, comprising:
    获取用户端设备发送探测报文的时间间隔和发送次数;Obtain the time interval and number of sending probe packets sent by the client device;
    将所述时间间隔和所述发送次数的乘积作为所述预设扫描时间。The product of the time interval and the number of sending times is used as the preset scanning time.
  6. 如权利要求1所述的信道切换方法,其中,所述获取预设待扫描信道的步骤之前包括:The channel switching method according to claim 1, wherein the step of acquiring a preset channel to be scanned comprises:
    检测所述初始信道的状态是否为拥堵状态;Detecting whether the state of the initial channel is a congestion state;
    若所述初始信道的状态为拥堵状态,则检测所述初始信道在预设切换时间内是否存在信道切换;If the state of the initial channel is a congestion state, then detecting whether there is channel switching on the initial channel within a preset switching time;
    若所述初始信道在预设切换时间内不存在信道切换,则执行步骤:获取预设待扫描信道。If there is no channel switching on the initial channel within the preset switching time, the step of: acquiring a preset channel to be scanned is performed.
  7. 如权利要求6所述的信道切换方法,其中,所述检测所述初始信道的状态是否为拥堵状态的步骤包括:The channel switching method according to claim 6, wherein the step of detecting whether the state of the initial channel is a congestion state comprises:
    获取所述初始信道的接收信号强度、丢包率、报文重传次数和物理接口速率;Acquiring the received signal strength, packet loss rate, packet retransmission times and physical interface rate of the initial channel;
    根据所述接收信号强度指示、丢包率、报文重传次数和物理接口速率,检测所述初始信道的状态是否为拥堵状态。Detecting whether the state of the initial channel is a congestion state according to the received signal strength indication, packet loss rate, packet retransmission times, and physical interface rate.
  8. 一种信道切换装置,其中,所述信道切换装置包括:A channel switching device, wherein the channel switching device includes:
    信道获取模块,用于获取无线设备的初始信道,并获取预设待扫描信道;A channel acquisition module, configured to acquire the initial channel of the wireless device, and acquire a preset channel to be scanned;
    信道扫描模块,用于将所述初始信道切换至所述预设待扫描信道中的目标信道,并在预设扫描时间内对所述目标信道进行信道扫描,得到所述预设待扫描信道的信道信息;A channel scanning module, configured to switch the initial channel to a target channel in the preset channel to be scanned, and perform channel scanning on the target channel within the preset scan time, to obtain the channel of the preset channel to be scanned channel information;
    信道扫描模块,用于将所述目标信道重新切换为所述初始信道;a channel scanning module, configured to re-switch the target channel to the initial channel;
    信道切换模块,用于基于所述初始信道输出所述信道信息,并根据所述信道信息进行信道切换。A channel switching module, configured to output the channel information based on the initial channel, and perform channel switching according to the channel information.
  9. 一种信道切换设备,其中,所述信道切换设备包括存储器、处理器、以及存储在所述存储器上并可在所述处理器上运行的信道切换程序,所述信道切换程序配置为实现如权利要求1至7中任一项所述的信道切换方法的步骤。A channel switching device, wherein the channel switching device includes a memory, a processor, and a channel switching program stored on the memory and operable on the processor, the channel switching program is configured to implement the The steps of the channel switching method described in any one of 1 to 7 are required.
  10. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有信道切换程序,所述信道切换程序被处理器执行时实现如权利要求1至7中任一项所述的信道切换方法的步骤。A computer-readable storage medium, wherein a channel switching program is stored on the computer-readable storage medium, and when the channel switching program is executed by a processor, the channel switching according to any one of claims 1 to 7 is realized method steps.
PCT/CN2022/136991 2021-12-28 2022-12-06 Channel switching method and apparatus, and device and computer-readable storage medium WO2023124835A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111638850.0 2021-12-28
CN202111638850.0A CN114096003A (en) 2021-12-28 2021-12-28 Channel switching method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2023124835A1 true WO2023124835A1 (en) 2023-07-06

Family

ID=80308215

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/136991 WO2023124835A1 (en) 2021-12-28 2022-12-06 Channel switching method and apparatus, and device and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN114096003A (en)
WO (1) WO2023124835A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114096003A (en) * 2021-12-28 2022-02-25 深圳创维数字技术有限公司 Channel switching method, device, equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080186917A1 (en) * 2007-02-02 2008-08-07 Microsoft Corporation Decoupling scanning from handoff for reduced delay over wireless LAN
US8630255B1 (en) * 2006-09-19 2014-01-14 Marvell International Ltd. Wireless adapter with auxiliary radio channel for advanced channel scanning
CN103596228A (en) * 2013-11-19 2014-02-19 福建星网锐捷网络有限公司 Wireless channel switching method and device
CN111988101A (en) * 2019-05-23 2020-11-24 杭州海康威视数字技术股份有限公司 Wireless channel switching method, system, access point and workstation
CN114096003A (en) * 2021-12-28 2022-02-25 深圳创维数字技术有限公司 Channel switching method, device, equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8630255B1 (en) * 2006-09-19 2014-01-14 Marvell International Ltd. Wireless adapter with auxiliary radio channel for advanced channel scanning
US20080186917A1 (en) * 2007-02-02 2008-08-07 Microsoft Corporation Decoupling scanning from handoff for reduced delay over wireless LAN
CN103596228A (en) * 2013-11-19 2014-02-19 福建星网锐捷网络有限公司 Wireless channel switching method and device
CN111988101A (en) * 2019-05-23 2020-11-24 杭州海康威视数字技术股份有限公司 Wireless channel switching method, system, access point and workstation
CN114096003A (en) * 2021-12-28 2022-02-25 深圳创维数字技术有限公司 Channel switching method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN114096003A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN111867001B (en) Intelligent equipment batch network distribution method, system and storage medium
US9307387B2 (en) Communication apparatus, communication method, computer program, and storage medium
JP6274211B2 (en) Wireless communication terminal, communication method, program, information processing apparatus, and distribution server
US8891771B2 (en) Communication apparatus, communication method, and computer program
CN104471987B (en) For the system and method that the AP of FILS beacons is used to find
US8396497B2 (en) Communication device and method for controlling communication device
CN111867007A (en) Automatic network distribution method and system for intelligent equipment and storage medium
US7616956B2 (en) Measurement request report extensions for media independent handover
KR20100083040A (en) Method and system for controlling wireless communication channel
WO2006076794A1 (en) Automatic connection of a mobile device to a wireless network
US20170006538A1 (en) Wireless network access
JP6953898B2 (en) Wireless communication device, control method of wireless communication device
WO2009014014A1 (en) Communication apparatus and communication method therefor
WO2023124835A1 (en) Channel switching method and apparatus, and device and computer-readable storage medium
US9025448B2 (en) Methods and apparatuses for accessing internet
JP2011223424A (en) Communication apparatus, communication system, processing method thereof and program
TWI461090B (en) Methods, apparatuses & computer program products for setting up a network with dynamic channel bandwidth usage to provide support for legacy devices and saving power
JP7042351B2 (en) Roaming handoff method, central control device, and station
WO2023078341A1 (en) Roaming method and apparatus for wireless terminal
CN111918252A (en) Method, system and device for accessing intelligent equipment to wireless local area network
CN113543282B (en) Wireless roaming method and system
TW200525947A (en) Load balancing system and method for dynamic network
EP3182792B1 (en) Method for adjusting clear channel assessment threshold, and access point
CN111866990B (en) Channel discovery method and device
CN108684049B (en) Parameter configuration method, device, equipment and storage medium of distributed WiFi network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22914090

Country of ref document: EP

Kind code of ref document: A1