CN109951881B - Channel switching method, terminal equipment and routing equipment - Google Patents

Channel switching method, terminal equipment and routing equipment Download PDF

Info

Publication number
CN109951881B
CN109951881B CN201910234335.2A CN201910234335A CN109951881B CN 109951881 B CN109951881 B CN 109951881B CN 201910234335 A CN201910234335 A CN 201910234335A CN 109951881 B CN109951881 B CN 109951881B
Authority
CN
China
Prior art keywords
access point
channel
terminal device
routing
routing device
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.)
Active
Application number
CN201910234335.2A
Other languages
Chinese (zh)
Other versions
CN109951881A (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910234335.2A priority Critical patent/CN109951881B/en
Publication of CN109951881A publication Critical patent/CN109951881A/en
Application granted granted Critical
Publication of CN109951881B publication Critical patent/CN109951881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a channel switching method, a terminal device and a routing device, wherein the method comprises the following steps: under the condition that the terminal equipment performs information transmission with routing equipment on a first channel through a first access point, if the terminal equipment detects that a target application program is started, sending a channel switching request message to the routing equipment, wherein the routing equipment is also provided with a second access point in a dormant state; under the condition of receiving a first response message sent by the routing equipment, switching from the first access point to the second access point in a working state; the first response message carries information of the second access point, and a working channel of the second access point is a second channel. The channel switching method provided by the invention can be realized by switching the access points working in different channels, so that the time for the current access point to reconfigure the working channel is not required to be waited, and higher switching efficiency and better communication quality are achieved.

Description

Channel switching method, terminal equipment and routing equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a channel switching method, a terminal device, and a routing device.
Background
With the continuous development of mobile communication technology, mobile internet access becomes very common, and users often use terminal devices such as mobile phones to perform various transactions, such as online games, video watching or video call, and the like, which all can not leave the network. At present, when a user uses a terminal device, the user often uses Wireless Fidelity (Wi-Fi for short) to perform network connection, but the Wi-Fi network environment easily affects the network connection situation of the terminal device, and further affects the operation experience of the user, wherein one of the factors affecting the Wi-Fi network environment is channel interference.
In the prior art, some wireless routers may periodically switch channels for a terminal device to enable a current access point to communicate on a channel with less interference, for example, the current access point of the terminal device is switched from a channel 1 to a channel 6, at this time, the access point may disconnect the connection with the terminal device first to perform channel switching, and reestablish the connection with the terminal device after the channel switching is completed, which is equivalent to that the terminal device has undergone a process of waiting for the restart of the access point. Therefore, the channel switching process lasts for a long time, and the terminal device is disconnected from the communication with the wireless router in the process, so that the experience of the user using the terminal device is greatly influenced.
Therefore, the existing channel switching method has the problem that the communication quality is poor due to low switching efficiency.
Disclosure of Invention
The embodiment of the invention provides a channel switching method, terminal equipment and routing equipment, and aims to solve the problem that the existing channel switching method is poor in communication quality due to low switching efficiency.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a channel switching method, which is applied to a terminal device, and the method includes:
under the condition that the terminal equipment performs information transmission with routing equipment on a first channel through a first access point, if the terminal equipment detects that a target application program is started, sending a channel switching request message to the routing equipment, wherein the routing equipment is also provided with a second access point in a dormant state;
and switching to the second access point in a working state from the first access point under the condition of receiving a first response message sent by the routing device, wherein the first response message carries information of the second access point, and a working channel of the second access point is a second channel.
In a second aspect, an embodiment of the present invention provides a channel switching method, which is applied to a routing device, where the routing device performs information transmission with a terminal device in a first channel through a first access point, and the routing device further has a second access point in a dormant state, and the method includes:
receiving a channel switching request message sent by the terminal equipment;
responding to the channel switching request message, waking up a second access point of the routing equipment, and enabling the second access point to work in a second channel;
and sending a first response message carrying the information of the second access point to the terminal equipment.
In a third aspect, an embodiment of the present invention provides a terminal device, including:
a sending module, configured to send a channel switching request message to a routing device if it is detected that a target application is started when the terminal device performs information transmission with the routing device in a first channel through a first access point, where the routing device further has a second access point in a dormant state;
a switching module, configured to switch from the first access point to the second access point in a working state when receiving a first response message sent by the routing device, where the first response message carries information of the second access point, and a working channel of the second access point is a second channel.
In a fourth aspect, an embodiment of the present invention provides a routing device, where the routing device performs information transmission with a terminal device in a first channel through a first access point, the routing device further has a second access point in a dormant state, and the routing device includes:
a receiving module, configured to receive a channel switching request message sent by the terminal device;
a determining module, configured to wake up a second access point of the routing device in response to the channel switching request message, and enable the second access point to operate in a second channel;
a first sending module, configured to send, to the terminal device, a first response message carrying information of the second access point.
In a fifth aspect, an embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps in the channel switching method according to the first aspect.
In a sixth aspect, an embodiment of the present invention provides a routing device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when the computer program is executed by the processor, the steps in the channel switching method according to the second aspect are implemented.
In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps in the channel switching method according to the first aspect.
In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps in the channel switching method according to the second aspect.
In the embodiment of the present invention, when detecting that a target application program is started, a terminal device may send a channel switching request message to a routing device, so that the routing device wakes up a second access point in a dormant state in response to the request message, enables the second access point to operate in a second channel, and sends information of the second access point to the terminal device, and after receiving a response message containing information of the second access point sent by the routing device, the terminal device may switch from a currently connected first access point to the second access point, thereby implementing fast switching from the first channel to the second channel. Therefore, the terminal equipment does not need to wait for the current access point to reconfigure the channel, so that the terminal equipment does not need to wait for a long time in the channel switching process, and further has higher switching efficiency and better communication quality.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a channel switching method according to an embodiment of the present invention;
fig. 2 is a flowchart of another channel switching method according to an embodiment of the present invention;
fig. 3 is a flowchart of channel switching at a terminal device side according to an embodiment of the present invention;
fig. 4 is a flow chart of channel switching at the routing device side according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating negotiation between a terminal device and a wireless router during a channel switching process according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 7a is a schematic structural diagram of another terminal device provided in the embodiment of the present invention;
fig. 7b is a schematic structural diagram of another terminal device provided in the embodiment of the present invention;
fig. 8 is a schematic structural diagram of another terminal device provided in the embodiment of the present invention;
fig. 9 is a schematic structural diagram of a routing device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a wake-up module of a routing device according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a determining submodule of a routing device according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of another routing device according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of another routing device according to an embodiment of the present invention;
fig. 14 is a schematic hardware structure diagram of a terminal device according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of another routing device according to an embodiment of the present invention.
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 some, not all, embodiments of the present invention. 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.
Referring to fig. 1, fig. 1 is a flowchart of a channel switching method provided in an embodiment of the present invention, and is applied to a terminal device, as shown in fig. 1, the method includes the following steps:
step 101, under the condition that the terminal device performs information transmission with a routing device in a first channel through a first access point, if it is detected that a target application program is started, sending a channel switching request message to the routing device, wherein the routing device further has a second access point in a dormant state.
In the embodiment of the present invention, the terminal device and the routing device establish a communication connection, and the terminal device and the routing device currently perform information transmission on a first channel through a first access point, where the routing device may be a wireless router or other devices with a WIFI hotspot function, and the first access point is an access point configured for the routing device.
The target application program may be an application program with a high requirement on network communication quality, such as a game application program, a video playing application program, a video call application program, and the like, and especially, a network online game application program has a high requirement on network communication quality, and if a stuck phenomenon occurs due to network interference during a game process, game experience of a user is greatly affected.
In this embodiment, at least one application installed on the terminal device may be preset as the target application, for example, the terminal device may establish a network optimization white list, and add some types of applications to the network optimization white list by default, or a user may add some applications, which are expected to obtain better communication quality, to the network optimization white list according to a requirement of the user, so that any application in the network optimization white list may be the target application.
The detecting that the target application program is started may be detecting an operation of starting the target application program, or detecting that the target application program is in a foreground display state.
In this step, a channel switching request message may be sent to a routing device, where the channel switching request may be used to indicate the routing device, the terminal device needs to switch to another communication channel and needs to provide a second access point operating in the second channel for the routing device, where the terminal device and the routing device may define a message parsing rule in advance, so that when receiving a message sent by an opposite party, the terminal device and the routing device may respond to the message and perform corresponding operations.
The second access point may be an un-activated access point that is pre-reserved by the routing device for the terminal device, and when receiving a channel switching request message sent by the terminal device, the second access point may be activated, that is, the second access point in a dormant state is awakened, and a working channel of the second access point is configured, specifically, a second channel other than the first channel in channels that can be used by the terminal device may be used as the working channel of the second access point, for example, a second channel with better communication quality than the first channel is used as the working channel of the second access point.
After receiving the channel switching request message, the routing device may determine a second channel in response to the channel switching request message, where the second channel may be a channel with better communication quality than the first channel, such as a channel with less interference, or a channel with less number of access terminal devices.
Preferably, the communication quality of the second channel is better than the communication quality of the first channel. In this way, after receiving the channel switching request message, the routing device may determine the second channel with better communication quality than the first channel, and specifically, the routing device may determine the second channel with better communication quality by detecting the communication qualities of at least two channels, where the better communication quality may be that the transmission rate of the channel is higher, the interference is less, or the packet loss phenomenon is less, and the like.
In this embodiment of the present invention, the routing device may calculate a Signal to Interference plus Noise Ratio (SINR) of each channel by detecting the number of access points corresponding to each channel of at least two channels and the information of the packet signals transmitted and received by each access point, and further determining a second channel of the at least two channels having a higher SINR value than the first channel, wherein the at least two channels may be at least two channels in an operating frequency band supported by the routing device, for example, the routing device supports a 2.4G frequency band, the at least two channels may be any two or more of 1 channel to 13 channels, the routing device supports a 5G band, the at least two channels may be any two or more than two of the partial channels of 36 to 165 channels supported by the routing device.
The number of access points corresponding to each of the at least two channels may include the number of access points of the routing device on each channel and the number of access points of other routing devices on each channel, that is, the routing device may detect the number of access points of itself and other routing devices nearby on each channel. The information of the transmission/reception packet signal of each access point may be information such as the transmission/reception packet signal strength or signal interference condition of each access point. The calculating the SINR of each channel may be calculated according to a signal to interference plus noise ratio calculation formula according to the detected number of access points corresponding to each channel of the at least two channels and the transceiving packet signal information of each access point.
After obtaining the SINR of each channel, a second channel of the at least two channels with SINR higher than that of the first channel may be determined, preferably, the second channel may be any channel of the at least two channels with SINR higher than that of the first channel, and may also be a channel with the highest SINR among the at least two channels, so as to ensure that the terminal device can switch to a channel with better communication quality.
It should be noted that, to ensure that the terminal device can directly switch to the channel with the best current communication quality, the routing device may detect the communication quality of each channel in the frequency bands supported by the routing device, so as to determine the second channel with the best communication quality (e.g., the highest SINR).
Step 102, under the condition of receiving a first response message sent by the routing device, switching from the first access point to the second access point in a working state;
the first response message carries information of the second access point, and a working channel of the second access point is a second channel.
After receiving the channel switching request message, the routing device may wake up the second access point in the dormant state, and configure a working channel of the second access point, for example, the second channel is used as the working channel of the second access point, so that the terminal device can complete channel switching by switching access points, reduce channel switching time, and provide switching efficiency.
After configuring the second access point, the terminal device may send a first response message carrying information of the second access point to the terminal device, and when receiving the first response message, the terminal device may switch from the first access point to the second access point according to the information of the second access point, that is, after disconnecting from the first access point, connection with the second access point is established, and after completing switching of the access points, the terminal device also switches from the first channel to the second channel.
The information of the second access point may include Basic information such as a Basic Service Set Identifier (BSSID), a Service Set Identifier (SSID), and a channel value of the second access point, where the BSSID may indicate an address of the second access point, the SSID may indicate a name of the second access point, and the channel value indicates a working channel of the second access point, that is, which channel the second channel is specifically. The terminal device may send an access request message to the second access point before disconnecting from the first access point according to the information of the second access point, and establish a connection with the second access point when receiving a message of agreeing to establish a connection sent by the second access point.
In this way, since the second access point and the routing device perform information transmission on the second channel, the connection with the second access point can be quickly established after the connection with the first access point is disconnected, and the waiting for the channel switching time of the second access point is not needed, which is equivalent to omitting the restarting step of the access point, so that the time for the terminal device to perform channel switching can be greatly reduced, the switching efficiency is improved, and the terminal device does not have an obvious pause phenomenon in the running process of the target application program.
Optionally, the step 101 includes:
under the condition that the terminal equipment performs information transmission with routing equipment through a first access point on a first channel, if the terminal equipment detects that a target application program is started, sending a first data frame to the routing equipment, wherein the first data frame comprises a first control bit, and the first control bit is used for indicating the routing equipment to provide an access point to be switched for the terminal equipment;
the step 102 comprises:
and under the condition of receiving a second data frame sent by the routing equipment, switching from the first access point to the second access point in the working state, wherein the second data frame comprises the information of the second access point.
In this embodiment, the terminal device and the routing device may agree to use a custom data frame to represent the channel switching request message and the channel switching response message. In this way, when it is detected that the target application program is started, the terminal device may send a first data frame to the routing device, where the first data frame includes a first control bit, and the first control bit is used to instruct the routing device to provide an access point to be switched for the terminal device, so that when the routing device receives the first data frame, it can know that the terminal device needs to perform channel switching.
After the routing device configures a second access point operating in the second channel, a second data frame including information of the second access point may be sent to the terminal device to indicate that the terminal device may be handed over from the first access point to the second access point.
Further, the second data frame may further include a second control bit, where the second control bit is used to indicate that the switchable access point exists in the terminal device. In this way, when the terminal device receives the second data frame, it can know that a channel with better communication quality exists and a switchable access point exists currently.
In order to distinguish the type of the message sent between the terminal device and the routing device, a message related to channel switching sent between the terminal device and the routing device may be named, for example, a gamming bit, and when the terminal device needs to send the first data frame, the value of the gamming bit may be set to 1, that is, the first control bit is a gamming bit containing a value of 1; when the routing device needs to send the second data frame, the value of the timing bit may be set to 2, that is, the second control bit is a timing bit containing a value of 2.
In this way, in this embodiment, the terminal device and the routing device may complete channel switching by sending data frames, so that the message sent between the terminal device and the routing device has the characteristics of simple data structure, high transmission speed, and the like, and is easy to parse and not prone to errors.
Optionally, after the step 101, the method further includes:
maintaining the connection with the first access point on the condition that a second response message sent by the routing equipment is received, wherein the second response message is used for indicating that the first channel is an optimal channel or no switchable access point exists; or
And under the condition that the response message sent by the routing equipment is not received within the preset time length, the connection with the first access point is kept.
In this embodiment, when the routing device detects that the communication quality of the at least two channels is worse than that of the first channel, or detects that the communication quality of the first channel in all the channels supported by the routing device is optimal, or detects that there is no available second access point (for example, the second access point has abnormality or failure), the routing device may send a second response message to the terminal device to indicate that the first channel is the optimal channel or there is no switchable access point, so that the terminal device does not need to switch channels but maintains a connection with the first access point. Specifically, a third data frame including a third control bit may be sent to the terminal device, for example, when the routing device needs to send the third data frame, the value of the timing bit may be set to 3, that is, the third control bit is a timing bit including a value of 3.
When the routing device fails to send a response message or fails to send a response message due to transient fault or interference in communication between the terminal device and the routing device, the terminal device can keep connection with the first access point, and the influence on user operation experience due to network disconnection is avoided.
In this way, when it is determined that there is no switchable channel or access point currently, or when the response message sent by the routing device is not received after timeout, the connection with the first access point can be maintained, so that a situation that a network is disconnected due to channel switching failure can be avoided.
Optionally, after the step 102, the method further includes:
disconnecting the connection with the second access point upon detecting that the target application has been closed.
In this embodiment, when it is detected that the target application is closed, for example, the target application is exited or switched to the background, the connection with the second access point may be disconnected, and the connection with the first access point may be reestablished, so that the second access point may be released, so that when the channel needs to be switched next time, the second access point is configured to operate in the better channel again, and the channel with better communication quality is switched to by switching to the second access point.
In this way, because the network environments at different times are different, the second channel on which the second access point operates is better at the current time, but the communication quality of the second channel does not always keep better with the change of the network environment, so that the connection with the second access point can be disconnected when the terminal device no longer requires higher network communication quality, and thus when the channel needs to be switched next time, the second access point can be reconfigured to operate on a better or optimal channel, and the terminal device can be ensured to be switched to a channel with a better channel when needed.
In addition, after detecting that the terminal device is disconnected from the second access point, the routing device may close the second access point, and continue to use the second access point as a reserved access point when a channel needs to be switched, so that when the channel needs to be switched next time, the second access point is configured to work in a better or more better channel again, which not only ensures that the terminal device transmits information on a channel with less interference, but also enables the terminal device to quickly realize channel switching through the switched access point.
It should be noted that the terminal device may perform channel switching when detecting the operation of starting the target application program, so that the terminal device completes channel switching when the user formally uses the target application program, thereby greatly improving the user experience of the user, and avoiding that the terminal device momentarily affects the network quality due to channel switching in the process of using the target application program (for example, in the game process) by the user.
It should be further noted that, when an Access Controller (AC) is deployed in the network communication architecture between the terminal device and the routing device, that is, both the first Access point and the second Access point are controlled by the AC, the terminal device may implement seamless roaming, that is, the switching time for switching the Access points may be controlled at millisecond level, so that packets are not substantially dropped, and no pause is experienced in service operation.
The routing device may detect the communication quality of each of at least two channels in real time or at regular intervals to determine a channel with better or optimal communication quality, and use the channel as a use channel of another access point different from the current access point, and actively send a message carrying information of the access point to the terminal device, so that the terminal device is switched to a better channel by switching to the access point.
In this embodiment of the present invention, the terminal device may be any device having a storage medium, for example: terminal devices such as computers (Computer), Mobile phones, Tablet Personal computers (Tablet Personal Computer), Laptop computers (Laptop Computer), Personal Digital Assistants (PDA), Mobile Internet Devices (MID), and Wearable devices (Wearable Device).
In the channel switching method in this embodiment, when detecting that the target application program is started, the terminal device may send a channel switching request message to the routing device, so that the routing device wakes up the second access point in the dormant state in response to the request message, and causes the second access point to operate in the second channel, and sends information of the second access point to the terminal device, and after receiving a response message that includes information of the second access point and is sent by the routing device, the terminal device may switch from the currently connected first access point to the second access point that operates in the second channel, thereby implementing fast switching from the first channel to the second channel. Therefore, the terminal equipment does not need to wait for the current access point to reconfigure the channel, so that the terminal equipment does not need to wait for a long time in the channel switching process, and further has higher switching efficiency and better communication quality.
Referring to fig. 2, fig. 2 is a flowchart of another channel switching method provided in an embodiment of the present invention, which is applied to a routing device, where the routing device performs information transmission with a terminal device in a first channel through a first access point, and the routing device further has a second access point in a dormant state, as shown in fig. 2, the method includes the following steps:
step 201, receiving a channel switching request message sent by a terminal device.
Step 202, responding to the channel switching request message, waking up a second access point of the routing device, and enabling the second access point to work in a second channel.
Optionally, the step 202 includes:
determining a second channel having a better communication quality than the first channel in response to the channel switching request message;
and waking up a second access point of the routing equipment, and enabling the second access point to work in the second channel.
Optionally, the determining the second channel with better communication quality than the first channel includes:
detecting the number of access points corresponding to each channel in at least two channels and the transceiving packet signal information of each access point, and calculating the signal to interference plus noise ratio (SINR) of each channel;
a second channel is determined having a higher signal to interference plus noise ratio, SINR, than the first channel.
Step 203, sending a first response message carrying the information of the second access point to the terminal device.
Optionally, step 201 includes:
receiving a first data frame sent by the terminal device, wherein the first data frame comprises a first control bit, and the first control bit is used for indicating the routing device to provide an access point to be switched for the terminal device;
the step 203 comprises:
and sending a second data frame to the terminal equipment, wherein the second data frame comprises information of a second access point of the routing equipment.
Optionally, the second data frame further includes a second control bit, where the second control bit is used to indicate that a switchable access point exists in the terminal device.
Optionally, after step 201, the method further includes:
and under the condition that the communication quality of the first channel is better than that of other channels which can be used by the routing equipment, sending a second response message to the terminal equipment, wherein the second response message is used for indicating that the first channel is an optimal channel.
Optionally, after step 203, the method further includes:
and closing the second access point under the condition that the second access point is detected to be disconnected with the terminal equipment.
It should be noted that, in this embodiment, the routing device is used as a routing device corresponding to the embodiment shown in fig. 1, and for avoiding repetition, detailed descriptions thereof may be referred to in the embodiment shown in fig. 1.
In the channel switching method in this embodiment, after receiving a channel switching request message sent by a terminal device, a routing device may wake up a second access point in response to the request message, configure a working channel of the second access point as a second channel, and send information of the second access point to the terminal device, so that the terminal device switches from a currently connected first access point to a second access point working in the second channel after receiving the information of the second access point, thereby implementing fast switching from the first channel to the second channel. Therefore, the terminal equipment does not need to wait for the current access point to reconfigure the working channel, so that the terminal equipment does not need to wait for a long time in the channel switching process, and the terminal equipment is ensured to have higher switching efficiency and better communication quality.
The following describes, with reference to fig. 3 to fig. 5, a channel switching method in an embodiment of the present invention by taking an example that a terminal device is connected to a wireless router through a first access point AP1 and performs information transmission with the wireless router on a first channel CH 1.
Referring to fig. 3, fig. 3 is a flow chart of channel switching at the terminal device side, including the following steps:
step 301, start an online game application.
Step 302, judging whether the started online game application program is in a network optimization white list;
in this step, if yes, step 303 is executed, otherwise, the process is ended.
Step 303, sending the data frame containing the timing bit of 1 to the wireless router.
Step 304, judging whether a reply message of the wireless router is received;
in this step, if yes, step 306 is executed, otherwise, step 305 is executed.
Step 305, judging whether a reply message is not received after the preset time length is exceeded;
in this step, if yes, the flow ends, otherwise, the process returns to step 304.
Step 306, determining whether the wireless router supports and enables a second access point AP2 through the received reply message, wherein the second access point operates in a second channel CH2 with better communication quality than the first channel CH 1;
if the received reply message is a data frame containing a timing bit of 2, determining that the wireless router supports and enables the second access point AP2, and if the received reply message is a data frame containing a timing bit of 3, determining that the wireless router does not support or enable the second access point AP 2;
in this step, if yes, step 307 is executed, otherwise, the process is ended.
Step 307, switching from the first access point AP1 to the second access point AP2, enables switching from the first channel CH1 to the second channel CH 2.
Referring to fig. 4, fig. 4 is a flow chart of channel switching at the wireless router side, including the following steps:
step 401, judging whether a data frame with a timing bit of 1 sent by a terminal device is received;
in this step, if yes, step 402 is executed, otherwise, the process is ended.
Step 402, determining whether the function of enabling the second access point AP2 is supported.
In this step, if yes, step 403 is executed, otherwise, the process is ended.
Step 403, detecting each channel, calculating SINR of each channel, and determining a second channel CH2 with the highest SINR.
Step 404, determining whether the second channel CH2 has the same channel value as the first channel CH 1;
in this step, if the two are the same, step 405 is executed, otherwise step 406 is executed.
And step 405, sending the data frame with the timing bit of 3 to the terminal equipment.
Step 406, the second AP2 is turned on, and the second channel CH2 is used as the working channel of the second AP2, i.e., the second AP 2.
Step 407, sending the data frame with timing bit 2 and containing the information of the second access point AP2 to the terminal device.
Referring to fig. 5, fig. 5 is a negotiation flow chart when the terminal device interacts with the first access point AP1 and the second access point AP2 of the wireless router:
when a user selects to establish connection with a first access point AP1 of the wireless router on the terminal equipment, the terminal equipment sends a connection request to the first access point AP 1;
after responding to the connection request, the first access point AP1 establishes a communication connection with the terminal device and performs information transmission on the first channel CH 1;
when a user starts a game application program on the terminal equipment, the terminal equipment sends a channel switching request enabling a second access point AP2 to a first access point AP 1;
responding to the enabling request, the first access point AP1 probes access points on each channel, calculates SINR of each channel, and determines a second channel CH2 with highest SINR, namely, least interference;
opening a second access point AP2 and using a second channel CH2 as a working channel of the second access point AP 2;
after enabling the second access point AP2 to complete, sending a data frame containing information of the second access point AP2 to the terminal device;
the terminal device sends a disconnection request to the first access point AP1, and the first access point AP1 responds to the disconnection request and then disconnects the terminal device;
the terminal equipment sends a connection request to the second access point AP2, the second access point AP1 responds to the connection request, then communication connection is established with the terminal equipment, and the terminal equipment completes channel switching;
the user plays games on the terminal equipment, after the games are finished, a disconnection request is sent to the second access point AP2, the second access point AP2 responds to the disconnection request, then the connection with the terminal equipment is disconnected, and the second access point AP2 is closed;
the terminal device sends a connection request to the first access point AP1 again, and the first access point AP1 establishes a communication connection with the terminal device after responding to the connection request.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, and as shown in fig. 6, the terminal device 600 includes:
a sending module 601, configured to send a channel switching request message to a routing device when the terminal device 600 performs information transmission with the routing device through a first access point in a first channel and detects that a target application is started, where the routing device further has a second access point in a dormant state;
a switching module 602, configured to switch from the first access point to the second access point in an operating state when receiving the first response message sent by the routing device;
the first response message carries information of the second access point, and a working channel of the second access point is a second channel.
Optionally, the sending module 601 is configured to send a first data frame to the routing device, where the first data frame includes a first control bit, and the first control bit is used to instruct the routing device to provide an access point to be switched for the terminal device 600;
the switching module 602 is configured to switch from the first access point to a second access point of the routing device when a second data frame sent by the routing device is received, where the second data frame includes information of the second access point.
Optionally, the second data frame further includes a second control bit, where the second control bit is used to indicate that the terminal device 600 has a switchable access point.
Optionally, as shown in fig. 7a and 7b, the terminal device 600 further includes:
a first control module 603, configured to maintain a connection with the first access point when receiving a second response message sent by the routing device, where the second response message is used to indicate that the first channel is an optimal channel or there is no switchable access point; or
A second control module 604, configured to maintain connection with the first access point when a response message sent by the routing device is not received within a preset time period.
Optionally, as shown in fig. 8, the terminal device 600 further includes:
a third control module 605, configured to disconnect the second access point when detecting that the target application is closed.
The terminal device 600 can implement each process implemented by the terminal device in the method embodiments of fig. 1 to fig. 5, and is not described herein again to avoid repetition. The terminal device 600 of the embodiment of the present invention may send a channel switching request message to the routing device when detecting that the target application program is started, wake up the second access point in the dormant state, enable the second access point to operate in the second channel, and send information of the second access point to the terminal device 600, after receiving a response message containing information of the second access point sent by the routing device, the terminal device 600 may switch from the currently connected first access point to the second access point operating in the second channel, thereby implementing fast switching from the first channel to the second channel. In this way, the terminal device 600 does not need to wait for the current access point to reconfigure the channel, so that a long time does not need to wait in the channel switching process, and higher switching efficiency and better communication quality are achieved.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a routing device according to an embodiment of the present invention, where the routing device 900 performs information transmission with a terminal device in a first channel through a first access point, and the routing device 900 further has a second access point in a dormant state, as shown in fig. 9, the routing device 900 includes:
a receiving module 901, configured to receive a channel switching request message sent by the terminal device;
a wake-up module 902, configured to wake up a second access point of the routing device 900 in response to the channel switching request message, and enable the second access point to operate in a second channel;
a first sending module 903, configured to send a first response message carrying the information of the second access point to the terminal device.
Optionally, as shown in fig. 10, the wake-up module 902 includes:
a determining sub-module 9021, configured to determine, in response to the channel switching request message, a second channel with better communication quality than the first channel;
and a wake-up submodule 9022, configured to wake up a second access point of the routing device 900, and enable the second access point to operate in the second channel.
Optionally, as shown in fig. 11, the determining sub-module 9021 includes:
a detecting and calculating unit 90211, configured to detect the number of access points corresponding to each of at least two channels and the transceiving packet signal information of each access point, and calculate a signal to interference plus noise ratio SINR of each channel;
a determining unit 90212, configured to determine a second channel with a higher signal to interference plus noise ratio SINR than the first channel.
Optionally, the receiving module 901 is configured to receive a first data frame sent by the terminal device, where the first data frame includes a first control bit, and the first control bit is used to instruct the routing device 900 to provide an access point to be switched for the terminal device;
the first sending module 902 is configured to send a second data frame to the terminal device, where the second data frame includes information of a second access point of the routing device 900.
Optionally, the second data frame further includes a second control bit, where the second control bit is used to indicate that a switchable access point exists in the terminal device.
Optionally, as shown in fig. 12, the routing device 900 further includes:
a second sending module 904, configured to send a second response message to the terminal device when it is determined that the communication quality of the first channel is better than that of the other channels that can be used by the routing device, where the second response message is used to indicate that the first channel is an optimal channel.
Optionally, as shown in fig. 13, the routing device 900 further includes:
a closing module 905, configured to close the second access point when it is detected that the second access point is disconnected from the terminal device.
The routing device 900 can implement each process implemented by the routing device in the method embodiments of fig. 1 to fig. 5, and is not described here again to avoid repetition. After receiving the channel switching request message sent by the terminal device, the routing device 900 in the embodiment of the present invention may wake up the second access point in response to the request message, configure the working channel of the second access point as the second channel, and send the information of the second access point to the terminal device, so that the terminal device switches from the currently connected first access point to the second access point working in the second channel after receiving the information of the second access point, thereby implementing fast switching from the first channel to the second channel. Therefore, the terminal equipment does not need to wait for the current access point to reconfigure the working channel, so that the terminal equipment does not need to wait for a long time in the channel switching process, and the terminal equipment can be ensured to have higher switching efficiency and better communication quality.
Referring to fig. 14, fig. 14 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention, where the terminal device 1400 performs information transmission with a routing device in a first channel through a first access point, and the terminal device 1400 includes, but is not limited to: radio frequency unit 1401, network module 1402, audio output unit 1403, input unit 1404, sensor 1405, display unit 1406, user input unit 1407, interface unit 1408, memory 1409, processor 1410, and power supply 1411. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 14 is not intended to be limiting, and that terminal devices may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The radio frequency unit 1401 is configured to, when the terminal device 1400 performs information transmission with a routing device through a first access point in a first channel, send a channel switching request message to the routing device if it is detected that a target application program is started, where the routing device further has a second access point in a dormant state;
a processor 1410, configured to switch from the first access point to the second access point in an operating state in a case that the radio frequency unit 1401 receives the first reply message sent by the routing device;
the first response message carries information of the second access point, and a working channel of the second access point is a second channel.
Further, the radio frequency unit 1401 is configured to:
sending a first data frame to the routing device, where the first data frame includes a first control bit, and the first control bit is used to instruct the routing device to provide an access point to be switched for the terminal device 1400;
processor 1410 is configured to:
when the radio frequency unit 1401 receives a second data frame sent by the routing device, the second data frame is switched from the first access point to a second access point of the routing device, and the second data frame includes information of the second access point.
Further, the second data frame further includes a second control bit, which is used to indicate that the terminal device 1400 has a switchable access point.
Further, the processor 1410 is further configured to:
under the condition that a radio frequency unit 1401 receives a second response message sent by the routing device, the connection with the first access point is maintained, and the second response message is used for indicating that the first channel is an optimal channel or no switchable access point exists; or
And when the radio frequency unit 1401 does not receive the response message sent by the routing device within a preset time length, the connection with the first access point is maintained.
Further, the processor 1410 is further configured to:
disconnecting the connection with the second access point upon detecting that the target application has been closed.
The terminal device 1400 can implement each process implemented by the terminal device in the foregoing embodiments, and is not described here again to avoid repetition. The terminal device 1400 of the embodiment of the present invention may send a channel switching request message to the routing device when detecting that the target application program is started, so that the routing device wakes up the second access point in the dormant state in response to the request message, and makes the second access point work in the second channel, and sends information of the second access point to the terminal device 1400, and after receiving a response message containing information of the second access point sent by the routing device, the terminal device 1400 may switch from the currently connected first access point to the second access point working in the second channel, thereby implementing fast switching from the first channel to the second channel. In this way, since the terminal device 1400 does not need to wait for the current access point to reconfigure the channel, it does not need to wait for a long time in the channel switching process, and thus has higher switching efficiency and better communication quality.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1401 may be configured to receive and transmit signals during a message transmission or call process, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 1410; in addition, the uplink data is transmitted to the base station. In general, radio unit 1401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. The radio unit 1401 may also communicate with a network and other devices via a wireless communication system.
The terminal device provides the user with wireless broadband internet access through the network module 1402, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 1403 can convert audio data received by the radio frequency unit 1401 or the network module 1402 or stored in the memory 1409 into an audio signal and output as sound. Also, the audio output unit 1403 may also provide audio output related to a specific function performed by the terminal device 1400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1404 is for receiving an audio or video signal. The input Unit 1404 may include a Graphics Processing Unit (GPU) 14041 and a microphone 14042, the Graphics processor 14041 Processing image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1406. The image frames processed by the graphics processor 14041 may be stored in the memory 1409 (or other storage medium) or transmitted via the radio unit 1401 or the network module 1402. The microphone 14042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1401 in case of a phone call mode.
The terminal device 1400 also includes at least one sensor 1405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 14061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 14061 and/or the backlight when the terminal device 1400 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 1405 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 1406 is used to display information input by the user or information provided to the user. The Display unit 1406 may include a Display panel 14061, and the Display panel 14061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 1407 includes a touch panel 14071 and other input devices 14072. The touch panel 14071, also referred to as a touch screen, may collect touch operations by a user (e.g., operations by a user on or near the touch panel 14071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 14071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1410, receives a command from the processor 1410, and executes the command. In addition, the touch panel 14071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 14071, the user input unit 1407 may include other input devices 14072. In particular, the other input devices 14072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein.
Further, the touch panel 14071 may be overlaid on the display panel 14061, and when the touch panel 14071 detects a touch operation on or near the touch panel 14071, the touch operation is transmitted to the processor 1410 to determine the type of the touch event, and then the processor 1410 provides a corresponding visual output on the display panel 14061 according to the type of the touch event. Although in fig. 14, the touch panel 14071 and the display panel 14061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 14071 and the display panel 14061 may be integrated to implement the input and output functions of the terminal device, which is not limited herein.
The interface unit 1408 is an interface to which an external device is connected with the terminal apparatus 1400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Interface unit 1408 may be used to receive input from external devices (e.g., data information, power, etc.) and transmit the received input to one or more elements within terminal apparatus 1400 or may be used to transmit data between terminal apparatus 1400 and external devices.
The memory 1409 may be used to store software programs as well as various data. The memory 1409 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory 1409 can include high speed random access memory and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1410 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 1409 and calling data stored in the memory 1409, thereby performing overall monitoring of the terminal device. Processor 1410 may include one or more processing units; preferably, the processor 1410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1410.
The terminal device 1400 may further include a power source 1411 (e.g., a battery) for supplying power to various components, and preferably, the power source 1411 may be logically connected to the processor 1410 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the terminal device 1400 includes some functional modules that are not shown, and are not described herein again.
Preferably, an embodiment of the present invention further provides a terminal device, including a processor 1410, a memory 1409, and a computer program stored in the memory 1409 and capable of running on the processor 1410, where the computer program, when executed by the processor 1410, implements each process of the channel switching method embodiment shown in fig. 1, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
Referring to fig. 15, fig. 15 is a schematic structural diagram of a routing device for implementing various embodiments of the present invention, where the routing device performs information transmission with a terminal device in a first channel through a first access point, and the routing device further has a second access point in a dormant state. As shown in fig. 15, the routing device 15 includes: including a bus 1501, a transceiver 1502, an antenna 1503, a bus interface 1504, a processor 1505, and memory 1506.
The transceiver 1502 is configured to receive a channel switching request message sent by the terminal device;
processor 1505 is configured to wake up a second access point of the routing device in response to the channel switch request message and enable the second access point to operate in a second channel;
the transceiver 1502 is further configured to send a first acknowledgement message carrying the information of the second access point to the terminal device.
Further, processor 1505 is configured to:
determining a second channel having a better communication quality than the first channel in response to the channel switching request message;
and waking up a second access point of the routing equipment, and enabling the second access point to work in the second channel.
Further, processor 1505 is configured to:
detecting the number of access points corresponding to each channel in at least two channels and the transceiving packet signal information of each access point, and calculating the signal to interference plus noise ratio (SINR) of each channel;
a second channel is determined having a higher signal to interference plus noise ratio, SINR, than the first channel.
Further, the transceiver 1502 is configured to receive a first data frame sent by the terminal device, where the first data frame includes a first control bit, and the first control bit is used to instruct the routing device to provide an access point to be switched for the terminal device;
and sending a second data frame to the terminal equipment, wherein the second data frame comprises information of a second access point of the routing equipment.
Further, the second data frame further includes a second control bit, and the second control bit is used for indicating that the switchable access point exists in the terminal device.
Further, the transceiver 1502 is further configured to send a second response message to the terminal device, where the communication quality of the first channel is determined to be better than that of other channels that can be used by the routing device, and the second response message is used to indicate that the first channel is an optimal channel.
Further, processor 1505 is also operable to:
and closing the second access point under the condition that the second access point is detected to be disconnected with the terminal equipment.
In this embodiment, the routing device further includes: a computer program stored on the memory 1506 and operable on the processor 1505. Wherein the computer program when executed by the processor 1505 may perform the steps of:
receiving a channel switching request message sent by the terminal equipment;
responding to the channel switching request message, waking up a second access point of the routing equipment, and enabling the second access point to work in a second channel;
and sending a first response message carrying the information of the second access point to the terminal equipment.
In fig. 15, a bus architecture (represented by bus 1501), bus 1501 may include any number of interconnected buses and bridges, bus 1501 linking together various circuits including one or more processors, represented by processor 1505, and memory, represented by memory 1506. The bus 1501 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 1004 provides an interface between the bus 1501 and the transceiver 1502. The transceiver 1502 may be one element or multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. Data processed by processor 1505 is transmitted over a wireless medium via antenna 1503 and further, antenna 1503 receives the data and forwards the data to processor 1505.
Processor 1505 is responsible for managing the bus 1501 and general processing, and may provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory 1506 may be used to store data used by the processor 1505 in performing operations.
Optionally, the processor 1505 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or a Complex Programmable Logic Device (CPLD).
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the channel switching method shown in fig. 1, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the channel switching method shown in fig. 2, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer readable storage medium is, for example, ROM, RAM, magnetic disk or optical disk.
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 apparatus 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 apparatus. 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 apparatus that comprises the element.
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 solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as 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.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (14)

1. A channel switching method is applied to terminal equipment, and is characterized in that the method comprises the following steps:
under the condition that the terminal equipment performs information transmission with routing equipment on a first channel through a first access point, if the terminal equipment detects that a target application program is started, sending a channel switching request message to the routing equipment, wherein the routing equipment is also provided with a second access point in a dormant state;
under the condition of receiving a first response message sent by the routing device, switching from the first access point to the second access point in a working state, wherein the first response message carries information of the second access point, and a working channel of the second access point is a second channel;
the communication quality of the second channel is better than the communication quality of the first channel.
2. The method of claim 1, wherein after sending the channel switch request message to the routing device, the method further comprises:
maintaining the connection with the first access point on the condition that a second response message sent by the routing equipment is received, wherein the second response message is used for indicating that the first channel is an optimal channel or no switchable access point exists; or
And under the condition that the response message sent by the routing equipment is not received within the preset time length, the connection with the first access point is kept.
3. The method of claim 1 or 2, wherein after the switching from the first access point to the second access point in an active state, the method further comprises:
disconnecting the connection with the second access point upon detecting that the target application has been closed.
4. A channel switching method is applied to a routing device, wherein the routing device performs information transmission with a terminal device on a first channel through a first access point, the routing device further has a second access point in a dormant state, and the method comprises the following steps:
receiving a channel switching request message sent by the terminal equipment;
responding to the channel switching request message, waking up a second access point of the routing equipment, and enabling the second access point to work in a second channel;
sending a first response message carrying the information of the second access point to the terminal equipment;
the responding to the channel switching request message, waking up a second access point of the routing device, and enabling the second access point to work in a second channel, including:
determining a second channel having a better communication quality than the first channel in response to the channel switching request message;
and waking up a second access point of the routing equipment, and enabling the second access point to work in the second channel.
5. The method of claim 4, wherein determining the second channel having a better communication quality than the first channel comprises:
detecting the number of access points corresponding to each channel in at least two channels and the transceiving packet signal information of each access point, and calculating the signal to interference plus noise ratio (SINR) of each channel;
a second channel is determined having a higher signal to interference plus noise ratio, SINR, than the first channel.
6. The method according to claim 4 or 5, wherein after the sending the first acknowledgement message carrying the information of the second access point to the terminal device, the method further comprises:
and closing the second access point under the condition that the second access point is detected to be disconnected with the terminal equipment.
7. A terminal device, comprising:
a sending module, configured to send a channel switching request message to a routing device if it is detected that a target application is started when the terminal device performs information transmission with the routing device in a first channel through a first access point, where the routing device further has a second access point in a dormant state;
a switching module, configured to switch from the first access point to the second access point in a working state when receiving a first response message sent by the routing device, where the first response message carries information of the second access point, and a working channel of the second access point is a second channel;
the communication quality of the second channel is better than the communication quality of the first channel.
8. The terminal device according to claim 7, wherein the terminal device further comprises:
a first control module, configured to maintain a connection with the first access point when receiving a second response message sent by the routing device, where the second response message is used to indicate that the first channel is an optimal channel or there is no switchable access point; or
And the second control module is used for keeping connection with the first access point under the condition that the response message sent by the routing equipment is not received within a preset time length.
9. The terminal device according to claim 7 or 8, wherein the terminal device further comprises:
a third control module for disconnecting from the second access point upon detecting that the target application has been closed.
10. A routing device, wherein the routing device performs information transmission with a terminal device on a first channel through a first access point, and the routing device further has a second access point in a dormant state, and the routing device comprises:
a receiving module, configured to receive a channel switching request message sent by the terminal device;
a wake-up module, configured to wake up a second access point of the routing device in response to the channel switching request message, and enable the second access point to operate in a second channel;
a first sending module, configured to send a first response message carrying information of the second access point to the terminal device;
the wake-up module comprises:
a determining submodule for determining a second channel having a communication quality better than the first channel in response to the channel switching request message;
and the awakening submodule is used for awakening a second access point of the routing equipment and enabling the second access point to work in the second channel.
11. The routing device of claim 10, wherein the determining submodule comprises:
a detection and calculation unit, configured to detect the number of access points corresponding to each channel in at least two channels and the transceiving packet signal information of each access point, and calculate a signal to interference plus noise ratio SINR of each channel;
a determining unit for determining a second channel having a higher signal to interference plus noise ratio, SINR, than the first channel.
12. The routing device according to claim 10 or 11, wherein the routing device further comprises:
a closing module, configured to close the second access point when it is detected that the second access point is disconnected from the terminal device.
13. A terminal device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps in the channel switching method according to any one of claims 1 to 3.
14. A routing device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps in the channel switching method according to any one of claims 4 to 6.
CN201910234335.2A 2019-03-26 2019-03-26 Channel switching method, terminal equipment and routing equipment Active CN109951881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910234335.2A CN109951881B (en) 2019-03-26 2019-03-26 Channel switching method, terminal equipment and routing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910234335.2A CN109951881B (en) 2019-03-26 2019-03-26 Channel switching method, terminal equipment and routing equipment

Publications (2)

Publication Number Publication Date
CN109951881A CN109951881A (en) 2019-06-28
CN109951881B true CN109951881B (en) 2021-06-25

Family

ID=67011031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910234335.2A Active CN109951881B (en) 2019-03-26 2019-03-26 Channel switching method, terminal equipment and routing equipment

Country Status (1)

Country Link
CN (1) CN109951881B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110636486B (en) * 2019-09-25 2021-06-18 珠海格力电器股份有限公司 Method for establishing communication connection after equipment is offline and intelligent home system
CN114071618B (en) * 2020-08-10 2023-11-17 华为技术有限公司 Channel switching method, access equipment and user equipment
CN114339903A (en) * 2020-09-30 2022-04-12 华为技术有限公司 Wireless communication method and electronic equipment
CN112566200B (en) * 2020-12-04 2023-03-21 展讯通信(上海)有限公司 Method for maintaining service continuity of access point, router device and storage medium
CN112929406B (en) * 2021-01-19 2022-10-18 深圳市计通智能技术有限公司 Communication method and communication device for two channels capable of signal isolation
US11582673B2 (en) * 2021-02-09 2023-02-14 Hewlett Packard Enterprise Development Lp Managing client devices on access points
CN115460662B (en) * 2022-11-10 2023-03-10 浙江大华技术股份有限公司 Data transmission and link switching method, electronic device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006653A (en) * 2009-08-28 2011-04-06 华为技术有限公司 Access control method and access point (AP)
CN103619054A (en) * 2013-11-20 2014-03-05 小米科技有限责任公司 Method and device for selecting network frequency band and router
CN103686890A (en) * 2012-09-07 2014-03-26 中兴通讯股份有限公司 Method and system for realizing wireless terminal roaming switch in wireless local area network
CN104968023A (en) * 2015-06-10 2015-10-07 小米科技有限责任公司 Working channel adjusting method, device and equipment
CN105933942A (en) * 2016-06-16 2016-09-07 北京小米移动软件有限公司 Frequency band switching method and device
CN106572509A (en) * 2016-11-07 2017-04-19 宇龙计算机通信科技(深圳)有限公司 Access point switching method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938926A (en) * 2011-08-16 2013-02-20 华为终端有限公司 Method for achieving access point energy saving and access point in wireless communication network
CN103582053B (en) * 2012-07-23 2016-09-14 华为终端有限公司 A kind of channel switching method, device and system
JP2018533886A (en) * 2015-11-11 2018-11-15 華為技術有限公司Huawei Technologies Co.,Ltd. Network handover method and apparatus
US10880795B2 (en) * 2016-05-31 2020-12-29 Huawei Technologies Co., Ltd. Method for handover between access points, and terminal equipment
CN107920353A (en) * 2016-10-08 2018-04-17 中兴通讯股份有限公司 A kind of method and hot spot access device of Wireless Fidelity connection switching hot spot
CN107613530B (en) * 2017-10-11 2020-03-13 上海斐讯数据通信技术有限公司 Router-based configuration method of Internet of things equipment and dual-frequency wireless router

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006653A (en) * 2009-08-28 2011-04-06 华为技术有限公司 Access control method and access point (AP)
CN103686890A (en) * 2012-09-07 2014-03-26 中兴通讯股份有限公司 Method and system for realizing wireless terminal roaming switch in wireless local area network
CN103619054A (en) * 2013-11-20 2014-03-05 小米科技有限责任公司 Method and device for selecting network frequency band and router
CN104968023A (en) * 2015-06-10 2015-10-07 小米科技有限责任公司 Working channel adjusting method, device and equipment
CN105933942A (en) * 2016-06-16 2016-09-07 北京小米移动软件有限公司 Frequency band switching method and device
CN106572509A (en) * 2016-11-07 2017-04-19 宇龙计算机通信科技(深圳)有限公司 Access point switching method and system

Also Published As

Publication number Publication date
CN109951881A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
CN109951881B (en) Channel switching method, terminal equipment and routing equipment
CA3150921C (en) Relay reselection method, device, and medium
CN110730504B (en) Paging indication method, device and system
CN113038566B (en) Path selection method, terminal and network equipment
US11382160B2 (en) Method of processing radio link failure, user terminal and network device
CN110944351B (en) Measurement configuration method, equipment and system
CN111526551B (en) Cell access method, device and system
US20220248244A1 (en) Measurement processing method, indication information sending method, terminal, and network device
CN110972246B (en) Power control method, transmission power control parameter determining method and related equipment
CN110505638B (en) Measurement control method, terminal and network side equipment
CN112788676B (en) Cell management method, cell management configuration method, terminal and network side equipment
CN110740470B (en) Measurement indication method, device and system
WO2019223684A1 (en) Measurement reporting method, measurement configuration method, terminal and network side device
CN110011766B (en) Beam failure detection method, terminal and network equipment
CN111601334B (en) Measuring method, device and system
CN112584334B (en) Out-of-order delivery function indication method, control method and related equipment
CN111436076B (en) Reporting method, configuration method, terminal and network equipment
CN110621022A (en) Resource indication method, device and system
CN111356183B (en) Transmission method, network equipment and terminal
CN110839298B (en) Mobility management method and related equipment
CN110971357B (en) Information indication method, indication receiving method, terminal and network side equipment
CN113472493A (en) Reference signal determination method and related equipment
CN110972212A (en) QoS parameter configuration method, device and system for PC5 interface
CN112583548B (en) Indication information transmission method, terminal and network equipment
CN110662180B (en) Data transmission method and equipment

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
GR01 Patent grant
GR01 Patent grant