CN105657781B - WiFi network access method and device - Google Patents

WiFi network access method and device Download PDF

Info

Publication number
CN105657781B
CN105657781B CN201410649468.3A CN201410649468A CN105657781B CN 105657781 B CN105657781 B CN 105657781B CN 201410649468 A CN201410649468 A CN 201410649468A CN 105657781 B CN105657781 B CN 105657781B
Authority
CN
China
Prior art keywords
terminal
wifi
ssid
server
access point
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
CN201410649468.3A
Other languages
Chinese (zh)
Other versions
CN105657781A (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.)
Shenzhen Tencent Computer Systems Co Ltd
Original Assignee
Shenzhen Tencent Computer Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tencent Computer Systems Co Ltd filed Critical Shenzhen Tencent Computer Systems Co Ltd
Priority to CN201410649468.3A priority Critical patent/CN105657781B/en
Publication of CN105657781A publication Critical patent/CN105657781A/en
Application granted granted Critical
Publication of CN105657781B publication Critical patent/CN105657781B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method and a device for accessing a WiFi network. The method comprises the following steps: the terminal is connected to the first WiFi access point, the terminal opens a login page of a network accessed to the first WiFi access point through a browser of the terminal, and the terminal is accessed to the network of the first WiFi access point through the login page. The method and the device for accessing the WiFi network can realize the access of the terminal to the WiFi network, and solve the problems of complex operation and long time consumption in the access process of the WiFi network.

Description

WiFi network access method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for accessing a Wireless Fidelity (WiFi) network.
Background
With the popularization of WiFi access points, more and more users use terminals with WiFi function, such as mobile devices, tablet computers, personal computers, and the like, and users can access the internet through wireless access points by using devices supporting WiFi applications.
In the prior art, when a user accesses a WiFi network by using a terminal with a WiFi function, for an open Service Set Identifier (SSID) network requiring a secret key, the terminal needs to search a WiFi access point information list (mainly including the SSID of a WiFi access point), then the user inputs a password to perform information matching after selecting the WiFi access point to be used, and finally the terminal is connected to the WiFi access point through a WiFi module of the terminal; for an open SSID network that does not require a key, the terminal may connect directly to the WiFi access point. After the terminal is connected to the WiFi access point, the user is required to click a login button to access the WiFi network through a WiFi network login request page, or the user is required to manually fill in a mobile phone number to obtain a verification code, then fill in the verification code to verify network connection, and finally access the WiFi network to access the Internet.
The access process of the WiFi network needs manual operation of a user, the time for connecting the WiFi network is long, and the user experience is not high.
Disclosure of Invention
The invention provides a method and a device for accessing a WiFi network, which aim to solve the problems of complex operation and long time consumption in the accessing process of the WiFi network.
In a first aspect, the present invention provides a method for accessing a WiFi network, including:
the terminal is connected to a first WiFi access point;
the terminal opens a login page of a network accessed to the first WiFi access point through a browser of the terminal;
and the terminal accesses the network of the first WiFi access point through the login page.
Further, the accessing, by the terminal, the network of the first WiFi access point through the login page includes:
and the terminal sends an access request to a WiFi routing server by triggering the login page so that the WiFi routing server accesses the terminal to the network of the first WiFi access point after receiving the access request.
Further, when the terminal fails to send the access request to the WiFi routing server by triggering the login page, the method further includes:
the terminal sends an access request to a WiFi routing server by prompting a user to click a login button of the login page, so that the WiFi routing server accesses the terminal to the network of the first WiFi access point according to the access request;
the terminal records the connection mode of the network currently accessed to the first WiFi access point and sends the connection mode to a server so that the server records the connection mode.
Further, the accessing, by the terminal, the network of the first WiFi access point through the login page includes:
the terminal sends a mobile phone number preset by a user to the WiFi routing server through the login page so that the WiFi routing server sends a mobile phone short message carrying a verification code to the terminal;
the terminal acquires the verification code according to the mobile phone short message and sends the verification code to a WiFi routing server through the browser; and if the verification of the verification code by the WiFi routing server is successful, the terminal accesses the network of the first WiFi access point.
Further, if the verification of the verification code by the WiFi routing server fails, the method further includes:
the terminal prompts a user to fill the verification code in the login page and obtains the verification code input by the user in the login page;
the terminal sends the verification code to the WiFi routing server through a browser, and the WiFi routing server accesses the terminal to the network of the first WiFi access point after successfully verifying the verification code;
the terminal records the connection mode of the network currently accessed to the first WiFi access point and sends the connection mode to the server so that the server records the connection mode.
Further, after the terminal accesses the network of the first WiFi access point through the login page, the method further includes:
and the terminal tests the signal quality of the network of the first WiFi access point and sends the test result to the server.
Further, the terminal is connected to a first WiFi access point, including:
the terminal acquires a Service Set Identifier (SSID) of at least one WiFi access point;
after the terminal receives an access request of a user for selecting to access a WiFi access point corresponding to the first SSID, the terminal sends the first SSID to a server and receives a connection password corresponding to the first SSID sent by the server;
and the terminal sends the connection password corresponding to the first SSID to the WiFi routing server corresponding to the first SSID, and after the WiFi routing server passes the verification of the connection password, the terminal is connected to the WiFi access point corresponding to the first SSID.
Further, before the terminal sends the first SSID to a server, the method further includes:
and the terminal sends a preset initial connection password to a WiFi routing server corresponding to the first SSID, and after the WiFi routing server verifies the initial connection password, the terminal is connected to a WiFi access point corresponding to the first SSID.
Further, before the terminal sends the first SSID to a server, the method further includes:
the terminal acquires current geographical position information;
the terminal sends the first SSID to a server, and the method comprises the following steps:
and the terminal sends the first SSID and the current geographical position information to a server so that the server acquires a corresponding connection password according to the first SSID and the current geographical position information.
Further, before the terminal acquires the SSID of at least one WiFi access point, the method further includes:
the terminal initially accesses a WiFi access point corresponding to the first SSID;
and the terminal sends the first SSID and the connection password corresponding to the first SSID to the server, so that the server correspondingly stores the first SSID and the connection password corresponding to the first SSID.
In a second aspect, the present invention provides a method for accessing a WiFi network, including:
the method comprises the steps that a server receives a first Service Set Identifier (SSID) sent by a terminal;
the server acquires a corresponding connection password according to the first SSID;
the server sends the acquired connection password corresponding to the first SSID to the terminal, so that the terminal sends the connection password corresponding to the first SSID to the WiFi routing server corresponding to the first SSID, and the WiFi routing server accesses the WiFi access point corresponding to the first SSID after the verification of the connection password is passed.
Further, before the server receives the first SSID sent by the terminal, the method further includes:
the server receives a first SSID and current geographical position information sent by a terminal;
and the server acquires a corresponding connection password according to the first SSID and the current geographical position information.
Further, when the terminal initially accesses the WiFi access point corresponding to the first SSID, the method further includes:
the server receives the first SSID sent by the terminal and a connection password corresponding to the first SSID;
and the server correspondingly stores the first SSID and the connection password corresponding to the first SSID.
In a third aspect, the present invention provides a terminal, including:
a connection module for connecting to a first WiFi access point;
the processing module is used for opening a login page of a network accessed to the first WiFi access point through a browser of the terminal;
and the access module is used for accessing the network of the first WiFi access point through the login page.
Further, the access module is configured to:
and sending an access request to a WiFi routing server by triggering the login page so that the WiFi routing server accesses the terminal to the network of the first WiFi access point after receiving the access request.
Further, when the access module fails to send the access request to the WiFi routing server by triggering the login page, the access module is further configured to:
sending an access request to a WiFi routing server by prompting a user to click a login button of the login page, so that the WiFi routing server accesses the terminal to the network of the first WiFi access point according to the access request;
the terminal further comprises:
the recording module is used for recording the connection mode of the network currently accessed to the first WiFi access point;
the access module is used for sending the connection mode to a server so that the server records the connection mode.
Further, the access module is configured to:
sending a mobile phone number preset by a user to the WiFi routing server through the login page so that the WiFi routing server sends a mobile phone short message carrying a verification code to the terminal;
acquiring the verification code according to the mobile phone short message, and sending the verification code to a WiFi routing server through the browser; and if the verification of the verification code by the WiFi routing server is successful, the access module accesses the network of the first WiFi access point.
Further, if the verification of the verification code by the WiFi routing server fails, the access module is configured to:
prompting a user to fill the verification code in the login page and acquiring the verification code input by the user in the login page;
the verification code is sent to the WiFi routing server through a browser, and the WiFi routing server accesses to the network of the first WiFi access point after successfully verifying the verification code;
recording the connection mode of the network currently accessed to the first WiFi access point, and sending the connection mode to the server so that the server records the connection mode.
Further, the processing module is further configured to:
after the access module accesses the network of the first WiFi access point through the login page, testing the signal quality of the network of the first WiFi access point, and sending a test result to the server.
Further, the connection module includes:
the device comprises an acquisition unit, a Service Set Identifier (SSID) acquisition unit and a service processing unit, wherein the acquisition unit is used for acquiring the SSID of at least one WiFi access point;
a receiving unit, configured to receive an access request for a user to select to access a WiFi access point corresponding to the first SSID;
a sending unit, configured to send the first SSID to a server;
the receiving unit is further configured to receive a connection password corresponding to the first SSID sent by the server;
the sending unit is further configured to send the connection password corresponding to the first SSID to the WiFi routing server corresponding to the first SSID;
and the connection unit is used for connecting to the WiFi access point corresponding to the first SSID after the WiFi routing server passes the verification of the connection password.
Further, the sending unit is further configured to:
before the first SSID is sent to a server, a preset initial connection password is sent to a WiFi routing server corresponding to the first SSID;
the connection unit is further configured to connect to the WiFi access point corresponding to the first SSID after the WiFi routing server passes verification of the initial connection password.
Further, before the sending unit sends the first SSID to the server, the acquiring unit is further configured to acquire current geographical location information;
the sending unit is specifically configured to:
and sending the first SSID and the current geographical position information to a server so that the server can obtain a corresponding connection password according to the first SSID and the current geographical position information.
Further, the connection unit is further configured to:
before the acquisition unit acquires the SSID of at least one WiFi access point, initially accessing a network of the WiFi access point corresponding to the first SSID;
the sending unit is used for:
and sending the first SSID and the connection password corresponding to the first SSID to the server so that the server correspondingly stores the first SSID and the connection password corresponding to the first SSID.
According to the method and the device for accessing the WiFi network, after the terminal is connected to the WiFi access point, the login page of the network accessed to the first WiFi access point is opened through the browser of the terminal, and the network accessed to the first WiFi access point is accessed through the login page. Therefore, the terminal can be automatically accessed to the WiFi network, and the problems of complex operation and long time consumption in the accessing process of the WiFi network are solved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the following briefly introduces the drawings needed to be used in the description of the embodiments or the prior art, and obviously, the drawings in the following description are some embodiments of the present invention, and those skilled in the art can obtain other drawings according to the drawings without inventive labor.
Fig. 1 is a flowchart of a first method for accessing a WiFi network according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a second embodiment of a method for accessing a WiFi network of the present invention;
FIG. 3 is a flowchart of a third embodiment of a method for accessing a WiFi network of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to a first embodiment of the present invention;
fig. 5 is a schematic structural diagram of a second terminal according to the embodiment of the present invention;
FIG. 6 is a diagram illustrating a first embodiment of a server according to the present invention;
fig. 7 is a schematic structural diagram of a third embodiment of the terminal according to the present invention;
fig. 8 is a schematic structural diagram of a second server embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The application scenario of the method and the device for accessing the WiFi network provided by the invention comprises a terminal with a WiFi function, a router and a WiFi access point, wherein the terminal comprises the following steps: a Personal Computer (PC), a mobile phone, a Tablet Computer (Tablet Computer), etc., wherein a user can use a terminal with a WiFi function to connect a WiFi access point, and then access the WiFi network after the network authentication of an accessed WiFi routing server. The method and the device for accessing the WiFi network can realize that the terminal is automatically connected to a WiFi access point for the open SSID network with the secret key and accesses the WiFi network after the network verification of the WiFi routing server of the WiFi access point. For an open SSID network without a secret key, the terminal can be directly connected to a WiFi access point and then automatically accesses the WiFi network after being verified by a WiFi routing server of the WiFi access point. Basically, the manual operation of a user is not needed, and the problems of complex operation and long time consumption in the WiFi network access process are solved.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is a flowchart of a first method for accessing a WiFi network according to an embodiment of the present invention, in this embodiment, mainly after a terminal is connected to a WiFi access point, the terminal accesses the WiFi network after being automatically verified by a network of a WiFi routing server of the WiFi access point, in this embodiment, a terminal is taken as an example as an execution subject, and as shown in fig. 1, the method according to this embodiment may include:
s101, the terminal is connected to a first WiFi access point.
There are two cases where the terminal is connected to the first WiFi access point, and for an open SSID network without a key, the terminal is directly connected to the first WiFi access point.
For an open SSID network with a key, the specific procedure for the terminal to connect to the first WiFi access point is as follows:
s1011, the terminal acquires the SSID of at least one WiFi access point.
And when the terminal enters a WiFi environment, the SSID of at least one WiFi access point is automatically acquired.
S1012, after the terminal receives an access request of the user for selecting to access the WiFi access point corresponding to the first SSID, the terminal sends the first SSID to the server and receives a connection password corresponding to the first SSID sent by the server. Here, the server refers to an application server of the terminal.
As an implementable manner, before the terminal sends the first SSID to the server, the method may further include:
and the terminal sends the preset initial connection password to the WiFi routing server corresponding to the first SSID, and after the WiFi routing server verifies the initial connection password, the terminal is connected to the WiFi access point corresponding to the first SSID. The preset initial connection password is a set of simple passwords (such as 123456789) preset by the terminal, and if the verification of the initial connection password by the WiFi routing server is passed, that is, the preset initial connection password is successfully matched with the SSID of the WiFi access point selected by the user to be accessed, the terminal is connected to the WiFi access point corresponding to the first SSID.
Specifically, after the terminal sends the first SSID to the server, the server may search in a connection information table according to the first SSID, where the connection information table includes SSIDs of the WiFi access points and connection passwords corresponding to the SSIDs, and the server performs maintenance and management on the connection information table, where the SSIDs of the WiFi access points and the connection passwords corresponding to the SSIDs in the connection information table may be based on server data acquisition or terminal upload. If the terminal uploads, before the terminal acquires the SSID of at least one WiFi access point, the method further includes:
and the terminal initially accesses the WiFi access point corresponding to the first SSID.
And the terminal sends the first SSID and the connection password corresponding to the first SSID to the server so that the server correspondingly stores the first SSID and the connection password corresponding to the first SSID. For example in a connection information table.
Further, to narrow the search range of the server, since the two SSID names of different geographic locations may be the same, before the terminal sends the first SSID to the server, the method may further include:
the terminal acquires current geographical position information.
The terminal sends the first SSID to the server, which may specifically be:
and the terminal sends the first SSID and the current geographical position information to the server so that the server can acquire a corresponding connection password according to the first SSID and the current geographical position information.
And S1013, the terminal sends the connection password corresponding to the first SSID to the WiFi routing server corresponding to the first SSID, and after the WiFi routing server passes verification of the connection password, the terminal is connected to the WiFi access point corresponding to the first SSID.
In the method for connecting the terminal to the first WiFi access point provided in this embodiment, when the terminal enters an open WiFi environment, an SSID of at least one WiFi access point is automatically obtained first, after an access request of a WiFi access point corresponding to an SSID selected by a user is received, the SSID is sent to the server, a connection password corresponding to the SSID sent by the server is received, and finally the connection password is sent to the WiFi routing server corresponding to the SSID, after the WiFi routing server verifies the connection password, the terminal is connected to the WiFi access point corresponding to the SSID selected by the user. The operation of inputting the password manually by the user is not needed, and the user experience is improved.
S102, the terminal opens a login page of a network accessing the first WiFi access point through a browser of the terminal.
S103, the terminal accesses the network of the first WiFi access point through the login page.
Specifically, as an implementable manner, the terminal sends an access request to the WiFi routing server by triggering the login page, so that the WiFi routing server accesses the terminal to the network of the first WiFi access point after receiving the access request. When the terminal fails to send the access request to the WiFi routing server by triggering the login page, the terminal sends the access request to the WiFi routing server by prompting the user to click the login button of the login page, so that the WiFi routing server accesses the terminal to the network of the first WiFi access point according to the access request. And then the terminal records the connection mode of the network currently accessed to the first WiFi access point and sends the connection mode to the server so that the server records the connection mode.
As another implementable manner, the terminal sends the mobile phone number preset by the user to the WiFi routing server through the login page, so that the WiFi routing server sends the mobile phone short message carrying the verification code to the terminal.
And the terminal acquires the verification code according to the mobile phone short message and sends the verification code to the WiFi routing server through the browser. Specifically, the terminal fills in a verification code in a network access page of the browser, and the browser sends the verification code to the WiFi routing server.
If the verification of the verification code by the WiFi routing server is successful, the terminal accesses the network of the first WiFi access point;
if the verification of the verification code by the WiFi routing server fails, executing the following steps:
the terminal prompts the user to fill in the verification code in the login page and obtains the verification code input by the user in the login page.
And the terminal sends the verification code to the WiFi routing server through the browser, and the WiFi routing server accesses the terminal to the network of the first WiFi access point after successfully verifying the verification code.
The terminal records the connection mode of the network currently accessed to the first WiFi access point and sends the connection mode to the server so that the server records the connection mode.
Further, after the terminal accesses the network of the first WiFi access point through the login page, the method further includes:
and the terminal tests the signal quality of the network of the first WiFi access point and sends the test result to the server. Specifically, the signal quality of the network where the terminal tests the first WiFi access point may be, for example: the terminal tests whether a network connection is available by sending an access request to one or more network addresses that are pre-established.
According to the method for accessing the WiFi network, after the terminal is connected to the WiFi access point, the login page of the network accessing the first WiFi access point is opened through the browser of the terminal, and the network accessing the first WiFi access point is accessed through the login page. Therefore, the terminal can be automatically accessed to the WiFi network, and the problems of complex operation and long time consumption in the accessing process of the WiFi network are solved.
Fig. 2 is a flowchart of a second embodiment of a method for accessing a WiFi network according to the present invention, where this embodiment takes a server as an execution subject for example to describe how a terminal automatically connects to a WiFi access point, as shown in fig. 2, the method of this embodiment may include:
s201, the server receives a first SSID sent by the terminal.
S202, the server acquires the corresponding connection password according to the first SSID.
Specifically, the server obtains the corresponding connection password according to the first SSID, for example, the server may search in a connection information table, where the connection information table includes SSIDs of the WiFi access points and connection passwords corresponding to the SSIDs, and the server performs maintenance and management on the connection information table, where the SSIDs of the WiFi access points and the connection passwords corresponding to the SSIDs in the connection information table may be based on server data acquisition or terminal upload. When the terminal uploads, if the terminal initially accesses the WiFi access point corresponding to the first SSID, the method further includes:
the server receives the first SSID sent by the terminal and the connection password corresponding to the first SSID.
And the server correspondingly stores the first SSID and the connection password corresponding to the first SSID.
S203, the server sends the acquired connection password corresponding to the first SSID to the terminal, so that the terminal sends the connection password corresponding to the first SSID to the WiFi routing server corresponding to the first SSID, and the WiFi routing server accesses the WiFi access point corresponding to the first SSID after the verification of the connection password is passed.
Further, to narrow the search range of the server, because the two SSID names at different geographic locations may be the same, when the terminal acquires the WiFi access point information list, the terminal may also acquire the current geographic location information at the same time, and before the server receives the first SSID sent by the terminal, the method further includes:
and the server receives the first SSID and the current geographical position information sent by the terminal.
And the server acquires a corresponding connection password in the connection information table according to the first SSID and the current geographical position information. Therefore, the server can acquire the connection password corresponding to the first SSID more quickly and accurately.
The method for accessing the WiFi network comprises the steps that a server receives an SSID of a WiFi access point which is sent by a terminal and is accessed by a user, the server obtains a corresponding connection password according to the SSID and sends the connection password to the terminal, the terminal sends the connection password corresponding to the SSID to a WiFi routing server corresponding to the SSID, and the WiFi routing server accesses the WiFi access point corresponding to the SSID after the verification of the connection password is passed. Therefore, the terminal can be automatically connected to the WiFi access point, the user does not need to manually input a password for operation, and the user experience is improved.
The following describes the technical solution of the embodiment of the method shown in fig. 1 and 2 in detail by using a specific embodiment.
Fig. 3 is a flowchart of a third embodiment of a method for accessing a WiFi network, as shown in fig. 3, in this embodiment, an example is taken that a terminal accesses an open SSID network with a key, and the method in this embodiment includes:
s301, the terminal acquires the SSID of at least one WiFi access point.
S302, after receiving an access request of a user for selecting to access a WiFi access point corresponding to a first SSID, the terminal sends a preset initial connection password to a WiFi routing server corresponding to the first SSID. The WiFi routing server verifies the initial connection password, and the step enters S303 if the verification is passed, and the step enters S304 if the verification is not passed.
And S303, the terminal is connected to the WiFi access point corresponding to the first SSID.
S304, the terminal sends the first SSID or the first SSID and the current geographical position information to the server.
S305, the server acquires a corresponding connection password according to the first SSID or the first SSID and the current geographical position information.
S306, the server sends the acquired connection password to the terminal.
S307, the terminal sends the connection password corresponding to the first SSID to the WiFi routing server corresponding to the first SSID.
S308, the WiFi routing server verifies the connection password. After the verification is passed, S303 is executed.
S309, the terminal opens a login page of the network accessing the first WiFi access point through a browser of the terminal.
And S310, the terminal accesses the network of the first WiFi access point through the login page.
As an implementable manner, the terminal sends an access request to the WiFi routing server by triggering the login page, so that the WiFi routing server accesses the terminal to the network of the first WiFi access point after receiving the access request. When the terminal fails to send the access request to the WiFi routing server by triggering the login page, the terminal sends the access request to the WiFi routing server by prompting the user to click the login button of the login page, so that the WiFi routing server accesses the terminal to the network of the first WiFi access point according to the access request.
As another implementable manner, the terminal sends the mobile phone number preset by the user to the WiFi routing server through the login page, so that the WiFi routing server sends the mobile phone short message carrying the verification code to the terminal.
And the terminal acquires the verification code according to the mobile phone short message and sends the verification code to the WiFi routing server through the browser.
If the verification of the verification code by the WiFi routing server is successful, the terminal accesses the network of the first WiFi access point;
if the verification of the verification code by the WiFi routing server fails, executing the following steps:
the terminal prompts the user to fill in the verification code in the login page and obtains the verification code input by the user in the login page.
And the terminal sends the verification code to the WiFi routing server through the browser, and the WiFi routing server accesses the terminal to the network of the first WiFi access point after successfully verifying the verification code.
After the terminal accesses the network of the first WiFi access point, the method may further include:
and the terminal tests the signal quality of the network of the first WiFi access point and sends the test result to the server.
Fig. 4 is a schematic structural diagram of a first embodiment of the terminal of the present invention, and as shown in fig. 4, the terminal of this embodiment may include: a connection module 11, a processing module 12 and an access module 13, wherein the connection module 11 is used for connecting to a first WiFi access point. The processing module 12 is configured to open a login page of a network accessing the first WiFi access point through a browser of the terminal. The access module 13 is configured to access the network of the first WiFi access point through the login page.
Further, the access module 13 is configured to:
and sending an access request to the WiFi routing server by triggering the login page so that the WiFi routing server accesses the terminal to the network of the first WiFi access point after receiving the access request.
When the access module 13 fails to send the access request to the WiFi routing server by triggering the login page, the access module 13 is further configured to: and sending an access request to the WiFi routing server by prompting the user to click a login button of the login page, so that the WiFi routing server accesses the terminal to the network of the first WiFi access point according to the access request.
At this time, the terminal further includes: and the recording module is used for recording the connection mode of the network currently accessed to the first WiFi access point. The access module 13 is configured to send the connection mode to the server, so that the server records the connection mode.
Further, the access module 13 is configured to:
and sending the mobile phone number preset by the user to the WiFi routing server through the login page so that the WiFi routing server sends the mobile phone short message carrying the verification code to the terminal.
Acquiring a verification code according to the mobile phone short message, and sending the verification code to the WiFi routing server through the browser; and if the verification of the verification code by the WiFi routing server is successful, the access module accesses the network of the first WiFi access point.
If the verification of the verification code by the WiFi routing server fails, the access module 13 is configured to:
and prompting the user to fill in the verification code in the login page and acquiring the verification code input by the user in the login page.
And sending the verification code to a WiFi routing server through the browser, and accessing the WiFi routing server to a network of a first WiFi access point after the verification of the verification code is successful.
And recording the connection mode of the network currently accessed to the first WiFi access point, and sending the connection mode to the server so that the server records the connection mode.
Further, the processing module 12 is further configured to:
after the access module 13 accesses the network of the first WiFi access point through the login page, the signal quality of the network of the first WiFi access point is tested, and the test result is sent to the server.
The technical solution corresponding to the terminal in the embodiment shown in fig. 4 and capable of being used to execute the method embodiment shown in fig. 1 is similar in implementation principle and technical effect, and is not described herein again.
Fig. 5 is a schematic structural diagram of a second embodiment of the terminal of the present invention, and as shown in fig. 5, in the terminal of this embodiment, on the basis shown in fig. 4, the connection module 11 includes: an acquisition unit 110, a reception unit 111, a transmission unit 112, and a connection unit 113. The obtaining unit 110 is configured to obtain a service set identification SSID of at least one WiFi access point. The receiving unit 111 is configured to receive an access request for a user to select to access a WiFi access point corresponding to a first SSID. The transmitting unit 112 is configured to transmit the first SSID to the server. The receiving unit 111 is further configured to receive a connection password corresponding to the first SSID sent by the server. The sending unit 112 is further configured to send the connection password corresponding to the first SSID to the WiFi routing server corresponding to the first SSID. The connection unit 113 is configured to connect to the WiFi access point corresponding to the first SSID after the WiFi routing server passes the verification of the connection password.
Further, the sending unit 112 is further configured to: and before the first SSID is sent to the server, sending a preset initial connection password to the WiFi routing server corresponding to the first SSID.
The connection unit 113 is further configured to connect to the WiFi access point corresponding to the first SSID after the WiFi routing server passes the verification of the initial connection password.
Further, before the sending unit 112 sends the first SSID to the server, the obtaining unit 110 is further configured to obtain the current geographic location information. The sending unit 112 is specifically configured to:
and sending the first SSID and the current geographical position information to a server so that the server can acquire a corresponding connection password according to the first SSID and the current geographical position information.
Further, the connection unit 113 is further configured to:
before the obtaining unit 110 obtains the SSID of at least one WiFi access point, a network of the WiFi access point corresponding to the first SSID is initially accessed.
The sending unit 112 is configured to: and sending the first SSID and the connection password corresponding to the first SSID to the server so that the server correspondingly stores the first SSID and the connection password corresponding to the first SSID.
The technical solution corresponding to the terminal in the embodiment shown in fig. 5 and capable of executing the method embodiment shown in fig. 1 is similar in implementation principle and technical effect, and is not described herein again.
Fig. 6 is a schematic structural diagram of a server according to a first embodiment of the present invention, and as shown in fig. 6, a terminal according to this embodiment may include: the system comprises a receiving module 21, an obtaining module 22 and a sending module 23, wherein the receiving module 21 is configured to receive a first service set identifier SSID sent by a terminal. The obtaining module 22 is configured to obtain a corresponding connection password according to the first SSID. The sending module 23 is configured to send the obtained connection password corresponding to the first SSID to the terminal, so that the terminal sends the connection password corresponding to the first SSID to the WiFi routing server corresponding to the first SSID, and accesses the WiFi access point corresponding to the first SSID after the WiFi routing server verifies the connection password.
Further, the receiving module 21 is configured to:
and before receiving the first SSID sent by the terminal, receiving the first SSID sent by the terminal and the current geographical position information. The obtaining module 22 is configured to obtain a corresponding connection password according to the first SSID and the current geographic location information.
When the terminal initially accesses the WiFi access point corresponding to the first SSID, the receiving module 21 is configured to receive the first SSID sent by the terminal and the connection password corresponding to the first SSID. The server further comprises: and the storage module is used for correspondingly storing the first SSID and the connection password corresponding to the first SSID.
The server in the embodiment shown in fig. 6 is capable of executing the technical solution in the embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 7 is a schematic structural diagram of a third embodiment of the terminal of the present invention, and as shown in fig. 7, the terminal of this embodiment may include: a bus 31, a processor 32 connected to the bus 31, a memory 33, an input interface 34, and an output interface 35. Wherein the input interface 34 is used for receiving the authentication information transmitted by the WiFi service, and the memory 33 is used for storing the program code. The processor 32 is configured to call the program code stored in the memory 33 to perform the following steps: and connecting to the first WiFi access point, and opening a login page of a network accessing to the first WiFi access point through a browser of the terminal. The output interface 35 is used to send an access request to the WiFi routing server.
Further, the output interface 35 is configured to:
and sending an access request to the WiFi routing server by triggering the login page so that the WiFi routing server accesses the terminal to the network of the first WiFi access point after receiving the access request.
When the output interface 35 fails to send the access request to the WiFi routing server by triggering the login page, the output interface 35 is further configured to: and sending an access request to the WiFi routing server by prompting the user to click a login button of the login page, so that the WiFi routing server accesses the terminal to the network of the first WiFi access point according to the access request.
At this time, the processor 32 is configured to record a connection mode of a network currently accessing the first WiFi access point. The output interface 35 is also used to send the connection to the server, so that the server records the connection.
Further, the output interface 35 is configured to: and sending the mobile phone number preset by the user to the WiFi routing server through the login page so that the WiFi routing server sends the mobile phone short message carrying the verification code to the terminal.
The processor 32 is configured to obtain a verification code according to the mobile phone short message, and the output interface 35 is further configured to send the verification code to the WiFi routing server through the browser; if the verification of the verification code by the WiFi routing server is successful, the processor 32 accesses the network of the first WiFi access point.
If the verification of the verification code by the WiFi routing server fails, the processor 32 is configured to:
and prompting the user to fill in the verification code in the login page and acquiring the verification code input by the user in the login page.
The output interface 35 is configured to send the verification code to the WiFi routing server through the browser, and after the verification of the verification code by the WiFi routing server is successful, the processor 32 is configured to access the network of the first WiFi access point.
Further, the processor 32 is further configured to: after accessing the network of the first WiFi access point through the login page, the signal quality of the network of the first WiFi access point is tested, and the output interface 25 is used to send the test result to the server.
The technical solution corresponding to the terminal in the embodiment shown in fig. 7 and capable of being used to execute the method embodiment shown in fig. 1 is similar in implementation principle and technical effect, and is not described herein again.
Fig. 8 is a schematic structural diagram of a second embodiment of the server of the present invention, and as shown in fig. 8, the server of this embodiment may include: a bus 41, a processor 42 connected to the bus 41, a memory 43, an input interface 44 and an output interface 45. Wherein the input interface 44 is adapted to receive a first service set identification SSID transmitted by the terminal, and the memory 43 is adapted to store program codes. The processor 42 is configured to call the program code stored in the memory 43 to perform the following steps: and acquiring a corresponding connection password according to the first SSID. The output interface 45 is configured to send the acquired connection password corresponding to the first SSID to the terminal, so that the terminal sends the connection password corresponding to the first SSID to the WiFi routing server corresponding to the first SSID, and after the verification of the connection password by the WiFi routing server is passed, the terminal accesses the WiFi access point corresponding to the first SSID.
Further, the input interface 44 is configured to:
and before receiving the first SSID sent by the terminal, receiving the first SSID sent by the terminal and the current geographical position information. The processor 42 is configured to obtain a corresponding connection password according to the first SSID and the current geographical location information.
When the terminal initially accesses the WiFi access point corresponding to the first SSID, the input interface 44 is configured to receive the first SSID sent by the terminal and the connection password corresponding to the first SSID. The processor 42 is further configured to correspondingly store the first SSID and the connection password corresponding to the first SSID.
The server in the embodiment shown in fig. 8 corresponds to a technical solution that can be used to execute the method embodiment shown in fig. 2, and the implementation principle and technical effect are similar, which are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (15)

1. A method for accessing a WiFi network, comprising:
when a terminal enters an open WiFi environment, the terminal acquires a Service Set Identifier (SSID) of at least one WiFi access point and acquires current geographic position information;
after the terminal receives an access request of a WiFi access point corresponding to a first SSID selected by a user, the terminal sends the first SSID and the current geographical position information to a server so that the server can obtain a corresponding connection password according to the first SSID and the current geographical position information;
the terminal receives the connection password sent by the server, and sends the connection password to the WiFi routing server corresponding to the first SSID, and after the WiFi routing server verifies the connection password, the terminal is connected to a first WiFi access point corresponding to the first SSID;
the terminal opens a login page of a network accessed to the first WiFi access point through a browser of the terminal;
the terminal sends an access request to the WiFi routing server by triggering the login page, so that the WiFi routing server accesses the terminal to the network of the first WiFi access point after receiving the access request;
if the terminal fails to send the access request to the WiFi routing server by triggering the login page, the terminal sends the access request to the WiFi routing server by prompting a user to click the login button of the login page, so that the WiFi routing server accesses the terminal to the network of the first WiFi access point according to the access request;
the terminal records the connection mode of the network currently accessed to the first WiFi access point and sends the connection mode to the server so that the server records the connection mode;
the terminal tests whether network connection is available by sending an access request to one or more network addresses which are prefabricated, and sends a test result to the server.
2. The method of claim 1, further comprising, for an open SSID network without a key:
and the terminal accesses the network of the first WiFi access point after automatically passing the network verification of the WiFi routing server.
3. The method of claim 1, wherein after the terminal receives an access request from a user to select a WiFi access point corresponding to a first SSID, the method further comprises:
the terminal sends a preset initial connection password to a WiFi routing server corresponding to the first SSID, and after the WiFi routing server verifies the initial connection password, the terminal is connected to a WiFi access point corresponding to the first SSID; and if the current geographical location information is not verified, the terminal sends the first SSID and the current geographical location information to the server.
4. The method of claim 1, further comprising, for an open SSID network without a key:
the terminal is directly connected to the first WiFi access point.
5. The method of claim 1, wherein before the terminal acquires the SSID of at least one WiFi access point, the method further comprises:
the terminal initially accesses a WiFi access point corresponding to the first SSID;
and the terminal sends the first SSID and the connection password corresponding to the first SSID to the server, so that the server correspondingly stores the first SSID and the connection password corresponding to the first SSID.
6. A method for accessing a WiFi network, comprising:
the method comprises the steps that a server receives a first Service Set Identifier (SSID) and current geographical position information sent by a terminal, wherein when the terminal enters an open WiFi environment, the terminal acquires the SSID of at least one WiFi access point and acquires the current geographical position information; after the terminal receives an access request of a user for selecting to access a WiFi access point corresponding to the first SSID, the terminal sends the first SSID and the current geographic position information to the server;
the server acquires a corresponding connection password according to the first SSID and the current geographical position information;
the server sends the acquired connection password to the terminal so that the terminal sends the connection password to a WiFi routing server corresponding to the first SSID, and the terminal accesses a first WiFi access point corresponding to the first SSID after the WiFi routing server passes verification of the connection password; the terminal opens a login page of a network accessed to the first WiFi access point through a browser of the terminal; the terminal sends an access request to the WiFi routing server by triggering the login page, so that the WiFi routing server accesses the terminal to the network of the first WiFi access point after receiving the access request; if the terminal fails to send the access request to the WiFi routing server by triggering the login page, the terminal sends the access request to the WiFi routing server by prompting a user to click the login button of the login page, so that the WiFi routing server accesses the terminal to the network of the first WiFi access point according to the access request;
receiving a connection mode of a network currently accessed to the first WiFi access point from the terminal, wherein the terminal records the connection mode and sends the connection mode to the server;
and receiving a result of the test from the terminal, wherein the terminal tests whether the network connection is available by sending an access request to the pre-established one or more network addresses.
7. The method of claim 6, wherein when the terminal initially accesses a WiFi access point corresponding to the first SSID, the method further comprises:
the server receives the first SSID sent by the terminal and a connection password corresponding to the first SSID;
and the server correspondingly stores the first SSID and the connection password corresponding to the first SSID.
8. A terminal, comprising:
the terminal comprises a connection module, a Service Set Identifier (SSID) module and a geographic position information module, wherein the connection module is used for acquiring the Service Set Identifier (SSID) of at least one WiFi access point when the terminal enters an open WiFi environment and acquiring the current geographic position information; after receiving an access request of a user for selecting to access a WiFi access point corresponding to a first SSID, sending the first SSID and the current geographical position information to a server so that the server can obtain a corresponding connection password according to the first SSID and the current geographical position information; receiving the connection password sent by the server, sending the connection password to a WiFi routing server corresponding to the first SSID, and connecting the WiFi routing server to a first WiFi access point corresponding to the first SSID after the WiFi routing server passes verification of the connection password;
the processing module is used for opening a login page of a network accessed to the first WiFi access point through a browser of the terminal;
the access module is used for sending an access request to the WiFi routing server by triggering the login page so that the WiFi routing server accesses the terminal to the network of the first WiFi access point after receiving the access request; if the terminal fails to send the access request to the WiFi routing server by triggering the login page, the terminal sends the access request to the WiFi routing server by prompting a user to click the login button of the login page, so that the WiFi routing server accesses the terminal to the network of the first WiFi access point according to the access request;
the recording module is used for recording the connection mode of the network currently accessed to the first WiFi access point;
the access module is used for sending the connection mode to the server so that the server records the connection mode;
the processing module is used for testing whether the network connection is available or not by sending an access request to one or more network addresses which are prefabricated, and sending a test result to the server.
9. The terminal of claim 8, wherein for an open SSID network without a key, the access module is further configured to:
and automatically accessing the network of the first WiFi access point after the network of the WiFi routing server is verified.
10. The terminal of claim 8, wherein the connection module is further configured to:
after receiving an access request of a user for selecting to access a WiFi access point corresponding to a first SSID, sending a preset initial connection password to a WiFi routing server corresponding to the first SSID; after the WiFi routing server passes the verification of the initial connection password, connecting to a WiFi access point corresponding to the first SSID; and if the current geographical location information is not verified, sending the first SSID and the current geographical location information to the server.
11. The terminal of claim 8, wherein for an open SSID network without a key, the access module is further configured to: directly connecting to the first WiFi access point.
12. The terminal of claim 8, wherein the connection module is further configured to:
before the SSID of at least one WiFi access point is obtained, initially accessing a network of the WiFi access point corresponding to the first SSID; and sending the first SSID and the connection password corresponding to the first SSID to the server so that the server correspondingly stores the first SSID and the connection password corresponding to the first SSID.
13. A terminal comprising a processor and a memory, the memory having stored therein instructions executable by the processor, the processor being configured to perform the method of any one of claims 1 to 5 when executing the instructions.
14. A server comprising a processor and a memory, the memory having stored therein instructions executable by the processor, the processor being configured to perform the method of claim 6 or 7 when executing the instructions.
15. A computer-readable storage medium having stored thereon computer-readable instructions for causing at least one processor to perform the method of any one of claims 1 to 7.
CN201410649468.3A 2014-11-14 2014-11-14 WiFi network access method and device Active CN105657781B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410649468.3A CN105657781B (en) 2014-11-14 2014-11-14 WiFi network access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410649468.3A CN105657781B (en) 2014-11-14 2014-11-14 WiFi network access method and device

Publications (2)

Publication Number Publication Date
CN105657781A CN105657781A (en) 2016-06-08
CN105657781B true CN105657781B (en) 2021-01-29

Family

ID=56478949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410649468.3A Active CN105657781B (en) 2014-11-14 2014-11-14 WiFi network access method and device

Country Status (1)

Country Link
CN (1) CN105657781B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792699A (en) * 2017-02-20 2017-05-31 广东欧珀移动通信有限公司 A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal
CN106804055B (en) * 2017-02-20 2019-05-28 Oppo广东移动通信有限公司 A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal
CN109104398B (en) * 2017-06-20 2021-07-20 阿里巴巴集团控股有限公司 Verification method and device
CN107979843B (en) * 2017-12-08 2020-07-17 上海连尚网络科技有限公司 WiFi hotspot connection processing method, device and medium for terminal
CN108898383A (en) * 2018-07-03 2018-11-27 深圳市必发达科技有限公司 A kind of mode of payment based on Wi-Fi wireless access point
CN112637844A (en) * 2020-12-16 2021-04-09 珠海格力电器股份有限公司 Security authentication method, device, equipment and medium
CN113900428A (en) * 2021-10-25 2022-01-07 深圳市元征科技股份有限公司 Vehicle diagnosis method, diagnosis node, device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457514A (en) * 2011-05-31 2012-05-16 高儒振 Mobile terminal-oriented short message authentication method of wireless network
CN103298072A (en) * 2013-07-02 2013-09-11 张洁昕 Method and system for automatically connecting to WiFi (wireless fidelity) access points and mobile communication terminal
CN104113840A (en) * 2014-07-16 2014-10-22 无锡爱羽传媒信息技术有限公司 Air travel passenger airport WiFi (Wireless Fidelity) access authentication method and system
CN104144415A (en) * 2014-07-10 2014-11-12 深圳市螺光科技有限公司 Method for connecting WiFi access point and mobile communication terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8176328B2 (en) * 2008-09-17 2012-05-08 Alcatel Lucent Authentication of access points in wireless local area networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457514A (en) * 2011-05-31 2012-05-16 高儒振 Mobile terminal-oriented short message authentication method of wireless network
CN103298072A (en) * 2013-07-02 2013-09-11 张洁昕 Method and system for automatically connecting to WiFi (wireless fidelity) access points and mobile communication terminal
CN104144415A (en) * 2014-07-10 2014-11-12 深圳市螺光科技有限公司 Method for connecting WiFi access point and mobile communication terminal
CN104113840A (en) * 2014-07-16 2014-10-22 无锡爱羽传媒信息技术有限公司 Air travel passenger airport WiFi (Wireless Fidelity) access authentication method and system

Also Published As

Publication number Publication date
CN105657781A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
CN105657781B (en) WiFi network access method and device
CN104967997B (en) A kind of Wi-Fi cut-in method, Wi-Fi equipment, terminal device and system
CN109905312B (en) Message pushing method, device and system
EP3386167B1 (en) Cloud operation interface sharing method, related device and system
TW201203140A (en) Online service providing system, method, server and mobile device thereof, and computer program product
CN104717218A (en) Wifi certification system and method
JP2018512660A (en) Method, apparatus and system for providing remote terminal support to electronic device using relay server
CN105049319A (en) Friend adding method and system, client, and server
CN104363226A (en) Method, device and system for logging in operating system
CN105450643A (en) Network access authentication method, apparatus and system
CN104767767A (en) Method, device and system for sharing Internet access data and network equipment
CN108076056A (en) Cloud server login method and device
CN103747000A (en) Authentication method and authentication device for accessing wireless network
KR20150026654A (en) Method and apparatus for connecting to network in electronic device
US9241269B1 (en) Method to identify a customer on a Wi-Fi network
CN105828454A (en) Method for connecting network, device and WiFi routing equipment
CN113271299B (en) Login method and server
CN107087293B (en) Access method, terminal and server
CN103873251A (en) Method and equipment for establishing connection by audio frequency
CN115801299A (en) Meta-universe identity authentication method, device, equipment and storage medium
CN104038900A (en) Locating method and equipment
JP4811061B2 (en) IMS access right authentication method and terminal device
CN109040050A (en) Data interactive method and Related product
US20170134383A1 (en) Method and device for sharing a resource
CN105282821A (en) Terminal and method for connecting the terminal with wireless fidelity WiFi access point

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