CN106488529B - WIFI network access method and device - Google Patents

WIFI network access method and device Download PDF

Info

Publication number
CN106488529B
CN106488529B CN201510522603.2A CN201510522603A CN106488529B CN 106488529 B CN106488529 B CN 106488529B CN 201510522603 A CN201510522603 A CN 201510522603A CN 106488529 B CN106488529 B CN 106488529B
Authority
CN
China
Prior art keywords
access information
wifi hotspot
wifi
information list
hotspot access
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
CN201510522603.2A
Other languages
Chinese (zh)
Other versions
CN106488529A (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.)
ZTE Corp
Original Assignee
ZTE 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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510522603.2A priority Critical patent/CN106488529B/en
Priority to PCT/CN2016/079912 priority patent/WO2016180210A1/en
Publication of CN106488529A publication Critical patent/CN106488529A/en
Application granted granted Critical
Publication of CN106488529B publication Critical patent/CN106488529B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Abstract

The invention provides a method and a device for accessing a WIFI network, wherein the method for accessing the WIFI network comprises the following steps: searching WIFI hotspots around the current mobile terminal to obtain a WIFI hotspot information list; determining a first WIFI hotspot access information list matched with the position information of the mobile terminal; determining a WIFI hotspot access information list to be accessed according to the WIFI hotspot information list and the first WIFI hotspot access information list; and automatically accessing the WIFI network by utilizing the WIFI hotspot access information list to be accessed. According to the scheme, the mobile terminal can be automatically accessed to the WIFI network when being in a strange environment, the operation that a user manually selects the WIFI network and inputs a password is avoided, and the use experience of the user is improved.

Description

