CN106714274A - Access point connection method and device - Google Patents
Access point connection method and device Download PDFInfo
- Publication number
- CN106714274A CN106714274A CN201610464451.XA CN201610464451A CN106714274A CN 106714274 A CN106714274 A CN 106714274A CN 201610464451 A CN201610464451 A CN 201610464451A CN 106714274 A CN106714274 A CN 106714274A
- Authority
- CN
- China
- Prior art keywords
- information
- access
- password
- target
- 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.)
- Granted
Links
Classifications
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses an access point connection method and device, and belongs to the technical field of wireless networks. The method comprises the steps that when connection operation to a target access point is detected, target access point information is determined, wherein the target access point information is used for identifying the target access point; a target password is acquired from a locally stored offline database according to the target access point information, wherein the offline database is used for storing the access point information and the corresponding password, and the target password is a password matched with the access point information; and connecting the target access point is performed according to the target password. The access point information acquired from a server and the corresponding password are stored in the offline database so that the terminal is enabled to use the offline database to acquire the password of the access point required to be connected under any network connection state so as to connect the access point, and the limitation that the terminal can connect the access point only when the terminal is under the network connection state can be broken through.
Description
Technical field
The present invention relates to radio network technique field, more particularly to a kind of access point connection method and device.
Background technology
With the development of radio network technique, a large amount of WiFi (Wireless Fidelity, Wireless Fidelity) are accessed
The life for being deployed to user of point brings great convenience.For example, in many public arenas, being deployed with
Multiple WiFi access points, terminal can connect any WiFi access points, just can reach the mesh for accessing internet
's.
In the prior art, most of WiFi access points are provided with password, and user obtains WiFi for convenience
The password of access point, can store the access-in point information of larger WiFi access points and corresponding in server
Password.Terminal, can according to the access of the WiFi access points in connect setting during the WiFi access points of password
Point information obtains corresponding password from server, and then according to the password for getting, connects the WiFi access points.
Realize it is of the invention during, inventor find prior art at least there is problems with:
During above-mentioned WiFi access points are connected, terminal needs to obtain password from server so that terminal must
When must be in network connection state, the WiFi access points could be connected.Once terminal cannot network, just can not
The password of WiFi access points is obtained from server, and then the WiFi access points can not be connected, therefore, it is above-mentioned
Connection method is restricted strong.
The content of the invention
In order to solve problem of the prior art, a kind of access point connection method and dress are the embodiment of the invention provides
Put.The technical scheme is as follows:
First aspect, there is provided a kind of access point connection method, methods described includes:
When the attended operation to target access is detected, target access information is determined, the target connects
Access point information is used to identify the target access;
According to the target access information, target password is obtained from locally stored offline database,
The offline database is used to store access-in point information and corresponding password, the target password be with it is described
The password of access-in point information matching;
According to the target password, the target access is connected.
Second aspect, there is provided a kind of access point connection method, methods described includes:
The download request of receiving terminal, carried terminal positional information in the download request;
Data to be sent are obtained, the data include being located at same geographic area with the terminal positional information
Access-in point information and corresponding password;
By the data is activation to the terminal, by the terminal according to the data cube computation access point.
The third aspect, there is provided a kind of access point attachment means, described device includes:
Determining module, for when the attended operation to target access is detected, determining that target access is believed
Breath, the target access information is used to identify the target access;
Acquisition module, for according to the target access information, from locally stored offline database
Target password is obtained, the offline database is used to store access-in point information and corresponding password, the mesh
Mark password is the password with described access point information matches;
Link block, for according to the target password, connecting the target access.
Fourth aspect, there is provided a kind of access point attachment means, described device includes:
Receiver module, for the download request of receiving terminal, carried terminal positional information in the download request;
First acquisition module, for obtaining data to be sent, the data include believing with the terminal location
Access-in point information and corresponding password of the breath positioned at same geographic area;
Sending module, for by the data is activation to the terminal, being connected according to the data by the terminal
Connect access point.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
It is offline database by the way that access-in point information and corresponding password storage will be obtained from server so that
When terminal is in arbitrary network connection status, the access point for needing connection can be got using offline database
Password, and then connect the access point, having broken only terminal could connect access in network connection state
The limitation of point.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, institute in being described to embodiment below
The accompanying drawing for needing to use is briefly described, it should be apparent that, drawings in the following description are only the present invention
Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work,
Other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of access point connection method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of access point connection method provided in an embodiment of the present invention;
Fig. 3 A are a kind of flow charts of access point connection method provided in an embodiment of the present invention;
Fig. 3 B are the flow charts that a kind of terminal provided in an embodiment of the present invention obtains target password;
Fig. 3 C are the flow charts that a kind of terminal provided in an embodiment of the present invention updates offline database;
Fig. 4 A are a kind of flow charts of access point connection method provided in an embodiment of the present invention;
Fig. 4 B are the flow charts that a kind of terminal provided in an embodiment of the present invention obtains target password;
Fig. 4 C are a kind of search order schematic diagrames from the close-by examples to those far off provided in an embodiment of the present invention;
Fig. 5 is a kind of block diagram of access point attachment means provided in an embodiment of the present invention;
Fig. 6 is a kind of block diagram of access point attachment means provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation of terminal provided in an embodiment of the present invention;
Fig. 8 is a kind of block diagram of access point attachment means provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to the present invention
Implementation method is described in further detail.
Fig. 1 is a kind of flow chart of access point connection method provided in an embodiment of the present invention, for terminal, ginseng
See Fig. 1, method flow provided in an embodiment of the present invention includes:
101st, when the attended operation to target access is detected, target access information is determined, target connects
Access point information is used to identify target access.
102nd, according to target access information, target password is obtained from locally stored offline database,
Offline database is used to store access-in point information and corresponding password, and target password is and access-in point information
The password matched somebody with somebody.
103rd, according to target password, linking objective access point.
Method provided in an embodiment of the present invention, by the way that access-in point information and corresponding close will be obtained from server
Code is stored as offline database so that when terminal is in arbitrary network connection status, can utilize off-line data
Storehouse gets the password of the access point for needing connection, and then connects the access point, has broken only terminal in net
The limitation of access point could be connected during network connection status.
Alternatively, target access information includes SSID (the Service Set Identifier, clothes of target access
Business set identification) and BSSID (Basic Service Set Identifier, infrastructure service set mark).
Alternatively, the access-in point information and corresponding password for being stored in offline database are to be entered by server
The ciphertext that row encryption is obtained,
Correspondingly, according to target access information, target is obtained from locally stored offline database close
Code includes:
Target access information is encrypted, target access information ciphertext is obtained;
Judge whether include target access information ciphertext in offline database;
If comprising, Crypted password corresponding with target access information ciphertext is obtained from offline database,
The Crypted password that will be got is decrypted, and obtains target password.
Alternatively, target access information is encrypted, obtaining target access information ciphertext includes:
According to the first AES, the cryptographic Hash of SSID and the cryptographic Hash of BSSID are calculated;
The cryptographic Hash of SSID is combined with the cryptographic Hash of BSSID, access point ciphertext is obtained.
Alternatively, target access information includes the SSID and terminal positional information of target access.
Alternatively, according to target access information, target is obtained from locally stored offline database close
Code includes:
According to terminal positional information, multiple area informations are obtained, each area information is located at terminal positional information
Preset range in;
According to multiple area informations and SSID, it is determined that multiple information to be checked, each information to be checked is for referring to
Show an area information in SSID and multiple area informations;
Judge whether include target query information in multiple information to be checked, target query information for be stored in from
Information to be checked in line database;
If including password corresponding with target query information being obtained from offline database, by what is got
Password is defined as target password.
Alternatively, the access-in point information and corresponding password for being stored in offline database are to be entered by server
The ciphertext that row encryption is obtained,
According to multiple area informations and SSID, it is determined that multiple information to be checked include:
According to pre-arranged code mode, multiple area informations are encoded, according to the second AES to SSID
It is encrypted, obtains multiple information to be checked;
Password corresponding with target query information is obtained from offline database, the password that will be got is defined as
Target password includes:
Crypted password corresponding with target query information is obtained from offline database, the encryption that will be got is close
Code is decrypted, and obtains target password.
Alternatively, the method also includes:
Download request, download request carried terminal positional information are sent to server;
The data that the reception server is returned, store data as offline database, and data are to believe with terminal location
Access-in point information and corresponding password of the breath positioned at same geographic area.
Alternatively, the first AES is irreversible AES.
Alternatively, pre-arranged code mode is irreversible coded system, and the second AES adds for irreversible
Close algorithm.
Above-mentioned all optional technical schemes, can form the alternative embodiment of the disclosure using any combination,
This is no longer repeated one by one.
Fig. 2 is a kind of flow chart of access point connection method provided in an embodiment of the present invention, for server,
Referring to Fig. 2, method flow provided in an embodiment of the present invention includes:
201st, the download request of receiving terminal, carried terminal positional information in the download request.
202nd, data to be sent are obtained, data include being located at connecing for same geographic area with terminal positional information
Access point information and corresponding password.
203rd, terminal is sent data to, by terminal according to data cube computation access point.
Method provided in an embodiment of the present invention, by the access-in point information and corresponding password that will screen
Send to terminal, be offline database by terminal storage so that when terminal is in arbitrary network connection status,
The password of the access point for needing connection can be got using offline database, has broken only terminal in network
The limitation of access point could be connected during connection status.
Alternatively, the method also includes:
Obtain and first access-in point information of the number of times more than the first predetermined threshold value is requested in same geographic area
And corresponding password, the first access-in point information for getting and corresponding password are entered according to geographic area
Row packet storage;And/or,
Obtain the second access less than the second predetermined threshold value positioned at data network signals intensity in same geographic area
Point information and corresponding password, according to geographic area to the second access-in point information for getting and corresponding
Password carries out packet storage.
Alternatively, data are to be encrypted the ciphertext for obtaining to access-in point information and corresponding password.
Alternatively, the method also includes:
When access-in point information includes SSID and BSSID of access point, according to the first AES, docking
Access point information is encrypted, and obtains access-in point information ciphertext;According to the 3rd AES, pair with access point letter
Cease corresponding password to be encrypted, obtain Crypted password corresponding with access-in point information ciphertext;Or,
When access-in point information includes the SSID and terminal positional information of access point, according to the second AES,
SSID is encrypted, SSID ciphertexts are obtained;According to pre-arranged code mode, terminal positional information is carried out
Coding, obtains position encoded;SSID ciphertexts are combined with position encoded, access-in point information ciphertext is obtained;
According to the 3rd AES, the corresponding password of access-in point information is encrypted, obtains close with access-in point information
The corresponding Crypted password of text.
Alternatively, when access-in point information includes SSID and BSSID of access point, calculated according to the first encryption
Method, is encrypted to access-in point information, and obtaining access-in point information ciphertext includes:
Calculate the cryptographic Hash of SSID and the cryptographic Hash of BSSID;
The cryptographic Hash of SSID is combined with the cryptographic Hash of BSSID, access-in point information ciphertext is obtained.
Above-mentioned all optional technical schemes, can form the alternative embodiment of the disclosure using any combination,
This is no longer repeated one by one.
Fig. 3 A are a kind of flow charts of access point connection method provided in an embodiment of the present invention, and interaction agent is for eventually
End and server, access-in point information include the SSID and BSSID of access point, and referring to Fig. 3 A, the present invention is real
The method flow for applying example offer includes:
301st, terminal to server sends download request, the download request carried terminal positional information.
In embodiments of the present invention, terminal has the function of connection access point.Terminal can send to server
Download request, the access-in point information of same geographic area is located to be obtained from server with terminal positional information
And corresponding password.Terminal can periodically send download request, or terminal is detecting triggering bar
Download request is sent during part, the embodiment of the present invention is not especially limited to this.Wherein, trigger condition can be
When terminal is in network connection state, or for terminal detects the trigger action that data are downloaded, or it is end
End detects access point attended operation, and the embodiment of the present invention is not especially limited to this.
302nd, server obtains data to be sent after the download request for receiving terminal, and this is to be sent
Data is activation to terminal, the data to be sent include being located at same geographic area with terminal positional information
Access-in point information and corresponding password, access-in point information include the SSID and BSSID of access point.
In the prior art, usually when terminal is in network connection state, if detected to any access
The attended operation of point, terminal can obtain request to the password of server hair access point, be connect according to this by server
The access-in point information of access point returns to the password of the access point, and terminal connects the access point according to the password for receiving.
But, based on some reason (data networks of such as, terminal data flow deficiency, or terminal position
Network dtr signal etc.), terminal cannot connection server, and then access point cannot be connected.
In embodiments of the present invention, server can store substantial amounts of access-in point information and corresponding password, example
Such as access-in point information of WiFi access points and corresponding WiFi passwords.In order that terminal is in arbitrary network
Under state, the password of access point particularly can be got under non-network connection status, and then be connected to access
, to reach the purpose of online, server can be according to the download request of terminal, and the data that will store (including connect for point
Access point information and corresponding password) send to terminal so that the data storage that terminal will can be received is
Offline database, and the password of access point just can be directly obtained by offline database.
Further, it is contemplated that the memory capacity of terminal is limited, in order to improve the utilization rate of terminal storage space,
Ensure that terminal connects the success rate of access point simultaneously, server can be according to default screening conditions, in connecing for storage
In access point information and corresponding password, filter out a part and be worth access point letter higher for a user
Breath, afterwards, obtains from the data for filtering out and is located at the to be sent of same geographic area with terminal positional information
Data, and by data is activation to be sent to terminal.
Wherein, because the scope of activities of user is usually fixed, server is sieved in the data to storing
When selecting, can be screened according to geographic area, to reduce the scope of follow-up further screening, be improved screening effect
Rate, specific screening process can be divided into following several situations:
The first situation:Obtain and number of times is requested in the same geographic area more than the of the first predetermined threshold value
One access-in point information and corresponding password, according to geographic area to the first access-in point information for getting and
Corresponding password carries out packet storage.
Wherein, the first predetermined threshold value can as needed be pre-set or be changed by server, the present invention
Embodiment is not especially limited to this.
It should be noted that for any access-in point information of server storage, server is receiving terminal
When password to the access point obtains request, can the corresponding record requested number of times of the access-in point information.To be asked
The reason for asking number of times more than the first predetermined threshold value as screening conditions is that the requested number of times is reflected and accordingly connect
The connected number of times of access point, correspondingly, the corresponding requested number of times of the access-in point information is higher, illustrates terminal
The probability for connecting corresponding access point is higher, that is to say, the access point is worth higher for user.Therefore,
Screened by the way that terminal is connected into probability access-in point information high, disclosure satisfy that the connection of end-on access point
Demand, while avoiding the waste of terminal storage space.
Wherein, requested number of times can also be the requested number of times in preset time period, and the preset time period can
Pre-set according to demand by server or changed, the preset time period can be 1 day, 1 week, 1 month
Deng the embodiment of the present invention is not especially limited to this.Due to access point be connected situation may with when
Between being continually changing, than if any access point at least 10 terminals connections daily within a period of time, and can
Subsequently no terminal can be caused to connect the access point because businessman closes, therefore by counting Preset Time
Connected number of times in section so that the data for screening can more meet the actual connection of access point, carry
The accuracy of screening high, it is ensured that terminal connects the success rate of access point.
Second situation:Obtain positioned at data network signals intensity in same geographic area less than the second default threshold
Second access-in point information and corresponding password of value, believe the second access point for getting according to geographic area
Breath and corresponding password carry out packet storage.
Wherein, the second predetermined threshold value can as needed be pre-set or be changed by server, the present invention
Embodiment is not especially limited to this.
It should be noted that for any access-in point information of server storage, server can also be to that should connect
The data network signals intensity of access point information record terminal.Specifically, the access that terminal can be near searching
During point, the access-in point information and the data network signals intensity of itself for searching are reported to server, by taking
The business device corresponding access-in point information of correspondence records the data signal strength.Wherein, the data network signals of record
When weaker, network cannot be connected when illustrating terminal near the access point, now, terminal needs connection, and this connects
The possibility of access point is bigger, that is to say, the valency for user of the weaker corresponding access point of data network signals
Value is higher.Therefore, screened by by the weaker access-in point information of data network signals, disclosure satisfy that end
The connection requirement to access point is held, while avoiding the waste of terminal storage space.
The third situation:Screened with reference to above-mentioned the first situation and second situation so that filter out
Data can either cover connected number of times access-in point information higher, and it is weaker to cover data network signals again
Access-in point information, expand the coverage of the selection result, can further improve terminal connection access
The success rate of point.
It should be noted that above-mentioned geographic area can be divided according to administrative region, such as, according to difference
City divide etc.;Or divided according to other region division modes, the embodiment of the present invention is to this
It is not especially limited.Specifically, for any access-in point information of server storage, server can be corresponded to
The positional information of the access point is stored, the positional information of the access point can be by server in user (such as businessman)
Obtained during registration access-in point information;Or the positional information of itself is reported when access point is connected by terminal, take
The positional information of terminal to report is stored as business device the positional information of the access point.Server can be according to access
Point positional information determine it where geographic area.
It should be noted that because the access-in point information and corresponding password of server storage can update,
For example, the record of new access-in point information and correspondence password is increased, or access-in point information is changed,
The SSID of such as access point is changed, or the password of access point occurs change etc., and server can be according to reality
The situation of change on border, is performed a plurality of times the process of screening, to ensure the accuracy of the data for filtering out.For every
The data that primary screening goes out, server can be its interpolation data according to the geographic area belonging to the data
Version so that terminal can be updated according to version to local data.For example, when geographic area is Beijing,
The version of the data that server meets above-mentioned screening conditions in the Beijing Area that filters out for the first time is
Bj-version1, meets the version of the data of above-mentioned screening conditions in the Beijing Area that server programmed screening goes out
It is bj-version2 etc. so that when the version of terminal local data is bj-version1, can be obtained from server
The data that version is bj-version2 are taken to be updated.
In embodiments of the present invention, in order to ensure the security of data, the number to be sent that server gets
According to can be to be encrypted the ciphertext for obtaining to access-in point information and corresponding password.Specifically, server exists
Get with terminal positional information after the access-in point information and corresponding password of same geographic area, according to
First AES, the SSID and BSSID included to access point packet is encrypted, and obtains access point letter
Breath ciphertext;According to the 3rd AES, pair password corresponding with access-in point information is encrypted, and obtains and connects
The corresponding Crypted password of access point information ciphertext.Further, since the memory space that the ciphertext after encryption takes is less than
The memory space that plaintext before encryption takes, therefore, can also further be reduced by encryption to be sent
The memory space that data take in terminal, and then improve the memory space utilization rate of terminal.
Wherein, the first AES and the 3rd AES can be the same or different.Due to connecting in terminal
When connecing access point, to the representation of access-in point information be in plain text or ciphertext is not required, and is connected in terminal
When connecing access point, the plaintext of clear and definite password is needed, therefore, the actual demand of access point is connected with reference to terminal, together
When further strengthen the security of data, it is preferable that the first AES is irreversible encryption algorithm, the
Three AESs are irreversible cryptographic algorithm.
When the first AES is irreversible encryption algorithm, first AES can be hash algorithm, phase
Ying Di, the process that the SSID and BSSID included to access point packet are encrypted can be:Calculate SSID
Cryptographic Hash and BSSID cryptographic Hash;The cryptographic Hash of SSID is combined with the cryptographic Hash of BSSID,
Obtain access-in point information ciphertext.Wherein, the cryptographic Hash of SSID is combined with the cryptographic Hash of BSSID,
Can be the simple concatenation of the cryptographic Hash with the cryptographic Hash of BSSID of SSID, for the sequencing of the two,
The embodiment of the present invention is not especially limited.Additionally, the first AES can also be in addition to hash algorithm
Other irreversible AESs, the embodiment of the present invention is not especially limited to this.
When the 3rd AES is reversible AES, the 3rd AES can be calculated for XXTea is encrypted
Method or other reversible AESs, the embodiment of the present invention are not especially limited to this.
303rd, the data storage is offline database after the data for receiving server transmission by terminal.
In embodiments of the present invention, because the access-in point information and corresponding password of server storage may
Real-time update, for the real-time of data in the offline database for ensureing terminal, terminal can also be to off-line data
Storehouse is updated, and specific update mode includes following several situations:
The first situation:Terminal obtains the data of latest edition from server, and the data of the latest edition are deposited
It is offline database to store up.
Specifically, when terminal detects the trigger action for updating offline database, data are sent to server
Request is updated, the data update carried terminal positional information in request, are believed according to the terminal location by server
Breath, obtains and returns the data of the latest edition that same geographic area is located at the terminal positional information.Terminal
After receiving the data of the latest edition, original offline database is deleted, the data of the latest edition are deposited
It is offline database to store up.
Second situation:What terminal did not included from the server local offline database of acquisition updates the data, will
This updates the data and is inserted into local offline database.
Specifically, when terminal detects the trigger action for updating offline database, data are sent to server
Request is updated, the data update request carried terminal positional information and terminal current version, by server root
According to the terminal positional information and terminal current version, acquisition is updated the data.It refers to latest edition that this is updated the data
Has discrepant access-in point information and corresponding close between this data and the data of the terminal current version
Code.Afterwards, updated the data according to this, offline database is updated, detailed process can be:
Whether the access-in point information that each included in for updating the data updates, judges deposited in offline database
In the access-in point information of the renewal;If it does not exist, then the access-in point information of the renewal and correspondence are updated
Password be added in offline database.If it is present first deleting connecing for the renewal from offline database
The corresponding record of access point information, the password addition for then again updating the access-in point information of the renewal and correspondence
To in offline database.
It should be noted that above-mentioned the first situation and second situation, terminal can also according to predetermined period,
Periodically offline database is updated, the predetermined period can be pre-set or be changed by server;
Or, when server has redaction to update, remind terminal to carry out renewal of offline database etc., the present invention
Embodiment is not especially limited to the opportunity that terminal carries out offline database renewal.
If it should be noted that in preset duration, being not detected by updating the trigger action of offline database,
Then terminal can also be updated to offline database automatically.Specifically, when terminal detect already exceed it is default
When duration is not updated to offline database, local offline database is deleted.Afterwards, from trend server
Download request is sent, the data of latest edition are reacquired from server, and by the data storage of latest edition
It is offline database.Preset duration can be preset by server, when offline database exceedes to be preset
When length does not update, illustrate that the data of the offline database are expired, it is impossible to meet the company of end-on access point
Connect demand.Wherein, the opportunity that terminal obtains the data of latest edition from server can be to delete local offline
Obtained during database, or the attended operation of access point is detected after the local offline database of terminal deletion
When obtain etc., the embodiment of the present invention is not especially limited to this.
It should be noted that database of the offline database of terminal local for key-value types, uses
The database of key-value types can improve efficiency data query, while improving the utilization rate of terminal storage space.
In embodiments of the present invention, terminal has been after offline database has been locally stored, using offline database,
The password of access point is obtained, and then carries out the connection of access point, detailed process is referring to following step 304 to step
Rapid 306.
304th, when terminal detects the attended operation to target access, target access information, mesh are determined
Mark access-in point information is used to identify target access.
In embodiments of the present invention, terminal can be scanned for neighbouring access point, for connecing for searching
Access point, terminal can obtain the access-in point information of the access point, that is to say, terminal can get the access point
SSID and BSSID, and show the access-in point information.In the access point for searching, when terminal is detected
During to the attended operation of target access, terminal can determine that the target access information of target access, namely
It is the SSID and BSSID of target access.
305th, terminal obtains target close according to target access information from locally stored offline database
Code, the target password is the password matched with access-in point information.
In embodiments of the present invention, according to access-in point information in offline database and the not similar shape of correspondence password
Formula, the process for obtaining target password can be divided into the following two kinds situation:
The first situation:What is stored in offline database is the plaintext of access-in point information and correspondence password, eventually
Holding the process for obtaining target password can be:Terminal searches offline number according to the target access information for obtaining
Whether the target access information is included according in storehouse;If comprising, obtain with the target access information pair
The password answered, target password is defined as by the password of acquisition.If do not included, return and obtain failed message.
Second situation:The access-in point information and correspondence password stored in offline database are by server
The ciphertext for obtaining is encrypted, be that is to say, off-line data library storage is access-in point information ciphertext and correspondence
Crypted password, then terminal obtain target password process as shown in Figure 3 B, comprise the following steps:
Step 1:Terminal-pair target access information is encrypted, and obtains target access information ciphertext.
Step 2:Whether target access information ciphertext is included in terminal judges offline database.
Step 3:If comprising terminal then obtains corresponding with target access information ciphertext from offline database
Crypted password.
Step 4:The Crypted password that terminal will get is decrypted, and obtains target password.
Step 5:If do not included, return and obtain failed message.
Wherein, terminal need to use with server identical AES, target access information is encrypted,
To obtain target access information ciphertext, detailed process can be:According to the first AES, SSID is calculated
Cryptographic Hash and BSSID cryptographic Hash;The cryptographic Hash of SSID is combined with the cryptographic Hash of BSSID,
Obtain access point ciphertext.The process that be combined for the cryptographic Hash of the cryptographic Hash of SSID and BSSID by terminal,
The process for being combined the cryptographic Hash of the cryptographic Hash of SSID and BSSID with server similarly, herein no longer
Repeat.Wherein, terminal need to be solved using decipherment algorithm corresponding with server for encrypting algorithm to Crypted password
It is close, to obtain target password.
In another embodiment, terminal can also independently update offline database.If terminal does not get target
Password, that is to say, the password not being stored with offline database with the target access information matches, then eventually
End can obtain corresponding password from server, so according to the target access information and get it is close
Code is updated to offline database.Specifically, if terminal is in non-network when not getting target password
Connection status, then terminal the target access information can be recorded, treat terminal be in network connection state
When, the target access information is sent to server, target access information correspondence is returned to by server
Password;Terminal is updated according to the target access information and the password for getting to off-line data.
If terminal can be obtained directly in network connection state, terminal when not getting target password from server
Corresponding password, and then offline database is updated.Offline database is independently updated by terminal, is carried
The high flexibility for updating offline database.
Below by offline database store be access-in point information and correspondence password ciphertext as a example by, to end
The autonomous process for updating offline database in end is explained, and as shown in Figure 3 C, is comprised the following steps:
Step 1:The SSID and BSSID that terminal includes target access information are encrypted, and obtain mesh
Mark access-in point information ciphertext.
Step 2:Judge whether include the target access information ciphertext in offline database.
Step 3:If it is not, then using with the AES of server identical the 3rd, to the target access believe
Cease corresponding password to be encrypted, obtain Crypted password.
Step 4:The target access ciphertext and corresponding Crypted password are stored to offline database.
Step 5:If it is, deleting original record corresponding with the target access information ciphertext.Afterwards,
Perform above-mentioned steps 3 to step 4.
306th, terminal is according to target password, linking objective access point.
In embodiments of the present invention, terminal can preserve the target access after target access is successfully connected
Connection status, such as preserve the target access information and corresponding password of the target access so that
After terminal searches the access point next time, the access point can be directly connected to.
Method provided in an embodiment of the present invention, by the way that access-in point information and corresponding close will be obtained from server
Code is stored as offline database so that when terminal is in arbitrary network connection status, can utilize off-line data
Storehouse gets the password of the access point for needing connection, and then connects the access point, has broken only terminal in net
The limitation of access point could be connected during network connection status.Further, by access-in point information and correspondence
Password be encrypted, improve the security of data, simultaneously because encryption reduce memory space, improve
The utilization rate of terminal storage space.
Embodiment shown in above-mentioned Fig. 3 A is the situation of SSID with access-in point information as access point and BSSID
Explain, in embodiments of the present invention, access-in point information can also be SSID and the end of access point
End position information.The SSID to access-in point information for access point and end with reference to the embodiment shown in Fig. 4 A
The situation of end position information is explained.
Fig. 4 A are a kind of flow charts of access point connection method provided in an embodiment of the present invention, and interaction agent is for eventually
End and server, access-in point information include the SSID and terminal positional information of access point, referring to Fig. 4 A, this
The method flow that inventive embodiments are provided includes:
401st, terminal to server sends download request, the download request carried terminal positional information.
The step 401 similarly, will not be repeated here with step 301.
402nd, server obtains data to be sent after the download request for receiving terminal, and this is to be sent
Data is activation to terminal, the data to be sent include being located at same geographic area with terminal positional information
Access-in point information and corresponding password, access-in point information include the SSID and terminal positional information of access point.
The process that server is screened to the access-in point information for storing and corresponding password in the step 402
And the process of acquisition data to be sent is with step 302 similarly, will not be repeated here.
In embodiments of the present invention, the data to be sent that server gets can be to access-in point information and
Corresponding password is encrypted the ciphertext for obtaining.Specifically, server exists with terminal positional information getting
After the access-in point information of same geographic area and corresponding password, according to the second AES, SSID is entered
Row encryption, obtains SSID ciphertexts;According to pre-arranged code mode, terminal positional information is encoded, obtained
It is position encoded;SSID ciphertexts are combined with position encoded, access-in point information ciphertext is obtained;According to the 3rd
AES, is encrypted to the corresponding password of access-in point information, obtains corresponding with access-in point information ciphertext
Crypted password.Wherein, SSID ciphertexts are combined with position encoded, can be SSID cryptographic Hash with
The simple concatenation of position encoded value, for the sequencing of the two, the embodiment of the present invention is not especially limited.
Due to memory space of the memory space less than the plaintext occupancy before encryption that the ciphertext after encryption takes, therefore,
The memory space that data to be sent take in terminal can also further be reduced by encryption, and then improved
The memory space utilization rate of terminal.
Wherein, the second AES and the 3rd AES can be the same or different.Due to connecting in terminal
When connecing access point, to the representation of access-in point information be in plain text or ciphertext is not required, and is connected in terminal
When connecing access point, the plaintext of clear and definite password is needed, therefore, the actual demand of access point is connected with reference to terminal, together
When further strengthen the security of data, it is preferable that the second AES is irreversible encryption algorithm, in advance
If coded system is irreversible coded system, the 3rd AES is irreversible cryptographic algorithm.
Wherein, when the second AES is irreversible encryption algorithm, pre-arranged code mode is irreversible coding
During mode, second AES can be hash algorithm, and the pre-arranged code mode can be Geohash geography position
Put regional code.Correspondingly, SSID ciphertexts are the cryptographic Hash of SSID.Additionally, the second AES is also
Can be other the irreversible AESs in addition to hash algorithm, pre-arranged code mode can be Geohash
Other geographic location area coded systems in addition, the embodiment of the present invention is not especially limited to this.When the 3rd
When AES is reversible AES, the 3rd AES can be for XXT AESs or other are reversible
AES, the embodiment of the present invention is not especially limited to this.
403rd, the data storage is offline database after the data for receiving server transmission by terminal.
The step 403 similarly, will not be repeated here with step 303.
In embodiments of the present invention, terminal has been after offline database has been locally stored, using offline database,
The password of access point is obtained, and then carries out the connection of access point, detailed process is referring to following step 404 to step
Rapid 406.
404th, when terminal detects the attended operation to target access, target access information, mesh are determined
Mark access-in point information is used to identify target access.
In embodiments of the present invention, terminal can be scanned for neighbouring access point, for connecing for searching
Access point, terminal can obtain the SSID and the terminal positional information of itself of the access point, and by access point
SSID and terminal positional information are defined as the access-in point information of access point, and show the SSID of the access point.
In the access point for searching, when terminal detects the attended operation to target access, terminal can determine that
The target access information of target access, that is to say the SSID and terminal positional information of target access.
405th, terminal obtains target close according to target access information from locally stored offline database
Code, the target password is the password matched with access-in point information.
In embodiments of the present invention, according to access-in point information in offline database and the not similar shape of correspondence password
Formula, the process for obtaining target password can be divided into the following two kinds situation:
The first situation:What is stored in offline database is the plaintext of access-in point information and correspondence password, eventually
Holding the process for obtaining target password can be:According to terminal positional information, multiple area informations are obtained, each
Area information is located in the preset range of terminal positional information;According to multiple area informations and target access
SSID, it is determined that multiple information to be checked, each information to be checked is used to indicating the SSID of target access and many
An area information in individual area information.That is to say, the SSID of target access enters with each area information
Row combination, obtains multiple information to be checked.Afterwards, judge whether looked into including target in multiple information to be checked
Inquiry information, target query information is the information to be checked being stored in offline database;If including, from from
Password corresponding with target query information is obtained in line database, the password that will be got is defined as target password,
And stop searching.If do not included, return and obtain failed message.
Wherein, when whether target query information is included in judging multiple information to be checked, can be according to default suitable
Whether sequence, judges include target query information in the plurality of information to be checked one by one.The preset order can be
On the basis of terminal positional information, region indicated by information to be checked is away from terminal positional information by closely to remote
Sequentially.
Second situation:The access-in point information and correspondence password stored in offline database are by server
The ciphertext for obtaining is encrypted, be that is to say, off-line data library storage is access-in point information ciphertext and correspondence
Crypted password, then terminal obtain target password process as shown in Figure 4 B, comprise the following steps:
Step 1:According to terminal positional information, multiple area informations are obtained, each area information is located at terminal position
In the preset range of confidence breath.
Step 2:According to pre-arranged code mode, multiple area informations are encoded, according to the second AES
SSID to target access is encrypted, and obtains multiple information to be checked, and each information to be checked is used to refer to
Show an area information in SSID and multiple area informations.
Specifically, according to pre-arranged code mode, multiple area informations are encoded, obtains multiple region positions
Coding is put, the SSID of target access is encrypted according to the second AES, obtain SSID ciphertexts.
SSID ciphertexts are combined with each regional location coding, multiple information to be checked are obtained.For example, SSID
Ciphertext is 1101, and three regional locations codings are respectively 1010,1001,1011, then can obtain three it is to be checked
Inquiry information is 11011010,11011001,11011011.
Step 3:Judge whether include target query information in multiple information to be checked, target query information is to deposit
It is stored in the information to be checked in offline database.
Specifically, according to preset order, judge whether include target query in the plurality of information to be checked one by one
Information.The preset order can be on the basis of terminal positional information, region indicated by information to be checked away from
Terminal positional information is by closely to remote order.
It should be noted that because the physical location of target access may be with terminal positional information positioned at same
Region, it is also possible to which the physical location of target access is in the vicinity of terminal location but positioned at different regions.Cause
This is, it is necessary to the access-in point information indicated by all regions near terminal positional information in offline database
Scan for, can just guarantee to be accurately obtained the target password of target access.That is to say, terminal
The access-in point information according to target access is needed, it is determined that multiple information to be checked, and in offline database
Each information to be checked is searched, to guarantee to get target password.
Step 4:If including, Crypted password corresponding with target query information is obtained from offline database,
And stop searching.
Step 5:The Crypted password that will be got is decrypted, and obtains target password.
Wherein, terminal need to be decrypted using decipherment algorithm corresponding with server for encrypting algorithm to Crypted password,
To obtain target password.
Step 6:If do not included, return and obtain failed message.
It should be noted that the preset range in above-mentioned the first situation and second situation, can be by server
Pre-set or changed, such as the preset range can be scope that radius is 50 meters etc., the present invention is implemented
Example is not especially limited to this.
It should be noted that in above-mentioned second situation, the size of each area information, can by terminal according to
Self-ability or the requirement according to server to searching accuracy are pre-set or are changed, and the present invention is implemented
Example is not especially limited to this.Assuming that according to pre-arranged code mode to the coding result of multiple area informations as schemed
Shown in 4C, in figure 4 c, the area information inner region indicated by each rectangular area is position encoded identical.
Wherein, region of the region that coordinate (0,0) is indicated where terminal positional information, then judge that this is more one by one
Whether include that the preset order of target query information can be as shown in the arrow in Fig. 4 C in individual information to be checked.Figure
Be illustrate only in 4C with start sequence as from left to right, and by situation about being searched clockwise from the close-by examples to those far off.
Additionally, start sequence can also be from right to left, from top to bottom, from bottom to up etc., correspondingly can also be according to inverse
Hour hands from the close-by examples to those far off are searched, and the embodiment of the present invention is not especially limited to this.
It should be noted that the coding range least radius to region is 50 meters in the prior art, that is to say,
Radius is the coding all same in 50 meters of regions, and the embodiment of the present invention can be encoded to the region of more small range,
Make it possible to more fine-grained acquisition information to be checked, and each information to be checked is entered in offline database
Row is searched, and improves the degree of accuracy for obtaining target password.If for example, entered with the coded system of prior art
Row coding, then centered on terminal location, 50 meters is in the region of radius, to be only capable of getting a position
Coding, is correspondingly only capable of obtaining an information to be checked.If not existing the Query Information in offline database,
Target password cannot then be got.And the coded system provided with the present invention, in can will being with terminal location
The heart, 50 meters of region divisions for radius into 25 zonules, obtain 25 it is position encoded, and then obtain 25
Individual information to be checked, now, as long as there is one of those information to be checked in offline database, just can obtain
Get target password.
In another embodiment, if terminal does not get target password, that is to say, in offline database not
The password being stored with the target access information matches, then update the flexibility of offline database to improve,
Terminal can also independently update offline database, and detailed process can be:The terminal-pair target access information is entered
Row record, when terminal is in network connection state, obtains corresponding with the target access information from server
Password;Terminal is updated according to the target access information and corresponding password to offline database.
Renewal process in specific renewal process and step 305 similarly will not be repeated here.
406th, terminal is according to target password, linking objective access point.
The step 406 similarly, will not be repeated here with step 306.
Method provided in an embodiment of the present invention, by the way that access-in point information and corresponding close will be obtained from server
Code is stored as offline database so that when terminal is in arbitrary network connection status, can utilize off-line data
Storehouse gets the password of the access point for needing connection, and then connects the access point, has broken only terminal in net
The limitation of access point could be connected during network connection status.Further, by access-in point information and correspondence
Password be encrypted, improve the security of data, simultaneously because encryption reduce memory space, improve
The utilization rate of terminal storage space.And because geographical position can also be used as determining the letter of access point
Breath, therefore, when database is built, can be by SSID and geographical position, as access point password
Index, so that there is provided the method for another access point connection.
Further, the database in SSID and geographical position should be based on, be also used as above-mentioned based on SSID
With the supplementary data storehouse of the database of BSSID, that is to say, when terminal cannot know the BSSID of access point
In the case of, the access point near terminal location can be searched by SSID and geographical position, and then
The password of access point is obtained to realize the connection of access point, further avoid cannot obtain access point password
Situation, improves the diversity of access point connected mode.
Fig. 5 is a kind of block diagram of the access point attachment means according to an exemplary embodiment.Reference picture 5,
The device includes determining module 501, acquisition module 502 and link block 503.
Wherein it is determined that module 501 is connected with acquisition module 502, detected to target access for working as
During attended operation, target access information is determined, target access information is used to identify target access;Obtain
Modulus block 502 is connected with link block 503, for according to target access information, from locally stored
Target password is obtained in offline database, offline database is used to store access-in point information and corresponding password,
Target password is the password matched with access-in point information;Link block 503, for according to target password, connection
Target access.
Alternatively, target access information includes the SSID and BSSID of target access.
Alternatively, the access-in point information and corresponding password for being stored in offline database are to be entered by server
The ciphertext that row encryption is obtained,
Correspondingly, acquisition module is used to be encrypted target access information, obtains target access information
Ciphertext;Judge whether include target access information ciphertext in offline database;If comprising from offline
Crypted password corresponding with target access information ciphertext is obtained in database, the Crypted password that will be got enters
Row decryption, obtains target password.
Alternatively, acquisition module is used for according to the first AES, calculates the cryptographic Hash and BSSID of SSID
Cryptographic Hash;The cryptographic Hash of SSID is combined with the cryptographic Hash of BSSID, access point ciphertext is obtained.
Alternatively, target access information includes the SSID and terminal positional information of target access.
Alternatively, acquisition module is used for according to terminal positional information, obtains multiple area informations, each region
Information is located in the preset range of terminal positional information;According to multiple area informations and SSID, it is determined that multiple is treated
Query Information, each information to be checked is used to indicate an area information in SSID and multiple area informations;
Judge whether include target query information in multiple information to be checked, target query information is to be stored in offline number
According to the information to be checked in storehouse;If including obtaining corresponding with target query information from offline database
Password, the password that will be got is defined as target password.
Alternatively, the access-in point information and corresponding password for being stored in offline database are to be entered by server
The ciphertext that row encryption is obtained,
Acquisition module is used for according to pre-arranged code mode, and multiple area informations are encoded, and adds according to second
Close algorithm is encrypted to SSID, obtains multiple information to be checked;Obtained from offline database and looked into target
The corresponding password of inquiry information, the password that will be got is defined as target password to be included:Obtained from offline database
Crypted password corresponding with target query information is taken, the Crypted password that will be got is decrypted, and obtains target
Password.
Alternatively, the device also includes:
Sending module, for sending download request, download request carried terminal positional information to server;
Receiver module, for the data that the reception server is returned, stores data as offline database, data
It is the access-in point information and corresponding password that same geographic area is located at terminal positional information.
Alternatively, the first AES is irreversible AES.
Alternatively, pre-arranged code mode is irreversible coded system, and the second AES adds for irreversible
Close algorithm.
The device that the embodiment of the present disclosure is provided, by the way that access-in point information and corresponding close will be obtained from server
Code is stored as offline database so that when terminal is in arbitrary network connection status, can utilize off-line data
Storehouse gets the password of the access point for needing connection, and then connects the access point, has broken only terminal in net
The limitation of access point could be connected during network connection status.
Fig. 6 is a kind of block diagram of the access point attachment means according to an exemplary embodiment.Reference picture 6,
The device includes receiver module 601, the first acquisition module 602 and sending module 603.
Wherein, receiver module 601 is connected with the first acquisition module 602, for the download request of receiving terminal,
Carried terminal positional information in download request;First acquisition module 602 is connected with sending module 603, is used for
Data to be sent are obtained, data include being located at terminal positional information the access-in point information of same geographic area
And corresponding password;Sending module 603, for sending data to terminal, by terminal according to data cube computation
Access point.
Alternatively, the device also includes:
Second acquisition module, number of times is requested more than the first default threshold for obtaining to be located in same geographic area
First access-in point information and corresponding password of value, believe the first access point for getting according to geographic area
Breath and corresponding password carry out packet storage;And/or, obtain and be located at data network letter in same geographic area
Number intensity less than the second predetermined threshold value the second access-in point information and corresponding password, according to geographic area pair
The second access-in point information and corresponding password for getting carry out packet storage.
Alternatively, data are to be encrypted the ciphertext for obtaining to access-in point information and corresponding password.
Alternatively, the device also includes:
Encrypting module, during for including SSID and BSSID of access point when access-in point information, according to first
AES, is encrypted to access-in point information, obtains access-in point information ciphertext;According to the 3rd AES,
Pair password corresponding with access-in point information is encrypted, and obtains Crypted password corresponding with access-in point information ciphertext;
Or, when access-in point information includes the SSID and terminal positional information of access point, according to the second AES,
SSID is encrypted, SSID ciphertexts are obtained;According to pre-arranged code mode, terminal positional information is carried out
Coding, obtains position encoded;SSID ciphertexts are combined with position encoded, access-in point information ciphertext is obtained;
According to the 3rd AES, the corresponding password of access-in point information is encrypted, obtains close with access-in point information
The corresponding Crypted password of text.
Alternatively, encrypting module is used to calculate the cryptographic Hash of SSID and the cryptographic Hash of BSSID;By SSID
Cryptographic Hash be combined with the cryptographic Hash of BSSID, obtain access-in point information ciphertext.
The device that the embodiment of the present disclosure is provided, by the access-in point information and corresponding password that will screen
Send to terminal, be offline database by terminal storage so that when terminal is in arbitrary network connection status,
The password of the access point for needing connection can be got using offline database, and then connect the access point, beaten
Having broken only terminal could connect the limitation of access point in network connection state.
It should be noted that:Above-described embodiment provide access point attachment means connect access point when, only with
The division of above-mentioned each functional module is carried out for example, in practical application, can be as needed and by above-mentioned work(
Can distribution completed by different functional module, will the internal structure of equipment be divided into different functional modules,
To complete all or part of function described above.In addition, the access point connection dress that above-described embodiment is provided
Put and belong to same design with access point connection method embodiment, it implements process and refers to embodiment of the method,
Here repeat no more.
Fig. 7 is a kind of structural representation of terminal that the present embodiment is provided, and it is above-mentioned that the terminal can be used for execution
The access point methods that terminal is performed in each embodiment.Referring to Fig. 7, the terminal 700 includes:
Terminal 700 can include RF (Radio Frequency, radio frequency) circuit 110, include one or
The memory 120 of more than one computer-readable recording medium, input block 130, display unit 140, biography
Sensor 150, voicefrequency circuit 160, WiFi (Wireless Fidelity, Wireless Fidelity) module 170, include
There is the part such as or the processor 180 and power supply 190 of more than one processing core.Art technology
Personnel are appreciated that the restriction of the terminal structure shown in Fig. 7 not structure paired terminal, can include than figure
Show more or less part, or combine some parts, or different part arrangements.Wherein:
RF circuits 110 can be used to receiving and sending messages or communication process in, the reception and transmission of signal, especially,
After the downlink information of base station is received, transfer to one or more than one processor 180 is processed;In addition, will
It is related to up data is activation to base station.Generally, RF circuits 110 include but is not limited to antenna, at least one
Amplifier, tuner, one or more oscillators, subscriber identity module (SIM) card, transceiver, coupling
Clutch, LNA (Low Noise Amplifier, low-noise amplifier), duplexer etc..Additionally, RF circuits
110 can also be communicated by radio communication with network and other equipment.The radio communication can be using any logical
Beacon standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely
Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service),
CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code
Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution),
Email, SMS (Short Messaging Service, Short Message Service) etc..
Memory 120 can be used to store software program and module, and processor 180 is being deposited by running storage
The software program and module of reservoir 120, so as to perform various function application and data processing.Memory
120 can mainly include storing program area and storage data field, wherein, storing program area can storage program area,
Application program (such as sound-playing function, image player function etc.) needed at least one function etc.;Deposit
Storage data field can store and use created data (such as voice data, phone directory etc.) according to terminal 700
Deng.Additionally, memory 120 can include high-speed random access memory, non-volatile depositing can also be included
Reservoir, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input block
130 pairs of access of memory 120.
Input block 130 can be used for receive input numeral or character information, and produce with user set with
And the relevant keyboard of function control, mouse, action bars, optics or trace ball signal input.Specifically,
Input block 130 may include Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as
Be touch display screen or Trackpad, user can be collected thereon or neighbouring touch operation (such as user makes
It is attached on Touch sensitive surface 131 or in Touch sensitive surface 131 with any suitable object such as finger, stylus or annex
Near operation), and corresponding attachment means are driven according to formula set in advance.Optionally, Touch sensitive surface 131
May include two parts of touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detect user's
Touch orientation, and the signal that touch operation brings is detected, transmit a signal to touch controller;Touch control
Device receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 180,
And the order sent of receiving processor 180 and can be performed.Furthermore, it is possible to using resistance-type, condenser type,
The polytype such as infrared ray and surface acoustic wave realizes Touch sensitive surface 131.Except Touch sensitive surface 131, input is single
Unit 130 can also include other input equipments 132.Specifically, other input equipments 132 can include but not
It is limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, behaviour
Make one or more in bar etc..
Display unit 140 can be used for display by the information of user input or be supplied to the information and terminal of user
700 various graphical user interface, these graphical user interface can by figure, text, icon, video and
It is combined to constitute.Display unit 140 may include display panel 141, optionally, can use
LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode,
Organic Light Emitting Diode) etc. form configure display panel 141.Further, Touch sensitive surface 131 can be covered
Display panel 141, when Touch sensitive surface 131 is detected thereon or after neighbouring touch operation, sends treatment to
Device 180 to determine the type of touch event, with preprocessor 180 according to the type of touch event in display surface
Corresponding visual output is provided on plate 141.Although in the figure 7, Touch sensitive surface 131 and display panel 141
It is that input and input function are realized as two independent parts, but in some embodiments it is possible to will
Touch sensitive surface 131 is integrated with display panel 141 and realization is input into and output function.
Terminal 700 may also include at least one sensor 150, such as optical sensor, motion sensor and its
His sensor.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, environment
Optical sensor can adjust the brightness of display panel 141 according to the light and shade of ambient light, and proximity transducer can be
Terminal 700 is moved to when in one's ear, closes display panel 141 and/or backlight.As one kind of motion sensor,
The size of (generally three axles) acceleration in the detectable all directions of Gravity accelerometer, can when static
Size and the direction of gravity are detected, can be used to recognize application (such as horizontal/vertical screen switching, the phase of mobile phone attitude
Close game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for
Gyroscope, barometer, hygrometer, thermometer, infrared ray sensor that terminal 700 can also configure etc. other
Sensor, will not be repeated here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio between user and terminal 700
Interface.Electric signal after the voice data conversion that voicefrequency circuit 160 will can be received, is transferred to loudspeaker 161,
Voice signal is converted to by loudspeaker 161 to export;On the other hand, the voice signal that microphone 162 will be collected
Electric signal is converted to, voice data is converted to after being received by voicefrequency circuit 160, then by voice data output
After reason device 180 is processed, through RF circuits 110 being sent to such as another terminal, or voice data is exported
To memory 120 so as to further treatment.Voicefrequency circuit 160 is also possible that earphone jack, outer to provide
If the communication of earphone and terminal 700.
WiFi belongs to short range wireless transmission technology, and terminal 700 can help user by WiFi module 170
Send and receive e-mail, browse webpage and access streaming video etc., it has provided the user wireless broadband interconnection
Net is accessed.Although Fig. 7 shows WiFi module 170, but it is understood that, it is simultaneously not belonging to terminal
700 must be configured into, can omit in the essential scope for do not change invention as needed completely.
Processor 180 is the control centre of terminal 700, using various interfaces and connection whole mobile phone
Various pieces, by running or performing software program and/or module of the storage in memory 120, and adjust
With data of the storage in memory 120, the various functions and processing data of terminal 700 are performed, so that right
Mobile phone carries out integral monitoring.Optionally, processor 180 may include one or more processing cores;Preferably,
Processor 180 can integrated application processor and modem processor, wherein, application processor is mainly processed
Operating system, user interface and application program etc., modem processor mainly processes radio communication.Can be with
Understand, above-mentioned modem processor can not also be integrated into processor 180.
Terminal 700 also includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can
With logically contiguous with processor 180 by power-supply management system, so as to realize managing by power-supply management system
The functions such as charging, electric discharge and power managed.Power supply 190 can also include one or more straight
Stream or AC power, recharging system, power failure detection circuit, power supply changeover device or inverter, electricity
The random components such as source positioning indicator.
Although not shown, terminal 700 can also will not be repeated here including camera, bluetooth module etc..
It is specific that the display unit of terminal is touch-screen display, and terminal also includes memory in the present embodiment,
And one or more than one program, one of them or more than one program storage in memory,
And be configured to by one or more than one computing device.One or more than one program bag contains
Executable instruction, terminal 700 is configured as execute instruction, to perform above-mentioned access point connection method embodiment
Method performed by middle terminal.
Fig. 8 is a kind of block diagram of the access point attachment means according to an exemplary embodiment.For example, dress
Put 800 and may be provided in a server.Reference picture 8, device 800 includes processing assembly 822, and it enters one
Step includes one or more processors, and the memory resource as representated by memory 832, for storing
Can be by the instruction of the execution of processing component 822, such as application program.The application journey stored in memory 832
Sequence can include it is one or more each correspond to the module of one group of instruction.Additionally, processing assembly
822 are configured as execute instruction, to perform the side in above-mentioned access point connection method embodiment performed by server
Method.
Device 800 can also include that a power supply module 826 is configured as the power management of performs device 800,
One wired or wireless network interface 850 is configured as device 800 being connected to network, and an input is defeated
Go out (I/O) interface 858.Device 800 can operate the operating system in memory 832, example based on storage
Such as Windows ServerTM, Mac OS XTM, UnixTM,LinuxTM, FreeBSDTMOr it is similar.
One of ordinary skill in the art will appreciate that realize all or part of step of above-described embodiment can pass through
Hardware is completed, it is also possible to instruct the hardware of correlation to complete by program, described program can be stored in
In a kind of computer-readable recording medium, storage medium mentioned above can be read-only storage, disk or
CD etc..
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all of the invention
Within spirit and principle, any modification, equivalent substitution and improvements made etc. should be included in of the invention
Within protection domain.
Claims (30)
1. a kind of access point connection method, it is characterised in that methods described includes:
When the attended operation to target access is detected, target access information is determined, the target connects
Access point information is used to identify the target access;
According to the target access information, target password is obtained from locally stored offline database,
The offline database is used to store access-in point information and corresponding password, the target password be with it is described
The password of access-in point information matching;
According to the target password, the target access is connected.
2. method according to claim 1, it is characterised in that the target access information includes institute
State the service set SSID and Basic Service Set Identification BSSID of target access.
3. method according to claim 2, it is characterised in that stored in the offline database
Access-in point information and corresponding password are that the ciphertext for obtaining is encrypted by server,
Correspondingly, according to the target access information, mesh is obtained from locally stored offline database
Mark password includes:
The target access information is encrypted, target access information ciphertext is obtained;
Whether judge in the offline database comprising the target access information ciphertext;
If comprising obtaining corresponding with the target access information ciphertext from the offline database
Crypted password, the Crypted password that will be got is decrypted, and obtains the target password.
4. method according to claim 3, it is characterised in that carried out to the target access information
Encryption, obtaining target access information ciphertext includes:
According to the first AES, the cryptographic Hash of the SSID and the cryptographic Hash of the BSSID are calculated;
The cryptographic Hash of the SSID is combined with the cryptographic Hash of the BSSID, the target is obtained and is connect
Access point ciphertext.
5. method according to claim 1, it is characterised in that the target access information includes institute
State the SSID and terminal positional information of target access.
6. method according to claim 5, it is characterised in that according to the target access information,
Target password is obtained from locally stored offline database to be included:
According to the terminal positional information, multiple area informations are obtained, each area information is located at the terminal
In the preset range of positional information;
According to the multiple area information and the SSID, it is determined that multiple information to be checked, each letter to be checked
Cease for indicating an area information in the SSID and the multiple area information;
Judge whether include target query information in the multiple information to be checked, the target query information is
It is stored in the information to be checked in the offline database;
If including, password corresponding with the target query information is obtained from the offline database, will
The password for getting is defined as the target password.
7. method according to claim 6, it is characterised in that stored in the offline database
Access-in point information and corresponding password are that the ciphertext for obtaining is encrypted by server,
According to the multiple area information and the SSID, it is determined that multiple information to be checked include:
According to pre-arranged code mode, the multiple area information is encoded, according to the second AES pair
The SSID is encrypted, and obtains the multiple information to be checked;
Password corresponding with the target query information is obtained from the offline database, it is close by what is got
Code is defined as the target password to be included:
Crypted password corresponding with the target query information is obtained from the offline database, will be got
Crypted password be decrypted, obtain the target password.
8. method according to claim 1, it is characterised in that methods described also includes:
Download request, the download request carried terminal positional information are sent to server;
The data that the server is returned are received, is the offline database, the number by the data storage
According to for the terminal positional information be located at same geographic area access-in point information and corresponding password.
9. method according to claim 4, it is characterised in that first AES is irreversible
AES.
10. method according to claim 7, it is characterised in that the pre-arranged code mode is for can not
Inverse coded system, second AES is irreversible AES.
11. a kind of access point connection methods, it is characterised in that methods described includes:
The download request of receiving terminal, carried terminal positional information in the download request;
Data to be sent are obtained, the data include being located at same geographic area with the terminal positional information
Access-in point information and corresponding password;
By the data is activation to the terminal, by the terminal according to the data cube computation access point.
12. methods according to claim 11, it is characterised in that methods described also includes:
Obtain and first access-in point information of the number of times more than the first predetermined threshold value is requested in same geographic area
And corresponding password, the first access-in point information for getting and corresponding password are entered according to geographic area
Row packet storage;And/or,
Obtain the second access less than the second predetermined threshold value positioned at data network signals intensity in same geographic area
Point information and corresponding password, according to geographic area to the second access-in point information for getting and corresponding
Password carries out packet storage.
13. methods according to claim 11, it is characterised in that the data are to described access point
Information and corresponding password are encrypted the ciphertext for obtaining.
14. methods according to claim 13, it is characterised in that methods described also includes:
When described access point information includes SSID and BSSID of access point, according to the first AES,
Described access point information is encrypted, access-in point information ciphertext is obtained;According to the 3rd AES, pair with
The corresponding password of described access point information is encrypted, and obtains encryption corresponding with described access point information ciphertext
Password;Or,
When described access point information includes the SSID and terminal positional information of access point, calculated according to the second encryption
Method, is encrypted to the SSID, obtains SSID ciphertexts;According to pre-arranged code mode, to the terminal
Positional information is encoded, and obtains position encoded;By the SSID ciphertexts with it is described it is position encoded be combined,
Obtain access-in point information ciphertext;According to the 3rd AES, the corresponding password of described access point information is carried out
Encryption, obtains Crypted password corresponding with described access point information ciphertext.
15. methods according to claim 14, it is characterised in that when described access point information includes connecing
During SSID and BSSID of access point, according to the first AES, described access point information is encrypted,
Obtaining access-in point information ciphertext includes:
Calculate the cryptographic Hash of the SSID and the cryptographic Hash of the BSSID;
The cryptographic Hash of the SSID is combined with the cryptographic Hash of the BSSID, described access point is obtained
Information ciphertext.
16. a kind of access point attachment means, it is characterised in that described device includes:
Determining module, for when the attended operation to target access is detected, determining that target access is believed
Breath, the target access information is used to identify the target access;
Acquisition module, for according to the target access information, from locally stored offline database
Target password is obtained, the offline database is used to store access-in point information and corresponding password, the mesh
Mark password is the password with described access point information matches;
Link block, for according to the target password, connecting the target access.
17. devices according to claim 16, it is characterised in that the target access information includes
The SSID and BSSID of the target access.
18. devices according to claim 17, it is characterised in that stored in the offline database
Access-in point information and corresponding password be that the ciphertext for obtaining is encrypted by server,
Correspondingly, acquisition module is used to be encrypted the target access information, obtains target access
Information ciphertext;Whether judge in the offline database comprising the target access information ciphertext;If bag
Contain, then Crypted password corresponding with the target access information ciphertext obtained from the offline database,
The Crypted password that will be got is decrypted, and obtains the target password.
19. devices according to claim 18, it is characterised in that the acquisition module is used for according to the
One AES, calculates the cryptographic Hash of the SSID and the cryptographic Hash of the BSSID;By the SSID
Cryptographic Hash be combined with the cryptographic Hash of the BSSID, obtain described access point ciphertext.
20. devices according to claim 16, it is characterised in that the target access information includes
The SSID and terminal positional information of the target access.
21. devices according to claim 20, it is characterised in that the acquisition module is used for according to institute
Terminal positional information is stated, multiple area informations are obtained, each area information is located at the terminal positional information
In preset range;According to the multiple area information and the SSID, it is determined that multiple information to be checked, each
Information to be checked is used to indicate an area information in the SSID and the multiple area information;Judge institute
Whether in multiple to be checked information include target query information, the target query information is described to be stored in if stating
Information to be checked in offline database;If including being obtained from the offline database and the target
The corresponding password of Query Information, the password that will be got is defined as the target password.
22. devices according to claim 21, it is characterised in that stored in the offline database
Access-in point information and corresponding password be that the ciphertext for obtaining is encrypted by server,
The acquisition module is used for according to pre-arranged code mode, the multiple area information is encoded, root
The SSID is encrypted according to the second AES, obtains the multiple information to be checked;From described offline
Password corresponding with the target query information is obtained in database, the password that will be got is defined as the mesh
Mark password includes:Crypted password corresponding with the target query information is obtained from the offline database,
The Crypted password that will be got is decrypted, and obtains the target password.
23. devices according to claim 16, it is characterised in that described device also includes:
Sending module, for sending download request, the download request carried terminal positional information to server;
Receiver module, is described offline by the data storage for receiving the data that the server is returned
Database, the data be with the terminal positional information be located at same geographic area access-in point information and
Corresponding password.
24. devices according to claim 19, it is characterised in that first AES is can not
Inverse AES.
25. devices according to claim 22, it is characterised in that the pre-arranged code mode is can not
Inverse coded system, second AES is irreversible AES.
26. a kind of access point attachment means, it is characterised in that described device includes:
Receiver module, for the download request of receiving terminal, carried terminal positional information in the download request;
First acquisition module, for obtaining data to be sent, the data include believing with the terminal location
Access-in point information and corresponding password of the breath positioned at same geographic area;
Sending module, for by the data is activation to the terminal, being connected according to the data by the terminal
Connect access point.
27. devices according to claim 26, it is characterised in that described device also includes:
Second acquisition module, number of times is requested more than the first default threshold for obtaining to be located in same geographic area
First access-in point information and corresponding password of value, believe the first access point for getting according to geographic area
Breath and corresponding password carry out packet storage;And/or, obtain and be located at data network letter in same geographic area
Number intensity less than the second predetermined threshold value the second access-in point information and corresponding password, according to geographic area pair
The second access-in point information and corresponding password for getting carry out packet storage.
28. devices according to claim 26, it is characterised in that the data are to described access point
Information and corresponding password are encrypted the ciphertext for obtaining.
29. devices according to claim 28, it is characterised in that described device also includes:
Encrypting module, during for including SSID and BSSID of access point when described access point information, according to
First AES, is encrypted to described access point information, obtains access-in point information ciphertext;According to the 3rd
AES, pair password corresponding with described access point information is encrypted, and obtains and described access point information
The corresponding Crypted password of ciphertext;Or, when described access point information includes SSID and the terminal location letter of access point
During breath, according to the second AES, the SSID is encrypted, obtains SSID ciphertexts;According to default
Coded system, encodes to the terminal positional information, obtains position encoded;By the SSID ciphertexts with
It is described it is position encoded be combined, obtain access-in point information ciphertext;According to the 3rd AES, connect to described
The corresponding password of access point information is encrypted, and obtains Crypted password corresponding with described access point information ciphertext.
30. devices according to claim 29, it is characterised in that the encrypting module is used to calculate institute
State the cryptographic Hash of SSID and the cryptographic Hash of the BSSID;By the cryptographic Hash of the SSID and the BSSID
Cryptographic Hash be combined, obtain described access point information ciphertext.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610464451.XA CN106714274B (en) | 2016-06-23 | 2016-06-23 | access point connection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610464451.XA CN106714274B (en) | 2016-06-23 | 2016-06-23 | access point connection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106714274A true CN106714274A (en) | 2017-05-24 |
CN106714274B CN106714274B (en) | 2018-09-25 |
Family
ID=58940619
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610464451.XA Active CN106714274B (en) | 2016-06-23 | 2016-06-23 | access point connection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106714274B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109033762A (en) * | 2018-07-05 | 2018-12-18 | 南京云信达科技有限公司 | A method of for solving complicated checked object soft ware authorization |
CN109347666A (en) * | 2018-10-11 | 2019-02-15 | 安徽独角仙信息科技有限公司 | A kind of automatic networking configuration method and system for wifi internet of things equipment |
WO2019072038A1 (en) * | 2017-10-09 | 2019-04-18 | 上海连尚网络科技有限公司 | Information generation method and device |
CN110366229A (en) * | 2019-08-01 | 2019-10-22 | 深圳市昊一源科技有限公司 | A kind of wireless network connecting method, device, equipment and system |
CN110602737A (en) * | 2018-06-12 | 2019-12-20 | 百度在线网络技术(北京)有限公司 | Regional removal identification method and device, computer equipment and storage medium |
CN111010397A (en) * | 2019-12-18 | 2020-04-14 | 吉林亿联银行股份有限公司 | Database password modification method and device |
CN114299636A (en) * | 2020-09-22 | 2022-04-08 | 云丁网络技术(北京)有限公司 | Method and apparatus for processing device offline password |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103458409A (en) * | 2013-08-19 | 2013-12-18 | 小米科技有限责任公司 | Network connection method and network sharing method and device |
CN103458408A (en) * | 2013-08-19 | 2013-12-18 | 小米科技有限责任公司 | Network connection method and network sharing method and device |
CN103874018A (en) * | 2014-02-21 | 2014-06-18 | 小米科技有限责任公司 | Access point information sharing method and device |
-
2016
- 2016-06-23 CN CN201610464451.XA patent/CN106714274B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103458409A (en) * | 2013-08-19 | 2013-12-18 | 小米科技有限责任公司 | Network connection method and network sharing method and device |
CN103458408A (en) * | 2013-08-19 | 2013-12-18 | 小米科技有限责任公司 | Network connection method and network sharing method and device |
CN103874018A (en) * | 2014-02-21 | 2014-06-18 | 小米科技有限责任公司 | Access point information sharing method and device |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019072038A1 (en) * | 2017-10-09 | 2019-04-18 | 上海连尚网络科技有限公司 | Information generation method and device |
CN110602737A (en) * | 2018-06-12 | 2019-12-20 | 百度在线网络技术(北京)有限公司 | Regional removal identification method and device, computer equipment and storage medium |
CN110602737B (en) * | 2018-06-12 | 2023-03-14 | 百度在线网络技术(北京)有限公司 | Regional removal identification method and device, computer equipment and storage medium |
CN109033762A (en) * | 2018-07-05 | 2018-12-18 | 南京云信达科技有限公司 | A method of for solving complicated checked object soft ware authorization |
CN109347666A (en) * | 2018-10-11 | 2019-02-15 | 安徽独角仙信息科技有限公司 | A kind of automatic networking configuration method and system for wifi internet of things equipment |
CN109347666B (en) * | 2018-10-11 | 2021-09-14 | 安徽独角仙信息科技有限公司 | Automatic network access configuration method and system for wifi Internet of things equipment |
CN110366229A (en) * | 2019-08-01 | 2019-10-22 | 深圳市昊一源科技有限公司 | A kind of wireless network connecting method, device, equipment and system |
CN111010397A (en) * | 2019-12-18 | 2020-04-14 | 吉林亿联银行股份有限公司 | Database password modification method and device |
CN114299636A (en) * | 2020-09-22 | 2022-04-08 | 云丁网络技术(北京)有限公司 | Method and apparatus for processing device offline password |
Also Published As
Publication number | Publication date |
---|---|
CN106714274B (en) | 2018-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103475996B (en) | Method for connecting network, network share method and device | |
CN106714274A (en) | Access point connection method and device | |
CN103874018B (en) | Access-in point information sharing method and device | |
CN103546294B (en) | Entrance guard authorization method, device and equipment | |
CN103294515B (en) | A kind of methods, devices and systems for obtaining application program | |
CN103716793B (en) | Access-in point information sharing method and device | |
CN103458409A (en) | Network connection method and network sharing method and device | |
CN106161176A (en) | Cluster conversation message treatment method and device | |
CN103458408A (en) | Network connection method and network sharing method and device | |
CN103501482A (en) | Network access method, network access device and terminal | |
CN104426963B (en) | The method and terminal of associated terminal | |
CN106612250A (en) | Resource utilization authority judgment system and method | |
CN104901991B (en) | Virtual resource transfer method, device and system | |
CN103731810A (en) | Access point sharing method and device | |
CN104618873A (en) | Method and device for sharing access point information | |
CN106357808A (en) | Data synchronization method and device | |
CN103763112B (en) | A kind of user identity protection method and apparatus | |
CN104967601A (en) | Data processing method and apparatus | |
CN105516258A (en) | Information interaction system, method and device | |
CN108769976A (en) | network attachment control method, device and mobile terminal | |
US9210554B2 (en) | Wireless communication apparatus, communication system and control method of wireless communication apparatus | |
CN106302603A (en) | The method and apparatus remotely deleting information | |
CN106550032A (en) | A kind of data back up method, apparatus and system | |
CN106027738B (en) | A kind of synchronous method of message registration, device and mobile terminal | |
CN103561155B (en) | Send the method for note, device and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |