CN105392142B - A kind of Wireless Fidelity Wi-Fi access-in point information storage method and device - Google Patents
A kind of Wireless Fidelity Wi-Fi access-in point information storage method and device Download PDFInfo
- Publication number
- CN105392142B CN105392142B CN201511010365.3A CN201511010365A CN105392142B CN 105392142 B CN105392142 B CN 105392142B CN 201511010365 A CN201511010365 A CN 201511010365A CN 105392142 B CN105392142 B CN 105392142B
- Authority
- CN
- China
- Prior art keywords
- access point
- geographic position
- information
- user name
- current
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/08—Access security
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a kind of Wireless Fidelity Wi-Fi access-in point information storage method and devices, wherein this method comprises: receiving the link information of Wi-Fi access point, the link information of the Wi-Fi access point includes the username and password of Wi-Fi access point;Obtain the geographical location information of the Wi-Fi access point;The geographical location information of the link information of the Wi-Fi access point and the Wi-Fi access point is associated storage.Implement the embodiment of the present invention, it can be by the way that the link information of Wi-Fi access point be associated with geographical location, to promote the joint efficiency of Wi-Fi access point.
Description
Technical Field
The invention relates to the technical field of wireless communication, in particular to a Wi-Fi access point information storage method and device.
Background
With the continuous development of Wireless communication technology, Wireless Fidelity (Wi-Fi for short) has become a widely used Wireless communication means for terminal devices as a technology capable of wirelessly connecting terminal devices such as personal computers and handheld devices, and is convenient for users to use terminal devices with Wi-Fi functions in mobile environments such as traveling and mobile office, so as to realize interconnection with the internet. In practical application, when the terminal device searches for an available Wi-Fi access point, that is, enters the coverage area of a certain Wi-Fi access point, the user may input a connection password of the available Wi-Fi access point on the terminal, so as to access the network based on the available Wi-Fi access point. Meanwhile, the terminal stores the user name and the password of the Wi-Fi access point, so that the terminal can be directly connected with the Wi-Fi access point to access the network when the Wi-Fi access point is searched next time without re-inputting the password.
However, in the use process of the Wi-Fi function, a plurality of Wi-Fi access points with the same user name may be encountered, and currently, only one group of connection passwords can be stored for the Wi-Fi access points with the same user name, and when a new connection password is input for the Wi-Fi access point with the same user name, the connection password for connecting the Wi-Fi access point corresponding to the user name last time is automatically covered. For example, company A and company B have the same Wi-Fi user name but different passwords, and the terminal device stores the Wi-Fi user name and the password of company A. When a user inputs a connection password of a Wi-Fi access point of a company B to perform networking at a mobile terminal, the mobile terminal deletes the stored connection password of the Wi-Fi access point of the company A, only stores the input connection password of the Wi-Fi access point of the company B, and when the user connects the Wi-Fi access point of the company A next time, the password needs to be manually input again, and the stored connection password of the Wi-Fi access point of the company B is deleted, so on, so that the connection efficiency of the Wi-Fi access point is too low, and great inconvenience is brought to the user.
Disclosure of Invention
The embodiment of the invention provides a method and a device for storing Wi-Fi access point information, which can be used for associating the connection information of a Wi-Fi access point with a geographic position so as to improve the connection efficiency of the Wi-Fi access point.
The embodiment of the invention discloses a wireless fidelity Wi-Fi access point information storage method, which is applied to a terminal and comprises the following steps:
receiving connection information of a Wi-Fi access point, wherein the connection information of the Wi-Fi access point comprises a user name and a password of the Wi-Fi access point;
acquiring the geographical position information of the Wi-Fi access point;
and performing association storage on the connection information of the Wi-Fi access point and the geographical position information of the Wi-Fi access point.
Optionally, the obtaining the geographic location information of the Wi-Fi access point includes:
when the broadcast signal of the Wi-Fi access point is monitored, acquiring the geographical position information of the terminal, and determining the geographical position information of the terminal as the geographical position information of the Wi-Fi access point; or,
when the broadcast signal of the Wi-Fi access point is monitored, extracting the geographical position information of the Wi-Fi access point carried in the broadcast signal.
Correspondingly, the embodiment of the invention also discloses a wireless fidelity Wi-Fi access point connection method, which is applied to a terminal and comprises the following steps:
acquiring a user name and a geographic position of a current Wi-Fi access point;
acquiring a prestored user name, a prestored password and a prestored geographic position of a first Wi-Fi access point;
judging whether the user name and the geographic position of the current Wi-Fi access point are the same as the user name and the geographic position of the first Wi-Fi access point or not;
and if so, accessing the current Wi-Fi access point according to the user name and the password of the first Wi-Fi access point.
Optionally, the obtaining the geographic location of the current Wi-Fi access point includes:
when the broadcast signal of the current Wi-Fi access point is monitored, acquiring the geographical position information of the terminal, and determining the geographical position indicated by the geographical position information of the terminal as the geographical position of the current Wi-Fi access point; or,
when the broadcast signal of the current Wi-Fi access point is monitored, extracting the geographical position information carried in the broadcast signal, and determining the geographical position indicated by the extracted geographical position information as the geographical position of the current Wi-Fi access point.
Correspondingly, the embodiment of the invention also discloses a wireless fidelity Wi-Fi access point information broadcasting method, which is applied to the Wi-Fi access point and comprises the following steps:
acquiring the geographic position and the user name of the Wi-Fi access point;
broadcasting the information of the Wi-Fi access point, wherein the information of the Wi-Fi access point comprises the geographic position and the user name.
Correspondingly, the embodiment of the invention also discloses a wireless fidelity Wi-Fi access point information storage device which is arranged on a terminal and comprises:
the information receiving unit is used for receiving the connection information of the Wi-Fi access point, and the connection information of the Wi-Fi access point comprises a user name and a password of the Wi-Fi access point;
the position acquisition unit is used for acquiring the geographical position information of the Wi-Fi access point;
and the storage unit is used for storing the connection information of the Wi-Fi access point received by the information receiving unit in a correlation manner with the geographical position information of the Wi-Fi access point acquired by the position acquiring unit.
Optionally, the position obtaining unit is specifically configured to:
when the broadcast signal of the Wi-Fi access point is monitored, acquiring the geographical position information of the terminal, and determining the geographical position information of the terminal as the geographical position information of the Wi-Fi access point; or,
when the broadcast signal of the Wi-Fi access point is monitored, extracting the geographical position information of the Wi-Fi access point carried in the broadcast signal.
Correspondingly, the embodiment of the invention also discloses a wireless fidelity Wi-Fi access point connecting device which is arranged on a terminal and comprises:
the acquisition unit is used for acquiring the user name and the geographic position of the current Wi-Fi access point;
the acquisition unit is further used for acquiring a pre-stored user name, a pre-stored password and a pre-stored geographic position of the first Wi-Fi access point;
the judging unit is used for judging whether the user name and the geographic position of the current Wi-Fi access point are the same as those of the first Wi-Fi access point or not;
and the access unit is used for accessing the current Wi-Fi access point according to the user name and the password of the first Wi-Fi access point when the judgment result of the judgment unit is yes.
Optionally, the specific manner of acquiring the geographic position of the current Wi-Fi access point by the acquiring unit is as follows:
when the broadcast signal of the current Wi-Fi access point is monitored, acquiring the geographical position information of the terminal, and determining the geographical position indicated by the geographical position information of the terminal as the geographical position of the current Wi-Fi access point; or,
when the broadcast signal of the current Wi-Fi access point is monitored, extracting the geographical position information carried in the broadcast signal, and determining the geographical position indicated by the extracted geographical position information as the geographical position of the current Wi-Fi access point.
Correspondingly, the embodiment of the invention also discloses a wireless fidelity Wi-Fi access point information broadcasting device which is arranged at the Wi-Fi access point and comprises:
the information acquisition unit is used for acquiring the geographic position and the user name of the Wi-Fi access point;
and the broadcasting unit is used for broadcasting the information of the Wi-Fi access point, and the information of the Wi-Fi access point comprises the geographic position and the user name.
Correspondingly, the embodiment of the invention also discloses a terminal, which comprises part or all of the steps of the wireless fidelity Wi-Fi access point information storage method.
Correspondingly, the embodiment of the invention also discloses a terminal, which comprises part or all of the steps of the wireless fidelity Wi-Fi access point connecting method.
Correspondingly, the embodiment of the invention also discloses a wireless fidelity Wi-Fi access point, which comprises part or all of the steps of the Wi-Fi access point information broadcasting method.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention can access the current Wi-Fi access point by acquiring the user name, the password and the geographical position information of the Wi-Fi access point and storing the user name, the password and the geographical position information of the Wi-Fi access point in an associated manner, so that when the current Wi-Fi is connected, the Wi-Fi access point can be accessed by comparing the Wi-Fi user name and the geographical position with the stored user name and geographical position of the Wi-Fi access point and obtaining the same user name and password of the Wi-Fi access point according to the comparison result. The embodiment of the invention can store and connect the connection information such as Wi-Fi connection passwords according to the position information of the Wi-Fi access points, and avoids the problem that a plurality of Wi-Fi access points with the same user name can only store one group of connection passwords, thereby effectively improving the connection efficiency of the Wi-Fi access points and saving time for users.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a Wi-Fi access point information storage method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a Wi-Fi access point connection method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a Wi-Fi access point information broadcasting method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a Wi-Fi access point information storage apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a Wi-Fi access point connection apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a Wi-Fi access point information broadcasting apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, 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 embodiment of the invention discloses a Wi-Fi access point information storage method, a Wi-Fi access point connection method, a Wi-Fi access point information broadcasting method and a related device, which can improve the connection efficiency of Wi-Fi access points by associating the connection information of the Wi-Fi access points with geographical positions. The details are described below.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a Wi-Fi access point information storage method according to an embodiment of the present invention. Specifically, as shown in fig. 1, the method for storing Wi-Fi access point information according to the embodiment of the present invention may include the following steps:
101. and receiving connection information of the Wi-Fi access point, wherein the connection information of the Wi-Fi access point comprises a user name and a password of the Wi-Fi access point.
It should be noted that the Wi-Fi access point information storage method according to the embodiment of the present invention may be specifically applied to a terminal, where the terminal may include, but is not limited to, a terminal configured with a Wi-Fi module, such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a Mobile Internet device (Mobile Internet Devices, abbreviated as "MID"), a Personal digital assistant (Personal digital assistant, abbreviated as "PDA"), and the like. The Terminal may also be referred to as a User Equipment (UE), a Terminal (Terminal) Mobile Terminal, or a Mobile Station (MS), and the embodiments of the present invention are not limited thereto.
Specifically, the connection information of the Wi-Fi access point may be input when the Wi-Fi access point is connected for the first time, and obtained when a user name of a certain Wi-Fi access point clicked by a user is received and a password of the Wi-Fi access point is input.
102. And acquiring the geographic position information of the Wi-Fi access point.
Optionally, the obtaining of the geographic location information of the Wi-Fi access point may specifically be: when the broadcast signal of the Wi-Fi access point is monitored, acquiring the geographical position information of the terminal, and determining the geographical position information of the terminal as the geographical position information of the Wi-Fi access point; or when the broadcast signal of the Wi-Fi access point is monitored, extracting the geographical position information of the Wi-Fi access point carried in the broadcast signal. That is, the geographic location of the Wi-Fi access point may refer to a location where the terminal is located when the signal of the Wi-Fi access point is detected, or may also refer to a location indicated by location information included in the signal. Wherein, the terminal can be pre-configured with a GPS module or other positioning tools for positioning the current position of the terminal.
103. And performing association storage on the connection information of the Wi-Fi access point and the geographical position information of the Wi-Fi access point.
In a specific embodiment, after obtaining a user name, a password and a geographic position of a certain Wi-Fi access point, the terminal may associate and store the user name, the password and the geographic position, for example, binding the user name, the password and the geographic position to a piece of Wi-Fi connection information and storing the Wi-Fi connection information in a preset configuration file. Therefore, when the Wi-Fi access point is connected again in the following, the user name and the geographic position of the Wi-Fi access point can be matched, and the Wi-Fi access point can be accessed according to the stored password of the Wi-Fi access point when the matching is successful.
In the embodiment of the invention, when the user name and the password of the Wi-Fi access point are received, the geographic position information of the Wi-Fi access point can be obtained, and the user name, the password and the geographic position information of the Wi-Fi access point are stored in an associated manner, so that the Wi-Fi access point can be accessed by matching the Wi-Fi user name and the geographic position when the Wi-Fi is connected subsequently and by the stored password of the Wi-Fi access point when the matching is successful, and therefore, the problem that a plurality of Wi-Fi access points with the same user name can only store one group of connection passwords is avoided, the connection efficiency of the Wi-Fi access points is effectively improved, and time is saved for users.
Referring to fig. 2, fig. 2 is a flowchart illustrating a Wi-Fi access point connection method according to an embodiment of the present invention. Specifically, as shown in fig. 2, the Wi-Fi access point connection method according to the embodiment of the present invention may include the following steps:
201. and acquiring the user name and the geographic position of the current Wi-Fi access point.
It should be understood that the Wi-Fi access point connection method according to the embodiment of the present invention may be specifically applied to the terminal described above. Specifically, the current Wi-Fi access point may refer to a Wi-Fi access point to which the terminal is currently connected, i.e., an available Wi-Fi access point. If there are a plurality of Wi-Fi access points to which the terminal can currently connect, the current Wi-Fi access point may refer to any one of the plurality of Wi-Fi access points.
Optionally, the obtaining of the geographic location of the current Wi-Fi access point may specifically be: when the broadcast signal of the current Wi-Fi access point is monitored, acquiring the geographical position information of the terminal, and determining the geographical position indicated by the geographical position information of the terminal as the geographical position of the current Wi-Fi access point; or when the broadcast signal of the current Wi-Fi access point is monitored, extracting the geographical position information carried in the broadcast signal, and determining the geographical position indicated by the extracted geographical position information as the geographical position of the current Wi-Fi access point. That is, the geographic location of the current Wi-Fi access point may refer to a location where the terminal is located when the signal of the current Wi-Fi access point is detected, or may also refer to a location indicated by location information included in the signal of the current Wi-Fi access point. Wherein, the terminal can be pre-configured with a GPS module or other positioning tools for positioning the current position of the terminal.
202. And acquiring a pre-stored user name, password and geographical position of the first Wi-Fi access point.
In a specific embodiment, the terminal stores at least one piece of Wi-Fi connection information including a user name, a password, and geographic location information of the Wi-Fi access point, and for example, the at least one piece of Wi-Fi connection information may be stored in a preset configuration file. The stored Wi-Fi connection information may include a user name, a password, and geographical location information, which are acquired when the Wi-Fi is connected for the first time and stored in association with each other. The first Wi-Fi access point can be a Wi-Fi access point corresponding to any Wi-Fi connection information stored with a user name, a password and a geographic position.
203. Judging whether the user name and the geographic position of the current Wi-Fi access point are the same as the user name and the geographic position of the first Wi-Fi access point or not; if yes, go to step 204.
204. And accessing the current Wi-Fi access point according to the user name and the password of the first Wi-Fi access point.
Specifically, the current Wi-Fi access point can be accessed according to the stored password of the first Wi-Fi access point by matching and comparing the user name and the geographic position of the current Wi-Fi access point with the user name and the geographic position of the first Wi-Fi access point, and when the matching is successful, the user name of the current Wi-Fi access point is the same as the user name of the first Wi-Fi access point, and the geographic position of the current Wi-Fi access point is the same as the geographic position of the first Wi-Fi access point. At this time, the current Wi-Fi access point is also the first Wi-Fi access point. Optionally, if the user name of the current Wi-Fi access point is different from the user name of the first Wi-Fi access point, or the geographic location of the current Wi-Fi access point is different from the geographic location of the first Wi-Fi access point, it may be determined that the matching fails. When all the stored Wi-Fi connection information is traversed and matching fails, a prompt message can be output to prompt a user to input a password of the current Wi-Fi access point, so that the user can access the current Wi-Fi access point according to the input password.
Further, in other optional embodiments, the current Wi-Fi access point may be matched and compared with the first Wi-Fi access point only, and the current Wi-Fi access point is directly accessed according to the stored password of the first Wi-Fi access point when the current Wi-Fi access point is matched with the first Wi-Fi access point, which is not described herein again.
In the embodiment of the invention, when the current available Wi-Fi access point is detected to exist, the user name and the geographic position information of the current available Wi-Fi access point are obtained, the user name and the geographic position of the current available Wi-Fi access point are matched and compared with the stored user name and geographic position of the Wi-Fi access point, and the current available Wi-Fi access point is accessed according to the stored password of the matched Wi-Fi access point when the matching is successful, so that the problem that a plurality of Wi-Fi access points with the same user name can only store one group of connection passwords is avoided, the connection efficiency of the Wi-Fi access points is effectively improved, and the time is saved for a user.
Referring to fig. 3, fig. 3 is a flowchart illustrating a Wi-Fi access point information broadcasting method according to an embodiment of the present invention. Specifically, as shown in fig. 3, the Wi-Fi access point information broadcasting method according to the embodiment of the present invention may include the following steps:
301. and acquiring the geographic position and the user name of the Wi-Fi access point.
It should be understood that the method of embodiments of the present invention may have particular application in Wi-Fi access points (devices). The geographic position of the Wi-Fi access point can be obtained by a positioning tool preset in the Wi-Fi access point, such as a GPS (global positioning system), or input by a user when the Wi-Fi access point is set; the username of the Wi-Fi access point may be entered by the user when setting up the Wi-Fi access point, or may be set by default by the system, etc.
302. Broadcasting the information of the Wi-Fi access point, wherein the information of the Wi-Fi access point comprises the geographic position and the user name.
Further, after the geographic position and the user name of the Wi-Fi access point are obtained, the Wi-Fi access point can broadcast the geographic position and the user name information of the Wi-Fi access point to a terminal nearby (such as within a preset range), so that the terminal can search the Wi-Fi access point in time.
In the embodiment of the invention, the user name and the geographic position information of the Wi-Fi access point can be acquired, and the user name and the geographic position information of the Wi-Fi access point are broadcasted to the nearby terminal, so that the terminal can match and compare the user name and the geographic position of the Wi-Fi access point with the stored user name and geographic position of the Wi-Fi access point, and access the Wi-Fi access point according to the stored password of the matched Wi-Fi access point when the matching is successful, thereby avoiding the problem that a plurality of Wi-Fi access points with the same user name can only store one group of connection passwords, effectively improving the connection efficiency of the Wi-Fi access points, and saving time for users.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a Wi-Fi access point information storage device according to an embodiment of the present invention. Specifically, as shown in fig. 4, the Wi-Fi access point information storage apparatus according to the embodiment of the present invention may be specifically disposed in a terminal, and the apparatus may include an information receiving unit 11, a location obtaining unit 12, and a storage unit 13. Wherein,
the information receiving unit 11 is configured to receive connection information of a Wi-Fi access point, where the connection information of the Wi-Fi access point includes a user name and a password of the Wi-Fi access point.
It should be noted that the terminal according to the embodiment of the present invention may include, but is not limited to, a terminal configured with a Wi-Fi module, such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a Mobile Internet device (Mobile Internet Devices, abbreviated as "MID"), a Personal Digital Assistant (Personal Digital Assistant, abbreviated as "PDA"), and the like. The Terminal may also be referred to as a User Equipment (UE), a Terminal (Terminal) Mobile Terminal, or a Mobile Station (MS), and the embodiments of the present invention are not limited thereto.
Specifically, the connection information of the Wi-Fi access point may be input when the Wi-Fi access point is connected for the first time, for example, the connection information is obtained when the information receiving unit 11 receives a user name of a certain Wi-Fi access point clicked by a user and an input password of the Wi-Fi access point. After receiving the connection information of the Wi-Fi access point, the information receiving unit 11 may notify the location obtaining unit 12 to obtain the geographic location information of the Wi-Fi access point.
The location obtaining unit 12 is configured to obtain geographic location information of the Wi-Fi access point.
The storage unit 13 is configured to perform association storage on the connection information of the Wi-Fi access point received by the information receiving unit 11 and the geographic location information of the Wi-Fi access point acquired by the location acquiring unit 12.
Optionally, the position obtaining unit 12 may be specifically configured to:
when the broadcast signal of the Wi-Fi access point is monitored, acquiring the geographical position information of the terminal, and determining the geographical position information of the terminal as the geographical position information of the Wi-Fi access point; or,
when the broadcast signal of the Wi-Fi access point is monitored, extracting the geographical position information of the Wi-Fi access point carried in the broadcast signal.
Specifically, the geographic location of the Wi-Fi access point may refer to a location where the terminal is located when the signal of the Wi-Fi access point is detected, or may also refer to a location indicated by location information included in the signal. Wherein, the terminal can be pre-configured with a GPS module or other positioning tools for positioning the current position of the terminal.
In a specific embodiment, after the information receiving unit 11 obtains the user name and the password of a certain Wi-Fi access point and the position obtaining unit 12 obtains the geographic position information of the Wi-Fi access point, the storage unit 13 may associate and store the user name, the password and the geographic position information, for example, bind the user name, the password and the geographic position as a piece of Wi-Fi connection information and store the Wi-Fi connection information in a preset configuration file. When the Wi-Fi access point is connected again subsequently, the user name and the geographic position of the Wi-Fi access point can be matched, and the Wi-Fi access point can be accessed according to the stored password of the Wi-Fi access point when the matching is successful.
In the embodiment of the invention, when the user name and the password of the Wi-Fi access point are received, the geographic position information of the Wi-Fi access point can be obtained, and the user name, the password and the geographic position information of the Wi-Fi access point are stored in an associated manner, so that the Wi-Fi access point can be accessed by matching the Wi-Fi user name and the geographic position when the Wi-Fi is connected subsequently and by the stored password of the Wi-Fi access point when the matching is successful, and therefore, the problem that a plurality of Wi-Fi access points with the same user name can only store one group of connection passwords is avoided, the connection efficiency of the Wi-Fi access points is effectively improved, and time is saved for users.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a Wi-Fi access point connection device according to an embodiment of the present invention. Specifically, as shown in fig. 5, the Wi-Fi access point connection apparatus according to the embodiment of the present invention may be specifically disposed in the terminal, and the apparatus may include an obtaining unit 21, a determining unit 22, and an accessing unit 23. Wherein,
the obtaining unit 21 is configured to obtain a user name and a geographic location of the current Wi-Fi access point.
Specifically, the current Wi-Fi access point may refer to a Wi-Fi access point to which the terminal is currently connected, i.e., an available Wi-Fi access point. If there are a plurality of Wi-Fi access points to which the terminal can currently connect, the current Wi-Fi access point may refer to any one of the plurality of Wi-Fi access points.
Optionally, in the embodiment of the present invention, a specific manner of acquiring the geographic location of the current Wi-Fi access point by the acquiring unit 21 may be as follows:
when the broadcast signal of the current Wi-Fi access point is monitored, acquiring the geographical position information of the terminal, and determining the geographical position indicated by the geographical position information of the terminal as the geographical position of the current Wi-Fi access point; or,
when the broadcast signal of the current Wi-Fi access point is monitored, extracting the geographical position information carried in the broadcast signal, and determining the geographical position indicated by the extracted geographical position information as the geographical position of the current Wi-Fi access point.
Specifically, the geographic location of the current Wi-Fi access point may refer to a location where the terminal is located when the signal of the current Wi-Fi access point is detected, or may also refer to a location indicated by location information included in the signal of the current Wi-Fi access point. Wherein, the terminal can be pre-configured with a GPS module or other positioning tools for positioning the current position of the terminal.
The obtaining unit 21 is further configured to obtain a pre-stored user name, a pre-stored password, and a pre-stored geographic location of the first Wi-Fi access point.
In a specific embodiment, the terminal stores at least one piece of Wi-Fi connection information including a user name, a password, and geographic location information of the Wi-Fi access point, and for example, the at least one piece of Wi-Fi connection information may be stored in a preset configuration file. The stored Wi-Fi connection information may include a user name, a password, and geographical location information, which are acquired when the Wi-Fi is connected for the first time and stored in association with each other. The first Wi-Fi access point can be a Wi-Fi access point corresponding to any Wi-Fi connection information stored with a user name, a password and a geographic position.
The determining unit 22 is configured to determine whether the user name and the geographic position of the current Wi-Fi access point are the same as the user name and the geographic position of the first Wi-Fi access point.
The access unit 23 is configured to access the current Wi-Fi access point according to the user name and the password of the first Wi-Fi access point when the determination result of the determining unit 22 is yes.
Specifically, the determining unit 22 may compare the user name and the geographic position of the current Wi-Fi access point with the user name and the geographic position of the first Wi-Fi access point, and when the matching is successful, that is, the user name of the current Wi-Fi access point is the same as the user name of the first Wi-Fi access point, and the geographic position of the current Wi-Fi access point is the same as the geographic position of the first Wi-Fi access point, the accessing unit 23 accesses the current Wi-Fi access point according to the stored password of the first Wi-Fi access point. At this time, the current Wi-Fi access point is also the first Wi-Fi access point.
Further, in other optional embodiments, the determining unit 22 may also match and compare the geographic position of the current Wi-Fi access point with the geographic position of the first Wi-Fi access point, and when the two are matched, the accessing unit 23 directly accesses the current Wi-Fi access point according to the stored password of the first Wi-Fi access point, which is not described herein again.
It should be noted that the Wi-Fi access point connection device in the embodiment of the present invention and the Wi-Fi access point information storage device in the embodiment corresponding to fig. 4 may be disposed in the same terminal.
In the embodiment of the invention, when the current available Wi-Fi access point is detected to exist, the user name and the geographic position information of the current available Wi-Fi access point are obtained, the user name and the geographic position of the current available Wi-Fi access point are matched and compared with the stored user name and geographic position of the Wi-Fi access point, and the current available Wi-Fi access point is accessed according to the stored password of the matched Wi-Fi access point when the matching is successful, so that the problem that a plurality of Wi-Fi access points with the same user name can only store one group of connection passwords is avoided, the connection efficiency of the Wi-Fi access points is effectively improved, and the time is saved for a user.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a Wi-Fi access point information broadcasting apparatus according to an embodiment of the present invention. Specifically, as shown in fig. 6, the Wi-Fi access point information broadcasting apparatus according to the embodiment of the present invention may be specifically disposed in a Wi-Fi access point, and the apparatus may include an information obtaining unit 31 and a broadcasting unit 32. Wherein,
the information obtaining unit 31 is configured to obtain a geographic location and a user name of the Wi-Fi access point.
The geographic position of the Wi-Fi access point can be obtained by a preset positioning tool such as a GPS (global positioning system), or input by a user when the Wi-Fi access point is set; the username of the Wi-Fi access point may be entered by the user when setting up the Wi-Fi access point, or may be set by default by the system, etc.
The broadcasting unit 32 is configured to broadcast information of the Wi-Fi access point, where the information of the Wi-Fi access point includes the geographic location and the user name.
Further, after the information obtaining unit 31 obtains the geographic position and the user name of the Wi-Fi access point, the broadcasting unit 32 may broadcast the geographic position and the user name information of the Wi-Fi access point to nearby terminals, so that the terminals can search for the Wi-Fi access point in time.
In the embodiment of the invention, the user name and the geographic position information of the Wi-Fi access point can be acquired, and the user name and the geographic position information of the Wi-Fi access point are broadcasted to the nearby terminal, so that the terminal can match and compare the user name and the geographic position of the Wi-Fi access point with the stored user name and geographic position of the Wi-Fi access point, and access the Wi-Fi access point according to the stored password of the matched Wi-Fi access point when the matching is successful, thereby avoiding the problem that a plurality of Wi-Fi access points with the same user name can only store one group of connection passwords, effectively improving the connection efficiency of the Wi-Fi access points, and saving time for users.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "a specific embodiment," "an example," "a specific example," or "some examples" or the like, mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
Claims (6)
1. A wireless fidelity Wi-Fi access point information storage method is applied to a terminal and is characterized by comprising the following steps:
receiving connection information of a Wi-Fi access point, wherein the connection information of the Wi-Fi access point comprises a user name and a password of the Wi-Fi access point;
when the broadcast signal of the Wi-Fi access point is monitored, extracting the geographical position information of the Wi-Fi access point carried in the broadcast signal;
the connection information of the Wi-Fi access point and the geographical position information of the Wi-Fi access point are stored in an associated mode, so that matching is carried out according to the connection information of the current Wi-Fi access point and the stored connection information of the Wi-Fi access point, when all the stored Wi-Fi connection information which is traversed and matched fails, a prompt message is output to prompt a user to input a password of the current Wi-Fi access point, and the current Wi-Fi access point is accessed according to the input password;
and determining that the matching is failed if the user name of the current Wi-Fi access point is different from the stored user name of the Wi-Fi access point or the geographic position of the current Wi-Fi access point is different from the stored geographic position of the Wi-Fi access point.
2. A wireless fidelity Wi-Fi access point connection method is applied to a terminal and is characterized by comprising the following steps:
acquiring a user name of a current Wi-Fi access point;
when the broadcast signal of the current Wi-Fi access point is monitored, extracting geographic position information carried in the broadcast signal, and determining the geographic position indicated by the extracted geographic position information as the geographic position of the current Wi-Fi access point;
acquiring a prestored user name, a prestored password and a prestored geographic position of a first Wi-Fi access point;
judging whether the user name and the geographic position of the current Wi-Fi access point are the same as the user name and the geographic position of the first Wi-Fi access point or not;
if so, accessing the current Wi-Fi access point according to the user name and the password of the first Wi-Fi access point;
when all the traversed and stored Wi-Fi connection information fails to be matched, outputting a prompt message to prompt a user to input a password of the current Wi-Fi access point so as to access the current Wi-Fi access point according to the input password;
and determining that the matching is failed if the user name of the current Wi-Fi access point is different from the stored user name of the Wi-Fi access point or the geographic position of the current Wi-Fi access point is different from the stored geographic position of the Wi-Fi access point.
3. A wireless fidelity Wi-Fi access point information broadcasting method is applied to Wi-Fi access points and is characterized by comprising the following steps:
acquiring the geographic position and the user name of the Wi-Fi access point;
broadcasting information of the Wi-Fi access point, wherein the information of the Wi-Fi access point comprises the geographic position and a user name, so that when a terminal monitors a broadcast signal of the Wi-Fi access point, the geographic position information carried in the broadcast signal is extracted, the geographic position indicated by the extracted geographic position information is determined as the geographic position of the Wi-Fi access point for Wi-Fi connection, and when all traversed and stored Wi-Fi connection information are failed to be matched with the information of the Wi-Fi access point, a prompt message is output to prompt a user to input a password of the Wi-Fi access point, so that the user can access the Wi-Fi access point according to the input password;
and if the user name of the Wi-Fi access point is different from the stored user name of the Wi-Fi access point, or the geographic position of the Wi-Fi access point is different from the stored geographic position of the Wi-Fi access point, determining that the matching fails.
4. A wireless fidelity Wi-Fi access point information storage device is arranged on a terminal and is characterized by comprising:
the information receiving unit is used for receiving the connection information of the Wi-Fi access point, and the connection information of the Wi-Fi access point comprises a user name and a password of the Wi-Fi access point;
the position acquisition unit is used for extracting the geographical position information of the Wi-Fi access point carried in the broadcast signal when the broadcast signal of the Wi-Fi access point is monitored;
the storage unit is used for performing associated storage on the connection information of the Wi-Fi access point received by the information receiving unit and the geographic position information of the Wi-Fi access point acquired by the position acquisition unit so as to perform matching according to the connection information of the current Wi-Fi access point and the stored connection information of the Wi-Fi access point, and outputting a prompt message to prompt a user to input a password of the current Wi-Fi access point when all the traversed and stored Wi-Fi connection information fails to be matched, so that the user can access the current Wi-Fi access point according to the input password;
and determining that the matching is failed if the user name of the current Wi-Fi access point is different from the stored user name of the Wi-Fi access point or the geographic position of the current Wi-Fi access point is different from the stored geographic position of the Wi-Fi access point.
5. The utility model provides a wireless fidelity Wi-Fi access point connecting device, sets up in the terminal, its characterized in that includes:
the acquisition unit is used for acquiring the user name of the current Wi-Fi access point;
the acquisition unit is further configured to extract geographic position information carried in the broadcast signal when the broadcast signal of the current Wi-Fi access point is monitored, and determine a geographic position indicated by the extracted geographic position information as the geographic position of the current Wi-Fi access point;
the acquisition unit is further used for acquiring a pre-stored user name, a pre-stored password and a pre-stored geographic position of the first Wi-Fi access point;
the judging unit is used for judging whether the user name and the geographic position of the current Wi-Fi access point are the same as those of the first Wi-Fi access point or not;
the access unit is used for accessing the current Wi-Fi access point according to the user name and the password of the first Wi-Fi access point when the judgment result of the judgment unit is yes;
the access unit is further used for outputting a prompt message to prompt a user to input the password of the current Wi-Fi access point when all the traversed and stored Wi-Fi connection information fails to be matched, so that the user can access the current Wi-Fi access point according to the input password;
and determining that the matching is failed if the user name of the current Wi-Fi access point is different from the stored user name of the Wi-Fi access point or the geographic position of the current Wi-Fi access point is different from the stored geographic position of the Wi-Fi access point.
6. The utility model provides a wireless fidelity Wi-Fi access point information broadcasting device, sets up in the Wi-Fi access point, its characterized in that includes:
the information acquisition unit is used for acquiring the geographic position and the user name of the Wi-Fi access point;
the broadcasting unit is used for broadcasting the information of the Wi-Fi access point, wherein the information of the Wi-Fi access point comprises the geographic position and a user name, so that when a terminal monitors a broadcast signal of the Wi-Fi access point, the geographic position information carried in the broadcast signal is extracted, the geographic position indicated by the extracted geographic position information is determined as the geographic position of the Wi-Fi access point for Wi-Fi connection, and when all the traversed and stored Wi-Fi connection information are failed to be matched with the information of the Wi-Fi access point, a prompt message is output to prompt a user to input a password of the Wi-Fi access point, and the Wi-Fi access point is accessed according to the input password;
and if the user name of the Wi-Fi access point is different from the stored user name of the Wi-Fi access point, or the geographic position of the Wi-Fi access point is different from the stored geographic position of the Wi-Fi access point, determining that the matching fails.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511010365.3A CN105392142B (en) | 2015-12-26 | 2015-12-26 | A kind of Wireless Fidelity Wi-Fi access-in point information storage method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511010365.3A CN105392142B (en) | 2015-12-26 | 2015-12-26 | A kind of Wireless Fidelity Wi-Fi access-in point information storage method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105392142A CN105392142A (en) | 2016-03-09 |
CN105392142B true CN105392142B (en) | 2018-12-07 |
Family
ID=55423882
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511010365.3A Active CN105392142B (en) | 2015-12-26 | 2015-12-26 | A kind of Wireless Fidelity Wi-Fi access-in point information storage method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105392142B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106535188A (en) * | 2016-11-07 | 2017-03-22 | 广东欧珀移动通信有限公司 | Access control method and mobile terminal |
CN108282736B (en) * | 2016-12-30 | 2020-11-10 | 腾讯科技(深圳)有限公司 | Networking method and device of intelligent terminal |
CN109391944B (en) * | 2018-10-31 | 2022-05-20 | 北京小米移动软件有限公司 | Wireless network remarking method and device |
CN110035393A (en) * | 2019-04-22 | 2019-07-19 | 浙江每日互动网络科技股份有限公司 | The recognition methods of mobile terminal relationship |
CN113596943B (en) * | 2021-08-11 | 2022-08-26 | 中国联合网络通信集团有限公司 | Wireless network information storage method and terminal |
CN114845285A (en) * | 2022-04-20 | 2022-08-02 | 读书郎教育科技有限公司 | Intelligent schoolbag wifi connection method and intelligent schoolbag |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103514378A (en) * | 2013-10-15 | 2014-01-15 | 合肥工业大学 | Remote medical nursing system based on WLAN indoor positioning technology |
CN104080046A (en) * | 2013-03-29 | 2014-10-01 | 百度在线网络技术(北京)有限公司 | Method and device for passive check in |
CN104394579A (en) * | 2014-12-15 | 2015-03-04 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN104579667A (en) * | 2013-10-28 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Account password management method, device and system |
-
2015
- 2015-12-26 CN CN201511010365.3A patent/CN105392142B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104080046A (en) * | 2013-03-29 | 2014-10-01 | 百度在线网络技术(北京)有限公司 | Method and device for passive check in |
CN103514378A (en) * | 2013-10-15 | 2014-01-15 | 合肥工业大学 | Remote medical nursing system based on WLAN indoor positioning technology |
CN104579667A (en) * | 2013-10-28 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Account password management method, device and system |
CN104394579A (en) * | 2014-12-15 | 2015-03-04 | 联想(北京)有限公司 | Information processing method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105392142A (en) | 2016-03-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105392142B (en) | A kind of Wireless Fidelity Wi-Fi access-in point information storage method and device | |
US10015731B2 (en) | Network access method and mobile terminal | |
EP3197213B1 (en) | Network access method and mobile communication terminal | |
WO2017020654A1 (en) | Wireless network access method and device | |
WO2016202293A1 (en) | Network access method and mobile terminal | |
US9572190B2 (en) | Device and method for associating with WiFi networks | |
WO2016173336A1 (en) | Network access method and mobile communication terminal | |
WO2015154454A1 (en) | Wireless network connection method and device | |
WO2016173348A1 (en) | Network access method and mobile communications terminal | |
WO2016173337A1 (en) | Network access method and mobile communications terminal | |
CN111757426A (en) | Roaming network access method and device | |
CN104363585A (en) | Wireless local area network access method | |
US20170126556A1 (en) | Information transmission method and apparatus, device and storage medium | |
CN103368984A (en) | Method and system for information sharing | |
WO2016202262A1 (en) | Network access method and mobile terminal | |
CN106686587B (en) | Wireless fidelity Wi-Fi connection method, mobile terminal and medium | |
CN104640174A (en) | Method and device for promoting wireless network access points | |
CN104217169A (en) | Encryption recommendation method and device and terminal | |
CN104363634A (en) | Method for acquiring Bluetooth broadcasting information | |
CN110474879B (en) | Identity recognition preprocessing method, identity recognition method, and equipment and system thereof | |
WO2017107682A1 (en) | Wireless network-based positioning method, device, and intelligent terminal | |
CN105517192A (en) | Wireless network connecting method and device | |
US10257866B2 (en) | Wireless network access point connection method and terminal | |
EP3739838A1 (en) | Method for establishing network connection by using wps and mobile wi-fi device and computer storage medium | |
CN104994501A (en) | Connection method of wireless network and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 519085 Guangdong Zhuhai science and technology innovation coastal Meizu Technology Building Patentee after: MEIZU TECHNOLOGY Co.,Ltd. Address before: 519080 Technology Innovation Coast Meizu science and technology building, Xiangzhou District, Zhuhai, Guangdong Patentee before: Meizu Technology (China) Co.,Ltd. |