WIFI network access method and device
Technical Field
The present invention relates to network access technologies, and in particular, to a method and an apparatus for accessing a WIFI network.
Background
Currently, when a mobile terminal enters an unfamiliar environment and needs to access a WIFI network, a user is often required to select a WIFI hotspot for access. In addition, because the access password of the WIFI hotspot changes at any time, the problem that the access cannot be performed even after multiple attempts occurs, and the use experience of the user is affected.
Disclosure of Invention
The invention aims to provide a method and a device for accessing a WIFI network, which can ensure that a mobile terminal automatically accesses the WIFI network when the mobile terminal is in an unfamiliar environment, avoid the operation of manually selecting the WIFI network and inputting a password by a user, and improve the use experience of the user.
In order to achieve the above object, the present invention provides a method for accessing a WIFI network, including:
searching WIFI hotspots around the current mobile terminal to obtain a WIFI hotspot information list, wherein the hotspot information in the WIFI hotspot information list comprises identification information of the WIFI hotspots;
determining a first WIFI hotspot access information list matched with the position information of the mobile terminal, wherein the access information in the first WIFI hotspot access information list comprises identification information and an access password of a WIFI hotspot;
determining a WIFI hotspot access information list to be accessed according to the WIFI hotspot information list and the first WIFI hotspot access information list;
and automatically accessing the WIFI network by utilizing the WIFI hotspot access information list to be accessed.
Preferably, the step of determining the to-be-accessed WIFI hotspot access information list according to the WIFI hotspot information list and the first WIFI hotspot access information list includes:
and calculating the intersection of the WIFI hotspot information list and the first WIFI hotspot access information list to obtain the WIFI hotspot access information list to be accessed.
Preferably, the step of determining the first WIFI hotspot access information list matched with the location information of the mobile terminal includes:
acquiring a second WIFI hotspot access information list, wherein the access information in the second WIFI hotspot access information list is the access information of WIFI hotspots in a preset area of the position information of the mobile terminal;
and determining the first WIFI hotspot access information list according to a third WIFI hotspot access information list and the second WIFI hotspot access information list which are pre-stored in the mobile terminal.
Preferably, the step of determining the first WIFI hotspot access information list according to a third WIFI hotspot access information list and the second WIFI hotspot access information list pre-stored in the mobile terminal includes:
calculating a union set of a third WIFI hotspot access information list and the second WIFI hotspot access information list which are pre-stored in the mobile terminal to obtain the first WIFI hotspot access information list;
when the access information aiming at the same WIFI hotspot in the third WIFI hotspot access information list and the second WIFI hotspot access information list is inconsistent, the access information in the second WIFI hotspot access information list is used as a criterion.
Preferably, the access information in the second WIFI hotspot access information list is uploaded by the WIFI hotspot and/or reported by the mobile terminal accessing the WIFI hotspot.
Preferably, the access information in the to-be-accessed WIFI hotspot access information list comprises signal quality of a WIFI hotspot;
the step of accessing the WIFI network by using the WIFI hotspot access information list to be accessed comprises the following steps:
sequencing the WIFI hotspot access information list to be accessed according to the signal quality of the WIFI hotspot from high to low;
and automatically accessing the WIFI network according to the ordered sequence of the WIFI hotspot access information list to be accessed.
Preferably, the access information in the to-be-accessed WIFI hotspot access information list comprises a timestamp of the WIFI hotspot, and the timestamp is a time point when the mobile terminal successfully accesses the WIFI hotspot last time;
the step of accessing the WIFI network by using the WIFI hotspot access information list to be accessed comprises the following steps:
sequencing the WIFI hotspot access information list to be accessed according to the freshness of the timestamp of the WIFI hotspot;
and automatically accessing the WIFI network according to the ordered sequence of the WIFI hotspot access information list to be accessed.
Preferably, the method for accessing to the WIFI network further includes:
after the mobile terminal accesses a WIFI network, sending an access success message to a network side by using the WIFI network;
and after receiving the feedback information of the network side, indicating that the access is successful, otherwise, re-accessing the WIFI network.
The invention also provides a device for accessing the WIFI network, which comprises:
the mobile terminal comprises a searching module, a hot spot information obtaining module and a hot spot information obtaining module, wherein the searching module is used for searching WIFI hot spots around the current mobile terminal to obtain a WIFI hot spot information list, and hot spot information in the WIFI hot spot information list comprises identification information of the WIFI hot spots;
the first determining module is used for determining a first WIFI hotspot access information list matched with the position information of the mobile terminal, wherein the access information in the first WIFI hotspot access information list comprises identification information and an access password of a WIFI hotspot;
the second determining module is used for determining a WIFI hotspot access information list to be accessed according to the WIFI hotspot information list and the first WIFI hotspot access information list;
and the access module is used for utilizing the WIFI hotspot access information list to be accessed to automatically access the WIFI network.
Preferably, the second determining module includes:
and the first calculation module is used for calculating the intersection of the WIFI hotspot information list and the first WIFI hotspot access information list to obtain the WIFI hotspot access information list to be accessed.
Preferably, the first determining module includes:
the acquisition module is used for acquiring a second WIFI hotspot access information list, wherein the access information in the second WIFI hotspot access information list is the access information of WIFI hotspots in a preset area of the position information of the mobile terminal;
the first determining submodule is used for determining the first WIFI hotspot access information list according to a third WIFI hotspot access information list and the second WIFI hotspot access information list which are pre-stored in the mobile terminal.
Preferably, the first determination submodule includes:
the second calculation module is used for calculating a union set of a third WIFI hotspot access information list and the second WIFI hotspot access information list which are pre-stored in the mobile terminal to obtain the first WIFI hotspot access information list;
when the access information aiming at the same WIFI hotspot in the third WIFI hotspot access information list and the second WIFI hotspot access information list is inconsistent, the access information in the second WIFI hotspot access information list is used as a criterion.
Preferably, the access information in the second WIFI hotspot access information list is uploaded by a WIFI hotspot and/or reported by a mobile terminal accessing to the WIFI hotspot.
Preferably, the access information in the to-be-accessed WIFI hotspot access information list comprises signal quality of a WIFI hotspot; the access module comprises:
the first sequencing module is used for sequencing the WIFI hotspot access information list to be accessed according to the signal quality of the WIFI hotspot from top to bottom;
and the first access module is used for automatically accessing the WIFI network according to the sequence of the ordered WIFI hotspot access information lists to be accessed.
Preferably, the access information in the to-be-accessed WIFI hotspot access information list comprises a timestamp of the WIFI hotspot, and the timestamp is a time point when the mobile terminal successfully accesses the WIFI hotspot last time; the access module comprises:
the second ordering module is used for ordering the WIFI hotspot access information list to be accessed according to the freshness of the timestamp of the WIFI hotspot;
and the second access module is used for automatically accessing the WIFI network according to the sequence of the ordered WIFI hotspot access information lists to be accessed.
Preferably, the apparatus for accessing a WIFI network further includes:
the sending module is used for sending an access success message to a network side by utilizing a WIFI network after the mobile terminal is accessed to the WIFI network;
and after receiving the feedback information of the network side, indicating that the access is successful, otherwise, re-accessing the WIFI network.
Through the technical scheme, the invention has the beneficial effects that:
according to the scheme, a WIFI hotspot information list is obtained by searching WIFI hotspots around the current mobile terminal, a first WIFI hotspot access information list matched with the position information of the mobile terminal is determined, and the WIFI hotspot access information list to be accessed is determined according to the WIFI hotspot information list and the first WIFI hotspot access information list, so that the WIFI network can be automatically accessed by utilizing the WIFI hotspot access information list to be accessed, the mobile terminal can be automatically accessed to the WIFI network in an unfamiliar environment, the operations that a user manually selects the WIFI network and inputs a password are avoided, and the use experience of the user is improved.
Drawings
Fig. 1 is a flowchart illustrating a method for accessing a WIFI network according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a device accessing a WIFI network according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating a method for accessing a WIFI network according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the following detailed description of the embodiments is provided with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present invention provides a method for accessing a WIFI network, including:
s101: searching WIFI hotspots around the current mobile terminal to obtain a WIFI hotspot information list, wherein hotspot information in the WIFI hotspot information list at least comprises identification information of the WIFI hotspots;
s102: determining a first WIFI hotspot access information list matched with the position information of the mobile terminal, wherein the access information in the first WIFI hotspot access information list at least comprises identification information and an access password of a WIFI hotspot;
s103: determining a WIFI hotspot access information list to be accessed according to the WIFI hotspot information list and the first WIFI hotspot access information list;
s104: and automatically accessing the WIFI network by utilizing the WIFI hotspot access information list to be accessed.
According to the method for accessing the WIFI network, a WIFI hotspot information list is obtained by searching WIFI hotspots around the current mobile terminal, the first WIFI hotspot access information list matched with the position information of the mobile terminal is determined, and the WIFI hotspot access information list to be accessed is determined according to the WIFI hotspot information list and the first WIFI hotspot access information list, so that the WIFI network can be automatically accessed by using the WIFI hotspot access information list to be accessed, the mobile terminal can be ensured to be automatically accessed to the WIFI network in an unfamiliar environment, the operation that a user manually selects the WIFI network and inputs a password is avoided, and the use experience of the user is improved.
The identification information of the WIFI hotspot is, for example, a media access control MAC address of the WIFI hotspot or a service set identification SSID of the WIFI network, and is used to identify one WIFI hotspot.
In the following, the description is given by taking the MAC address of the WIFI hotspot as the identification information, but the invention is not limited thereto.
Specifically, the WIFI hotspot information list is a set of hotspot information of all WIFI hotspots around the current mobile terminal, and the hotspot information may include media access control MAC addresses and signal quality of all WIFI hotspots. The first WIFI hotspot access information list is a set of access information of WIFI hotspots matched with the location information of the mobile terminal or accessed by the mobile terminal, and the access information may include a MAC address and an access password of the WIFI hotspot.
The WIFI hotspot access information list to be accessed is determined according to the WIFI hotspot information list and the first WIFI hotspot access information list, is a set of access information of directly accessible WIFI hotspots around the current mobile terminal, and the access information of the WIFI hotspot access information list can include the MAC address, the access password and the signal quality of the WIFI hotspot.
In an embodiment of the present invention, the step of determining, according to the WIFI hotspot information list and the first WIFI hotspot access information list, a WIFI hotspot access information list to be accessed includes:
and calculating the intersection of the WIFI hotspot information list and the first WIFI hotspot access information list to obtain the WIFI hotspot access information list to be accessed.
Therefore, the mobile terminal can be ensured to automatically access the WIFI network by utilizing the WIFI hotspot access information list to be accessed.
In a specific embodiment of the present invention, the step of determining the first WIFI hotspot access information list matched with the location information of the mobile terminal includes:
acquiring a second WIFI hotspot access information list, wherein the access information in the second WIFI hotspot access information list is the access information of WIFI hotspots in a preset area of the position information of the mobile terminal;
and determining the first WIFI hotspot access information list according to a third WIFI hotspot access information list and the second WIFI hotspot access information list which are pre-stored in the mobile terminal.
The second WIFI hotspot access information list is, for example, obtained by the mobile terminal from the server through a 3G or 4G data service, and if the mobile terminal is connected to the WIFI network, the second WIFI hotspot access information list may also be obtained from the server through the WIFI network, which is not limited in the present invention.
Specifically, the step of determining the first WIFI hotspot access information list according to a third WIFI hotspot access information list and the second WIFI hotspot access information list pre-stored in the mobile terminal includes:
calculating a union set of a third WIFI hotspot access information list and the second WIFI hotspot access information list which are pre-stored in the mobile terminal to obtain the first WIFI hotspot access information list;
when the access information aiming at the same WIFI hotspot in the third WIFI hotspot access information list and the second WIFI hotspot access information list is inconsistent, the access information in the second WIFI hotspot access information list is used as a criterion.
In the embodiment of the present invention, the location information of the mobile terminal is, for example, acquired by a GPS unit of the mobile terminal. For the mobile phone terminal, the location information may also be information of a serving cell and a neighboring cell of a 3G or 4G network.
The server stores access information of a plurality of WIFI hotspots, and the access information of the WIFI hotspots comprises position information, MAC addresses, access passwords and the like of the WIFI hotspots. Specifically, the server is used for the mobile terminal to obtain access information of the WIFI hotspot in a preset area of the position information of the mobile terminal.
And the access information of the WIFI hotspot stored in the server, that is, the access information in the second WIFI hotspot access information list is, for example, uploaded by the WIFI hotspot and/or reported by the mobile terminal accessing the WIFI hotspot.
In practical application, when a mobile terminal detects that a WIFI network needs to be automatically accessed, the mobile terminal acquires position information of the mobile terminal and uploads the position information to a server. After receiving the position information, the server inquires access information of the WIFI hotspots stored in the server in a preset area of the position information to obtain a second WIFI hotspot access information list, and sends the second WIFI hotspot access information list to the mobile terminal.
The mobile terminal comprises a WIFI hotspot access information database, a third WIFI hotspot access information list is pre-stored in the WIFI hotspot access information database, the third WIFI hotspot access information list is mainly access information of a WIFI hotspot which the mobile terminal has successfully accessed, and the access information at least comprises an MAC address, an access password and a state of the WIFI hotspot. The MAC address is used for uniquely identifying one WIFI hotspot, if the WIFI hotspot is open, the access password is null, and the state attribute represents the state of one WIFI hotspot. Specifically, Current indicates that the Current WIFI hotspot is currently used, Available indicates that the mobile terminal does not attempt to access, and Forbidden indicates that the Current WIFI hotspot cannot be accessed, or although the access is successful, the network cannot be used, real-time modification can be performed in the process of accessing the WIFI network to prompt a user, and when the mobile terminal attempts to access the WIFI hotspot, the WIFI hotspot in the state of Forbidden is skipped, so that the access speed is increased.
After the mobile terminal acquires the second WIFI hotspot access information list from the server, the access information of the WIFI hotspots in the second WIFI hotspot access information list is stored in the WIFI hotspot access information database, namely, the access information is merged with the third WIFI hotspot access information list to obtain the first WIFI hotspot access information list.
Wherein, the merging mode is as follows: according to the MAC address, if the access information of the WIFI hotspot acquired from the server does not exist in the WIFI hotspot access information database of the mobile terminal, directly merging the access information into the WIFI hotspot access information database, and setting the state of the WIFI hotspot access information database to be Available; if the access information of the WIFI hotspot acquired from the server exists in the WIFI hotspot access information database of the mobile terminal, but the information content is inconsistent, updating the access information of the WIFI hotspot in the WIFI hotspot access information database, and juxtaposing the access information as Available; and if the access information of the WIFI hotspot acquired from the server exists in the WIFI hotspot access information database of the mobile terminal and the information content is consistent, not modifying the access information in the WIFI hotspot access information database.
According to different triggering conditions, the conditions that the mobile terminal detects that the mobile terminal needs to automatically access the WIFI network mainly include two types: one is that according to the instruction of the user, the user needs to automatically access the WIFI network, for example, the user clicks a menu for automatically accessing the WIFI network; the other is that the mobile terminal moves in the using process, namely, the mobile terminal moves out of the effective range of the current WIFI hotspot, so that the current WIFI hotspot signal is lower than a certain threshold value, and the WIFI network access is required to be performed again.
Generally, the hotspot information in the WIFI hotspot information list includes signal quality of a WIFI hotspot, and the access information in the to-be-accessed WIFI hotspot access information list determined according to the WIFI hotspot information list and the first WIFI hotspot access information list includes signal quality of the WIFI hotspot. Therefore, when the WIFI hotspot access information list to be accessed is used for accessing the WIFI network, the access point with good signal quality can be selected to access preferentially.
Based on the above, the step of accessing the WIFI network by using the to-be-accessed WIFI hotspot access information list includes:
sequencing the WIFI hotspot access information list to be accessed according to the signal quality of the WIFI hotspot from high to low;
and automatically accessing the WIFI network according to the ordered sequence of the WIFI hotspot access information list to be accessed.
In addition, the access information of the WIFI hotspot stored in the server also comprises a timestamp of the WIFI hotspot, and the timestamp is the time point when the mobile terminal successfully accesses the WIFI hotspot last time. The access information in the first WIFI hotspot access information list comprises a time stamp of the WIFI hotspot, so that the access information in the WIFI hotspot access information list to be accessed, which is determined according to the WIFI hotspot information list and the first WIFI hotspot access information list, comprises the time stamp of the WIFI hotspot.
In general, the newer the timestamp is, the higher the probability that the WIFI hotspot is successfully accessed is, and the quality of the WIFI hotspot can be determined according to the timestamp.
Based on the above, the step of accessing the WIFI network by using the to-be-accessed WIFI hotspot access information list includes:
sequencing the WIFI hotspot access information list to be accessed according to the freshness of the timestamp of the WIFI hotspot;
and automatically accessing the WIFI network according to the ordered sequence of the WIFI hotspot access information list to be accessed.
In this embodiment of the present invention, the method for accessing to a WIFI network further includes:
after the mobile terminal accesses a WIFI network, sending an access success message to a network side by using the WIFI network;
and after receiving the feedback information of the network side, indicating that the access is successful, otherwise, re-accessing the WIFI network.
Therefore, the mobile terminal can be ensured to successfully access the Internet, the situation that the mobile terminal cannot access the Internet although the mobile terminal is successfully accessed to the WIFI network is avoided, and the use experience of a user is improved. The network side may be the server described above, or may be another server capable of detecting the WIFI network connection condition, and the present invention is not limited thereto.
Referring to fig. 2, an embodiment of the present invention further provides a device for accessing a WIFI network, which corresponds to the method for accessing a WIFI network shown in fig. 1, where the device for accessing a WIFI network includes:
the searching module 21 is configured to search WIFI hotspots around the current mobile terminal to obtain a WIFI hotspot information list, where hotspot information in the WIFI hotspot information list includes identification information of the WIFI hotspots;
the first determining module 21 is configured to determine a first WIFI hotspot access information list matched with the location information of the mobile terminal, where access information in the first WIFI hotspot access information list includes identification information of a WIFI hotspot and an access password;
the second determining module 23 is configured to determine a WIFI hotspot access information list to be accessed according to the WIFI hotspot information list and the first WIFI hotspot access information list;
and the access module 24 is configured to perform automatic access to the WIFI network by using the to-be-accessed WIFI hotspot access information list.
According to the device for accessing the WIFI network, a WIFI hotspot information list is obtained by searching WIFI hotspots around the current mobile terminal, the first WIFI hotspot access information list matched with the position information of the mobile terminal is determined, and the WIFI hotspot access information list to be accessed is determined according to the WIFI hotspot information list and the first WIFI hotspot access information list, so that the WIFI network can be automatically accessed by using the WIFI hotspot access information list to be accessed, the mobile terminal can be ensured to be automatically accessed to the WIFI network in an unfamiliar environment, the operation that a user manually selects the WIFI network and inputs a password is avoided, and the use experience of the user is improved.
The identification information of the WIFI hotspot is, for example, a media access control MAC address of the WIFI hotspot or a service set identification SSID of the WIFI network, and is used to identify one WIFI hotspot.
In a specific embodiment of the present invention, the second determining module includes:
and the first calculation module is used for calculating the intersection of the WIFI hotspot information list and the first WIFI hotspot access information list to obtain the WIFI hotspot access information list to be accessed.
The first determining module includes:
the acquisition module is used for acquiring a second WIFI hotspot access information list, wherein the access information in the second WIFI hotspot access information list is the access information of WIFI hotspots in a preset area of the position information of the mobile terminal;
the first determining submodule is used for determining the first WIFI hotspot access information list according to a third WIFI hotspot access information list and the second WIFI hotspot access information list which are pre-stored in the mobile terminal.
The second WIFI hotspot access information list is, for example, obtained by the mobile terminal from the server through a 3G or 4G data service, and if the mobile terminal is connected to the WIFI network, the second WIFI hotspot access information list may also be obtained from the server through the WIFI network, which is not limited in the present invention.
And the access information in the second WIFI hotspot access information list is, for example, uploaded by a WIFI hotspot and/or reported by a mobile terminal accessing to the WIFI hotspot.
Specifically, the first determining submodule includes:
the second calculation module is used for calculating a union set of a third WIFI hotspot access information list and the second WIFI hotspot access information list which are pre-stored in the mobile terminal to obtain the first WIFI hotspot access information list;
when the access information aiming at the same WIFI hotspot in the third WIFI hotspot access information list and the second WIFI hotspot access information list is inconsistent, the access information in the second WIFI hotspot access information list is used as a criterion.
In a specific embodiment of the present invention, the access information in the to-be-accessed WIFI hotspot access information list includes signal quality of a WIFI hotspot; the access module comprises:
the first sequencing module is used for sequencing the WIFI hotspot access information list to be accessed according to the signal quality of the WIFI hotspot from top to bottom;
and the first access module is used for automatically accessing the WIFI network according to the sequence of the ordered WIFI hotspot access information lists to be accessed.
Or the access information in the WIFI hotspot access information list to be accessed comprises a timestamp of the WIFI hotspot, wherein the timestamp is a time point when the mobile terminal successfully accesses the WIFI hotspot last time; the access module comprises:
the second ordering module is used for ordering the WIFI hotspot access information list to be accessed according to the freshness of the timestamp of the WIFI hotspot;
and the second access module is used for automatically accessing the WIFI network according to the sequence of the ordered WIFI hotspot access information lists to be accessed.
In addition, the apparatus for accessing a WIFI network further comprises:
the sending module is used for sending an access success message to a network side by utilizing a WIFI network after the mobile terminal is accessed to the WIFI network;
and after receiving the feedback information of the network side, indicating that the access is successful, otherwise, re-accessing the WIFI network.
Therefore, the mobile terminal can be ensured to successfully access the Internet, the situation that the mobile terminal cannot access the Internet although the mobile terminal is successfully accessed to the WIFI network is avoided, and the use experience of a user is improved.
In order to facilitate understanding of the present invention, a method for accessing a WIFI network according to the present invention is described in detail with reference to fig. 3.
Fig. 3 is a diagram of a case where the mobile terminal a is about to access a WIFI network after entering an unfamiliar environment; the method for accessing the WIFI network comprises the following steps:
s301: the method comprises the steps that a mobile terminal A detects that a user clicks a menu for automatically accessing a WIFI network;
s302: a, acquiring self position information;
s303: a, uploading the position information to a server B by using a data service;
s304: b, inquiring the access information of the WIFI hotspots stored in the preset area of the position information to obtain a second WIFI hotspot access information list P';
s305: b, sending the P' to A;
s306: a, calculating a union set of P' and a third WIFI hotspot access information list P stored in the union set to obtain a first WIFI hotspot access information list R;
s307: a, removing access information of a WIFI hotspot with a Forbidden state in R to obtain a WIFI hotspot access information list R';
s308: a, searching surrounding WIFI hotspots to obtain a WIFI hotspot information list L;
s309: a, calculating the intersection of R' and L to obtain a WIFI hotspot access information list H to be accessed;
s310: sequencing the H according to the WIFI hotspot signal from top to bottom to obtain H';
s311: according to the sequence of H ', automatically accessing the WIFI network, namely trying according to the sequence of H';
s312: after the A accesses a WIFI network, sending an access success message to the B by using the WIFI network;
s313: if the B receives the access success message, an ACK message is replied to the A;
s314: after receiving the ACK message, the terminal A indicates that the WIFI network is successfully accessed, and modifies the state of the Current WIFI hotspot into Current;
s315: if the access success message is not sent successfully by the A, the state of the current WIFI hotspot is modified to be Forbidden, and S311 is repeated, if the access information of all the WIFI hotspots in the H' is tried out and the WIFI hotspot is not accessed to the WIFI network, the access is considered to be failed.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (14)

1. A method for accessing a WIFI network, comprising:
searching WIFI hotspots around the current mobile terminal to obtain a WIFI hotspot information list, wherein the hotspot information in the WIFI hotspot information list comprises identification information of the WIFI hotspots;
determining a first WIFI hotspot access information list matched with the position information of the mobile terminal, wherein the access information in the first WIFI hotspot access information list comprises identification information and an access password of a WIFI hotspot;
determining a WIFI hotspot access information list to be accessed according to the WIFI hotspot information list and the first WIFI hotspot access information list;
utilizing the WIFI hotspot access information list to be accessed to automatically access the WIFI network;
the step of determining the first WIFI hotspot access information list matched with the position information of the mobile terminal comprises the following steps:
acquiring a second WIFI hotspot access information list, wherein the access information in the second WIFI hotspot access information list is the access information of WIFI hotspots in a preset area of the position information of the mobile terminal;
and determining the first WIFI hotspot access information list according to a third WIFI hotspot access information list and the second WIFI hotspot access information list which are pre-stored in the mobile terminal.
2. The method of claim 1, wherein the step of determining the WIFI hotspot access information list to be accessed according to the WIFI hotspot information list and the first WIFI hotspot access information list comprises:
and calculating the intersection of the WIFI hotspot information list and the first WIFI hotspot access information list to obtain the WIFI hotspot access information list to be accessed.
3. The method according to claim 1, wherein the step of determining the first WIFI hotspot access information list according to a third WIFI hotspot access information list and the second WIFI hotspot access information list pre-stored in the mobile terminal includes:
calculating a union set of a third WIFI hotspot access information list and the second WIFI hotspot access information list which are pre-stored in the mobile terminal to obtain the first WIFI hotspot access information list;
when the access information aiming at the same WIFI hotspot in the third WIFI hotspot access information list and the second WIFI hotspot access information list is inconsistent, the access information in the second WIFI hotspot access information list is used as a criterion.
4. The method of claim 1, wherein the access information in the second WIFI hotspot access information list is uploaded by a WIFI hotspot and/or reported by a mobile terminal accessing the WIFI hotspot.
5. The method of accessing a WIFI network of claim 1, wherein the access information in the list of WIFI hotspot access information to be accessed includes signal quality of a WIFI hotspot;
the step of accessing the WIFI network by using the WIFI hotspot access information list to be accessed comprises the following steps:
sequencing the WIFI hotspot access information list to be accessed according to the signal quality of the WIFI hotspot from high to low;
and automatically accessing the WIFI network according to the ordered sequence of the WIFI hotspot access information list to be accessed.
6. The method according to claim 1, wherein the access information in the to-be-accessed WIFI hotspot access information list includes a timestamp of the WIFI hotspot, and the timestamp is a time point when the mobile terminal has successfully accessed the WIFI hotspot last time;
the step of accessing the WIFI network by using the WIFI hotspot access information list to be accessed comprises the following steps:
sequencing the WIFI hotspot access information list to be accessed according to the freshness of the timestamp of the WIFI hotspot;
and automatically accessing the WIFI network according to the ordered sequence of the WIFI hotspot access information list to be accessed.
7. The method of accessing a WIFI network of claim 1, further comprising:
after the mobile terminal accesses a WIFI network, sending an access success message to a network side by using the WIFI network;
and after receiving the feedback information of the network side, indicating that the access is successful, otherwise, re-accessing the WIFI network.
8. An apparatus for accessing a WIFI network, comprising:
the mobile terminal comprises a searching module, a hot spot information obtaining module and a hot spot information obtaining module, wherein the searching module is used for searching WIFI hot spots around the current mobile terminal to obtain a WIFI hot spot information list, and hot spot information in the WIFI hot spot information list comprises identification information of the WIFI hot spots;
the first determining module is used for determining a first WIFI hotspot access information list matched with the position information of the mobile terminal, wherein the access information in the first WIFI hotspot access information list comprises identification information and an access password of a WIFI hotspot;
the second determining module is used for determining a WIFI hotspot access information list to be accessed according to the WIFI hotspot information list and the first WIFI hotspot access information list;
the access module is used for utilizing the WIFI hotspot access information list to be accessed to automatically access the WIFI network;
wherein the first determining module comprises:
the acquisition module is used for acquiring a second WIFI hotspot access information list, wherein the access information in the second WIFI hotspot access information list is the access information of WIFI hotspots in a preset area of the position information of the mobile terminal;
the first determining submodule is used for determining the first WIFI hotspot access information list according to a third WIFI hotspot access information list and the second WIFI hotspot access information list which are pre-stored in the mobile terminal.
9. The apparatus for accessing a WIFI network of claim 8, wherein said second determining module comprises:
and the first calculation module is used for calculating the intersection of the WIFI hotspot information list and the first WIFI hotspot access information list to obtain the WIFI hotspot access information list to be accessed.
10. The apparatus for accessing a WIFI network of claim 8, wherein said first determining sub-module comprises:
the second calculation module is used for calculating a union set of a third WIFI hotspot access information list and the second WIFI hotspot access information list which are pre-stored in the mobile terminal to obtain the first WIFI hotspot access information list;
when the access information aiming at the same WIFI hotspot in the third WIFI hotspot access information list and the second WIFI hotspot access information list is inconsistent, the access information in the second WIFI hotspot access information list is used as a criterion.
11. The device of claim 8, wherein the access information in the second WIFI hotspot access information list is uploaded by a WIFI hotspot and/or reported by a mobile terminal accessing the WIFI hotspot.
12. The apparatus for accessing a WIFI network of claim 8, wherein the access information in the WIFI hotspot access information list to be accessed includes signal quality of a WIFI hotspot; the access module comprises:
the first sequencing module is used for sequencing the WIFI hotspot access information list to be accessed according to the signal quality of the WIFI hotspot from top to bottom;
and the first access module is used for automatically accessing the WIFI network according to the sequence of the ordered WIFI hotspot access information lists to be accessed.
13. The apparatus for accessing a WIFI network of claim 8, wherein the access information in the to-be-accessed WIFI hotspot access information list includes a timestamp of a WIFI hotspot, and the timestamp is a time point when the mobile terminal has successfully accessed the WIFI hotspot last time; the access module comprises:
the second ordering module is used for ordering the WIFI hotspot access information list to be accessed according to the freshness of the timestamp of the WIFI hotspot;
and the second access module is used for automatically accessing the WIFI network according to the sequence of the ordered WIFI hotspot access information lists to be accessed.
14. The apparatus for accessing a WIFI network of claim 8, further comprising:
the sending module is used for sending an access success message to a network side by utilizing a WIFI network after the mobile terminal is accessed to the WIFI network;
and after receiving the feedback information of the network side, indicating that the access is successful, otherwise, re-accessing the WIFI network.
CN201510522603.2A 2015-08-24 2015-08-24 WIFI network access method and device Active CN106488529B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510522603.2A CN106488529B (en) 2015-08-24 2015-08-24 WIFI network access method and device
PCT/CN2016/079912 WO2016180210A1 (en) 2015-08-24 2016-04-21 Method and apparatus for accessing wifi network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510522603.2A CN106488529B (en) 2015-08-24 2015-08-24 WIFI network access method and device

Publications (2)

Publication Number Publication Date
CN106488529A CN106488529A (en) 2017-03-08
CN106488529B true CN106488529B (en) 2020-06-02

Family

ID=57247741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510522603.2A Active CN106488529B (en) 2015-08-24 2015-08-24 WIFI network access method and device

Country Status (2)

Country Link
CN (1) CN106488529B (en)
WO (1) WO2016180210A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071772B (en) 2016-07-29 2020-07-07 腾讯科技(深圳)有限公司 Wireless local area network connection method and mobile terminal
CN106888496B (en) 2017-02-20 2019-10-18 Oppo广东移动通信有限公司 A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal
CN106686588B (en) * 2017-02-20 2020-02-07 Oppo广东移动通信有限公司 Wireless fidelity Wi-Fi connection method and mobile terminal
CN106793015A (en) * 2017-02-20 2017-05-31 广东欧珀移动通信有限公司 A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal
CN109246699A (en) 2017-05-24 2019-01-18 上海连尚网络科技有限公司 A kind of connection method and equipment
CN107426780B (en) * 2017-08-08 2019-01-11 Oppo广东移动通信有限公司 Wifi hotspot management method, device and terminal device
CN112566085B (en) * 2020-12-04 2023-08-04 深圳创维-Rgb电子有限公司 Smart watch WIFI configuration method and device and mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857997A (en) * 2011-06-30 2013-01-02 英特尔公司 Mobile device and method for automatic connectivity, data offloading and roaming between networks
CN102869073A (en) * 2012-09-14 2013-01-09 中兴通讯股份有限公司 Method for processing wireless hotspot information and method for automatically accessing wireless hotspot
CN104105169A (en) * 2014-07-25 2014-10-15 小米科技有限责任公司 Method and device for automatically connecting with wireless local area network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9572190B2 (en) * 2013-06-05 2017-02-14 Apple Inc. Device and method for associating with WiFi networks
CN103298072A (en) * 2013-07-02 2013-09-11 张洁昕 Method and system for automatically connecting to WiFi (wireless fidelity) access points and mobile communication terminal
CN104853448A (en) * 2015-05-08 2015-08-19 乐视致新电子科技(天津)有限公司 Method for automatically establishing wireless connection and device thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857997A (en) * 2011-06-30 2013-01-02 英特尔公司 Mobile device and method for automatic connectivity, data offloading and roaming between networks
CN102869073A (en) * 2012-09-14 2013-01-09 中兴通讯股份有限公司 Method for processing wireless hotspot information and method for automatically accessing wireless hotspot
CN104105169A (en) * 2014-07-25 2014-10-15 小米科技有限责任公司 Method and device for automatically connecting with wireless local area network

Also Published As

Publication number Publication date
CN106488529A (en) 2017-03-08
WO2016180210A1 (en) 2016-11-17

Similar Documents

Publication Publication Date Title
CN106488529B (en) WIFI network access method and device
US10485034B2 (en) Method, device and system for accessing wireless network
US10299197B2 (en) Wireless fidelity connection method, mobile terminal and storage medium
US10104588B2 (en) Method for automatically switching an LBS-based wireless data network and mobile terminal
WO2017173858A1 (en) Method and device for establishing wireless connection
WO2015154454A1 (en) Wireless network connection method and device
EP3277027B1 (en) Wi-fi connection method, mobile terminal and storage medium
CN105338391B (en) Intelligent television control method and mobile terminal
EP2824590A1 (en) Content sharing method, terminal, server, and system, and computer storage medium
CN106231595B (en) Wireless hotspot selection method and system
JP2014507850A (en) Dynamic wireless network detection system, method and apparatus
JP6323786B2 (en) Server, control method and program
CN110602765B (en) Network selection method and device
CN107818046B (en) A/B test method and device for application program page
US20190150041A1 (en) Access point handover method and device
CN104994471A (en) Position tracking method for terminal equipment, server and terminal equipment
CN108966331B (en) Cell registration method, cell registration device, wireless routing equipment, terminal and storage medium
CN112929224A (en) Network distribution method and device of equipment, server and computer readable storage medium
CN110611946B (en) Method for accessing terminal to mobile communication network and terminal
US9615389B2 (en) Mobile terminal, access point related content providing server, access point related content acquiring method, mobile terminal program
CN105282862B (en) Wireless network access point connection method and terminal
CN109587672B (en) Method, device and terminal for selecting roaming operator network
US9357333B2 (en) Mobile terminal, application selection server, application installation method, and mobile terminal program
CN113132929A (en) Equipment network access method, device, computer equipment and storage medium
US20150281385A1 (en) Location content providing server, location content providing method, location content providing server program

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