CN105101330B - Connection switching method and device - Google Patents

Connection switching method and device Download PDF

Info

Publication number
CN105101330B
CN105101330B CN201510358213.6A CN201510358213A CN105101330B CN 105101330 B CN105101330 B CN 105101330B CN 201510358213 A CN201510358213 A CN 201510358213A CN 105101330 B CN105101330 B CN 105101330B
Authority
CN
China
Prior art keywords
frequency band
connection
router
terminal
signal quality
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
CN201510358213.6A
Other languages
Chinese (zh)
Other versions
CN105101330A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510358213.6A priority Critical patent/CN105101330B/en
Publication of CN105101330A publication Critical patent/CN105101330A/en
Application granted granted Critical
Publication of CN105101330B publication Critical patent/CN105101330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/06Reselecting a communication resource in the serving access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/34Reselection control
    • H04W36/36Reselection control by user or terminal equipment

Abstract

The disclosure discloses a connection switching method and a connection switching device, and belongs to the field of wireless communication. The method comprises the following steps: acquiring a working frequency band corresponding to the current connection between the terminal and the router, wherein the working frequency band is a 2.4G frequency band or a 5G frequency band; measuring the signal quality of a wireless signal received by a terminal; detecting whether the working frequency band and the signal quality meet the switching condition; if yes, the connection between the terminal and the router is switched to the connection corresponding to the other frequency band. According to the method and the device, the working frequency band corresponding to the current connection between the terminal and the router is obtained, the signal quality of the wireless signal received by the terminal through the current connection is measured, and when the working frequency band corresponding to the current connection and the signal quality are detected to accord with the switching condition, the connection between the terminal and the router is switched to the connection corresponding to the other frequency band in the 2.4G frequency band and the 5G frequency band, so that better network connection is provided for a user, and the user experience is improved.

Description

