CN114096003A - Channel switching method, device, equipment and computer readable storage medium - Google Patents

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

Info

Publication number
CN114096003A
CN114096003A CN202111638850.0A CN202111638850A CN114096003A CN 114096003 A CN114096003 A CN 114096003A CN 202111638850 A CN202111638850 A CN 202111638850A CN 114096003 A CN114096003 A CN 114096003A
Authority
CN
China
Prior art keywords
channel
switching
preset
scanned
initial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111638850.0A
Other languages
Chinese (zh)
Inventor
王祥河
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
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 Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN202111638850.0A priority Critical patent/CN114096003A/en
Publication of CN114096003A publication Critical patent/CN114096003A/en
Priority to PCT/CN2022/136991 priority patent/WO2023124835A1/en
Pending legal-status Critical Current

Links

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a channel switching method, a device, equipment and a computer readable storage medium, and belongs to the technical field of wireless communication. The channel switching method comprises the following steps: acquiring an initial channel of the wireless equipment, and acquiring a 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 preset scanning time to obtain channel information of the preset channel to be scanned; re-switching the target channel to the initial channel; and outputting the channel information based on the initial channel, and switching channels according to the channel information. The invention can realize that the connected client equipment is not disconnected in the channel scanning process, and the connected client equipment is not disconnected when the channel is switched.

Description

Channel switching method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of wireless communications technologies, and in particular, to a channel switching method, apparatus, device, and computer readable storage medium.
Background
With the rapid popularization of wireless equipment application, the interference of working channels such as 5G and 2.4G is ubiquitous, the situation of channel congestion can be formed when similar wireless routers adopt the same or overlapped channels, the wireless link quality is influenced mutually, in order to avoid mutual interference caused by channel overlapping, automatic channel selection is an important measure for reducing the situation of channel congestion, the distribution situation of surrounding wireless channels is detected when the wireless equipment is started, the optimal channel is selected for working, at present, all user end equipment connected with the wireless equipment needs to be disconnected when channel scanning is carried out in the automatic channel selection, and the problem that the user end equipment is frequently disconnected when the automatic channel selection is carried out is caused.
Disclosure of Invention
The invention mainly aims to provide a channel switching method, a device, equipment and a computer readable storage medium, and aims to solve the technical problem that user side equipment is disconnected when channel scanning is performed by automatic channel selection.
In order to achieve the above object, the present invention provides a channel switching method, including:
acquiring an initial channel of the wireless equipment, and acquiring a 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 preset scanning time to obtain channel information of the preset channel to be scanned;
re-switching the target channel to the initial channel;
and outputting the channel information based on the initial channel, and switching channels according to the channel information.
Optionally, before the step of switching the initial channel to the target channel in the preset channels to be scanned, the method includes:
if a plurality of preset channels to be scanned exist, determining other channels to be scanned which are not subjected to switching operation in all the preset channels to be scanned;
and if a plurality of other channels to be scanned exist, selecting one other channel to be scanned from the other channels to be scanned as a target channel.
Optionally, the step of performing channel switching according to the channel information includes:
counting channel information of each channel to be scanned, and acquiring the number of service set identifications in the channel information of each channel to be scanned and signal strength corresponding to the service set identifications;
and determining the optimal channel in the channels to be scanned according to the number and the signal strength, and switching the channels according to the optimal channel.
Optionally, the step of performing channel switching according to the optimal channel includes:
and feeding back the optimal channel to all user end equipment, and switching the initial channel to the optimal channel.
Optionally, before the step of performing channel scanning on the preset channel to be scanned within the preset scanning time, the method includes:
acquiring the time interval and the sending times of the detection message sent by the user terminal equipment;
and taking the product of the time interval and the sending times as the preset scanning time.
Optionally, the step of acquiring the 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, detecting whether channel switching exists in the initial channel within preset switching time;
if the initial channel does not have channel switching within the preset switching time, executing the following steps: and acquiring a preset channel to be scanned.
Optionally, the step of detecting whether the state of the initial channel is a congestion state includes:
acquiring the received signal strength, the packet loss rate, the message retransmission times and the physical interface rate of the initial channel;
and detecting whether the state of the initial channel is a congestion state or not according to the received signal strength indication, the packet loss rate, the message retransmission times and the physical interface rate.
In addition, to achieve the above object, the present invention provides a channel switching apparatus, including:
the channel acquisition module is used for acquiring an initial channel of the wireless equipment and acquiring a preset channel to be scanned;
the channel scanning module is used for switching the initial channel to a target channel in the preset channel to be scanned and scanning the channel of the target channel within preset scanning time to obtain channel information of the preset channel to be scanned;
a channel scanning module, configured to switch the target channel to the initial channel again;
and the channel switching module is used for outputting the channel information based on the initial channel and switching the channel according to the channel information.
Furthermore, to achieve the above object, the present invention also provides a channel switching device, which includes a memory, a processor, and a channel switching program stored on the memory and operable on the processor, wherein the channel switching program, when executed by the processor, implements the steps of the channel switching method as described above.
Furthermore, to achieve the above object, the present invention also provides a computer readable storage medium having a channel switching program stored thereon, which when executed by a processor implements the steps of the channel switching method as described above.
The invention provides a channel switching method, a device, equipment and a computer readable storage medium, which can switch back to an initial channel by acquiring the initial channel of a wireless device and acquiring a preset channel to be scanned, switching the initial channel to a target channel in the preset channel to be scanned, scanning the target channel in preset scanning time to obtain channel information of the preset channel to be scanned, switching the target channel back to the initial channel, outputting channel information based on the initial channel, switching the channels according to the channel information, scanning the preset channel to be scanned in preset time to obtain channel information of the preset channel to be scanned, switching back to the initial channel, outputting reply channel information based on the initial channel, and switching the channels according to the channel information, and the channel information is replied through the initial channel, so that the phenomenon that the user terminal equipment is actively disconnected because the user terminal equipment cannot receive a response signal for a long time due to overlong channel scanning time is avoided, and the technical effect that the user terminal equipment cannot be disconnected in the channel scanning process is realized.
Drawings
FIG. 1 is a schematic diagram of an apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a channel switching method according to a first embodiment of the present invention;
fig. 3 is a schematic diagram of a channel switching process according to an embodiment of the present invention;
fig. 4 is a schematic device structure diagram of the channel switching device of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The device of the embodiment of the present invention may be a Personal Computer (PC), a portable computer, a server, or other terminal device.
As shown in fig. 1, the channel switching apparatus may include: a processor 1001, such as a CPU (Central Processing Unit), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., WIreless-FIdelity (WI-FI).) and the Memory 1005 may be a high-speed Random Access Memory (RAM) Memory, a Non-Volatile Memory (NVM) such as a disk Memory, or a storage device independent of the processor 1001.
Optionally, the screen projection control device may further include a Radio Frequency (RF) circuit, a sensor, an audio circuit, and a WiFi module; an input unit such as a display screen, a touch screen; the network interface may optionally be other than WiFi, bluetooth, probe, etc. in the wireless interface.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a channel switching program.
In the device shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the screen projection control program stored in the memory 1005 and perform the following operations:
acquiring an initial channel of the wireless equipment, and acquiring a 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 preset scanning time to obtain channel information of the preset channel to be scanned;
re-switching the target channel to the initial channel;
and outputting the channel information based on the initial channel, and switching channels according to the channel information.
Based on the hardware structure, the invention provides various embodiments of the channel switching method.
An embodiment of the present invention provides a channel switching method, and referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of the channel switching method according to the present invention.
In this embodiment, the channel switching method includes:
step S10, acquiring an initial channel of the wireless device and acquiring a preset channel to be scanned;
at present, there are many limited conditions for automatic channel selection, for example, most of the automatic channel selection only works at the startup stage of the wireless device, and it takes a long time to perform channel scanning in the startup process of the wireless device, thereby affecting the startup time and user experience of the wireless device.
In the present embodiment, the channel is also referred to as a channel or a frequency band, and is a data signal transmission channel in which a wireless signal is used as a transmission carrier. The method includes the steps of obtaining an initial channel of the wireless device, obtaining a preset channel to be scanned, wherein the initial channel may be a current working channel after the wireless device is started or an optimal channel switched after the wireless device is started, the preset channel to be scanned is a preset channel to be scanned, for example, a 2.4G frequency band is divided into 13 channels, and europe/ETSI (European Telecommunications Standards Institute, European Telecommunications standardization Institute) Standards adopted in china use 1-13 channels. In this embodiment, the wireless device includes, but is not limited to, a wireless device such as a 5G, 2.4G or WiFi device, as long as there is an optional frequency range, and a device that needs to perform frequency switching is provided.
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 scanning time to obtain channel information of the preset channels 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.
In this embodiment, when the state of the initial channel is a congestion state, channel scanning is performed on a preset channel to be scanned to reselect an optimal channel, which specifically includes: switching an initial channel to a target channel in a preset channel to be scanned, performing channel scanning on the target channel within preset scanning time to obtain channel information of the target channel, ending channel scanning within the preset scanning time, and re-switching the target channel to the initial channel, and outputting the channel information based on the initial channel, that is, replying a Probe Response frame to a user equipment terminal connected to the current wireless equipment based on the initial channel, wherein the number of the preset scanning channels may be one or more, and when the number of the preset scanning channels is one, the preset scanning channel is taken as the target channel.
As another embodiment, a timer may be set, start timing when switching to the target channel, count channel information of the target channel, re-switch the target channel to the initial channel when a preset scanning time is reached, and reply channel information based on the initial channel.
In the embodiment, by acquiring an initial channel of the wireless device, acquiring a preset channel to be scanned, switching the initial channel to a target channel in the preset channel to be scanned, performing channel scanning on the target channel within a preset scanning time to obtain channel information of the target channel, re-switching the target channel to the initial channel, outputting channel information based on the initial channel, and performing channel switching according to the channel information, the embodiment re-switches to the initial channel after the scanning is completed by limiting the channel scanning time of the target channel, and replying the channel information through the initial channel, thereby avoiding a phenomenon that the user end device actively drops because the user end device cannot receive a response signal for a long time due to an overlong channel scanning time, thereby achieving a technical effect that the user end device does not drop during the channel scanning process, compared with the prior art that the startup time is affected by performing channel scanning during the wireless device startup process, according to the embodiment, the channel scanning is performed after the wireless equipment is started, so that the starting time of the wireless equipment can be shortened, and the customer experience is improved.
Further, before the step of switching the initial channel to the target channel in the preset channels to be scanned in step S20, the method further includes:
step A, if a plurality of preset channels to be scanned exist, determining other channels to be scanned which are not subjected to switching operation in all the preset channels to be scanned;
and B, if a plurality of other channels to be scanned exist, selecting one other channel to be scanned from the other channels to be scanned as a target channel.
In this embodiment, if there are a plurality of channels to be scanned, other channels to be scanned, which are not switched, in all the channels to be scanned are determined, and if there are a plurality of other channels to be scanned, one other channel to be scanned in each of the other channels to be scanned is selected as the target channel. The switching operation is a switching operation for switching the initial channel to the channel to be scanned for channel scanning, and after the channel to be scanned is switched for channel scanning each time, the channel to be scanned, which is not switched yet, in the channel to be scanned is continuously switched for channel scanning. As another embodiment, a preset channel scanning list may be obtained, and if the channel scanning list includes a plurality of preset channels to be scanned, the order of the preset channels to be scanned may be determined, for example, a first preset channel to be scanned in the sequence is determined as a target scanning channel, and the preset channels to be scanned are sequentially taken as the target scanning channels according to the sequence, and sequentially: switching an initial channel to a target channel, scanning the target channel within a preset scanning time to obtain channel information of the target channel, and switching the target channel to the initial channel again, namely scanning each preset channel to be scanned in sequence, switching to the initial channel after scanning of each preset channel to be scanned is finished, sequentially replying channel information of each preset channel to be scanned through the initial channel, namely performing a complete channel scanning step on each preset channel to be scanned, namely switching from the initial channel to the preset channel to be scanned, and switching to the initial channel after scanning is finished, for example, the preset channel to be scanned comprises a channel 1, a channel 2, a channel 3 and a channel 4, determining that the initial channel is a channel 1 at the moment, determining that the target scanning channel in the channel to be scanned is a channel 2, and switching the initial channel 1 to the target channel 2, and performing channel scanning on the target channel 2 within preset scanning time to acquire channel information of the target channel 2. And after the scanning is finished, switching the target channel 2 to the initial channel 1, further determining that the target channel is the channel 3, switching the initial channel 1 to the channel 3, and performing channel scanning on the channel 3 within the preset scanning time to acquire channel information of the channel 3. And switches channel 3 to initial channel 1 after the scan is completed, and so on to perform channel scan on channel 4. The target scanning channel determination may be sequentially determined in sequence, may be randomly determined, or may be in other manners, and is used to perform channel scanning on all preset channels to be scanned. In this embodiment, it may also be detected whether all the preset channels to be scanned have been scanned, and if not, the channel is switched to the next channel to be scanned, and the channel scanning operation is repeated.
In this embodiment, compared with a mode that all channels are scanned in the process of starting up the wireless device, or all user end devices need to be disconnected during channel scanning, after the starting up of the wireless device is finished, preset channels to be scanned are sequentially scanned, after each preset channel to be scanned is scanned, the preset channels to be scanned are switched to the initial channel, the user end devices are responded through the initial channel, the client end devices do not need to be disconnected, the scanning time of the preset channels to be scanned is further controlled, the problem that the user end devices are actively disconnected is solved, a channel scanning mechanism for preventing the user end devices from being disconnected is provided, the application scene of automatic channels is greatly expanded, and the user experience of products is improved.
Further, in step S40, the step of performing channel switching according to the channel information includes:
step D, counting channel information of each preset channel to be scanned, and acquiring the number of service set identifications in the channel information of each preset channel to be scanned and signal intensity corresponding to the service set identifications;
and E, determining the optimal channel in the preset channels to be scanned according to the number and the signal intensity, and switching the channels according to the optimal channel.
In this embodiment, after channel scanning is performed on a plurality of preset channels to be scanned respectively, channel information corresponding to each preset channel to be scanned is replied by an initial channel, and the channel information of each preset channel to be scanned is counted, the number of service set identifiers (SSID information) in the channel information of each preset channel to be scanned is obtained respectively, and signal strength (RSSI) corresponding to each service set identifier is obtained, it can be understood that one wireless device corresponds to only one service set identifier, that is, the number of wireless devices in each preset channel to be scanned and the signal strength corresponding to each wireless device are counted, according to the number of wireless devices in each preset channel to be scanned and the signal strength corresponding to each wireless device, an optimal channel in the preset channel to be scanned is obtained, and channel switching is performed according to the optimal channel.
Specifically, the number of service set identifiers of each preset channel to be scanned and the signal strength corresponding to the service set identifier thereof may be added to obtain a signal interference value, the larger the signal interference value is, the larger the congestion degree of the corresponding preset channel to be scanned is, the smaller the signal interference value is, the smaller the congestion degree of the preset channel to be scanned is, at this time, the optimal channel in the preset channel to be scanned is obtained through comparison, the optimal channel is the channel with the minimum signal interference value, and then channel switching is performed according to the optimal channel.
Further, in the step E, the step of performing channel switching according to the optimal channel includes:
and e1, feeding back the optimal channel to all customer premise equipment, and switching the initial channel to the optimal channel.
In this embodiment, all the ue devices are all the ue devices connected to the wireless device, after obtaining the optimal channel in the preset channel to be scanned, the optimal channel is fed back to all the ue devices connected to the current wireless device, that is, all the ue devices connected to the wireless device are notified that the current initial channel is to be switched to the optimal channel, the ue receives and records the optimal channel, and then switches the initial channel to the optimal channel, so that all the ue devices use the optimal channel to communicate with an AP (Access Point) device.
Generally, when performing automatic channel selection, all the user end devices are forced to be offline during channel scanning, and all the user end devices are also forced to be offline during channel switching, so that all the user end devices scan the wireless devices again, and the user end devices and the wireless devices are re-associated to communicate normally.
Further, in step S20, the step of performing channel scanning on the target channel within a preset scanning time includes:
step F, acquiring the time interval and the sending times of the detection message sent by the user terminal equipment;
and G, taking the product of the time interval and the sending times as the preset scanning time.
In this embodiment, since the protocol of the ue is specified, that is, if the ue does not receive a response within the preset time or the preset number of times, the ue will actively drop the line, in this embodiment, the time interval and the sending number of times of sending the probe packet by the ue are obtained, a product of the time interval and the sending number is used as the preset scanning time, and the target channel is scanned within the preset scanning time.
As shown in fig. 3, a current channel is detected, where the current channel is an initial channel, whether the current channel is relatively congested is determined, if the current channel is relatively congested, whether the current channel has just been switched (within a preset switching time) is further determined, if the current channel has not just been switched, it is indicated that a channel switching operation can be performed, a channel scanning list is obtained, the current channel is switched to a corresponding channel in the channel scanning list for scanning, and scanning is finished before a client is disconnected, at this time, scanning is finished before the client is disconnected, that is, scanning is finished within the preset scanning time, then switching to a working channel (initial channel) to reply a client detection message, and further whether all channels are scanned completely is detected, if all channels are scanned completely, a congestion condition of each channel is calculated through an algorithm, and a channel with the highest quality is selected according to a congestion condition of each channel, the method comprises the steps of selecting an optimal channel, informing a client of a channel to be switched, enabling the client to use a new optimal channel to communicate with an AP, and simultaneously, after the channel with the best quality is selected, not needing to switch the channel within a preset time, so that the wireless equipment enters sleep time, and enters the preset sleep time under the condition that the current channel is not blocked, and frequent switching is avoided.
In this embodiment, a limited scanning time is calculated according to the time interval and the number of times of sending the detection packet by the ue to control the scanning time for scanning the channel of the preset channel to be scanned, and the scanning is immediately switched to the initial channel after the scanning is completed.
Based on the first embodiment, a second embodiment of the channel switching method according to the present invention is provided, in this embodiment, before the step of acquiring the preset channel to be scanned in step S10, the method further 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 a congestion state, detecting whether channel switching exists in the initial channel within preset switching time.
Step J, if the initial channel does not have channel switching within the preset switching time, executing the following steps: and 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 congestion state, if the state of the initial channel is the congestion state, it indicates that the current initial channel is congested, channel scanning needs to be performed to scan out an optimal channel again for channel switching, it is detected whether channel switching exists in the initial channel within a preset switching time, where the preset switching time is a switching frequency of the channel, and if channel switching does not exist in the initial channel within the preset switching time, it indicates that channel switching has not been performed in the initial channel for a period of time, and a subsequent step of obtaining the preset channel to be scanned is performed. In this embodiment, when the state of the initial channel is a congestion state, the switching frequency of the initial channel is further detected, and when the initial channel has already been switched within the preset switching time, channel switching is not performed, thereby avoiding frequent channel switching.
In this embodiment, after an initial channel of a wireless device is acquired, whether the state of the initial channel is a congestion state is detected, if the state of the initial channel is not the congestion state, the wireless device sleeps, and after the wireless device sleeps for a preset sleep time, the congestion condition of the current initial channel is detected. In the embodiment, before the preset channel to be scanned is obtained, the congestion state of the initial channel is detected, and channel switching is not performed under the condition that the initial channel is not congested, so that frequent channel switching is avoided.
Further, in the step H, if it is detected that the state of the initial channel is the congestion state, the step includes:
h1, obtaining the received signal strength, the packet loss rate, the message retransmission times and the physical interface rate of the initial channel;
and h2, detecting whether the state of the initial channel is a congestion state according to the received signal strength indication, the packet loss rate, the message retransmission times and the physical interface rate.
In this embodiment, a timer may be set to detect the state of the initial channel at regular time, obtain the Received Signal Strength (RSSI), the packet loss rate, the number of times of packet retransmission, and the 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, the packet loss rate, the message retransmission times and the physical interface rate, wherein the Loss Rate (Loss Tolerance or Packet Loss Rate) refers to the ratio of the number of lost packets in the transmitted data group in the test, in this embodiment, the Received Signal Strength (RSSI), the packet loss rate, the number of retransmission of the packet, and the physical interface rate may reflect the congestion condition of the initial channel, and the larger the packet loss rate is, the larger the number of retransmission of the packet is, the unstable negotiation rate is, the state of the initial channel is indicated to be a congestion state, channel scanning is started, and other parameters which can reflect the congestion condition of the initial channel in the initial channel can be detected.
The user end equipment can be kept from being disconnected in the channel scanning process of the embodiment, but in the extremely short preset scanning time, the communication strength between the user end and the router is weak, the internet surfing experience of a user can be influenced, therefore, under the condition that the initial channel is switched in the preset switching time, the channel switching is not carried out, frequent channel switching is avoided, the customer experience is further improved, the application range of automatic channel selection is greatly improved, the product has better user experience, and the product performance is exerted to the maximum extent.
The present invention also provides a channel switching apparatus, as shown in fig. 4, the channel switching apparatus includes: the channel acquisition module A10 is used for acquiring an initial channel of the wireless device and acquiring a preset channel to be scanned; a channel scanning module a20, configured to switch the initial channel to a target channel in the preset channels to be scanned, and perform channel scanning on the target channel within a preset scanning time to obtain channel information of the preset channels to be scanned; a channel scanning module a20, further configured to re-switch the target channel to the initial channel; and 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 embodiment of the channel switching device of the present invention is basically the same as the embodiments of the channel switching method, and is not described herein again.
The present invention also provides a channel switching device, which is characterized in that the channel switching device comprises a memory, a processor, and a channel switching program stored on the memory and operable on the processor, and when executed by the processor, the channel switching program implements the steps of the channel switching method according to any one of the above embodiments. The specific embodiment of the channel switching device of the present invention is basically the same as the embodiments of the channel switching method described above, and will not be described herein again.
The present invention also provides a computer-readable storage medium having stored thereon a channel switching program, which when executed by a processor implements the steps of the channel switching method according to any of the above embodiments. The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the channel switching method described above, and is not described herein again.
It is to be understood that throughout the description of the present specification, reference to the term "one embodiment", "another embodiment", "other embodiments", or "first through nth embodiments", etc., is intended to mean that a particular 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 invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular 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, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A channel switching method, characterized in that the channel switching method comprises the steps of:
acquiring an initial channel of the wireless equipment, and acquiring a preset channel to be scanned;
switching the initial channel to a target channel in the preset channels to be scanned, and scanning the target channel within preset scanning time to obtain channel information of the target channel;
re-switching the target channel to the initial channel;
and outputting the channel information based on the initial channel, and switching channels according to the channel information.
2. The channel switching method according to claim 1, wherein the step of switching the initial channel to the target channel of the preset channels to be scanned is preceded by:
if a plurality of preset channels to be scanned exist, determining other channels to be scanned which are not subjected to switching operation in all the preset channels to be scanned;
and if a plurality of other channels to be scanned exist, selecting one other channel to be scanned from the other channels to be scanned as a target channel.
3. The channel switching method of claim 2, wherein the step of performing channel switching according to the channel information comprises:
counting channel information of each preset channel to be scanned, and acquiring the number of service set identifications in the channel information of each preset channel to be scanned and signal intensity corresponding to the service set identifications;
and determining the optimal channel in the preset channels to be scanned according to the number and the signal strength, and switching the channels according to the optimal channel.
4. The channel switching method of claim 3, wherein the step of performing channel switching according to the optimal channel comprises:
and feeding back the optimal channel to all user end equipment, and switching the initial channel to the optimal channel.
5. The channel switching method as claimed in claim 1, wherein the predetermined scanning time is a preset scanning time
Before the step of inter-scanning the target channel, the method includes:
acquiring the time interval and the sending times of the detection message sent by the user terminal equipment;
and taking the product of the time interval and the sending times as the preset scanning time.
6. The channel switching method of claim 1, wherein the step of obtaining the 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, detecting whether channel switching exists in the initial channel within preset switching time;
if the initial channel does not have channel switching within the preset switching time, executing the following steps: and acquiring a preset channel to be scanned.
7. The channel switching method as claimed in claim 6, wherein the step of detecting whether the state of the initial channel is a congestion state comprises:
acquiring the received signal strength, the packet loss rate, the message retransmission times and the physical interface rate of the initial channel;
and detecting whether the state of the initial channel is a congestion state or not according to the received signal strength indication, the packet loss rate, the message retransmission times and the physical interface rate.
8. A channel switching apparatus, characterized in that the channel switching apparatus comprises:
the channel acquisition module is used for acquiring an initial channel of the wireless equipment and acquiring a preset channel to be scanned;
the channel scanning module is used for switching the initial channel to a target channel in the preset channel to be scanned and scanning the channel of the target channel within preset scanning time to obtain channel information of the preset channel to be scanned;
a channel scanning module, configured to switch the target channel to the initial channel again;
and the channel switching module is used for outputting the channel information based on the initial channel and switching the channel according to the channel information.
9. A channel switching device, characterized in that the channel switching device comprises a memory, a processor, and a channel switching program stored on the memory and executable on the processor, the channel switching program being configured to implement the steps of the channel switching method according to any one of claims 1 to 7.
10. A computer-readable storage medium, having a channel switching program stored thereon, which when executed by a processor implements the steps of the channel switching method of any one of claims 1 to 7.
CN202111638850.0A 2021-12-28 2021-12-28 Channel switching method, device, equipment and computer readable storage medium Pending CN114096003A (en)

Priority Applications (2)

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

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
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
CN114096003A true CN114096003A (en) 2022-02-25

Family

ID=80308215

Family Applications (1)

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

Country Status (2)

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

Cited By (1)

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

Family Cites Families (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
US8929328B2 (en) * 2007-02-02 2015-01-06 Microsoft Corporation Decoupling scanning from handoff for reduced delay over wireless LAN
CN103596228B (en) * 2013-11-19 2016-12-07 福建星网锐捷网络有限公司 A kind of wireless channel switching method and device
CN111988101B (en) * 2019-05-23 2022-08-05 杭州海康威视数字技术股份有限公司 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

Cited By (1)

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

Also Published As

Publication number Publication date
WO2023124835A1 (en) 2023-07-06

Similar Documents

Publication Publication Date Title
CN111867001B (en) Intelligent equipment batch network distribution method, system and storage medium
CN111867007A (en) Automatic network distribution method and system for intelligent equipment and storage medium
US7366511B2 (en) Apparatus, and associated method, for facilitating network scanning by a WLAN terminal operable in a multiple-network WLAN system
US9860926B2 (en) Network discovery in wireless network
CN106851776B (en) Method for accessing equipment to network, access point, network access equipment and system
US10397859B2 (en) Wireless network access
US20140328334A1 (en) Provisioning a wireless device for secure communication using an access point designed with push-button mode of wps (wi-fi protected setup)
CN111934961B (en) Intelligent household network configuration method, equipment and computer readable storage medium
US10425888B2 (en) Wireless communication apparatus and method of controlling wireless communication apparatus
US20110003592A1 (en) Control Method of Wireless Communication Terminal and Wireless Communication Terminal
CN114423057B (en) Channel switching method, device, AP equipment and storage medium
CN114096003A (en) Channel switching method, device, equipment and computer readable storage medium
CN115708379A (en) Switching control method and device of user terminal and computer readable storage medium
CN111954199A (en) Wireless network access method, mobile terminal and readable storage medium
EP4178266A1 (en) Communication method, apparatus, and system in wireless local area network
CN110708732A (en) Method and terminal for dynamically self-adapting network switching
JP2011504321A (en) Method, apparatus, and computer program for configuring a network by dynamically utilizing channel bandwidth to provide support and power saving for legacy equipment
CN111432395B (en) Roaming control method and device
WO2023078341A1 (en) Roaming method and apparatus for wireless terminal
EP3060008A1 (en) Controlling discoverability
US20220225108A1 (en) Channel indication sending method, channel scanning method, and apparatus
CN111181668A (en) Information acquisition method and device
US10045361B2 (en) Method, apparatus, and system for establishing cooperative communication
CN108495299B (en) Method and device for receiving service information and multimode terminal
CN112105070B (en) Channel switching method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination