CN108632935B - WIFI network switching method - Google Patents

WIFI network switching method Download PDF

Info

Publication number
CN108632935B
CN108632935B CN201810300238.4A CN201810300238A CN108632935B CN 108632935 B CN108632935 B CN 108632935B CN 201810300238 A CN201810300238 A CN 201810300238A CN 108632935 B CN108632935 B CN 108632935B
Authority
CN
China
Prior art keywords
mobile terminal
base station
candidate
bluetooth base
broadcast message
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
CN201810300238.4A
Other languages
Chinese (zh)
Other versions
CN108632935A (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.)
Tendyron Corp
Original Assignee
Tendyron Corp
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 Tendyron Corp filed Critical Tendyron Corp
Priority to CN201810300238.4A priority Critical patent/CN108632935B/en
Publication of CN108632935A publication Critical patent/CN108632935A/en
Application granted granted Critical
Publication of CN108632935B publication Critical patent/CN108632935B/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/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/18Performing reselection for specific purposes for allowing seamless reselection, e.g. soft reselection
    • 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
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

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

Abstract

The invention discloses a WIFI network switching method which comprises the following steps: at least two Bluetooth base stations send broadcast messages according to a preset period, wherein each broadcast message at least carries a transmitting power value of the broadcast message; the mobile terminal or the background server calculates a first distance between the mobile terminal and each Bluetooth base station according to the transmitting power value and the receiving power value of the broadcast message and a function that the power attenuation changes along with the distance; the mobile terminal or the background server selects candidate Bluetooth base stations which the mobile terminal approaches according to the first distance and one or more second distances between the mobile terminal and each Bluetooth base station before the current moment; the mobile terminal and the candidate WIFI access point uniquely corresponding to the candidate Bluetooth base station complete pre-connection operation; and when the power value of the broadcast message sent by the current Bluetooth base station and the power value of the broadcast message sent by the candidate Bluetooth base station, which are received by the mobile terminal, meet the preset condition, finishing the switching operation.

Description

WIFI network switching method
Technical Field
The invention relates to the field of wireless networks, in particular to a WIFI network switching method.
Background
With the popularization of wireless network communication, WIFI coverage is achieved in more and more homes, offices and public service places. In practical use scenarios, multiple wireless router networks are required to provide signal coverage for larger fields due to the limited signal coverage of each wireless router. The mobile device may then be involved in switching connections between multiple routers during mobility.
In the prior art, a method for processing hotspot switching of a mobile device in a public area covered by multiple WIFI hotspots generally includes: when the intensity of the WIFI signal is lower than a certain threshold value, the mobile device disconnects the hotspot, searches other WIFI Access Points (APs) with strong signals, performs pre-connection operation (authentication, key agreement and the like) with a new AP, and establishes connection. When a user moves to an area where the signals of two APs overlap, such a situation may occur: after connecting to AP1, the mobile device will always connect to AP1, even if the signal of AP2 is stronger than that of AP1 after reaching the vicinity of AP2, and as long as the handover threshold is not reached, the mobile device will still connect to AP1 and will not switch to AP 2. And, after disconnection, the old connection and the new AP are connected before handshaking negotiation and other steps are required again, so that the device is often disconnected for a short time when moving to the edge coverage area of the WIFI access point, and can be reconnected after signal switching is completed, and the switching time is slow, which causes poor user experience.
Disclosure of Invention
The present invention aims to solve one of the above problems.
The invention mainly aims to provide a WIFI network switching method.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides a WIFI network switching method on one hand, which comprises the following steps: at least two Bluetooth base stations send broadcast messages according to a preset time period, wherein each broadcast message at least carries a transmitting power value of the broadcast message; the mobile terminal receives the broadcast message, acquires a transmitting power value from the broadcast message, measures the receiving power value of the received broadcast message, calculates a power attenuation value according to the receiving power value and the transmitting power value, and calculates a first distance between the mobile terminal and each Bluetooth base station according to a function that the power attenuation changes along with the distance; the mobile terminal selects a candidate Bluetooth base station which the mobile terminal approaches from at least two Bluetooth base stations according to a first distance and a second distance, wherein the second distance is one or more distances between the mobile terminal and each Bluetooth base station before the current time; the method comprises the steps that a mobile terminal initiates pre-connection operation of candidate WIFI access points corresponding to candidate Bluetooth base stations to generate process data, and the mobile terminal and the candidate WIFI access points store the process data, wherein each Bluetooth base station has a corresponding relation with only one WIFI access point; when the power value of the broadcast message sent by the current Bluetooth base station and the power value of the broadcast message sent by the candidate Bluetooth base station, which are received by the mobile terminal, meet preset conditions, the mobile terminal sends a switching instruction to the current WIFI access point and the candidate WIFI access point, the current WIFI access point and the candidate WIFI access point receive the switching instruction, and switching operation from the current WIFI access point to the candidate WIFI access point is completed according to process data.
Another aspect of the present invention provides another WIFI network switching method, including: at least two Bluetooth base stations send broadcast messages according to a preset time period, wherein each broadcast message at least carries a transmitting power value of the broadcast message and identification information of the Bluetooth base station sending the broadcast message; the mobile terminal receives the broadcast message, acquires a transmitting power value and identification information from the broadcast message, measures a receiving power value of the received broadcast message, and transmits the transmitting power value, the receiving power value and the identification information to the background server; the background server receives the transmitting power value, the receiving power value and the identification information, calculates a power attenuation value according to the receiving power and the transmitting power, calculates a first distance between the mobile terminal and each Bluetooth base station according to a function that the power attenuation changes along with the distance, and stores the first distance; the background server selects a candidate Bluetooth base station which the mobile terminal is approaching from at least two Bluetooth base stations according to a first distance and a second distance, and sends a pre-connection instruction to the mobile terminal and a candidate WIFI access point, wherein the second distance is one or more distances between the mobile terminal and each Bluetooth base station before the current moment, each Bluetooth base station and only one WIFI access point have a corresponding relation, and the candidate WIFI access point is a candidate WIFI access point corresponding to the candidate Bluetooth base station acquired by the mobile terminal or the background server according to identification information of the candidate Bluetooth base station; the candidate WIFI access point and the mobile terminal receive a pre-connection instruction, pre-connection operation is carried out, process data are generated, and the mobile terminal and the candidate WIFI access point store the process data; when the power value of the broadcast message sent by the current Bluetooth base station and the power value of the broadcast message sent by the candidate Bluetooth base station, which are received by the mobile terminal, meet preset conditions, the mobile terminal sends a switching instruction to the current WIFI access point and the candidate WIFI access point, the current WIFI access point and the candidate WIFI access point receive the switching instruction, and switching operation from the current WIFI access point to the candidate WIFI access point is completed according to process data.
Optionally, during the pre-connection operation of the mobile terminal and the candidate WIFI access point, the mobile terminal and the candidate WIFI access point perform data interaction through a bluetooth network, and the bluetooth network is a bluetooth network formed by any one bluetooth hotspot having a corresponding relationship with the candidate WIFI access point.
Optionally, the preset conditions include: the power value of the broadcast message sent by the current Bluetooth base station received by the mobile terminal is smaller than the power value of the broadcast message sent by the candidate Bluetooth base station.
Optionally, dividing the power value of the broadcast message into different power levels; the preset conditions comprise: the power level of the broadcast message sent by the current Bluetooth base station received by the mobile terminal is smaller than that of the broadcast message sent by the candidate Bluetooth base station.
Optionally, the preset conditions include: the power value of the broadcast message sent by the current Bluetooth base station received by the mobile terminal is smaller than a first preset value and/or the power value of the broadcast message sent by the candidate Bluetooth base station is larger than a second preset value.
Optionally, the pre-connection comprises: the candidate WIFI access point performs identity authentication on the mobile terminal; and the candidate WIFI access point performs handshaking and key negotiation with the mobile terminal.
According to the technical scheme provided by the invention, the WIFI network switching method provided by the invention has the advantages that the Bluetooth base station which the mobile terminal is approaching to is analyzed by means of Bluetooth positioning by utilizing the advantage of high Bluetooth positioning precision, so that the candidate WIFI access points which the mobile terminal is going to enter are further determined, and pre-connection is carried out in advance, so that when connection is formally switched, the switching is completed by directly using the process data generated in the pre-connection process, the pre-connection time in the traditional switching process is saved, and the non-inductive switching of the mobile terminal at different WIFI access points is realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a flowchart of a WIFI network switching method provided in embodiment 1 of the present invention;
fig. 2 is a flowchart of another WIFI network switching method provided in embodiment 2 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used only for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or quantity or location.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
Example 1
As shown in fig. 1, the WIFI network switching method provided in this embodiment includes steps S101 to S105.
Step S101, at least two Bluetooth base stations send broadcast messages according to a preset time period, and each broadcast message at least carries a transmitting power value of the broadcast message.
In this embodiment, the bluetooth base station may use a bluetooth 4.0 protocol with low power consumption to perform communication, so as to reduce power consumed by the bluetooth base station during the positioning process and prolong the service life of the mobile terminal. The at least two Bluetooth base stations comprise a current Bluetooth base station and at least one candidate Bluetooth base station. In a specific implementation process, at least two bluetooth base stations may periodically send broadcast messages according to the same time period, or may send broadcast messages according to different time periods, which is not specifically limited in this embodiment. In addition, in a general case, the transmission power of the same bluetooth base station is fixed, so that the broadcast message is sent according to the same transmission power every time, and of course, the bluetooth base station may also be set to use different transmission powers to send the broadcast message according to actual needs, which is not specifically limited in this embodiment.
Step S102, the mobile terminal receives the broadcast message, acquires the transmitting power value from the broadcast message, measures the receiving power value of the received broadcast message, calculates the power attenuation value according to the receiving power value and the transmitting power value, and calculates the first distance between the mobile terminal and each Bluetooth base station according to the function that the power attenuation changes along with the distance.
In this embodiment, the mobile terminal may be a mobile phone, a tablet computer, an intelligent key device, or the like. The mobile terminal can carry on the bluetooth module for realize the bluetooth function. The mobile terminal can also adopt a Bluetooth 4.0 protocol with low power consumption characteristics for communication like a Bluetooth base station, so that the power consumption of Bluetooth is reduced, and the service time of the mobile terminal is prolonged. When the mobile terminal is located in the signal coverage area of a certain bluetooth base station, the mobile terminal can receive the broadcast messages sent by the bluetooth base station, and when the mobile terminal is located in the overlapping area of the signal coverage areas of a plurality of bluetooth base stations, the mobile terminal can simultaneously receive the broadcast messages sent by the corresponding bluetooth base stations. After the mobile terminal receives the broadcast message, the receiving power value of the received broadcast message can be measured, the receiving power value is divided by the transmitting power value obtained from the broadcast message to obtain a power attenuation value, and finally, the current first distance between the mobile terminal and each Bluetooth base station is respectively calculated according to a function that the power attenuation changes along with the distance.
In a specific embodiment, the broadcast message is a wireless signal, and when the occlusion of an obstacle is not considered, the power attenuation in the transmission process is mainly caused by the transmission in the free space, so that the function of the power attenuation value of each bluetooth base station changing with the distance is the same, and the mobile terminal only needs to store one function of the power attenuation value changing with the distance. After the mobile terminal obtains the power attenuation value of any one Bluetooth broadcast message, the distance between the mobile terminal and the Bluetooth base station can be calculated only by substituting the function. When there are many obstacles in the surrounding environment, the functions of the power attenuation value of each bluetooth base station changing with the distance are different due to different positions of different bluetooth base stations and different obstacles in the surrounding environment. Therefore, after the bluetooth base stations are arranged, the function of the power attenuation value of each bluetooth base station changing with the distance can be obtained through a large number of measurement experiments in the current application environment. The Bluetooth base station carries a function of the power attenuation value corresponding to the Bluetooth base station changing along with the distance in the sent broadcast message, and the mobile terminal calculates the distance between the mobile terminal and the Bluetooth base station according to the function.
In this embodiment, after the mobile terminal calculates the first distance between the mobile terminal and each bluetooth base station, the first distance information may be stored, for example, information related to the first distance may be stored in a memory of the mobile terminal.
Step S103, the mobile terminal selects a candidate Bluetooth base station which the mobile terminal approaches from at least two Bluetooth base stations according to a first distance and a second distance, wherein the second distance is one or more distances between the mobile terminal and each Bluetooth base station before the current time.
In this embodiment, after the mobile terminal calculates the distance between the bluetooth base station and the mobile terminal each time, the distance value may be stored in the memory, so that, at the current time, the mobile terminal stores different times (the distance between the mobile terminal and each bluetooth base station, respectively) within a period of time before the current time and the current time.
And step S104, the mobile terminal initiates pre-connection operation of candidate WIFI access points corresponding to the candidate Bluetooth base stations to generate process data, and the mobile terminal and the candidate WIFI access points store the process data, wherein each Bluetooth base station has a corresponding relation with one unique WIFI access point.
In this embodiment, the bluetooth base stations and the WIFI access points may have a one-to-one correspondence relationship, that is, each bluetooth base station has a correspondence relationship with one unique WIFI access point, and each WIFI access point also has a correspondence relationship with one unique bluetooth base station. However, since the transmission distance of the bluetooth signal is generally shorter than that of the WIFI signal, when the bluetooth base stations are arranged in a one-to-one correspondence manner with the WIFI access points, the corresponding WIFI access points need to be arranged for each bluetooth base station, so that the cost is high. Because the transmission distance of the WIFI signal is usually longer than that of the WIFI signal, a plurality of Bluetooth base stations can be generally arranged in the coverage range of one WIFI access point, and therefore the plurality of Bluetooth base stations can be set to jointly correspond to one WIFI access point, so that the number of the WIFI access points is reduced, and the cost can be saved. The bluetooth base station and the WIFI access point having the corresponding relationship therebetween may be connected in a wired manner, or may be connected in a wireless manner, which is not specifically limited in this embodiment.
In this embodiment, the candidate WIFI access points corresponding to the candidate bluetooth base stations may be acquired by the mobile terminal or the background server. Because each bluetooth base station has a corresponding relationship with only one WIFI access point, after the mobile terminal or the background server selects the candidate bluetooth base station, the candidate WIFI access point can be selected according to the corresponding relationship between the bluetooth base station and the WIFI access point. Of course, after the mobile terminal selects the candidate bluetooth base station, the mobile terminal may also send the identity information (for example, the identification information of the bluetooth base station) of the candidate bluetooth base station to the background server, and the background server selects the candidate WIFI access point corresponding to the candidate bluetooth base station according to the correspondence between the bluetooth base station and the WIFI access point.
As an optional implementation of the embodiment of the present invention, the pre-connection includes: the candidate WIFI access point performs identity authentication on the mobile terminal; and the candidate WIFI access point performs handshaking and key negotiation with the mobile terminal. In the optional embodiment, the security of both communication parties is confirmed through identity authentication, a transmission key is negotiated in the key negotiation process, and in subsequent communication, the transmission key can be used for encrypting data interacted between both communication parties, so that the communication security is ensured.
In a specific implementation process, the identity authentication can be performed in the following manner: the mobile terminal sends an authentication request to the candidate WIFI access point and starts an authentication process, wherein the authentication request at least comprises user information; the candidate WIFI access point forwards the authentication request to an authentication server; the authentication server receives the authentication request, extracts user information from the authentication request, compares the extracted user information with a user information list in a database, finds password information corresponding to the user information, generates a random number, encrypts the password information by using the random number to obtain a first password information ciphertext, and sends the random number to the candidate WIFI access point; the candidate WIFI access point receives the random number sent by the authentication server and forwards the random number to the mobile terminal; the mobile terminal receives the random number, encrypts password information input by a user on the mobile terminal by using the random number to obtain a second password information ciphertext, and sends the second password information ciphertext to the candidate WIFI access point; the candidate WIFI access point receives the second password information ciphertext and forwards the second password information ciphertext to the authentication server; the authentication server receives the second password information ciphertext, compares whether the second password information ciphertext is the same as the first password information ciphertext, if so, considers that the mobile terminal is legal equipment, and sends a message for indicating that the identity authentication is passed to the candidate WIFI access point; and the candidate WIFI access point receives a message for indicating that the identity authentication is passed, changes the port into an authorization state, allows the mobile terminal to access the network through the port, and sends the master key to the mobile terminal.
In a specific implementation process, the performing, by the candidate WIFI access point, a key agreement with the mobile terminal may include: the candidate WIFI access point acquires a first random number and sends the first random number to the mobile terminal; the mobile terminal receives the first random number, generates a second random number, generates a first transmission key according to the master key, the first random number, the second random number, the candidate WIFI access point and the equipment address of the mobile terminal, performs verification calculation on the first transmission key to obtain a first verification value, and sends the second random number and the first verification value to the candidate WIFI access point; the candidate WIFI access point receives the second random number and the first check value, generates a second transmission key according to the first random number, the second random number, the master key, the candidate WIFI access point and the equipment address of the mobile terminal, performs check calculation on the second transmission key to obtain a second check value, compares whether the first check value and the second check value are equal, if yes, passes the check, and sends confirmation information and the second check value to the mobile terminal; the mobile terminal verifies whether the second check value is correct or not, if so, the mobile terminal passes the verification and sends verification passing information to the candidate WIFI access point; and the candidate WIFI access point receives the verification passing information and stores the second transmission key.
In this embodiment, the process data may include any data generated by the candidate WIFI access point and the mobile terminal during the identity authentication and key agreement process, for example, the data may include a first transmission key, a second transmission key, and the like. The mobile terminal and the candidate WIFI access point store the process data so that the process data can be directly used for switching in the subsequent formal switching process, and the time required by switching is shortened.
As an optional implementation manner of the embodiment of the present invention, in the process of performing a pre-connection operation on the mobile terminal and the candidate WIFI access point, the mobile terminal and the candidate WIFI access point perform data interaction through a bluetooth network, where the bluetooth network is formed by any one bluetooth hotspot having a corresponding relationship with the candidate WIFI access point. In the optional implementation mode, data interaction in the pre-connection process is performed through the Bluetooth network, and in the pre-connection process, the WIFI network can normally communicate with the mobile terminal.
When the mobile terminal can receive the broadcast message sent by the candidate Bluetooth base station, the mobile terminal is inevitably positioned in the signal coverage range of the candidate Bluetooth base station, and then the mobile terminal can carry out Bluetooth communication with the candidate Bluetooth base station.
Step S105, when the power value of the broadcast message sent by the current Bluetooth base station and the power value of the broadcast message sent by the candidate Bluetooth base station, which are received by the mobile terminal, meet preset conditions, the mobile terminal sends a switching instruction to the current WIFI access point and the candidate WIFI access point, the current WIFI access point and the candidate WIFI access point receive the switching instruction, and switching operation from the current WIFI access point to the candidate WIFI access point is completed according to process data.
In this embodiment, the mobile terminal determines the time for switching from the current WIFI access point to the candidate WIFI access point according to the received power value of the broadcast message sent by the current bluetooth base station and the received power value of the broadcast message sent by the candidate bluetooth base station, and completes the switching operation.
By the WIFI network switching method provided by the embodiment, the advantage of high Bluetooth positioning precision is utilized, and the Bluetooth base station which the mobile terminal is approaching to is analyzed by means of Bluetooth positioning, so that the candidate WIFI access points which the mobile terminal is going to enter are further determined, pre-connection is performed in advance, and when connection is formally switched, switching is completed by directly using process data generated in the pre-connection process, the pre-connection time in the traditional switching process is saved, and the non-inductive switching of the mobile terminal at different WIFI access points is realized.
As an optional implementation manner of the embodiment of the present invention, the preset conditions for the mobile terminal to switch from the current WIFI access point to the candidate WIFI access point include the following three conditions:
the method I and the preset conditions comprise: the power value of the broadcast message sent by the current Bluetooth base station received by the mobile terminal is smaller than the power value of the broadcast message sent by the candidate Bluetooth base station.
In this embodiment, when the power value of the broadcast message received by the mobile terminal and sent by the current bluetooth base station is smaller than the power value of the broadcast message sent by the candidate bluetooth base station, it indicates that the distance between the mobile terminal and the current bluetooth base station is greater than the distance between the mobile terminal and the candidate bluetooth base station, and generally, at this time, the power value of the current WIFI access point corresponding to the current bluetooth base station is smaller than the power value of the candidate WIFI access point corresponding to the candidate bluetooth base station. Therefore, through the mode, the WIFI access point with the larger power value can be ensured to be always connected with the mobile terminal.
Dividing the power value of the broadcast message into different power levels; the preset conditions comprise: the power level of the broadcast message sent by the current Bluetooth base station received by the mobile terminal is smaller than that of the broadcast message sent by the candidate Bluetooth base station.
In this manner, the power levels of the power values of the broadcast messages may be divided by the same power interval P. The power levels of the power values of the broadcast messages may also be divided according to different power intervals, for example, the power levels are divided at smaller intervals in intervals where the power values are more concentrated, and the power levels are divided at larger intervals in intervals where the power values are less concentrated. When the mobile terminal moves at the boundary between the current bluetooth base station and the candidate bluetooth base station, the magnitude relationship between the power value of the broadcast message sent by the current bluetooth base station and the power value of the broadcast message sent by the candidate bluetooth base station, which is received by the mobile terminal, may change frequently, and if the switching is performed according to the first mode, the mobile terminal may be frequently switched between the current WIFI access point and the candidate WIFI access point. And by adopting the second mode to carry out switching, the switching times in the case can be obviously reduced.
And a third mode, presetting conditions, including: the power value of the broadcast message sent by the current Bluetooth base station received by the mobile terminal is smaller than a first preset value and/or the power value of the broadcast message sent by the candidate Bluetooth base station is larger than a second preset value.
In this embodiment, the preset conditions can be classified into the following three cases: the power value of the broadcast message received by the mobile terminal and sent by the current Bluetooth base station is smaller than a first preset value, the power value of the broadcast message received by the mobile terminal and sent by the candidate Bluetooth base station is larger than a second preset value, the power value of the broadcast message received by the mobile terminal and sent by the current Bluetooth base station is smaller than the first preset value, and the power value of the broadcast message sent by the candidate Bluetooth base station is larger than the second preset value. Under the conditions of the first two situations, the mobile terminal only needs to calculate the power value of the broadcast message sent by one bluetooth base station, so that the calculation amount is obviously reduced. In the third situation, although the mobile terminal needs to calculate the power values of the broadcast messages sent by the current bluetooth base station and the candidate bluetooth base station, frequent handover can be avoided.
Example 2
The present embodiment 2 differs from embodiment 1 in that: in the embodiment, the background server calculates the distance between the mobile terminal and the bluetooth base station and selects the candidate bluetooth base station, while in the embodiment 1, the mobile terminal calculates the distance between the mobile terminal and the bluetooth base station and selects the candidate bluetooth base station. In this embodiment, only the portions different from embodiment 1 will be described, and the other portions will be simply described.
Fig. 2 is a flowchart of a WIFI network switching method provided in embodiment 2 of the present invention, and as shown in fig. 2, the WIFI network switching method provided in embodiment 2 of the present invention includes steps S201 to S206.
Step S201, at least two Bluetooth base stations send broadcast messages according to a preset time period, and each broadcast message at least carries a transmitting power value of the broadcast message and identification information of the Bluetooth base station sending the broadcast message.
In this embodiment, the identification information of the bluetooth base station is information that can be used to uniquely identify the identity of the bluetooth base station, and the identification information may be formed by letters, numbers, a combination of letters and numbers, and the like.
Step S202, the mobile terminal receives the broadcast message, acquires the transmitting power value and the identification information from the broadcast message, measures the receiving power value of the received broadcast message, and sends the transmitting power value, the receiving power value and the identification information to the background server.
Step S203, the background server receives the transmitting power value, the receiving power value and the identification information, calculates a power attenuation value according to the receiving power and the transmitting power, calculates a first distance between the mobile terminal and each Bluetooth base station according to a function of the power attenuation changing along with the distance, and stores the first distance.
And S204, the background server selects a candidate Bluetooth base station which the mobile terminal is approaching from at least two Bluetooth base stations according to the first distance and the second distance, and sends a pre-connection instruction to the mobile terminal and the candidate WIFI access point, wherein the second distance is one or more distances between the mobile terminal and each Bluetooth base station before the current moment, and the candidate WIFI access point is acquired by the mobile terminal or the background server according to the identification information of the candidate Bluetooth base station, and each Bluetooth base station and only one WIFI access point have a corresponding relation.
Step S205, the candidate WIFI access point and the mobile terminal receive a pre-connection instruction, pre-connection operation is carried out, process data are generated, and the mobile terminal and the candidate WIFI access point store the process data.
Step S206, when the power value of the broadcast message sent by the current Bluetooth base station and the power value of the broadcast message sent by the candidate Bluetooth base station, which are received by the mobile terminal, meet preset conditions, the mobile terminal sends a switching instruction to the current WIFI access point and the candidate WIFI access point, the current WIFI access point and the candidate WIFI access point receive the switching instruction, and switching operation from the current WIFI access point to the candidate WIFI access point is completed according to the process data.
By the WIFI network switching method provided by the embodiment, the advantage of high Bluetooth positioning precision is utilized, and the Bluetooth base station which the mobile terminal is approaching to is analyzed by means of Bluetooth positioning, so that the candidate WIFI access points which the mobile terminal is going to enter are further determined, pre-connection is performed in advance, and when connection is formally switched, switching is completed by directly using process data generated in the pre-connection process, the pre-connection time in the traditional switching process is saved, and the non-inductive switching of the mobile terminal at different WIFI access points is realized.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware that is related to instructions of a program, and the program may be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made in the above embodiments by those of ordinary skill in the art without departing from the principle and spirit of the present invention. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (3)

1. A WIFI network switching method is characterized by comprising the following steps:
at least two Bluetooth base stations send broadcast messages according to a preset time period, wherein each broadcast message at least carries a transmitting power value of the broadcast message;
the mobile terminal receives the broadcast message, acquires the transmitting power value from the broadcast message, measures the receiving power value of the received broadcast message, calculates a power attenuation value according to the receiving power value and the transmitting power value, and calculates a first distance between the mobile terminal and each Bluetooth base station according to a function that the power attenuation changes along with the distance;
the mobile terminal selects a candidate Bluetooth base station which the mobile terminal approaches from the at least two Bluetooth base stations according to a second distance and the first distance, wherein the second distance is one or more distances between the mobile terminal and each Bluetooth base station before the current moment;
the mobile terminal initiates pre-connection operation of candidate WIFI access points corresponding to the candidate Bluetooth base stations to generate process data, and the mobile terminal and the candidate WIFI access points store the process data, wherein each Bluetooth base station has a corresponding relation with one unique WIFI access point;
when the power value of the broadcast message sent by the current Bluetooth base station and the power value of the broadcast message sent by the candidate Bluetooth base station, which are received by the mobile terminal, meet preset conditions, the mobile terminal sends a switching instruction to a current WIFI access point and the candidate WIFI access point, and the current WIFI access point and the candidate WIFI access point receive the switching instruction and complete switching operation from the current WIFI access point to the candidate WIFI access point according to the process data;
the pre-joining, comprising:
the candidate WIFI access point performs identity authentication on the mobile terminal;
the candidate WIFI access point performs handshake and key agreement with the mobile terminal;
the process data includes: any data generated by the candidate WIFI access point and the mobile terminal in the identity authentication and key agreement process;
the preset conditions comprise:
the power value of the broadcast message sent by the current Bluetooth base station and received by the mobile terminal is smaller than the power value of the broadcast message sent by the candidate Bluetooth base station; or
The power level of the broadcast message sent by the current Bluetooth base station and received by the mobile terminal is smaller than that of the broadcast message sent by the candidate Bluetooth base station, wherein the power level is obtained by dividing the power value of the broadcast message into different power levels; or
And the power value of the broadcast message received by the mobile terminal and sent by the current Bluetooth base station is smaller than a first preset value and/or the power value of the broadcast message sent by the candidate Bluetooth base station is larger than a second preset value.
2. A WIFI network switching method is characterized by comprising the following steps:
at least two Bluetooth base stations send broadcast messages according to a preset time period, wherein each broadcast message at least carries a transmitting power value of the broadcast message and identification information of the Bluetooth base station sending the broadcast message;
the mobile terminal receives the broadcast message, acquires the transmitting power value and the identification information from the broadcast message, measures the receiving power value of the received broadcast message, and sends the transmitting power value, the receiving power value and the identification information to a background server;
the background server receives the transmitting power value, the receiving power value and the identification information, calculates a power attenuation value according to the receiving power and the transmitting power, calculates a first distance between the mobile terminal and each Bluetooth base station according to a function of the power attenuation changing along with the distance, and stores the called first distance;
the background server selects a candidate Bluetooth base station which the mobile terminal is approaching from the at least two Bluetooth base stations according to a second distance and the first distance, and sends a pre-connection instruction to the mobile terminal and a candidate WIFI access point, wherein the second distance is one or more distances between the mobile terminal and each Bluetooth base station before the current moment, each Bluetooth base station has a corresponding relation with only one WIFI access point, and the candidate WIFI access point is a candidate WIFI access point corresponding to the candidate Bluetooth base station acquired by the mobile terminal or the background server according to identification information of the candidate Bluetooth base station;
the candidate WIFI access point and the mobile terminal receive the pre-connection instruction, pre-connection operation is carried out, process data are generated, and the mobile terminal and the candidate WIFI access point store the process data;
when the power value of the broadcast message sent by the current Bluetooth base station and the power value of the broadcast message sent by the candidate Bluetooth base station, which are received by the mobile terminal, meet preset conditions, the mobile terminal sends a switching instruction to a current WIFI access point and the candidate WIFI access point, and the current WIFI access point and the candidate WIFI access point receive the switching instruction and complete switching operation from the current WIFI access point to the candidate WIFI access point according to the process data;
the pre-joining, comprising:
the candidate WIFI access point performs identity authentication on the mobile terminal;
the candidate WIFI access point performs handshake and key agreement with the mobile terminal;
the process data includes: any data generated by the candidate WIFI access point and the mobile terminal in the processes of identity authentication and key agreement;
the preset conditions comprise:
the power value of the broadcast message sent by the current Bluetooth base station and received by the mobile terminal is smaller than the power value of the broadcast message sent by the candidate Bluetooth base station; or
The power level of the broadcast message sent by the current Bluetooth base station and received by the mobile terminal is smaller than that of the broadcast message sent by the candidate Bluetooth base station, wherein the power level is obtained by dividing the power value of the broadcast message into different power levels; or
And the power value of the broadcast message received by the mobile terminal and sent by the current Bluetooth base station is smaller than a first preset value and/or the power value of the broadcast message sent by the candidate Bluetooth base station is larger than a second preset value.
3. The method according to claim 1 or 2, wherein during the pre-connection operation between the mobile terminal and the candidate WIFI access point, the mobile terminal and the candidate WIFI access point perform data interaction through a bluetooth network, and the bluetooth network is formed by any one bluetooth hotspot having a corresponding relationship with the candidate WIFI access point.
CN201810300238.4A 2018-04-04 2018-04-04 WIFI network switching method Active CN108632935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810300238.4A CN108632935B (en) 2018-04-04 2018-04-04 WIFI network switching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810300238.4A CN108632935B (en) 2018-04-04 2018-04-04 WIFI network switching method

Publications (2)

Publication Number Publication Date
CN108632935A CN108632935A (en) 2018-10-09
CN108632935B true CN108632935B (en) 2020-02-21

Family

ID=63704955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810300238.4A Active CN108632935B (en) 2018-04-04 2018-04-04 WIFI network switching method

Country Status (1)

Country Link
CN (1) CN108632935B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111065077B (en) * 2018-10-17 2023-08-18 阿里巴巴集团控股有限公司 Bluetooth Mesh network and communication method, device and storage medium thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752755A (en) * 2012-07-31 2012-10-24 中国能源建设集团广东省电力设计研究院 Wireless access point switching method
CN103546933A (en) * 2013-10-22 2014-01-29 惠州Tcl移动通信有限公司 Method and system for intelligently switching network connection
CN105451303A (en) * 2014-07-02 2016-03-30 阿里巴巴集团控股有限公司 Network access method and device, server, and terminal
CN107005784A (en) * 2014-09-11 2017-08-01 莱尔德无线技术(上海)有限公司 Bluetooth aid collaborative WIFI is scanned and roamed
CN107360601A (en) * 2017-08-16 2017-11-17 维沃移动通信有限公司 A kind of method for switching network, mobile terminal and computer-readable recording medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631367B (en) * 2009-08-21 2012-07-04 华为终端有限公司 Method for switching terminal equipment among access equipment, access equipment and terminal equipment
WO2014047895A1 (en) * 2012-09-28 2014-04-03 华为技术有限公司 Method for detecting terminal by base station, base station and network entity
US10219166B2 (en) * 2015-04-30 2019-02-26 Mist Systems, Inc. Methods and apparatus for generating, transmitting and/or using beacons

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752755A (en) * 2012-07-31 2012-10-24 中国能源建设集团广东省电力设计研究院 Wireless access point switching method
CN103546933A (en) * 2013-10-22 2014-01-29 惠州Tcl移动通信有限公司 Method and system for intelligently switching network connection
CN105451303A (en) * 2014-07-02 2016-03-30 阿里巴巴集团控股有限公司 Network access method and device, server, and terminal
CN107005784A (en) * 2014-09-11 2017-08-01 莱尔德无线技术(上海)有限公司 Bluetooth aid collaborative WIFI is scanned and roamed
CN107360601A (en) * 2017-08-16 2017-11-17 维沃移动通信有限公司 A kind of method for switching network, mobile terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN108632935A (en) 2018-10-09

Similar Documents

Publication Publication Date Title
CN108712715B (en) Method for switching network by using Bluetooth hotspot
CN108601052B (en) Wireless network switching method
US11246076B2 (en) Wireless network handover method and apparatus based on distance change between terminal and access points
CN112087734B (en) Communication method and device
US9549357B2 (en) Promoting wireless local area network (WLAN) roaming
KR102198573B1 (en) Method and apparatus for performance handover in a wireless communication system
US20120129537A1 (en) Method for handoff to a femtocell in a wireless communication system, and server apparatus for the same
CN106454746B (en) Device-to-device communication method, device and system
WO2017114097A1 (en) Wireless access point configuration method and system, base station and user terminal thereof
KR20160035007A (en) Method for dynamically changing mobile networks, subscription data manager and user equipment
CN102469543A (en) Admission control method, apparatus thereof and system thereof
US20220264407A1 (en) Communications device, infrastructure equipment, core network element and methods
WO2016054962A1 (en) Access point handover method, network control node and user equipment in wireless communication
CN111656854B (en) Reducing latency in a wireless network
CN110012500B (en) Method and device for reporting measurement report
CN103384365A (en) Method and system for network access, method for processing business and equipment
CN108632935B (en) WIFI network switching method
KR101369898B1 (en) Mobile communication method, mobile management node, and subscriber management server
US20160316499A1 (en) Identification of a broadband connection
KR102077110B1 (en) Method for avoiding interference in wireless local access networks and appratus using thereof
WO2017088461A1 (en) Method for handling network coverage hole, micro base station and related apparatus
KR101131841B1 (en) System and method for adaptive roaming threshold parameter setup
EP3182792B1 (en) Method for adjusting clear channel assessment threshold, and access point
KR20100069078A (en) Method and system for handover between femto access point and macro base station
KR101801341B1 (en) MME management apparatus based on the LTE small cell system and method therefor

Legal Events

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