Connection switching method and device
Technical Field
The present disclosure relates to the field of wireless communications, and in particular, to a connection switching method and apparatus.
Background
The 2.4G technology and the 5G technology both belong to Wi-Fi transmission technologies, and due to the fact that the transmission speed of the 5G technology is high, when the terminal supports the 5G technology and can establish 5G connection with other equipment, better experience can be obtained by switching the current connection of the terminal to 5G.
In the related technology, if the terminal supports the 5G technology, when the terminal is turned on or the Wi-Fi function is turned on, a connection prompt is displayed to the user, the connection prompt may indicate, through text or graphics, that the terminal supports the 5G technology, and remind the user to preferentially select a 5G connection with other devices such as a router, so as to obtain a better transmission speed and connection experience.
Disclosure of Invention
The disclosure provides a connection switching method and device. The technical scheme is as follows:
according to a first aspect of the present disclosure, there is provided a connection switching method, the method comprising:
acquiring a working frequency band corresponding to the current connection between the terminal and the router, wherein the working frequency band is one of a 2.4G frequency band and a 5G frequency band;
measuring the signal quality of the wireless signal received by the terminal through the current connection;
detecting whether the working frequency band corresponding to the current connection and the signal quality meet a switching condition;
and if the working frequency band corresponding to the current connection and the signal quality meet the switching condition, switching the connection between the terminal and the router into the connection corresponding to the other frequency band of the 2.4G frequency band and the 5G frequency band.
Optionally, the detecting whether the working frequency band corresponding to the current connection and the signal quality meet a handover condition includes:
when the working frequency band corresponding to the current connection is a 2.4G frequency band, detecting whether the signal quality is greater than a first threshold value;
and if the signal quality is greater than the first threshold, determining that the working frequency band corresponding to the current connection and the signal quality meet the switching condition.
Optionally, the detecting whether the working frequency band corresponding to the current connection and the signal quality meet a handover condition includes:
when the working frequency band corresponding to the current connection is a 5G frequency band, detecting whether the signal quality is smaller than a second threshold value;
and if the signal quality is less than the second threshold, determining that the working frequency band corresponding to the current connection and the signal quality meet the switching condition.
Optionally, when the working frequency band corresponding to the current connection is a 2.4G frequency band, before detecting whether the working frequency band corresponding to the current connection and the signal quality meet the handover condition, the method further includes:
detecting whether the terminal supports a 5G frequency band;
and if the terminal supports a 5G frequency band, executing the step of detecting whether the working frequency band corresponding to the current connection and the signal quality meet the switching condition.
Optionally, when the working frequency band corresponding to the current connection is a 2.4G frequency band, before detecting whether the working frequency band corresponding to the current connection and the signal quality meet the handover condition, the method further includes:
detecting whether the router supports a 5G frequency band;
and if the router supports a 5G frequency band, executing the step of detecting whether the working frequency band corresponding to the current connection and the signal quality meet the switching condition.
Optionally, before switching the connection between the terminal and the router to a connection corresponding to another frequency band of the 2.4G frequency band and the 5G frequency band, the method further includes:
displaying a switching prompt, wherein the switching prompt is used for prompting whether to switch the connection between the terminal and the router;
and when receiving the operation of confirming the switching, executing the step of switching the connection between the terminal and the router to the connection corresponding to the other frequency band of the 2.4G frequency band and the 5G frequency band.
According to a second aspect of the present disclosure, there is provided a connection switching apparatus, the apparatus comprising:
the router comprises a frequency band acquisition module, a frequency band acquisition module and a frequency band selection module, wherein the frequency band acquisition module is used for acquiring a working frequency band corresponding to the current connection between a terminal and a router, and the working frequency band is one of a 2.4G frequency band and a 5G frequency band;
the measuring module is used for measuring the signal quality of the wireless signal received by the terminal through the current connection;
the first detection module is used for detecting whether the working frequency band corresponding to the current connection and the signal quality meet the switching condition or not;
and the switching module is used for switching the connection between the terminal and the router into the connection corresponding to the other frequency band of the 2.4G frequency band and the 5G frequency band if the working frequency band corresponding to the current connection and the signal quality accord with the switching condition.
Optionally, the first detection module includes:
the first detection submodule is used for detecting whether the signal quality is greater than a first threshold value or not when the working frequency band corresponding to the current connection is a 2.4G frequency band;
and the first determining submodule is used for determining that the working frequency band corresponding to the current connection and the signal quality meet the switching condition if the signal quality is greater than the first threshold.
Optionally, the first detection module includes:
the second detection submodule is used for detecting whether the signal quality is smaller than a second threshold value or not when the working frequency band corresponding to the current connection is a 5G frequency band;
and the second determining submodule is used for determining that the working frequency band corresponding to the current connection and the signal quality meet the switching condition if the signal quality is smaller than the second threshold.
Optionally, the apparatus further comprises:
the second detection module is used for detecting whether the terminal supports a 5G frequency band or not before the first detection module detects whether the working frequency band corresponding to the current connection and the signal quality meet the switching condition or not when the working frequency band corresponding to the current connection is a 2.4G frequency band;
the first detection module is configured to execute the step of detecting whether the working frequency band corresponding to the current connection and the signal quality meet a handover condition if the terminal supports a 5G frequency band.
Optionally, the apparatus further comprises:
a third detection module, configured to detect whether the router supports a 5G frequency band before the first detection module detects whether the working frequency band corresponding to the current connection and the signal quality meet a handover condition when the working frequency band corresponding to the current connection is a 2.4G frequency band;
the first detection module is configured to execute the step of detecting whether the working frequency band corresponding to the current connection and the signal quality meet a handover condition if the router supports a 5G frequency band.
Optionally, the apparatus further comprises:
a display module, configured to display a switching prompt before the switching module switches the connection between the terminal and the router to a connection corresponding to another frequency band of the 2.4G frequency band and the 5G frequency band, where the switching prompt is used to prompt whether to switch the connection between the terminal and the router;
the switching module is configured to execute the step of switching the connection between the terminal and the router to a connection corresponding to another frequency band of the 2.4G frequency band and the 5G frequency band when receiving an operation of confirming the switching.
According to a third aspect of the present disclosure, there is provided a connection switching apparatus, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a working frequency band corresponding to the current connection between the terminal and the router, wherein the working frequency band is one of a 2.4G frequency band and a 5G frequency band;
measuring the signal quality of the wireless signal received by the terminal through the current connection;
detecting whether the working frequency band corresponding to the current connection and the signal quality meet a switching condition;
and if the working frequency band corresponding to the current connection and the signal quality meet the switching condition, switching the connection between the terminal and the router into the connection corresponding to the other frequency band of the 2.4G frequency band and the 5G frequency band.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the method comprises the steps of measuring the signal quality of a wireless signal received by a terminal through current connection by acquiring the working frequency band corresponding to the current connection between the terminal and a router, switching the connection between the terminal and the router into the connection corresponding to the other frequency band of a 2.4G frequency band and a 5G frequency band when the working frequency band corresponding to the current connection and the signal quality are detected to be in accordance with a switching condition, and selecting and switching to the working frequency band with better signal quality according to the signal quality so as to provide better network connection for a user and improve user experience.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is an implementation environment diagram of a connection switching method according to some embodiments of the present disclosure.
FIG. 2 is a flow chart illustrating a method of connection switching in accordance with an exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of connection switching in accordance with another exemplary embodiment;
FIG. 4 is a block diagram illustrating a connection switching apparatus in accordance with an exemplary embodiment;
fig. 5 is a block diagram illustrating a connection switching apparatus according to another exemplary embodiment;
FIG. 6 is a block diagram illustrating an apparatus in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a schematic diagram of an implementation environment related to a connection switching method according to an exemplary embodiment of a part of the present disclosure. The implementation environment includes: a terminal 110 and a router 120;
the terminal 110 may be a terminal supporting wireless communication, such as a smartphone, a tablet computer, an e-book reader, a smart wearable device, and the like.
The connection between the router 120 and the terminal 110 may be established in a Wi-Fi (Wireless Fidelity) manner.
The 2.4G technology is one of three major wireless communication technologies in the market at present, and most Wi-Fi devices support the 2.4G technology, and the operating frequency band thereof is in the 2.4G frequency band (2.400 GHz-2.4835 GHz). The 5G technology refers to a fifth generation Wi-Fi transmission technology, and the working frequency band of the technology is in a 5G frequency band (about 5.8 GHz). When the terminal and the router in the implementation environment shown in fig. 1 support both the 2.4G technology and the 5G technology, a 2.4G connection or a 5G connection can be established between the terminal and the router, and a handover can be performed between the two connections.
The 2.4G technology and the 5G technology have respective advantages and disadvantages. Under the condition of the same transmission power, the 2.4G technology has a lower working frequency band and stronger penetration capability but a lower transmission speed, while the 5G technology has a higher working frequency band and a higher transmission speed but weaker penetration capability. Taking a router installed indoors to simultaneously support a 2.4G technology and a 5G technology as an example, when the router is arranged in a bedroom, a terminal in a living room establishes a 5G connection with the router, and since the wall penetrating capability of a 5G signal is weak, the signal attenuation in the living room is more severe, and at the moment, if the connection between the terminal and the router is switched to a 2.4G connection, better connection experience can be obtained; when the router is arranged in the living room, the terminal in the living room establishes 2.4G connection with the router, and at the moment, because no barrier exists between the terminal and the router, if the terminal switches the connection between the terminal and the router to 5G connection, faster transmission speed can be obtained.
Fig. 2 is a flow chart illustrating a method of connection switching according to an example embodiment. The connection switching method is used in the terminal 110 implementing the environment as shown in fig. 1. As shown in fig. 2, the connection switching method may include the following steps.
In step 202, an operating frequency band corresponding to the current connection between the terminal and the router is obtained, where the operating frequency band is one of a 2.4G frequency band and a 5G frequency band.
In step 204, the signal quality of the wireless signal received by the terminal over the current connection is measured.
In step 206, it is detected whether the working band corresponding to the current connection and the signal quality meet the handover condition.
In step 208, if the working band corresponding to the current connection and the signal quality meet the switching condition, the connection between the terminal and the router is switched to a connection corresponding to the other of the 2.4G band and the 5G band.
Optionally, the detecting whether the working frequency band corresponding to the current connection and the signal quality meet the handover condition includes:
when the working frequency band corresponding to the current connection is a 2.4G frequency band, detecting whether the signal quality is greater than a first threshold value;
if the signal quality is greater than the first threshold, determining that the working frequency band corresponding to the current connection and the signal quality meet the switching condition.
Optionally, the detecting whether the working frequency band corresponding to the current connection and the signal quality meet the handover condition includes:
when the working frequency band corresponding to the current connection is the 5G frequency band, detecting whether the signal quality is less than a second threshold value;
and if the signal quality is less than the second threshold, determining that the working frequency band corresponding to the current connection and the signal quality meet the switching condition.
Optionally, when the working frequency band corresponding to the current connection is a 2.4G frequency band, before detecting whether the working frequency band corresponding to the current connection and the signal quality meet the handover condition, the method further includes:
detecting whether the terminal supports a 5G frequency band;
and if the terminal supports the 5G frequency band, executing the step of detecting whether the working frequency band corresponding to the current connection and the signal quality meet the switching condition.
Optionally, when the working frequency band corresponding to the current connection is a 2.4G frequency band, before detecting whether the working frequency band corresponding to the current connection and the signal quality meet the handover condition, the method further includes:
detecting whether the router supports a 5G frequency band;
if the router supports the 5G frequency band, the step of detecting whether the working frequency band corresponding to the current connection and the signal quality meet the switching condition is executed.
Optionally, before switching the connection between the terminal and the router to a connection corresponding to another frequency band of the 2.4G frequency band and the 5G frequency band, the method further includes:
displaying a switching prompt, wherein the switching prompt is used for prompting whether to switch the connection between the terminal and the router;
and when receiving the operation of confirming the switching, executing the step of switching the connection between the terminal and the router to the connection corresponding to the other frequency band of the 2.4G frequency band and the 5G frequency band.
To sum up, in the connection switching method shown in the embodiment of the present disclosure, by obtaining a working frequency band corresponding to a current connection between a terminal and a router, measuring a signal quality of a wireless signal received by the terminal through the current connection, when it is detected that the working frequency band corresponding to the current connection and the signal quality meet a switching condition, switching a connection between the terminal and the router to a connection corresponding to another frequency band of a 2.4G frequency band and a 5G frequency band, and selecting to switch to a better working frequency band of a signal quality according to the signal quality, so as to provide a better network connection for a user, thereby improving user experience.
Fig. 3 is a flow chart illustrating a method of connection switching according to another example embodiment. The connection switching method is used in the terminal 110 implementing the environment as shown in fig. 1. As shown in fig. 3, the connection switching method may include the following steps.
In step 301, when a wireless connection is currently established between a terminal and a router, it is detected whether both the terminal and the router support a 5G frequency band.
Because most Wi-Fi devices currently support the 2.4G technology, in the embodiment of the present disclosure, it may be only detected whether both the terminal and the router support the 5G technology, if both the terminal and the router support the 5G technology, it is described that the connection between the terminal and the router may be switched between 2.4G and 5G, and if one of the terminal and the router does not support the 5G technology, the subsequent steps are not executed.
The terminal can directly acquire the network configuration information of the terminal and judge whether the terminal supports the 5G frequency band. The router may periodically send its own device information through broadcasting, where the device information includes an indication whether the router supports the 5G frequency band, or the router may directly send an indication whether the router supports the 5G frequency band to the terminal through an established connection.
In step 302, if the terminal and the router both support the 5G band, a working band corresponding to the current connection between the terminal and the router is obtained.
Wherein the working frequency band is one of a 2.4G frequency band and a 5G frequency band.
In general, the current operating band of the terminal is the operating band corresponding to the current connection between the terminal and the router.
In step 303, the signal quality of the wireless signal received by the terminal over the current connection is measured.
The Signal quality of the wireless Signal may be characterized by RSSI (Received Signal strength indication). When detecting that both the terminal and the router support the 5G band, the terminal may measure the RSSI value of the received wireless signal transmitted by the router.
The execution sequence of step 302 and step 303 is not sequential, and may also be performed simultaneously.
In step 304, when the working frequency band corresponding to the current connection is the 2.4G frequency band, it is detected whether the signal quality is greater than the first threshold, if so, step 306 is entered.
Because the power of the 2.4G signal and the 5G signal sent by the same router is close, and the transmission distance between the two signals is the same for the same terminal, when the RSSI value of the signal of the 2.4G frequency band sent by the router received by the terminal is very high, the quality of the signal of the 5G frequency band sent by the same router received by the terminal is not too poor, and at the moment, if the signal is switched to the 5G frequency band, a faster transmission speed can be obtained, and the switching condition is met.
In step 305, when the operating frequency band corresponding to the current connection is the 5G frequency band, it is detected whether the signal quality is less than a second threshold, and if so, the process proceeds to step 306.
When the connection between the terminal and the router is the connection corresponding to the 5G frequency band and the RSSI value of the signal sent by the router through the current connection is lower when the terminal receives the RSSI value, the blockage between the terminal and the router is possible, and at the moment, when the connection between the terminal and the router is switched to the 2.4G signal with stronger penetrating power, better connection experience is possible to obtain and the switching condition is met.
In step 306, a switching prompt is displayed, and when receiving an operation of confirming the switching, the connection between the terminal and the router is switched to a connection corresponding to another frequency band of the 2.4G frequency band and the 5G frequency band.
Wherein, the switching prompt is used for prompting whether to switch the connection between the terminal and the router.
Before switching connection, the terminal can show a switching prompt to a user to prompt the user whether the user needs to switch, if the user clicks to determine switching, if the current connection between the terminal and the router is the connection corresponding to the 2.4G frequency band, the current connection is switched to the connection corresponding to the 5G frequency band; and if the current connection between the terminal and the router is the connection corresponding to the 5G frequency band, switching the current connection to the connection corresponding to the 2.4G frequency band.
To sum up, in the connection switching method shown in the embodiment of the present disclosure, by obtaining a working frequency band corresponding to a current connection between a terminal and a router, measuring a signal quality of a wireless signal received by the terminal through the current connection, when it is detected that the working frequency band corresponding to the current connection and the signal quality meet a switching condition, switching a connection between the terminal and the router to a connection corresponding to another frequency band of a 2.4G frequency band and a 5G frequency band, and selecting to switch to a better working frequency band of a signal quality according to the signal quality, so as to provide a better network connection for a user, thereby improving user experience.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 4 is a block diagram illustrating a connection switching apparatus according to an exemplary embodiment, which may be used in the terminal 110 implementing the environment shown in fig. 1 to perform the method shown in fig. 2 or 3. As shown in fig. 4, the connection switching device includes but is not limited to: a frequency band obtaining module 401, a measuring module 402, a first detecting module 403 and a switching module 404;
the frequency band acquiring module 401 is configured to acquire a working frequency band corresponding to a current connection between a terminal and a router, where the working frequency band is one of a 2.4G frequency band and a 5G frequency band;
the measuring module 402 is configured to measure the signal quality of the wireless signal received by the terminal through the current connection;
the first detecting module 403 is configured to detect whether the working frequency band corresponding to the current connection and the signal quality meet a handover condition;
the switching module 404 is configured to switch the connection between the terminal and the router to a connection corresponding to another frequency band of the 2.4G frequency band and the 5G frequency band if the working frequency band corresponding to the current connection and the signal quality meet the switching condition.
To sum up, the connection switching apparatus according to the embodiment of the present disclosure measures the signal quality of the wireless signal received by the terminal through the current connection by obtaining the working frequency band corresponding to the current connection between the terminal and the router, switches the connection between the terminal and the router to the connection corresponding to the other frequency band of the 2.4G frequency band and the 5G frequency band when it is detected that the working frequency band corresponding to the current connection and the signal quality meet the switching condition, and selects and switches to the better working frequency band of the signal quality according to the signal quality, so as to provide better network connection for the user, thereby improving user experience.
Fig. 5 is a block diagram illustrating a connection switching apparatus according to another exemplary embodiment, which may be used in the terminal 110 implementing the environment shown in fig. 1 to perform the method shown in fig. 2 or 3. As shown in fig. 5, the connection switching device includes but is not limited to: a frequency band obtaining module 401, a measuring module 402, a first detecting module 403 and a switching module 404;
the frequency band acquiring module 401 is configured to acquire a working frequency band corresponding to a current connection between a terminal and a router, where the working frequency band is one of a 2.4G frequency band and a 5G frequency band;
the measuring module 402 is configured to measure the signal quality of the wireless signal received by the terminal through the current connection;
the first detecting module 403 is configured to detect whether the working frequency band corresponding to the current connection and the signal quality meet a handover condition;
the switching module 404 is configured to switch the connection between the terminal and the router to a connection corresponding to another frequency band of the 2.4G frequency band and the 5G frequency band if the working frequency band corresponding to the current connection and the signal quality meet the switching condition.
Optionally, the first detecting module 403 includes: a first detection submodule 403a and a first determination submodule 403 b;
the first detection submodule 403a is configured to detect whether the signal quality is greater than a first threshold value when the working frequency band corresponding to the current connection is a 2.4G frequency band;
the first determining submodule 403b is configured to determine that the working frequency band corresponding to the current connection and the signal quality meet the handover condition if the signal quality is greater than the first threshold.
Optionally, the first detecting module 403 includes: a second detection submodule 403c and a second determination submodule 403 d;
the second detection submodule 403c is configured to detect whether the signal quality is less than a second threshold value when the working frequency band corresponding to the current connection is a 5G frequency band;
the second determining submodule 403d is configured to determine that the working frequency band corresponding to the current connection and the signal quality meet the handover condition if the signal quality is less than the second threshold.
Optionally, the apparatus further comprises: a second detection module 405;
the second detecting module 405 is configured to detect whether the terminal supports a 5G frequency band before the first detecting module 403 detects whether the working frequency band corresponding to the current connection and the signal quality meet a handover condition when the working frequency band corresponding to the current connection is a 2.4G frequency band;
the first detecting module 403 is configured to, if the terminal supports a 5G frequency band, perform the step of detecting whether the working frequency band corresponding to the current connection and the signal quality meet a handover condition.
Optionally, the apparatus further comprises: a third detection module 406;
the third detecting module 406 is configured to, when the working frequency band corresponding to the current connection is a 2.4G frequency band, detect whether the router supports a 5G frequency band before the first detecting module 403 detects whether the working frequency band corresponding to the current connection and the signal quality meet a handover condition;
the first detecting module 403 is configured to, if the router supports a 5G frequency band, perform the step of detecting whether the working frequency band corresponding to the current connection and the signal quality meet a handover condition.
Optionally, the apparatus further comprises: a display module 407;
the display module 407 is configured to display a switching prompt before the switching module 404 switches the connection between the terminal and the router to a connection corresponding to the other of the 2.4G frequency band and the 5G frequency band, where the switching prompt is used to prompt whether to switch the connection between the terminal and the router;
the switching module 404 is configured to, when receiving an operation of confirming the switching, execute the step of switching the connection between the terminal and the router to a connection corresponding to another frequency band of the 2.4G frequency band and the 5G frequency band.
To sum up, the connection switching apparatus according to the embodiment of the present disclosure measures the signal quality of the wireless signal received by the terminal through the current connection by obtaining the working frequency band corresponding to the current connection between the terminal and the router, switches the connection between the terminal and the router to the connection corresponding to the other frequency band of the 2.4G frequency band and the 5G frequency band when it is detected that the working frequency band corresponding to the current connection and the signal quality meet the switching condition, and selects and switches to the better working frequency band of the signal quality according to the signal quality, so as to provide better network connection for the user, thereby improving user experience.
Fig. 6 is a block diagram illustrating an apparatus 600 according to an example embodiment. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a routing device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, a smart control device, a smart home device, a smart wearable device, and so forth.
Referring to fig. 6, apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, recording operations, and the like. The processing components 602 may include one or more processors 618 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the apparatus 600. Examples of such data include instructions for any application or method operating on the apparatus 600. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. Also stored in memory 604 are one or more modules configured to be executed by the one or more processors 618 to perform all or a portion of the steps of the methods described above in fig. 2 or 3.
Power supply component 606 provides power to the various components of device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The audio component 610 is configured to output and/or input audio signals. For example, audio component 610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor assembly 614 may detect the open/closed status of the device 600, the relative positioning of the components, the sensor assembly 614 may also detect a change in position of the device 600 or a component of the device 600, and a change in temperature of the device 600. In some embodiments, the sensor assembly 614 may also include a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 618 of the apparatus 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method, and will not be described in detail here.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (9)

1. A method for connection handover, the method comprising:
when wireless connection is established between a terminal and a router, detecting whether the terminal and the router both support a 5G frequency band, wherein the terminal directly acquires network configuration information of the terminal and judges whether the 5G frequency band is supported; the router periodically sends own device information through broadcasting, wherein the device information comprises an indication whether the router supports a 5G frequency band, or the router directly sends the indication whether the router supports the 5G frequency band to the terminal through the established connection;
acquiring a working frequency band corresponding to the current connection between the terminal and the router, wherein the working frequency band is one of a 2.4G frequency band and a 5G frequency band;
measuring the signal quality of the wireless signal received by the terminal through the current connection;
detecting whether the working frequency band corresponding to the current connection and the signal quality meet a switching condition;
if the working frequency band corresponding to the current connection and the signal quality meet the switching condition, the connection between the terminal and the router is switched to the connection corresponding to the other frequency band of the 2.4G frequency band and the 5G frequency band of the same router,
before switching the connection between the terminal and the router to a connection corresponding to the other frequency band of the 2.4G frequency band and the 5G frequency band, the method further includes:
displaying a switching prompt, wherein the switching prompt is used for prompting whether to switch the connection between the terminal and the router;
when receiving the operation of confirming the switching, executing the step of switching the connection between the terminal and the router to the connection corresponding to the other frequency band of the 2.4G frequency band and the 5G frequency band of the same router,
the detecting whether the working frequency band corresponding to the current connection and the signal quality meet the switching condition includes:
when the working frequency band corresponding to the current connection is a 5G frequency band, detecting whether the signal quality is smaller than a second threshold value;
and if the signal quality is less than the second threshold, determining that the working frequency band corresponding to the current connection and the signal quality meet the switching condition.
2. The method of claim 1, wherein the detecting whether the working band corresponding to the current connection and the signal quality meet a handover condition comprises:
when the working frequency band corresponding to the current connection is a 2.4G frequency band, detecting whether the signal quality is greater than a first threshold value;
and if the signal quality is greater than the first threshold, determining that the working frequency band corresponding to the current connection and the signal quality meet the switching condition.
3. The method of claim 1, wherein when the operating band corresponding to the current connection is a 2.4G band, before detecting whether the operating band corresponding to the current connection and the signal quality meet a handover condition, the method further comprises:
detecting whether the terminal supports a 5G frequency band;
and if the terminal supports a 5G frequency band, executing the step of detecting whether the working frequency band corresponding to the current connection and the signal quality meet the switching condition.
4. The method of claim 1, wherein when the operating band corresponding to the current connection is a 2.4G band, before detecting whether the operating band corresponding to the current connection and the signal quality meet a handover condition, the method further comprises:
detecting whether the router supports a 5G frequency band;
and if the router supports a 5G frequency band, executing the step of detecting whether the working frequency band corresponding to the current connection and the signal quality meet the switching condition.
5. A connection switching apparatus, characterized in that the apparatus comprises:
the frequency band acquisition module is used for detecting whether the terminal and the router support a 5G frequency band or not when wireless connection is established between the terminal and the router; acquiring a working frequency band corresponding to the current connection between the terminal and the router, wherein the working frequency band is one of a 2.4G frequency band and a 5G frequency band, and the terminal directly acquires network configuration information of the terminal and judges whether the 5G frequency band is supported or not; the router periodically sends own device information through broadcasting, wherein the device information comprises an indication whether the router supports a 5G frequency band, or the router directly sends the indication whether the router supports the 5G frequency band to the terminal through the established connection;
the measuring module is used for measuring the signal quality of the wireless signal received by the terminal through the current connection;
the first detection module is used for detecting whether the working frequency band corresponding to the current connection and the signal quality meet the switching condition or not;
a switching module, configured to switch the connection between the terminal and the router to a connection corresponding to another frequency band of a 2.4G frequency band and a 5G frequency band of the same router if the working frequency band corresponding to the current connection and the signal quality meet the switching condition,
the device further comprises:
a display module, configured to display a switching prompt before the switching module switches the connection between the terminal and the router to a connection corresponding to another frequency band of the 2.4G frequency band and the 5G frequency band of the same router, where the switching prompt is used to prompt whether to switch the connection between the terminal and the router;
the switching module is further configured to execute the step of switching the connection between the terminal and the router to a connection corresponding to another frequency band of the 2.4G frequency band and the 5G frequency band when receiving an operation of confirming the switching,
the device further comprises:
the second detection module is used for detecting whether the terminal supports a 5G frequency band or not before the first detection module detects whether the working frequency band corresponding to the current connection and the signal quality meet the switching condition or not when the working frequency band corresponding to the current connection is a 2.4G frequency band;
the first detection module is configured to execute the step of detecting whether the working frequency band corresponding to the current connection and the signal quality meet a handover condition if the terminal supports a 5G frequency band.
6. The apparatus of claim 5, wherein the first detection module comprises:
the first detection submodule is used for detecting whether the signal quality is greater than a first threshold value or not when the working frequency band corresponding to the current connection is a 2.4G frequency band;
and the first determining submodule is used for determining that the working frequency band corresponding to the current connection and the signal quality meet the switching condition if the signal quality is greater than the first threshold.
7. The apparatus of claim 5, wherein the first detection module comprises:
the second detection submodule is used for detecting whether the signal quality is smaller than a second threshold value or not when the working frequency band corresponding to the current connection is a 5G frequency band;
and the second determining submodule is used for determining that the working frequency band corresponding to the current connection and the signal quality meet the switching condition if the signal quality is smaller than the second threshold.
8. The apparatus of claim 5, further comprising:
a third detection module, configured to detect whether the router supports a 5G frequency band before the first detection module detects whether the working frequency band corresponding to the current connection and the signal quality meet a handover condition when the working frequency band corresponding to the current connection is a 2.4G frequency band;
the first detection module is configured to execute the step of detecting whether the working frequency band corresponding to the current connection and the signal quality meet a handover condition if the router supports a 5G frequency band.
9. A connection switching apparatus, characterized in that the apparatus comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when wireless connection is established between a terminal and a router, detecting whether the terminal and the router both support a 5G frequency band, wherein the terminal directly acquires network configuration information of the terminal and judges whether the 5G frequency band is supported; the router periodically sends own device information through broadcasting, wherein the device information comprises an indication whether the router supports a 5G frequency band, or the router directly sends the indication whether the router supports the 5G frequency band to the terminal through the established connection;
acquiring a working frequency band corresponding to the current connection between the terminal and the router, wherein the working frequency band is one of a 2.4G frequency band and a 5G frequency band;
measuring the signal quality of the wireless signal received by the terminal through the current connection;
detecting whether the working frequency band corresponding to the current connection and the signal quality meet a switching condition;
if the working frequency band corresponding to the current connection and the signal quality meet the switching condition, the connection between the terminal and the router is switched to the connection corresponding to the other frequency band of the 2.4G frequency band and the 5G frequency band of the same router,
before switching the connection between the terminal and the router to a connection corresponding to the other of the 2.4G band and the 5G band, the processor is further configured to:
displaying a switching prompt, wherein the switching prompt is used for prompting whether to switch the connection between the terminal and the router;
when receiving the operation of confirming the switching, executing the step of switching the connection between the terminal and the router to the connection corresponding to the other frequency band of the 2.4G frequency band and the 5G frequency band of the same router,
the detecting whether the working frequency band corresponding to the current connection and the signal quality meet the switching condition includes:
when the working frequency band corresponding to the current connection is a 5G frequency band, detecting whether the signal quality is smaller than a second threshold value;
and if the signal quality is less than the second threshold, determining that the working frequency band corresponding to the current connection and the signal quality meet the switching condition.
CN201510358213.6A 2015-06-25 2015-06-25 Connection switching method and device Active CN105101330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510358213.6A CN105101330B (en) 2015-06-25 2015-06-25 Connection switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510358213.6A CN105101330B (en) 2015-06-25 2015-06-25 Connection switching method and device

