CN106231640B - Wireless access point switching method and device - Google Patents

Wireless access point switching method and device Download PDF

Info

Publication number
CN106231640B
CN106231640B CN201610619169.4A CN201610619169A CN106231640B CN 106231640 B CN106231640 B CN 106231640B CN 201610619169 A CN201610619169 A CN 201610619169A CN 106231640 B CN106231640 B CN 106231640B
Authority
CN
China
Prior art keywords
wireless access
network
access point
network quality
network server
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
CN201610619169.4A
Other languages
Chinese (zh)
Other versions
CN106231640A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610619169.4A priority Critical patent/CN106231640B/en
Publication of CN106231640A publication Critical patent/CN106231640A/en
Application granted granted Critical
Publication of CN106231640B publication Critical patent/CN106231640B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • 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

Abstract

The disclosure discloses a wireless access point switching method and a wireless access point switching device, and belongs to the technical field of communication. The wireless access point switching method comprises the following steps: acquiring the network quality between the current access point and the currently accessed wireless access point; detecting whether the network quality is worse than a first preset condition; if the difference is greater than the first preset condition, switching to access other wireless access points; the problem that when the terminal accesses a network server with poor performance in the related technology, the terminal is switched to other wireless access points by mistake possibly due to the self reason of the network server is solved; when the network quality between the terminal and the currently accessed wireless access point is worse than a first preset condition, the terminal is switched to be accessed to other wireless access points due to the fact that the network quality between the terminal and the wireless access points is poorer, and the effect that the terminal is switched to other wireless access points by mistake due to the self reason of a network server is avoided.

Description

wireless access point switching method and device
Technical Field
the present disclosure relates to the field of network communication technologies, and in particular, to a method and an apparatus for switching a wireless access point.
Background
with the continuous development of network communication technology, the use of wireless networks is more and more common. Among the commonly used Wireless networks, there is a Wireless local area network (wlan) such as WiFi (Wireless Fidelity).
in the related art, the method for switching the wireless access point mainly comprises the following steps: when accessing a network server, acquiring the network quality between a terminal and the network server; and when the network quality between the terminal and the network server is poor, switching to access to other wireless access points. That is, when the terminal accesses the network server with poor performance in the related art, the terminal may also switch access to other wireless access points.
Disclosure of Invention
in order to solve the problems in the related art, the present disclosure provides a wireless access point switching method and apparatus. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a wireless access point switching method, including:
acquiring the network quality between the current access point and the currently accessed wireless access point;
Detecting whether the network quality between the wireless access point and the wireless access point is worse than a first preset condition;
if the difference is less than the first preset condition, switching to access other wireless access points.
optionally, the method further includes:
when accessing a network server, acquiring the network quality between the network server and the network server;
Detecting whether the network quality between the network server and the network server is worse than a second preset condition;
And if the difference is lower than the second preset condition, executing the step of acquiring the network quality between the current accessed wireless access point and the current accessed wireless access point.
Optionally, before acquiring the network quality with the currently accessed wireless access point, the method further includes:
and if the network quality between the network server and the network server is worse than a second preset condition, switching to access the preset network server and executing the step of acquiring the network quality between the network server and the network server again.
optionally, the obtaining of the network quality with the currently accessed wireless access point includes:
When accessing the wireless access point, recording the network quality between the wireless access point and the network card in the physical layer;
And acquiring the network quality between the network card and the wireless access point.
Optionally, when accessing the network server, obtaining the network quality between the network server and the network server includes:
When accessing the network server, recording the network quality between the network server and the TCP/IP (Transmission Control Protocol/Internet Protocol) Protocol stack in the Protocol layer;
And acquiring the network quality between the network server and the TCP/IP protocol stack.
According to a second aspect of the embodiments of the present disclosure, there is provided a wireless access point switching apparatus, including:
the first acquisition module is configured to acquire the network quality between the wireless access point and the currently accessed wireless access point;
a first detection module configured to detect whether a network quality with a wireless access point is worse than a first preset condition;
and the wireless switching module is configured to switch to other wireless access points if the first preset condition is worse.
optionally, the apparatus further includes:
the second acquisition module is configured to acquire the network quality between the second acquisition module and the network server when the network server is accessed;
The second detection module is configured to detect whether the network quality between the network server and the network server is worse than a second preset condition;
and the third acquisition template is also configured to execute the first acquisition module to acquire the network quality between the wireless access point and the currently accessed wireless access point if the second preset condition is worse.
optionally, the apparatus further includes:
And the access switching module is configured to switch to access the preset network server and execute the second acquisition module to acquire the network quality between the network server and the access switching module again if the network quality between the network server and the access switching module is worse than a second preset condition.
Optionally, the first obtaining module includes:
The first recording submodule is configured to record the network quality between the first recording submodule and the wireless access point through a network card in a physical layer when the wireless access point is accessed;
And the first acquisition submodule is configured to acquire the network quality between the wireless access point and the network card.
optionally, the second obtaining module includes:
the second recording submodule is configured to record the network quality between the network server and the second recording submodule through a TCP/IP protocol stack in a protocol layer when the network server is accessed;
And the second acquisition sub-module is configured to acquire the network quality between the network server and the TCP/IP protocol stack.
According to a third aspect of the embodiments of the present disclosure, there is provided a wireless access point switching apparatus, including:
A processor;
a memory for storing processor-executable instructions;
Wherein the processor is configured to:
Acquiring the network quality between the current access point and the currently accessed wireless access point;
Detecting whether the network quality between the wireless access point and the wireless access point is worse than a first preset condition;
if the difference is less than the first preset condition, switching to access other wireless access points.
the technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
Obtaining the network quality between the current access point and the currently accessed wireless access point; detecting whether the network quality is worse than a first preset condition; if the difference is greater than the first preset condition, switching to access other wireless access points; the problem that when the terminal accesses a network server with poor performance in the related technology, the terminal is switched to other wireless access points by mistake possibly due to the self reason of the network server is solved; when the network quality between the terminal and the currently accessed wireless access point is worse than a first preset condition, the terminal is switched to be accessed to other wireless access points due to the fact that the network quality between the terminal and the wireless access points is poorer, and the effect that the terminal is switched to other wireless access points by mistake due to the self reason of a network server is avoided.
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 present disclosure and together with the description, serve to explain the principles of the disclosure.
fig. 1A is a schematic diagram illustrating an implementation environment involved in a wireless access point handover method according to some example embodiments;
FIG. 1B is a schematic diagram illustrating a network quality record flow according to some exemplary embodiments;
fig. 2 is a flow chart illustrating a method of wireless access point handover in accordance with an example embodiment;
Fig. 3 is a flow chart illustrating a method of wireless access point handover in accordance with another exemplary embodiment;
Fig. 4 is a block diagram illustrating a wireless access point switching apparatus in accordance with an example embodiment;
Fig. 5 is a block diagram illustrating a wireless access point switching apparatus in accordance with another exemplary embodiment;
Fig. 6 is a block diagram illustrating a wireless access point switching apparatus according to 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 implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
fig. 1A is a schematic diagram illustrating an implementation environment involved in a wireless access point handover method according to some example embodiments, where as shown in fig. 1A, the implementation environment may include: a terminal 120, a first wireless access point 140 and a second wireless access point 160.
The terminal 120 can access the network server through a wireless local area network provided by the first wireless access point 140 or the second wireless access point 160. Assuming that the terminal 120 is currently connected to the first wireless access point 140, when the terminal 120 accesses the network server, it is detected whether the network quality between the terminal 120 and the first wireless access point 140 is worse than a first preset condition, and when the network quality between the terminal 120 and the first wireless access point 140 is worse than the first preset condition, the terminal 120 is handed over to the second wireless access point 160.
The terminal 120 may be a smart phone, a tablet computer, an e-book reader, an MP3(Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4) player, a laptop computer, a desktop computer, and the like.
in an illustrative example, assuming that the network quality is expressed in terms of a packet transmission success rate, please refer to fig. 1B, which illustrates a packet transmission flow between the terminal 120 and the network server 125 when the user accesses the network server 125 using the terminal 120. Assuming that A, B, C, D, I, J, K and L applications are installed in the terminal 120, when a user accesses a web server using an APP (Application) installed in the terminal 120, first, the APP121 sends a packet to a wireless protocol stack (wifi stack)122 in the terminal 120, the wireless protocol stack 122 forwards the received packet to a TCP/IP protocol stack 123 in a protocol layer, and the TCP/IP protocol stack 123 forwards the received packet to the first wireless access point 140 through a network card 124 in a bottom layer of the terminal 120, and accesses the web server 125 through the first wireless access point 140. The TCP/IP stack 123 records the success rate of packet transmission between the terminal 120 and the network server 125; meanwhile, the success rate of packet transmission between the network card 124 and the first wireless access point 140 is recorded in the network card 124.
fig. 2 is a flowchart illustrating a wireless access point switching method according to an exemplary embodiment, and the wireless access point switching method is applied to the terminal 120 in the implementation environment illustrated in fig. 1A and may include the following steps, as illustrated in fig. 2.
in step 201, the network quality with the currently accessed wireless access point is acquired.
In step 202, it is detected whether the network quality with the wireless access point is worse than a first preset condition.
in step 203, if the difference is less than the first predetermined condition, the access is switched to another wireless access point.
In summary, the wireless access point switching method provided in the embodiment of the present disclosure obtains the network quality between the wireless access point and the currently accessed wireless access point; detecting whether the network quality is worse than a first preset condition; if the difference is greater than the first preset condition, switching to access other wireless access points; the problem that when the terminal accesses a network server with poor performance in the related technology, the terminal is switched to other wireless access points by mistake possibly due to the self reason of the network server is solved; when the network quality between the terminal and the currently accessed wireless access point is worse than a first preset condition, the terminal is switched to be accessed to other wireless access points due to the fact that the network quality between the terminal and the wireless access points is poorer, and the effect that the terminal is switched to other wireless access points by mistake due to the self reason of a network server is avoided.
Fig. 3 is a flowchart illustrating a wireless access point handover method according to another exemplary embodiment, and the wireless access point handover method, as shown in fig. 3, applied in the terminal 120 in the implementation environment shown in fig. 1A may include the following steps.
in step 301, when accessing a web server, the network quality with the web server is obtained.
When the terminal accesses the network server, the terminal records the network quality between the terminal and the network server through a TCP/IP protocol stack in a protocol layer. When the terminal needs to acquire the network quality between the terminal and the network server, the terminal directly acquires the network quality from the TCP/IP protocol stack.
Optionally, the network quality between the terminal and the network server may be represented by at least one of a packet loss rate, a packet sending success rate, a delay duration, and a throughput.
Optionally, when the terminal accesses the corresponding network server through the application program, the network quality between the terminal and the network server is recorded in the TCP/IP protocol stack; when the terminal accesses different network servers through different application programs at the same time, the network quality between the terminal and the network server recorded in the TCP/IP protocol stack refers to the network quality between the terminal and each network server to be accessed.
in step 302, it is detected whether the network quality with the network server is worse than a second preset condition.
after the terminal acquires the network quality recorded in the TCP/IP protocol stack and between the terminal and the network server, whether the acquired network quality between the terminal and the network server is inferior to a second preset condition is detected.
This step can be implemented in several ways:
In a first implementation manner, when the network quality between the terminal and the network server is represented by a first packet loss rate, it is detected whether the first packet loss rate is greater than a first threshold.
in a second implementation manner, when the network quality between the terminal and the network server is represented by the first packet sending success rate, it is detected whether the first packet sending success rate is smaller than a second threshold.
In a third implementation manner, when the network quality between the terminal and the network server is represented by the first delay duration, it is detected whether the first delay duration is greater than a first preset duration.
in a fourth implementation, when the network quality between the terminal and the network server is represented by the first throughput, it is detected whether the first throughput is less than a third threshold.
Two detection results can be obtained by detecting whether the network quality between the terminal and the network server is worse than a second preset condition, if not worse than the second preset condition, step 303 is executed, and if worse than the second preset condition, step 304 is executed.
In step 303, if the network quality with the network server is not worse than the second predetermined condition, the access is not switched to another wireless access point.
When the network quality between the terminal and the network server is not worse than the second preset condition, it indicates that the terminal can normally access the internet at present, and no network abnormal condition occurs, so that the terminal does not need to switch to connect to other wireless access points.
in step 304, if the network quality with the network server is worse than the second preset condition, the network quality between the terminal and the currently accessed wireless access point is obtained.
When the network quality between the terminal and the network server is lower than a second preset condition, the network quality between the network card and the accessed wireless access point is poor or the performance of the accessed network server is poor, and in order to determine the reason for causing the network quality between the terminal and the network server to be lower than the second preset condition, the terminal acquires the network quality between the terminal and the currently accessed wireless access point.
optionally, after the terminal accesses the wireless access point, the terminal records the network quality between the terminal and the wireless access point through a network card in a physical layer, for example: when the distance between the terminal and the currently connected wireless access point is long, the network card of the terminal can record that the network quality between the terminal and the wireless access point is poor at the current time point; when the distance between the terminal and the wireless access point which is connected currently is short, the network card of the terminal can record that the network quality between the terminal and the wireless access point at the current time point is good.
correspondingly, the terminal acquires the network quality between the terminal and the wireless access point from the network card.
Optionally, the network quality may include: at least one of packet loss rate, packet transmission success rate, delay time and throughput.
Optionally, the wireless access point may include a router.
In step 305, it is detected whether the network quality with the wireless access point is worse than a first preset condition.
After the terminal acquires the network quality recorded in the network card and between the terminal and the wireless access point, whether the acquired network quality between the terminal and the wireless access point is worse than a first preset condition is detected.
This step can be implemented in several ways:
In a first implementation manner, when the network quality between the terminal and the wireless access point is represented by the second packet loss rate, it is detected whether the second packet loss rate is greater than a fourth threshold.
In a second implementation manner, when the network quality between the terminal and the wireless access point is represented by the second packet sending success rate, it is detected whether the second packet sending success rate is smaller than a fifth threshold.
In a third implementation manner, when the network quality between the terminal and the wireless access point is represented by the second delay duration, it is detected whether the second delay duration is greater than a second preset duration.
in a fourth implementation, when the network quality between the terminal and the wireless access point is represented by the second throughput, it is detected whether the second throughput is less than a sixth threshold.
two detection results can be obtained by detecting whether the network quality between the terminal and the wireless access point is worse than a first preset condition, and if the network quality is worse than the first preset condition, step 306 is executed; if the difference is greater than the first predetermined condition, step 307 is executed.
In step 306, if the network quality with the wireless access point is not worse than the first preset condition, the access is not switched to other wireless access points.
When the terminal detects that the network quality between the terminal and the wireless access point is not worse than the first preset condition, it indicates that the network quality between the terminal and the network server is worse not caused by the network quality between the terminal and the wireless access point, and therefore, the terminal does not switch to access to other wireless access points.
in step 307, if the network quality with the wireless access point is worse than the first predetermined condition, the access is switched to another wireless access point.
When the terminal detects that the network quality between the terminal and the wireless access point is worse than a first preset condition, the network quality between the terminal and the network server is worse, and the terminal is switched to be accessed to other wireless access points due to the fact that the network quality between the terminal and the wireless access point is worse.
In summary, the wireless access point switching method provided in the embodiment of the present disclosure obtains the network quality between the wireless access point and the currently accessed wireless access point; detecting whether the network quality is worse than a first preset condition; if the difference is greater than the first preset condition, switching to access other wireless access points; the problem that when the terminal accesses a network server with poor performance in the related technology, the terminal is switched to other wireless access points by mistake possibly due to the self reason of the network server is solved; when the network quality between the terminal and the currently accessed wireless access point is worse than a first preset condition, the terminal is switched to be accessed to other wireless access points due to the fact that the network quality between the terminal and the wireless access points is poorer, and the effect that the terminal is switched to other wireless access points by mistake due to the self reason of a network server is avoided.
In addition, when the network quality between the terminal and the network server is worse than the second preset condition and the network quality between the terminal and the wireless access point is worse than the first preset condition, the terminal is switched to be accessed to other wireless access points, so that the switching time point of the terminal switched to be accessed to other wireless access points can be more accurately determined, and the possibility that the terminal is switched to other wireless access points by mistake is reduced.
The first point to be supplemented is that, in this embodiment, an example in which one wireless access point provides one hot spot is taken as an example for illustration. When one wireless access point provides at least two hotspots, the terminal is switched to be accessed to other wireless access points, namely the terminal is switched to be accessed to other hotspots, and the terminal side does not determine whether the two hotspots are provided by the one wireless access point or not, so that the terminal is switched to be accessed to other wireless access points when the terminal side is switched to be accessed to other hotspots. In this embodiment, the number of hot spots provided by one wireless access point is not specifically limited.
A second point to be supplemented is that steps 301 to 303 in this embodiment are optional steps, and when performing a wireless access point handover, the steps 301 to 307 may be performed, or only steps 304 to 307 may be performed.
A third point to be supplemented is that, if the network quality between the terminal and the network server is worse than the second preset condition, before acquiring the network quality between the terminal and the wireless access point, the method may further include: and switching to access a preset network server.
when the network quality between the terminal and the network server is worse than the second preset condition, it is described that the network quality between the terminal and the network server is worse, and there are two reasons for the poor network quality: firstly, the performance of a network server currently accessed by a terminal is poor, so that the network quality between the terminal and the network server is poor; second, the network quality between the terminal and the wireless access point is poor, such as: when the distance between the terminal and the currently connected wireless access point is long, the network quality between the terminal and the wireless access point is poor, and finally the network quality between the terminal and the network server is poor.
In order to detect a specific reason causing poor network quality between the terminal and the network server, when the fact that the network quality between the terminal and the network server is poor than a second preset condition is detected, the terminal is switched to access the preset network server, and whether the network quality is poor due to the fact that the performance of the network server which is currently accessed by the terminal is poor is detected.
Optionally, the performance of the preset network server is good, the number of the preset network servers is not specifically limited in this embodiment, and the number of the preset network servers may be multiple or one.
after the terminal switches to access the preset network server, the network quality between the terminal and the preset network server needs to be acquired, whether the network quality is worse than a second preset condition is detected, and if the network quality between the terminal and the preset network server is worse than the second preset condition, the network quality between the terminal and a currently accessed wireless access point is acquired.
as a possible implementation manner, when there are a plurality of preset network servers, after the terminal switches to access the preset network server, before acquiring the network quality between the terminal and the currently accessed wireless access point, the method may further include the following steps:
The first step is to count the times of switching to access a preset network server within a preset time.
The terminal counts the times of switching to access the preset network server within the preset time, that is, the terminal counts the times of the network quality difference between the terminal and the network server within the preset time to be lower than the second preset condition.
And secondly, detecting whether the times reach preset times or not.
After counting the times of switching to access a preset network server within a preset time, the terminal compares the counted times with the preset times, and detects whether the counted times reach the preset times.
Third, if the number of times reaches the preset number of times, go to step 304.
and when the terminal detects that the counted times reach the preset times, acquiring the network quality between the terminal and the wireless access point.
Optionally, if the counted times detected by the terminal do not reach the preset times, the terminal does not need to switch to connect to other wireless access points.
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 wireless access point switching apparatus according to an exemplary embodiment, which is applied to the terminal 120 in the implementation environment shown in fig. 1A, as shown in fig. 4, and includes but is not limited to:
A first obtaining module 420 configured to obtain network quality with a currently accessed wireless access point.
A first detection module 440 configured to detect whether a network quality with the wireless access point is worse than a first preset condition.
The wireless switching module 460 is configured to switch access to other wireless access points if the first preset condition is worse.
in summary, the wireless access point switching apparatus provided in the embodiment of the present disclosure obtains the network quality between the wireless access point and the currently accessed wireless access point; detecting whether the network quality is worse than a first preset condition; if the difference is greater than the first preset condition, switching to access other wireless access points; the problem that when the terminal accesses a network server with poor performance in the related technology, the terminal is switched to other wireless access points by mistake possibly due to the self reason of the network server is solved; when the network quality between the terminal and the currently accessed wireless access point is worse than a first preset condition, the terminal is switched to be accessed to other wireless access points due to the fact that the network quality between the terminal and the wireless access points is poorer, and the effect that the terminal is switched to other wireless access points by mistake due to the self reason of a network server is avoided.
Fig. 5 is a block diagram illustrating a wireless access point switching apparatus according to another exemplary embodiment, which is applied to the terminal 120 in the implementation environment shown in fig. 1A, as shown in fig. 5, and includes but is not limited to:
the second obtaining module 510 is configured to obtain the network quality between the network server and the network server when accessing the network server.
optionally, in this embodiment, the second obtaining module 510 may include: a second recording sub-module 511 and a second retrieving sub-module 512.
The second recording sub-module 511 is configured to record the network quality between the network server and the TCP/IP protocol stack in the protocol layer when accessing the network server.
and a second obtaining sub-module 512 configured to obtain the network quality with the network server from the TCP/IP protocol stack.
A second detection module 520 configured to detect whether the network quality with the network server is worse than a second preset condition.
And an access switching module 530 configured to switch to access the predetermined network server and execute the second obtaining module to obtain the network quality with the network server again if the network quality with the network server is worse than a second predetermined condition.
A third obtaining module 540 configured to, if the second preset condition is worse, perform the step of obtaining the network quality between the currently accessed wireless access point and the first obtaining module 550.
A first obtaining module 550 configured to obtain a network quality with a currently accessed wireless access point.
Optionally, the first obtaining module 550 may include: a first recording submodule 551 and a first obtaining submodule 552.
the first recording submodule 551 is configured to record the network quality between the wireless access point and the network card in the physical layer when the wireless access point is accessed.
The first obtaining submodule 552 is configured to obtain the network quality with the wireless access point from the network card.
A first detection module 560 configured to detect whether a network quality with the wireless access point is worse than a first preset condition.
The wireless switching module 570 is configured to switch access to other wireless access points if the first predetermined condition is worse.
In summary, the wireless access point switching apparatus provided in the embodiment of the present disclosure obtains the network quality between the wireless access point and the currently accessed wireless access point; detecting whether the network quality is worse than a first preset condition; if the difference is greater than the first preset condition, switching to access other wireless access points; the problem that when the terminal accesses a network server with poor performance in the related technology, the terminal is switched to other wireless access points by mistake possibly due to the self reason of the network server is solved; when the network quality between the terminal and the currently accessed wireless access point is worse than a first preset condition, the terminal is switched to be accessed to other wireless access points due to the fact that the network quality between the terminal and the wireless access points is poorer, and the effect that the terminal is switched to other wireless access points by mistake due to the self reason of a network server is avoided.
in addition, when the network quality between the terminal and the network server is worse than the second preset condition and the network quality between the terminal and the wireless access point is worse than the first preset condition, the terminal is switched to be accessed to other wireless access points, so that the switching time point of the terminal switched to be accessed to other wireless access points can be more accurately determined, and the possibility that the terminal is switched to other wireless access points by mistake is reduced.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An exemplary embodiment of the present disclosure provides a wireless access point switching apparatus, which can implement the wireless access point switching method provided by the present disclosure, and the wireless access point switching apparatus includes: a processor, a memory for storing processor-executable instructions;
Wherein the processor is configured to:
Acquiring the network quality between the current access point and the currently accessed wireless access point;
detecting whether the network quality between the wireless access point and the wireless access point is worse than a first preset condition;
if the difference is less than the first preset condition, switching to access other wireless access points.
fig. 6 is a block diagram illustrating a wireless access point switching apparatus 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 game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
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, an input/output (I/O) interface 612, 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, and recording operations. 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 device 600, contact data, phonebook data, messages, pictures, videos, and so forth. 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.
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 the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive 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. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
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 I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of the components, such as a display and keypad of the device 600, the sensor component 614 may also detect a change in position of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, orientation or acceleration/deceleration of the device 600, and a change in temperature of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, 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 Wi-Fi, 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 wireless access point switching method.
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 wireless access point handover method described above 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.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
it will be understood that the present disclosure 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 present disclosure is limited only by the appended claims.

Claims (7)

1. A method for handover of a wireless access point, the method comprising:
When a network server is accessed, network quality between the network server and the network server is obtained, wherein the network quality between the network server comprises at least one of packet sending success rate and throughput;
detecting whether the network quality between the network server and the network server is worse than a second preset condition;
If the difference is larger than the second preset condition, acquiring the network quality between the current accessed wireless access point and the network quality between the current accessed wireless access point, wherein the network quality between the current accessed wireless access point and the wireless access point comprises at least one of packet sending success rate and throughput;
Detecting whether the network quality between the wireless access point and the wireless access point is worse than a first preset condition;
If the difference is greater than the first preset condition, switching to access other wireless access points;
The acquiring of the network quality between the current access wireless access point and the current access wireless access point comprises:
After accessing a wireless access point, recording the network quality between the current time point and the wireless access point through a network card in a physical layer according to the corresponding relation between the distance between the wireless access point and the current connection and the network quality between the wireless access points;
And acquiring the network quality between the network card and the wireless access point.
2. the method of claim 1, wherein prior to obtaining the network quality with the currently accessed wireless access point, the method further comprises:
and if the network quality between the network server and the network server is worse than the second preset condition, switching to access a preset network server and executing the step of acquiring the network quality between the network server and the network server again.
3. The method of claim 1, wherein obtaining the network quality with the network server when accessing the network server comprises:
When accessing the network server, recording the network quality between the network server and the network server through a transmission control protocol/internet protocol (TCP/IP) protocol stack in a protocol layer;
and acquiring the network quality between the TCP/IP protocol stack and the network server.
4. An apparatus for switching wireless access points, the apparatus comprising:
the second acquisition module is configured to acquire network quality between the network server and the network server when the network server is accessed, wherein the network quality between the network server comprises at least one of packet sending success rate and throughput;
a second detection module configured to detect whether a network quality with the network server is worse than a second preset condition;
the first obtaining module is configured to obtain the network quality between the first obtaining module and a currently accessed wireless access point if the network quality between the first obtaining module and the network server is worse than the second preset condition, wherein the network quality between the first obtaining module and the currently accessed wireless access point comprises at least one of a packet sending success rate and a throughput;
A first detection module configured to detect whether a network quality with the wireless access point is worse than a first preset condition;
The wireless switching module is configured to switch to other wireless access points if the first preset condition is worse;
The first obtaining module includes:
The first recording submodule is configured to record the network quality between the current time point and the wireless access point through a network card in a physical layer according to the corresponding relation between the distance between the current connected wireless access point and the network quality between the wireless access points after the wireless access point is accessed;
And the first acquisition submodule is configured to acquire the network quality between the network card and the wireless access point.
5. the apparatus of claim 4, further comprising:
and the access switching module is configured to switch to access a preset network server and execute the second acquisition module to acquire the network quality between the network server and the access switching module again if the network quality between the network server and the access switching module is worse than the second preset condition.
6. The apparatus of claim 4, wherein the second obtaining module comprises:
A second recording submodule configured to record, when the network server is accessed, network quality between the network server and a transmission control protocol/internet protocol (TCP)/Internet Protocol (IP) stack in a protocol layer;
and the second acquisition sub-module is configured to acquire the network quality between the network server and the TCP/IP protocol stack.
7. An apparatus for switching wireless access points, the apparatus comprising:
a processor;
a memory for storing the processor-executable instructions;
Wherein the processor is configured to:
when a network server is accessed, network quality between the network server and the network server is obtained, wherein the network quality between the network server comprises at least one of packet sending success rate and throughput;
Detecting whether the network quality between the network server and the network server is worse than a second preset condition;
If the difference is larger than the second preset condition, acquiring the network quality between the current accessed wireless access point and the network quality between the current accessed wireless access point, wherein the network quality between the current accessed wireless access point and the wireless access point comprises at least one of packet sending success rate and throughput;
Detecting whether the network quality between the wireless access point and the wireless access point is worse than a first preset condition;
If the difference is greater than the first preset condition, switching to access other wireless access points;
the acquiring of the network quality between the current access wireless access point and the current access wireless access point comprises:
after accessing a wireless access point, recording the network quality between the current time point and the wireless access point through a network card in a physical layer according to the corresponding relation between the distance between the wireless access point and the current connection and the network quality between the wireless access points;
And acquiring the network quality between the network card and the wireless access point.
CN201610619169.4A 2016-07-29 2016-07-29 Wireless access point switching method and device Active CN106231640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610619169.4A CN106231640B (en) 2016-07-29 2016-07-29 Wireless access point switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610619169.4A CN106231640B (en) 2016-07-29 2016-07-29 Wireless access point switching method and device

Publications (2)

Publication Number Publication Date
CN106231640A CN106231640A (en) 2016-12-14
CN106231640B true CN106231640B (en) 2019-12-13

Family

ID=57536364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610619169.4A Active CN106231640B (en) 2016-07-29 2016-07-29 Wireless access point switching method and device

Country Status (1)

Country Link
CN (1) CN106231640B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109217978A (en) 2017-06-30 2019-01-15 华为技术有限公司 The methods, devices and systems of data transmission
CN107241758A (en) * 2017-08-04 2017-10-10 广东欧珀移动通信有限公司 Network control method, network control unit and intelligent terminal
CN107295592A (en) * 2017-08-14 2017-10-24 广东欧珀移动通信有限公司 Method for switching network, mobile terminal and computer-readable recording medium
CN108282381A (en) * 2017-09-15 2018-07-13 广州市动景计算机科技有限公司 Network packet loss rate monitoring method, device and test server
CN110572859B (en) * 2019-09-29 2021-04-16 珠海格力电器股份有限公司 AP switching method, device, equipment and medium
CN110913447B (en) * 2019-12-30 2022-01-07 Oppo广东移动通信有限公司 Network control method, network control device, storage medium and electronic equipment
CN114916021B (en) * 2022-05-17 2023-04-28 上海山源电子科技股份有限公司 Downhole roaming system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101199229A (en) * 2005-04-21 2008-06-11 高通股份有限公司 Wireless handoffs between multiple networks
CN102469082A (en) * 2010-11-11 2012-05-23 中兴通讯股份有限公司 Method for path switching, device and system
CN105228201A (en) * 2015-10-13 2016-01-06 小米科技有限责任公司 The changing method of relay router and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100157818A1 (en) * 2005-08-31 2010-06-24 Nec Corporation Network system, server, quality degradation point estimating method, and program
EP1826949A1 (en) * 2006-02-28 2007-08-29 Thomson Licensing Seamless handover method and system
US8964595B2 (en) * 2013-06-11 2015-02-24 Seven Networks, Inc. Quality of experience enhancement for wireless networks based on received signal strength at a mobile device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101199229A (en) * 2005-04-21 2008-06-11 高通股份有限公司 Wireless handoffs between multiple networks
CN102469082A (en) * 2010-11-11 2012-05-23 中兴通讯股份有限公司 Method for path switching, device and system
CN105228201A (en) * 2015-10-13 2016-01-06 小米科技有限责任公司 The changing method of relay router and device

Also Published As

Publication number Publication date
CN106231640A (en) 2016-12-14

Similar Documents

Publication Publication Date Title
CN106231640B (en) Wireless access point switching method and device
CN106210797B (en) Network live broadcast method and device
CN106657780B (en) Image preview method and device
JP6386092B2 (en) Network selection method, apparatus, program, and recording medium
CN107040591B (en) Method and device for controlling client
EP3226432A1 (en) Method and device for sharing media data between terminals
CN105430715B (en) Control the method and device of WIFI scanning
CN105246135A (en) Wireless network accessing method and device, and mobile terminal
WO2019028730A1 (en) Information generating method and device, signal transmitting method and device
CN108476379B (en) Information recording method and information recording apparatus
KR102436552B1 (en) Cell type indication method, apparatus and computer readable storage medium
CN113784407A (en) Wireless access point switching method and device, mobile terminal and storage medium
US11197192B2 (en) Network connection management method, device and system
CN110337825B (en) Service switching method and device
CN105357735A (en) Method and device for accessing cell
CN105282867A (en) Network connection method and device
CN105163391A (en) Data transmission method, terminal and wireless access point
CN109565381B (en) Information feedback method and device
CN105227426B (en) Application interface switching method and device and terminal equipment
US11812386B2 (en) Configuration adjustment methods, apparatuses, electronic device and computer readable storage medium
CN108632939B (en) Paging method, paging device and computer readable storage medium
CN105792296A (en) CS fallback triggering method and terminal
CN108401518B (en) Channel coordination method and device
CN106922005B (en) Method and device for accessing wireless access point and computer readable storage medium
CN106919302B (en) Operation control method and device of mobile terminal

Legal Events

Date Code Title Description
C06 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