CN106793016A - A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal - Google Patents
A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal Download PDFInfo
- Publication number
- CN106793016A CN106793016A CN201710090773.7A CN201710090773A CN106793016A CN 106793016 A CN106793016 A CN 106793016A CN 201710090773 A CN201710090773 A CN 201710090773A CN 106793016 A CN106793016 A CN 106793016A
- Authority
- CN
- China
- Prior art keywords
- connection
- access point
- bars
- mobile terminal
- record
- 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
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 claims description 22
- 238000000605 extraction Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 238000003860 storage Methods 0.000 description 7
- 230000004048 modification Effects 0.000 description 6
- 238000012986 modification Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007717 exclusion Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
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
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/20—Selecting an access point
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal are the embodiment of the invention provides, methods described includes:Obtain the current location of mobile terminal;According to the current location, N bar Wi Fi linkage records are determined from history Wi Fi connection data, M bar Wi Fi linkage records are included in the history Wi Fi connections data, every Wi Fi linkage records include a failed access point for connecting in the N bars Wi Fi linkage records, the M is positive integer, and the N is less than or equal to the positive integer of the M;Wi Fi lists are generated according to the N bars Wi Fi linkage records.Can realize that Automatic-searching hides AP by the embodiment of the present invention.
Description
Technical field
The present invention relates to communication technical field, and in particular to a kind of Wireless Fidelity Wi-Fi connection method and mobile terminal.
Background technology
With the fast development of information technology, mobile terminal (such as mobile phone, panel computer) is used using increasingly popularizing
Requirement of the family to mobile terminal also more and more higher, not only needs processing speed higher, and to Wireless Fidelity (Wireless
Fidelity, Wi-Fi) dependence it is also more and more stronger.
In the prior art, user can be carried out access point to improve the security of access point (Access Point, AP)
Hide.But, during Wi-Fi scannings are carried out, following problems may be encountered:Certain AP not connected with mobile terminal
As a example by, before the AP does not hide, then mobile terminal can scan the AP, and then moving when Wi-Fi scannings are carried out
The AP is shown on the screen of dynamic terminal, but, after the AP hides, then mobile terminal just cannot scan the AP.
The content of the invention
The embodiment of the invention provides a kind of Wireless Fidelity Wi-Fi connection method and mobile terminal, it is possible to achieve automatic seeking
Look for hiding AP.
Embodiment of the present invention first aspect provides a kind of Wireless Fidelity Wi-Fi connection method, including:
Obtain the current location of mobile terminal;
According to the current location, determine that N bars Wi-Fi connection is recorded from history Wi-Fi connection data, the history
Recorded comprising M bars Wi-Fi connection in Wi-Fi connection data, each Wi-Fi connection record bag in the N bars Wi-Fi connection record
Containing a failed access point for connecting, the M is positive integer, and the N is less than or equal to the positive integer of the M;
According to N bars Wi-Fi connection record generation Wi-Fi lists.
Embodiment of the present invention second aspect provides a kind of mobile terminal, including:
Acquiring unit, the current location for obtaining mobile terminal;
Determining unit, for according to the current location, N bar Wi-Fi connections being determined from history Wi-Fi connection data
Record, records in the history Wi-Fi connection data comprising M bars Wi-Fi connection, each in the N bars Wi-Fi connection record
Wi-Fi connection record includes a failed access point for connecting, and the M is positive integer, and the N is less than or equal to described
The positive integer of M;
Generation unit, for according to N bars Wi-Fi connection record generation Wi-Fi lists.
The embodiment of the present invention third aspect provides a kind of mobile terminal, including:
Processor and memory;Wherein, the processor is by calling code in the memory or instruction to perform
The some or all of step of the method described by first aspect.
Implement the embodiment of the present invention, have the advantages that:
As can be seen that by the embodiment of the present invention, obtain the current location of mobile terminal, according to the current location, from going through
Determine that N bars Wi-Fi connection is recorded in history Wi-Fi connection data, M bar Wi-Fi connections are included in the history Wi-Fi connection data
Record, each Wi-Fi connection record includes a failed access point for connecting in N bars Wi-Fi connection record, and M is for just
Integer, N is the positive integer less than or equal to M, according to N bars Wi-Fi connection record generation Wi-Fi lists.So that, can be from history
The failed access point for connecting is searched in Wi-Fi connection data, therefore, in the access point for connecting not successfully by non-concealed
When state is changed into hidden state, the Automatic-searching hiding access point is capable of achieving.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for ability
For the those of ordinary skill of domain, on the premise of not paying creative work, can also obtain other attached according to these accompanying drawings
Figure.
Fig. 1 is that a kind of first embodiment flow of Wireless Fidelity Wi-Fi connection method provided in an embodiment of the present invention is illustrated
Figure;
Fig. 2 is that a kind of second embodiment flow of Wireless Fidelity Wi-Fi connection method provided in an embodiment of the present invention is illustrated
Figure;
Fig. 3 a are a kind of first embodiment structural representations of mobile terminal provided in an embodiment of the present invention;
Fig. 3 b are the structural representations of the determining unit of the mobile terminal described by Fig. 3 a provided in an embodiment of the present invention;
Fig. 3 c are the structural representations of the generation unit of the mobile terminal described by Fig. 3 a provided in an embodiment of the present invention;
Fig. 3 d are the another structural representations of the mobile terminal described by Fig. 3 a provided in an embodiment of the present invention;
Fig. 4 is a kind of second embodiment structural representation of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " in description and claims of this specification and the accompanying drawing and "
Four " it is etc. for distinguishing different objects, rather than for describing particular order.Additionally, term " comprising " and " having " and it
Any deformation, it is intended that covering non-exclusive is included.For example contain the process of series of steps or unit, method, be
System, product or equipment are not limited to the step of having listed or unit, but alternatively also include the step of not listing or list
Unit, or alternatively also include for these processes, method, product or other intrinsic steps of equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can be wrapped in conjunction with the embodiments
Containing at least one embodiment of the present invention.It is identical that each position in the description shows that the phrase might not each mean
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
Mobile terminal described by the embodiment of the present invention can include smart mobile phone (such as Android phone, iOS mobile phones,
Windows Phone mobile phones etc.), panel computer, palm PC, notebook computer, mobile internet device (MID, Mobile
Internet Devices) or Wearable etc., above-mentioned is only citing, and non exhaustive, including but not limited to above-mentioned mobile whole
End.
Under normal circumstances, when without specified access point (AP) is added manually, the AP cannot be shown, so, it is mobile
After Wi-Fi scannings are carried out, unsaved hiding AP will not be displayed in Wi-Fi lists terminal, thus, user cannot choose
This kind of specified access point, and then, it is impossible to it is connected to the specified access point.Also, addition AP is also relatively complicated, it is necessary to service manually
Set identifier (Service Set Identifier, SSID) matches can just show completely, if, there is special character (such as in SSID:
Chi, Chu etc.) or (such as:* ,/,@etc.) in the case of symbol, input error is easier, cause user to need repeatedly to be input into this and specify
Access point.
Alternatively, the history Wi-Fi connection data in the embodiment of the present invention can be recorded comprising a plurality of Wi-Fi connection, each
An access-in point information for access point can be included in Wi-Fi connection record, certainly, history Wi-Fi connection data can also be included
The positional information of the access point is (such as:Longitude and latitude, positioning place name, positioning time etc.).The access-in point information of above-mentioned access point can be wrapped
Include but be not limited only to:SSID, BSSID, cipher mode, whether hide (hidden state or non-concealed state).The present invention is implemented
In example, the access point for connecting not successfully is meant that mobile terminal does not carry out Wi-Fi connection to the access point, or, to this
Access point carried out the access point of Wi-Fi connection but connection failure.The access point that was successfully connected is meant that mobile terminal
The access point of connection and successful connection was carried out to the access point., wherein it is desired to explanation, is in a certain access point and hides
, it is necessary to SSID or BSSID according to the access point carry out Wi-Fi scannings during state, be possible to search the access point.
In practical application, after mobile terminal is successfully connected an AP every time, the SSID of the AP, BSSID are can record, cipher mode is
No hiding grade attribute, and positional information during connection, are saved in the mobile terminal, in this way, can obtain history Wi-Fi connection
Data.Certainly, mobile terminal is in each Wi-Fi scanning processes, although be only possible to access an access point, but, can scan
Obtain multiple access points, it is also possible to which the access point that will do not accessed is stored in history Wi-Fi connection data, i.e. history Wi-Fi connects
Connecing can not only include the access point for connecting not successfully in data, can also include the access point being successfully connected.
Still optionally further, due to substantial amounts of access point may be included in certain position, thus, carry out Wi-Fi in the position
After scanning, a plurality of Wi-Fi connection record is can obtain, an access point can be included in each Wi-Fi connection record, no matter this connects
Access point or the failed access point for connecting that access point was successfully connected.When user repeatedly comes the position, then
A large amount of Wi-Fi connection records comprising identical access point are can obtain, in this way, history Wi-Fi connection data are then possible to take
More memory source, thus, duplicate removal treatment can be carried out in history Wi-Fi connection data, only retain a plurality of comprising identical access
In the Wi-Fi connection record of point at least one, and then, history Wi-Fi connection data are optimized.
Fig. 1 is referred to, is a kind of first embodiment stream of Wireless Fidelity Wi-Fi connection method provided in an embodiment of the present invention
Journey schematic diagram.Wireless Fidelity Wi-Fi connection method described in the present embodiment, comprises the following steps:
101st, the current location of mobile terminal is obtained.
Wherein, mobile terminal can determine to move by global positioning system (Global Positioning System, GPS)
The current location of dynamic terminal, or, mobile terminal can determine the current location of mobile terminal by Wi-Fi location technologies.It is above-mentioned
The current location of mobile terminal can be indicated with longitude and latitude, for example, current location is represented by 113 ° of 46' of east longitude, 22 ° of north latitude
27'.Certainly, if determining the current location of mobile terminal using Wi-Fi location technologies, then, current Wi-Fi is scanned
The position of a certain AP as the mobile terminal position, if be marked in indoor map can be used as being a point for the position of the AP
(point for expression mobile terminal locations).
102nd, according to the current location, determine that N bars Wi-Fi connection is recorded from history Wi-Fi connection data, it is described
Recorded comprising M bars Wi-Fi connection in history Wi-Fi connection data, each Wi-Fi connection note in the N bars Wi-Fi connection record
Record includes a failed access point for connecting, and the M is positive integer, and the N is less than or equal to the positive integer of the M.
Wherein, can be recorded comprising substantial amounts of Wi-Fi connection in history Wi-Fi connection data, certainly, each Wi-Fi connection
An access point is only included in record, because under normal circumstances, mobile terminal only has access an access point every time.History Wi-
Fi connections data can be preserved (such as RAM memory, or, ROM memory) in memory, thus, accessing an access
After point, then another access point is not can access, though in this way, accessed certain access point in certain position, also can in the position
In the presence of the access point for connecting not successfully, therefore, N bars can be determined from history Wi-Fi connection data according to current location
Wi-Fi connection is recorded, comprising a failed access point for connecting in each Wi-Fi connection record.
Alternatively, in above-mentioned steps 102, according to the current location, N bars are determined from history Wi-Fi connection data
Wi-Fi connection is recorded, it may include following steps:
B1), determine that Q bars Wi-Fi connection is recorded from the history Wi-Fi connection data, the Q bars Wi-Fi connection
Each Wi-Fi connection record includes a failed access point for connecting in record, and the Q is positive integer;
B2), the Q position is obtained from Q bars Wi-Fi connection record;
B3), determine the distance between the current location and described Q position, obtain the Q distance value;
B4), less than N number of distance value of predetermined threshold value in the selection Q distance value, and N number of distance value pair is obtained
The N bars Wi-Fi connection answered is recorded.
Wherein, above-mentioned history Wi-Fi connection data can be recorded comprising M bars Wi-Fi connection, in M bars Wi-Fi connection record
The Wi-Fi connection record of the access point being successfully connected can be included, it is also possible to the Wi-Fi comprising the access point for connecting not successfully
Linkage record.Thus, can determine that Q bars Wi-Fi connection is recorded from M bars Wi-Fi connection record, Q bars Wi-Fi connection record
In each Wi-Fi connection record include a failed access point for connecting.Due to that can be included in each Wi-Fi connection record
One position, in this way, can obtain Q position, and then, it may be determined that between each position in current location and Q position away from
From in this way, can obtain Q distance value.Above-mentioned predetermined threshold value can voluntarily be set or system default by user.Can be from Q distance
The N number of distance value less than predetermined threshold value is chosen in value.Certainly, N number of distance value correspondence N bars Wi-Fi connection record, can so obtain
Take N bars Wi-Fi connection record.
In above-mentioned steps B2, above-mentioned Q position and current location can be mapped in indoor map, then, point
The distance between each position and current location in the Q position are not calculated, in this way, can obtain Q distance value.
103rd, according to N bars Wi-Fi connection record generation Wi-Fi lists.
Alternatively, wherein, may there is the Wi-Fi connection comprising identical access point to remember in above-mentioned N bars Wi-Fi connection record
Record, for example, including SSID1 in Wi-Fi connection record A, SSID1 is included in Wi-Fi connection record B, then both are regarded as same
The Wi-Fi connection record of one access point.In practical application, mobile terminal can not be excluded and repeatedly access same access point, for example, with
When family is in, repeatedly connection router to home, then can obtain a plurality of identical Wi-Fi connection record.
Alternatively, in above-mentioned steps 103, according to N bars Wi-Fi connection record generation Wi-Fi lists, it may include as follows
Step:
31) the P access-in point information of access point, is extracted from N bars Wi-Fi records, the P is less than or equal to institute
State the integer of N;
32), the access-in point information generation Wi-Fi lists according to the P access point, and in the screen of the mobile terminal
Show the Wi-Fi lists.
Wherein, an access point is included in each Wi-Fi connection record in N bars Wi-Fi connection record, but, it is different
Wi-Fi connection record in may include same access point, then the N number of access point of N bars Wi-Fi connection correspondence, thus, it is necessary to from
P different access point is chosen in N bars Wi-Fi connection record, specifically, duplicate removal can be carried out to N number of access point, obtained P and connect
Access point, can generate Wi-Fi lists according to the P access point, and can be in the Wi-Fi lists of the screen shows of mobile terminal.Wherein,
An access point is included in each Wi-Fi connection record in N bars Wi-Fi connection record, but, different Wi-Fi connection notes
Same access point may be included in record, then the N number of access point of N bars Wi-Fi connection correspondence, thus, it is necessary to from N bar Wi-Fi connections
P different access point is chosen in record, specifically, duplicate removal can be carried out to N number of access point, obtain P access point, can be according to this
P access point generates Wi-Fi lists, and can be in the Wi-Fi lists of the screen shows of mobile terminal.It is above-mentioned that N number of access is clicked through
Row duplicate removal can be realized using two ways:1st, duplicate removal can be carried out according to SSID, each access point in the P access point for obtaining
SSID is different;2nd, duplicate removal can be carried out according to BSSID, the BSSID of each access point is different in the P access point for obtaining.
Alternatively, in above-mentioned steps 31, the P access-in point information of access point is extracted from N bars Wi-Fi records, can
Realize as follows:
It is the access-in point information of P access point of static password that password is chosen from N bars Wi-Fi records.
Wherein, in the case where the password of certain access point is for static password, user only needs to know the close of the access point
Code, just can easily access the access point.In this way, password hiding for static password can only be shown in Wi-Fi lists
AP。
The embodiments of the present invention can be applied to following scene, for example, in actual applications, existing under possible current environment
Hide AP (under normal circumstances, hide AP be disposed to prevent other users from accessing the AP).Hiding AP in current environment
May be before non-concealed AP, and then be set to hide AP below.It is illustrated as a example by hiding AP1, it is not hidden in the AP1
Before, then mobile terminal can scan the AP1, and after the AP1 hides, then mobile terminal cannot scan the AP1, but,
Before the AP1 does not hide, can be using the access-in point information of the AP1 an as Wi-Fi connection if mobile scanning terminal to the AP1
Record is stored in history Wi-Fi connection data.After the AP1 hides, if user appears in current environment, can be according to upper
The embodiment of the present invention is stated, Wi-Fi lists are generated according to the AP1, in this way, AP1 can be illustrated on the display screen of mobile terminal, that
, user can choose the AP1, and then, access the AP1.Certainly, more hiding access point occurs in practical application,
According to the mode described by the embodiment of the present invention, by the displaying of hiding access point on the screen of the mobile terminal, so that user chooses
The hiding access point, in this way, can not only improve the security of access point, is also prevented from other users and usurps broadband resource.
As can be seen that by the embodiment of the present invention, obtain the current location of mobile terminal, according to the current location, from going through
Determine that N bars Wi-Fi connection is recorded in history Wi-Fi connection data, M bar Wi-Fi connections are included in the history Wi-Fi connection data
Record, each Wi-Fi connection record includes a failed access point for connecting in N bars Wi-Fi connection record, and M is for just
Integer, N is the positive integer less than or equal to M, according to N bars Wi-Fi connection record generation Wi-Fi lists.So that, can be from history
The failed access point for connecting is searched in Wi-Fi connection data, in this way, can not only realize that Automatic-searching hides AP, may be used also
More access points are provided so that user selects, Wi-Fi connection efficiency can be improved.
Consistent with the abovely, Fig. 2 is referred to, is a kind of Wireless Fidelity Wi-Fi connection method provided in an embodiment of the present invention
Second embodiment schematic flow sheet.Wireless Fidelity Wi-Fi connection method described in the present embodiment, comprises the following steps:
201st, the current location of mobile terminal is obtained.
202nd, according to the current location, determine that N bars Wi-Fi connection is recorded from history Wi-Fi connection data, it is described
Recorded comprising M bars Wi-Fi connection in history Wi-Fi connection data, each Wi-Fi connection note in the N bars Wi-Fi connection record
Record includes a failed access point for connecting, and the M is positive integer, and the N is less than or equal to the positive integer of the M.
Alternatively, the Wireless Fidelity Wi-Fi that the specific descriptions of above-mentioned steps 201- steps 202 can be found in described by Fig. 1 connects
The corresponding step 101- steps 102 of method are connect, be will not be repeated here.
203rd, the P access-in point information of access point is extracted from N bars Wi-Fi records, the P is less than or equal to institute
State the integer of N.
Wherein, an access point is included in each Wi-Fi connection record in N bars Wi-Fi connection record, but, it is different
Wi-Fi connection record in may include same access point, then the N number of access point of N bars Wi-Fi connection correspondence, thus, it is necessary to from
P different access point is chosen in N bars Wi-Fi connection record, specifically, duplicate removal can be carried out to N number of access point, obtained P and connect
Access point, can generate Wi-Fi lists according to the P access point, and can be in the Wi-Fi lists of the screen shows of mobile terminal.
204th, the access-in point information generation Wi-Fi lists according to the P access point, and in the screen of the mobile terminal
Show the Wi-Fi lists.
205th, at least one access point is chosen from the Wi-Fi lists.
Alternatively, in above-mentioned steps 205, Wi-Fi lists can show on the screen of the mobile terminal, can choose the Wi-
At least one best access point of signal intensity in Fi lists, or, can choose nearest with current location in the Wi-Fi lists
At least one access point.
206th, the SSID or BSSID according to each access point at least one access point carry out Wi-Fi scannings.
Wherein, in above-mentioned steps 206, mobile terminal can carry out Wi-Fi and sweep according to the SSID of above-mentioned at least one access point
Retouch, or, mobile terminal can carry out Wi-Fi scannings according to the BSSID of above-mentioned at least one access point, or, mobile terminal can
SSID and BSSID according to above-mentioned at least one access point carry out Wi-Fi scannings.Certainly, above-mentioned SSID carries out Wi-Fi scannings
When, it is possible to there is the situation of SSID changes, for example, original certain access point SSID is " cathay000 ", and below by it
SSID is changed to " cathay007 ", if carrying out Wi-Fi scannings according further to SSID " cathay000 ", cannot scan this and connect
Access point.Certainly, be then not in such case, because BSSID is to be repaiied if carrying out Wi-Fi scannings according to BSSID
Change.It is of course also possible to carry out Wi-Fi scannings according to SSID and BSSID.
Alternatively, in above-mentioned steps 205, the selection instruction of user input can be received, can be chosen from Wi-Fi lists should
The access point indicated by instruction is chosen, in step 206, then Wi-Fi can be carried out according to the SSID of the access point or BSSID and swept
Retouch.
As can be seen that by the embodiment of the present invention, obtain the current location of mobile terminal, according to the current location, from going through
Determine that N bars Wi-Fi connection is recorded in history Wi-Fi connection data, M bar Wi-Fi connections are included in the history Wi-Fi connection data
Record, each Wi-Fi connection record includes a failed access point for connecting in N bars Wi-Fi connection record, and M is for just
Integer, N is the positive integer less than or equal to M, from N bars Wi-Fi record in extract the P access-in point information of access point, P be less than
Or the integer equal to N, Wi-Fi lists are generated according to the P access-in point information of access point, and in the screen shows of mobile terminal
Wi-Fi lists, choose at least one access point from Wi-Fi lists, according to each access point at least one access point
SSID or BSSID carries out Wi-Fi scannings.So as to, can be searched from history Wi-Fi connection data it is failed connected connect
Access point, in this way, can not only realize that Automatic-searching hides AP, may also provide more access points so that user selects, and can improve Wi-
Fi joint efficiencies.
Consistent with the abovely, it is below the device of the above-mentioned Wireless Fidelity Wi-Fi connection method of implementation, it is specific as follows:
Fig. 3 a are referred to, is a kind of first embodiment structural representation of mobile terminal provided in an embodiment of the present invention.This
Mobile terminal described in embodiment, including:Acquiring unit 301, determining unit 302 and generation unit 303, it is specific as follows:
Acquiring unit 301, the current location for obtaining mobile terminal;
Determining unit 302, for according to the current location, N bars Wi-Fi being determined from history Wi-Fi connection data
Linkage record, records in the history Wi-Fi connection data comprising M bars Wi-Fi connection, every in the N bars Wi-Fi connection record
One Wi-Fi connection record includes a failed access point for connecting, and the M is positive integer, and the N is less than or equal to institute
State the positive integer of M;
Generation unit 303, for according to N bars Wi-Fi connection record generation Wi-Fi lists.
Alternatively, the specific refinement knot of the determining unit 302 of the mobile terminal such as Fig. 3 b, Fig. 3 b described in Fig. 3 a
Structure, the determining unit 302 may include:First determining module 3021, acquisition module 3022, the second determining module 3023 and selection
Module 3024, it is specific as follows:
First determining module 3021, for determining that Q bars Wi-Fi connection is recorded from the history Wi-Fi connection data,
Each Wi-Fi connection record includes a failed access point for connecting in the Q bars Wi-Fi connection record, and the Q is for just
Integer;
Acquisition module 3022, for obtaining the Q position from Q bars Wi-Fi connection record;
Second determining module 3023, for determining the distance between the current location and described Q position, obtains described
Q distance value;
Module 3024 is chosen, N number of distance value of predetermined threshold value is less than in the Q distance value for choosing, and obtain institute
State the corresponding N bars Wi-Fi connection record of N number of distance value.
Alternatively, the specific refinement knot of the generation unit 303 of the mobile terminal such as Fig. 3 c, Fig. 3 c described in Fig. 3 a
Structure, the generation unit 303 includes:Extraction module 3031 and generation module 3032, it is specific as follows:
Extraction module 3031, for extracting the P access-in point information of access point, the P from N bars Wi-Fi records
It is less than or equal to the integer of the N;
Generation module 3032, for generating Wi-Fi lists according to the access-in point information of the P access point, and described
Wi-Fi lists described in the screen shows of mobile terminal.
Alternatively, such as a kind of modification structures that Fig. 3 d, Fig. 3 d are the mobile terminal described in Fig. 3 a, Fig. 3 d and Fig. 3 a phases
Compare, it may also include:Unit 304 and scanning element 305 are chosen, it is specific as follows:
Choose unit 304, for Wi-Fi lists described in the screen shows in the generation module in the mobile terminal it
Afterwards, at least one access point is chosen from the Wi-Fi lists;
Scanning element 305, for carrying out Wi-Fi scannings according to the access-in point information of at least one access point.
Further, the scanning element 305 specifically for:
SSID or BSSID according to each access point at least one access point carry out Wi-Fi scannings.
As can be seen that by the embodiment of the present invention, obtain the current location of mobile terminal, according to the current location, from going through
Determine that N bars Wi-Fi connection is recorded in history Wi-Fi connection data, M bar Wi-Fi connections are included in the history Wi-Fi connection data
Record, each Wi-Fi connection record includes a failed access point for connecting in N bars Wi-Fi connection record, and N is small
In or equal to M positive integer, according to the N bars Wi-Fi connection record generation Wi-Fi lists.So that, can be from history Wi-Fi connection
The access point not connected is searched in data, in this way, can not only realize that Automatic-searching hides AP, may also provide and more connects
Access point is selected for user, can improve Wi-Fi connection efficiency.
Consistent with the abovely, Fig. 4 is referred to, is a kind of second embodiment knot of mobile terminal provided in an embodiment of the present invention
Structure schematic diagram.Mobile terminal described in the present embodiment, including:At least one input equipment 1000;At least one output sets
Standby 2000;At least one processor 3000, such as CPU;With memory 4000, above-mentioned input equipment 1000, output equipment 2000,
Processor 3000 and memory 4000 are connected by bus 5000.
Wherein, above-mentioned input equipment 1000 concretely contact panel, physical button or mouse.
The concretely display screen of above-mentioned output equipment 2000.
Above-mentioned memory 4000 can be high-speed RAM memory, or nonvolatile storage (non-volatile
Memory), such as magnetic disk storage.Above-mentioned memory 4000 is used to store batch processing code, above-mentioned input equipment 1000, defeated
Going out equipment 2000 and processor 3000 is used to call the program code stored in memory 4000, performs following operation:
Above-mentioned processor 3000, is used for:
Obtain the current location of mobile terminal;
According to the current location, determine that N bars Wi-Fi connection is recorded from history Wi-Fi connection data, the history
Recorded comprising M bars Wi-Fi connection in Wi-Fi connection data, each Wi-Fi connection record bag in the N bars Wi-Fi connection record
Containing a failed access point for connecting, the M is positive integer, and the N is less than or equal to the positive integer of the M;
According to N bars Wi-Fi connection record generation Wi-Fi lists.
Alternatively, above-mentioned processor 3000 determines N bars according to the current location from history Wi-Fi connection data
Wi-Fi connection is recorded, including:
Determine that Q bars Wi-Fi connection is recorded from the history Wi-Fi connection data, the Q bars Wi-Fi connection record
In each Wi-Fi connection record include a failed access point for connecting, the Q is positive integer;
The Q position is obtained from Q bars Wi-Fi connection record;
Determine the distance between the current location and described Q position, obtain the Q distance value;
The N number of distance value less than predetermined threshold value in the Q distance value is chosen, and it is corresponding to obtain N number of distance value
The N bars Wi-Fi connection record.
Alternatively, above-mentioned processor 3000 generates Wi-Fi lists according to N bars Wi-Fi connection record, including:
The P access-in point information of access point is extracted from N bars Wi-Fi records, the P is less than or equal to the N
Integer;
Access-in point information generation Wi-Fi lists according to the P access point, and in the screen shows of the mobile terminal
The Wi-Fi lists.
Still optionally further, above-mentioned processor 3000 is after Wi-Fi lists described in the screen shows of the mobile terminal,
Methods described also includes:
At least one access point is chosen from the Wi-Fi lists;
Access-in point information according at least one access point carries out Wi-Fi scannings.
The optional access-in point information according at least one access point carries out Wi-Fi scannings, including:
SSID or BSSID according to each access point at least one access point carry out Wi-Fi scannings.
The embodiment of the present invention also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium can be stored with journey
Sequence, the part including any Wireless Fidelity Wi-Fi connection method described in the above method embodiment when program is performed
Or Overall Steps.
Although invention has been described to combine each embodiment herein, however, implementing the present invention for required protection
During, those skilled in the art are by checking the accompanying drawing, disclosure and appended claims, it will be appreciated that and it is real
Other changes of the existing open embodiment.In the claims, " including " (comprising) one word be not excluded for other composition
Part or step, "a" or "an" are not excluded for the situation of multiple.Single processor or other units can realize claim
In some functions enumerating.Mutually different has been recited in mutually different dependent some measures, it is not intended that these are arranged
Apply to combine and produce good effect.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, device (equipment) or computer journey
Sequence product.Therefore, in terms of the present invention can be using complete hardware embodiment, complete software embodiment or combination software and hardware
The form of embodiment.And, the present invention can be used and wherein include the calculating of computer usable program code at one or more
The computer program implemented in machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.Computer program is stored/distributed in suitable medium, is provided together with other hardware or as the one of hardware
Part, it would however also be possible to employ other distribution forms, such as passes through Internet or other wired or wireless telecommunication systems.
The present invention be with reference to the embodiment of the present invention method, device (equipment) and computer program product flow chart with/
Or block diagram is described.It should be understood that each flow during flow chart and/or block diagram can be realized by computer program instructions and/
Or the combination of the flow and/or square frame in square frame and flow chart and/or block diagram.These computer program instructions can be provided
To the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices producing one
Individual machine so that produced for realizing by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of being specified in one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger
Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although with reference to specific features and embodiment, invention has been described, it is clear that, do not departing from this hair
In the case of bright spirit and scope, various modifications and combinations can be carried out to it.Correspondingly, the specification and drawings are only institute
The exemplary illustration of the invention that attached claim is defined, and be considered as covered in the scope of the invention any and all and repair
Change, change, combining or equivalent.Obviously, those skilled in the art the present invention can be carried out it is various change and modification without
Depart from the spirit and scope of the present invention.So, if it is of the invention these modification and modification belong to the claims in the present invention and its
Within the scope of equivalent technologies, then the present invention is also intended to comprising these changes and modification.
Claims (11)
1. a kind of Wireless Fidelity Wi-Fi connection method, it is characterised in that including:
Obtain the current location of mobile terminal;
According to the current location, determine that N bars Wi-Fi connection is recorded from history Wi-Fi connection data, the history Wi-
Comprising M bars Wi-Fi connection record in Fi connection data, each Wi-Fi connection record is included in the N bars Wi-Fi connection record
One failed access point for connecting, the M is positive integer, and the N is less than or equal to the positive integer of the M;
According to N bars Wi-Fi connection record generation Wi-Fi lists.
2. method according to claim 1, it is characterised in that described according to the current location, from history Wi-Fi connection
Determine that N bars Wi-Fi connection is recorded in data, including:
Determine that Q bars Wi-Fi connection is recorded from the history Wi-Fi connection data, it is every in the Q bars Wi-Fi connection record
One Wi-Fi connection record includes a failed access point for connecting, and the Q is positive integer;
The Q position is obtained from Q bars Wi-Fi connection record;
Determine the distance between the current location and described Q position, obtain the Q distance value;
The N number of distance value less than predetermined threshold value in the Q distance value is chosen, and obtains the corresponding N of N number of distance value
Bar Wi-Fi connection is recorded.
3. the method according to any one of claim 1 or 2, it is characterised in that described to be remembered according to the N bars Wi-Fi connection
Record generation Wi-Fi lists, including:
The P access-in point information of access point is extracted from N bars Wi-Fi records, the P is whole less than or equal to the N
Number;
Access-in point information generation Wi-Fi lists according to the P access point, and described in screen shows in the mobile terminal
Wi-Fi lists.
4. method according to claim 3, it is characterised in that Wi- described in the screen shows in the mobile terminal
After Fi lists, methods described also includes:
At least one access point is chosen from the Wi-Fi lists;
Access-in point information according at least one access point carries out Wi-Fi scannings.
5. method according to claim 4, it is characterised in that described to be believed according to the access point of at least one access point
Breath carries out Wi-Fi scannings, including:
SSID or BSSID according to each access point at least one access point carry out Wi-Fi scannings.
6. a kind of mobile terminal, it is characterised in that including:
Acquiring unit, the current location for obtaining mobile terminal;
Determining unit, for according to the current location, determining that N bars Wi-Fi connection is remembered from history Wi-Fi connection data
Record, records in the history Wi-Fi connection data comprising M bars Wi-Fi connection, every Wi- in the N bars Wi-Fi connection record
Fi linkage records include a failed access point for connecting, and the M is positive integer, and the N is less than or equal to the M
Positive integer;
Generation unit, for according to N bars Wi-Fi connection record generation Wi-Fi lists.
7. mobile terminal according to claim 6, it is characterised in that the determining unit includes:
First determining module, for determining that Q bars Wi-Fi connection is recorded from the history Wi-Fi connection data, the Q bars
Each Wi-Fi connection record includes a failed access point for connecting in Wi-Fi connection record, and the Q is positive integer;
Acquisition module, for obtaining the Q position from Q bars Wi-Fi connection record;
Second determining module, for determining the distance between the current location and described Q position, obtains the Q distance
Value;
Module is chosen, N number of distance value of predetermined threshold value is less than in the Q distance value for choosing, and obtain N number of distance
It is worth the corresponding N bars Wi-Fi connection record.
8. the mobile terminal according to any one of claim 6 or 7, it is characterised in that the generation unit includes:
Extraction module, for from the N bars Wi-Fi record in extract the P access-in point information of access point, the P be less than or
Equal to the integer of the N;
Generation module, for generating Wi-Fi lists according to the access-in point information of the P access point, and in the mobile terminal
Screen shows described in Wi-Fi lists.
9. mobile terminal according to claim 8, it is characterised in that the mobile terminal also includes:
Choose unit, in the generation module after Wi-Fi lists described in the screen shows of the mobile terminal, from institute
State and choose at least one access point in Wi-Fi lists;
Scanning element, for carrying out Wi-Fi scannings according to the access-in point information of at least one access point.
10. mobile terminal according to claim 9, it is characterised in that the scanning element specifically for:
SSID or BSSID according to each access point at least one access point carry out Wi-Fi scannings.
A kind of 11. mobile terminals, it is characterised in that including:
Processor and memory;Wherein, the processor is by calling code in the memory or instruction to perform such as power
Profit requires the method described in 1 to 5 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710090773.7A CN106793016B (en) | 2017-02-20 | 2017-02-20 | Wireless fidelity Wi-Fi connection method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710090773.7A CN106793016B (en) | 2017-02-20 | 2017-02-20 | Wireless fidelity Wi-Fi connection method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106793016A true CN106793016A (en) | 2017-05-31 |
CN106793016B CN106793016B (en) | 2020-01-14 |
Family
ID=58957803
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710090773.7A Expired - Fee Related CN106793016B (en) | 2017-02-20 | 2017-02-20 | Wireless fidelity Wi-Fi connection method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106793016B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019006662A1 (en) * | 2017-07-04 | 2019-01-10 | 华为技术有限公司 | Hotspot scanning method and electronic device |
US11419044B2 (en) * | 2019-08-05 | 2022-08-16 | Veniam, Inc. | Adaptive and dynamic Wi-Fi® scanning policies in a network of moving things including, for example, autonomous vehicles |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100124213A1 (en) * | 2008-11-17 | 2010-05-20 | Kotaro Ise | Wireless terminal device, communication method, and computer-readable recording medium |
CN103475996A (en) * | 2013-08-19 | 2013-12-25 | 小米科技有限责任公司 | Network connecting method, network sharing method and devices |
CN103874018A (en) * | 2014-02-21 | 2014-06-18 | 小米科技有限责任公司 | Access point information sharing method and device |
US20150173002A1 (en) * | 2012-07-04 | 2015-06-18 | Softbank Mobile Corp. | Terminal and connection method for same |
CN104837215A (en) * | 2015-04-14 | 2015-08-12 | 广东欧珀移动通信有限公司 | Wireless access point connecting method and device |
CN105530643A (en) * | 2015-12-31 | 2016-04-27 | 集怡嘉数码科技(深圳)有限公司 | WIFI network access method, WIFI network access device and terminal |
-
2017
- 2017-02-20 CN CN201710090773.7A patent/CN106793016B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100124213A1 (en) * | 2008-11-17 | 2010-05-20 | Kotaro Ise | Wireless terminal device, communication method, and computer-readable recording medium |
US20150173002A1 (en) * | 2012-07-04 | 2015-06-18 | Softbank Mobile Corp. | Terminal and connection method for same |
CN103475996A (en) * | 2013-08-19 | 2013-12-25 | 小米科技有限责任公司 | Network connecting method, network sharing method and devices |
CN103874018A (en) * | 2014-02-21 | 2014-06-18 | 小米科技有限责任公司 | Access point information sharing method and device |
CN104837215A (en) * | 2015-04-14 | 2015-08-12 | 广东欧珀移动通信有限公司 | Wireless access point connecting method and device |
CN105530643A (en) * | 2015-12-31 | 2016-04-27 | 集怡嘉数码科技(深圳)有限公司 | WIFI network access method, WIFI network access device and terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019006662A1 (en) * | 2017-07-04 | 2019-01-10 | 华为技术有限公司 | Hotspot scanning method and electronic device |
CN110710274A (en) * | 2017-07-04 | 2020-01-17 | 华为技术有限公司 | Hotspot scanning method and electronic equipment |
CN110710274B (en) * | 2017-07-04 | 2021-01-12 | 华为技术有限公司 | Hotspot scanning method and electronic equipment |
US11197236B2 (en) | 2017-07-04 | 2021-12-07 | Huawei Technologies Co., Ltd. | Hotspot scanning method and electronic device |
US11419044B2 (en) * | 2019-08-05 | 2022-08-16 | Veniam, Inc. | Adaptive and dynamic Wi-Fi® scanning policies in a network of moving things including, for example, autonomous vehicles |
Also Published As
Publication number | Publication date |
---|---|
CN106793016B (en) | 2020-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106973384B (en) | A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal | |
CN106658672B (en) | A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal | |
CN106804055A (en) | A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal | |
CN106792992B (en) | Method and equipment for providing wireless access point information | |
CN104660549A (en) | Identity verification method and device | |
CN106792699A (en) | A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal | |
CN106686587A (en) | Wireless fidelity Wi-Fi connecting method and mobile terminal | |
CN109002451A (en) | Map datum vacuates method and device | |
CN106604362A (en) | Wireless fidelity (Wi-Fi) scanning method and mobile terminal | |
CN106793015A (en) | A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal | |
CN106793016A (en) | A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal | |
US11044766B2 (en) | Method for Wi-Fi connection and related products | |
US11323873B2 (en) | Method for wireless fidelity connection and related products | |
CN106658670A (en) | Wireless fidelity Wi-Fi scanning method and mobile terminal | |
CN106535102A (en) | Mobile terminal positioning method and mobile terminal | |
CN106792698A (en) | A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal | |
CN106503197B (en) | A method of extracting android system Baidu map base station data | |
CN106034119A (en) | Encryption mixing method and device for application installation package | |
CN106535300A (en) | Network access method and device | |
CN116070979A (en) | Method, device, equipment and computer readable storage medium for generating biperism map | |
CN114510660A (en) | Method and device for converting longitude and latitude data, computer equipment and storage medium | |
JP2005173974A (en) | Map searching apparatus, map search method and computer program |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200114 |