Publications (2)

Publication Number Publication Date
CN105101330A CN105101330A (en) 2015-11-25
CN105101330B true CN105101330B (en) 2020-02-28

Family

ID=54580613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510358213.6A Active CN105101330B (en) 2015-06-25 2015-06-25 Connection switching method and device

Country Status (1)

Country Link
CN (1) CN105101330B (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933921A (en) * 2016-03-30 2016-09-07 联想(北京)有限公司 Wireless network control method and terminal device
CN105898813A (en) * 2016-03-31 2016-08-24 乐视控股(北京)有限公司 Frequency band switching method based on wireless device and wireless device
CN105894772A (en) * 2016-04-13 2016-08-24 深圳无线电检测技术研究院 HWN (heterogeneous wireless network) based electric power quality data monitoring and management system and method
CN105916175A (en) * 2016-04-14 2016-08-31 上海斐讯数据通信技术有限公司 Dual-frequency band switching method of wireless device, and wireless device
CN105792386A (en) * 2016-04-20 2016-07-20 上海斐讯数据通信技术有限公司 Frequency range connecting method of wireless equipment and wireless equipment
CN106375031B (en) * 2016-08-29 2019-05-28 Oppo广东移动通信有限公司 The detection method and mobile terminal of radio-frequency channel
CN108024299B (en) * 2016-11-04 2020-10-27 华为技术有限公司 Cell reselection method and device
CN106714279A (en) * 2016-11-14 2017-05-24 广东欧珀移动通信有限公司 Hot spot network switching method and terminal equipment
CN106714277B (en) * 2016-12-07 2020-02-07 Oppo广东移动通信有限公司 Network connection method and terminal
CN106954237B (en) * 2017-05-25 2020-07-07 青岛海信宽带多媒体技术有限公司 Wi-Fi frequency band self-adaptive switching method and device
CN107396409A (en) * 2017-07-10 2017-11-24 宇龙计算机通信科技(深圳)有限公司 Wireless terminal frequency band switching method and wireless router
CN107426781B (en) * 2017-08-16 2021-04-13 高新兴物联科技有限公司 Dual-frequency WiFi automatic switching method and device and computer readable storage medium
CN107682879B (en) * 2017-08-30 2021-04-02 深圳市盛路物联通讯技术有限公司 Frequency adjusting method based on antenna received signal strength and mobile terminal
KR102402639B1 (en) * 2017-11-24 2022-05-26 삼성전자주식회사 Electronic device and method for communicating thereof
CN109362107B (en) * 2018-11-12 2023-01-31 深圳市共进电子股份有限公司 Wireless repeater link switching method, device, equipment and storage medium
CN109788519B (en) * 2019-03-12 2021-06-08 深圳市网是科技有限公司 Double-frequency WiFi intelligent switching method based on 2.4G self-adaptive threshold
CN112291818A (en) * 2019-07-22 2021-01-29 广东美的制冷设备有限公司 Network connection method and household appliance
CN111148182B (en) * 2019-12-30 2022-02-22 Oppo广东移动通信有限公司 Device control method, device, storage medium and electronic device
CN111954273B (en) * 2020-07-15 2022-04-19 烽火通信科技股份有限公司 Wireless AP frequency band switching method and device and wireless AP
CN112188580B (en) * 2020-09-24 2023-05-30 北京自如信息科技有限公司 Frequency band switching method and device, AP and storage medium
CN113055966B (en) * 2021-03-11 2023-07-25 北京小米移动软件有限公司 Frequency band switching method, frequency band switching device and storage medium
CN113260063B (en) * 2021-06-11 2021-11-05 广州朗国电子科技有限公司 Method for controlling frequency band by hot spot and related equipment
CN114157659B (en) * 2022-02-10 2022-06-21 荣耀终端有限公司 File sharing method and terminal equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1720756A (en) * 2002-12-19 2006-01-11 诺基亚公司 System and handover mechanism in frequency multiple band environment and equipment therefor
WO2014179961A1 (en) * 2013-05-09 2014-11-13 Telefonaktiebolaget L M Ericsson (Publ) Method and device for determining wlan channel
CN104702445A (en) * 2015-03-31 2015-06-10 清华大学 User network optimizing method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1720756A (en) * 2002-12-19 2006-01-11 诺基亚公司 System and handover mechanism in frequency multiple band environment and equipment therefor
WO2014179961A1 (en) * 2013-05-09 2014-11-13 Telefonaktiebolaget L M Ericsson (Publ) Method and device for determining wlan channel
CN104702445A (en) * 2015-03-31 2015-06-10 清华大学 User network optimizing method and system

Also Published As

Publication number Publication date
CN105101330A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN105101330B (en) Connection switching method and device
CN105828281B (en) Equipment connection method and device
US9674284B2 (en) Method and device for detecting state of networking channel
US20170123644A1 (en) Interface display method and device
CN107566985B (en) Method and device for determining main SIM card of mobile terminal
JP2016538663A (en) Method and apparatus for controlling background application and terminal apparatus
CN104540184A (en) Equipment networking method and device
CN108401521B (en) Information generation method and device and signal transmission method and device
US20170135032A1 (en) Network connecting method and apparatus, and storage medium
US11317302B2 (en) Minimization of drive test configuration method and apparatus
US11641595B2 (en) Method and apparatus for determining channel occupancy information
CN109324846B (en) Application display method and device and storage medium
EP3322227B1 (en) Methods and apparatuses for controlling wireless connection, computer program and recording medium
US10439660B2 (en) Method and device for adjusting frequencies of intercom apparatuses
US11284398B2 (en) Communication link configuration method and device
WO2018086067A1 (en) Communication method and device
US10009283B2 (en) Method and device for processing information
CN104601204B (en) trigger condition detection method and device
CN106155703B (en) Emotional state display method and device
CN105491576A (en) Method and device for acquiring network test data
CN109451819B (en) Information reporting method and device
JP2022514901A (en) Methods and devices for transmitting configuration information related to measurement control
CN104581615A (en) Service delivery method and device
CN104702756A (en) Detecting method and detecting device for soundless call
CN106170141B (en) Mobile terminal network switching method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant