CN106793015A - 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 PDF

Info

Publication number
CN106793015A
CN106793015A CN201710090772.2A CN201710090772A CN106793015A CN 106793015 A CN106793015 A CN 106793015A CN 201710090772 A CN201710090772 A CN 201710090772A CN 106793015 A CN106793015 A CN 106793015A
Authority
CN
China
Prior art keywords
access point
connection
bars
record
mobile terminal
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.)
Pending
Application number
CN201710090772.2A
Other languages
Chinese (zh)
Inventor
胡亚东
俞义
蒋世民
醋波涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710090772.2A priority Critical patent/CN106793015A/en
Publication of CN106793015A publication Critical patent/CN106793015A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (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 an access point being successfully connected 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;The K access-in point information of access point is obtained from the N bars Wi Fi linkage records, the K is less than or equal to the positive integer of the N;Access-in point information according to the K access point carries out Wi Fi scannings.The hiding access point being successfully connected can be scanned by the embodiment of the present invention.

Description

A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal
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.With the popularization of mobile terminal and Wi-Fi, connect by mobile terminal Enter Wi-Fi network also more and more frequent.
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 being successfully connected with mobile terminal As a example by, before the AP does not hide, then mobile terminal can scan the AP when Wi-Fi scannings are carried out, and then can be even The AP is met, but, after the AP hides, then mobile terminal just cannot scan the AP.
The content of the invention
A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal are the embodiment of the invention provides, can be scanned successfully The hiding access point for connecting.
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 an access point being successfully connected, the M is positive integer, and the N is less than or equal to the positive integer of the M;
The K access-in point information of access point is obtained from N bars Wi-Fi connection record, the K is less than or equal to institute State the positive integer of N;
Access-in point information according to the K access point carries out Wi-Fi scannings.
Embodiment of the present invention second aspect provides a kind of mobile terminal, including:
First acquisition 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 an access point being successfully connected, and the M is positive integer, and the N is less than or equal to the M Positive integer;
Second acquisition unit, for obtaining the K access-in point information of access point, institute from N bars Wi-Fi connection record It is less than or equal to the positive integer of the N to state K;
Scanning element, for carrying out Wi-Fi scannings according to the access-in point information of the K access point.
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:
By the embodiment of the present invention, the current location of mobile terminal is obtained, according to the current location, connected from history Wi-Fi Connect and determine in data N bars Wi-Fi connection and record, comprising M bars Wi-Fi connection record, the N in the history Wi-Fi connection data Each Wi-Fi connection record includes an access point being successfully connected in bar Wi-Fi connection record, and N is less than or equal to M's Positive integer, the K access-in point information of access point is obtained from N bars Wi-Fi connection record, and K is the positive integer less than or equal to N, Wi-Fi scannings are carried out according to the K access-in point information of access point.So as to be searched successfully from history Wi-Fi connection data The access point for connecting, therefore, when the access point being successfully connected is changed into hidden state from non-concealed state, can scan into The hiding access point that work(was connected.
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 another structural representations of the determining unit of the mobile terminal described by Fig. 3 a provided in an embodiment of the present invention Figure;
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 connects an AP every time, the SSID, BSSID, cipher mode, if hidden of the AP are can record The attributes such as Tibetan, and positional information during connection, are saved in the mobile terminal, in this way, can obtain history Wi-Fi connection number According to.Certainly, mobile terminal is in each Wi-Fi scanning processes, although be only possible to access an access point, but, can scan To multiple access points, it is also possible to the failed access point for accessing is stored in history Wi-Fi connection data, i.e. history Wi-Fi The access point being successfully connected can be not only included in connection data, the access point for connecting not successfully can also be included.
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.It is many in user It is secondary when coming the position, then a large amount of Wi-Fi connections records comprising identical access point are can obtain, in this way, history Wi-Fi connection Data are then possible to that more memory source can be taken, thus, duplicate removal treatment can be carried out in history Wi-Fi connection data, only protect In staying a plurality of Wi-Fi connection comprising identical access point to record at least one, and then, history Wi-Fi connection data are carried out Optimization.
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 an access point being successfully connected, and the M is positive integer, and the N is less than or equal to the positive integer of the M.
Wherein, recorded comprising M bars Wi-Fi connection in above-mentioned history Wi-Fi connection data, above-mentioned N bars Wi-Fi connection record In each Wi-Fi connection record include an access point being successfully connected, N is the positive integer less than or equal to M.Determining After current location, can determine that N bars Wi-Fi connection is recorded from history Wi-Fi connection data according to the following two kinds mode.
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:
B11 the M position), is determined from the history Wi-Fi connection data, in the M bars Wi-Fi connection record Each Wi-Fi connection record includes a position;
B12 the distance between the current location and described M position), are determined respectively, obtain the M distance value;
B13), less than P distance value of the first predetermined threshold value in the selection M distance value, the P is positive integer;
B14), the N bars Wi-Fi connection record is chosen from the corresponding Wi-Fi connection record of the P distance value.
Wherein, because history Wi-Fi connection packet bar containing M Wi-Fi connection is recorded, can in each Wi-Fi connection record Comprising a position, in this way, M position is can obtain, and then, it may be determined that between each position in current location and M position Distance, in this way, can obtain M distance value.Above-mentioned first predetermined threshold value can voluntarily be set or system default by user.Can be from The P distance value less than the first predetermined threshold value is chosen in M distance value.Certainly, the P distance value correspondence P bars Wi-Fi connection note Record, each Wi-Fi connection record can include an access point being successfully connected in P bars Wi-Fi connection record, it is also possible to include The failed access point for connecting.Thus, can be chosen comprising the access point for connecting not successfully from P bars Wi-Fi connection record Wi-Fi connection record, obtain N bars 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:
B21), 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 an access point being successfully connected in record, and the Q is positive integer;
B22 the Q position), is obtained from Q bars Wi-Fi connection record,
B23), determine the distance between the current location and described Q position, obtain the Q distance value;
B24), less than N number of distance value of the second predetermined threshold value in the selection Q distance value, and N number of distance is obtained It is worth the corresponding N bars Wi-Fi connection record.
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 an access point being successfully connected.Due to one can be included in each Wi-Fi connection record Individual position, in this way, Q position is can obtain, and then, it may be determined that the distance between each position in current location and Q position, In this way, can obtain Q distance value.Above-mentioned second 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 the second predetermined threshold value is chosen in value.Certainly, N number of distance value correspondence N bars Wi-Fi connection record, so N bars Wi-Fi connection record can be obtained.
103rd, from the N bars Wi-Fi connection record in obtain the K access-in point information of access point, the K be less than or wait In the positive integer of the N.
Wherein, the Wi-Fi connection comprising identical access point may records in above-mentioned N bars Wi-Fi connection record, for example, SSID1 is included in Wi-Fi connection record A, SSID1 is included in Wi-Fi connection record B, then, both are regarded as same AP's Wi-Fi connection is recorded.In practical application, mobile terminal can not be excluded and repeatedly access same AP, the repeatedly connection for example, user is in AP, then as its corresponding Wi-Fi connection record can be regarded as.Specifically, duplicate removal can be carried out to N number of access point, obtains K and connect Access point, the above-mentioned duplicate removal that carried out to N number of access point can be realized using two ways:1st, duplicate removal can be carried out according to SSID, the K for obtaining The SSID of each access point is different in access point;2nd, duplicate removal can be carried out according to BSSID, it is each in the K access point for obtaining to connect The BSSID of access point is different.
104th, the access-in point information according to the K access point carries out Wi-Fi scannings.
In implementing, the K access-in point information of access point can be generated a Wi-Fi list, in the aobvious of mobile terminal Show the showing interface Wi-Fi lists, and then, mobile terminal can carry out Wi-Fi scannings according to the Wi-Fi lists.
Alternatively, in above-mentioned steps 104, the access-in point information according to the K access point carries out Wi-Fi scannings, including:
SSID or BSSID according to each access point in the K access point are scanned.
Wherein, in above-mentioned steps 104, mobile terminal can carry out Wi-Fi scannings according to the SSID of above-mentioned K access point, or Person, mobile terminal can carry out Wi-Fi scannings according to the BSSID of above-mentioned K access point, or, mobile terminal can be according to above-mentioned K The SSID and BSSID of access point carry out Wi-Fi scannings.Certainly, when mobile terminal carries out Wi-Fi scannings using SSID, it is possible to There is the situation of SSID changes, for example, original certain access point SSID is " cathay000 ", and be below changed to its SSID " cathay007 ", if carrying out Wi-Fi scannings according further to SSID " cathay000 ", cannot scan the access point.When So, be then not in such case, because BSSID is to carry out if mobile terminal carries out Wi-Fi scannings according to BSSID Modification.It is of course also possible to carry out Wi-Fi scannings according to SSID and BSSID.
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).For example, each in mobile terminal After one AP of connection, then the SSID, BSSID, cipher mode of the AP are can record, if hide and wait attribute information, and during connection Position, preserved in the terminal, in this way, can obtain history Wi-Fi connection data as Wi-Fi connection record. In subsequent applications, the current location of mobile terminal can be obtained by positioning, according to the current location in history Wi-Fi connection data In find out the Wi-Fi of the distance between the position comprising the AP that was successfully connected and the AP and current location less than a certain threshold value , can be stored in a plurality of Wi-Fi connection record in a Wi-Fi list by linkage record, it is assumed that have multiple, and then, will can be somebody's turn to do Wi-Fi lists show user, and user can take out the SSID of AP from the Wi-Fi lists successively, be specified according to the SSID SSID is scanned, in this way, after scanning to some access point, can attempt connecting the access point, in the password authentification of the access point In the case of, Wi-Fi network can be successfully accessed.In this way, mobile terminal can be to being successfully connected and attribute modification below For the access point of hidden state is attached.Certainly, more hiding access point occurs in practical application, can be according to this hair Mode described by bright embodiment, by hiding access point displaying on the screen of the mobile terminal, for user choose this hide connect Access point, in this way, can not only improve the security of access point, is also prevented from other users and usurps broadband resource.Certainly, using this Inventive embodiments, not only may search for the hiding access point being successfully connected, can also be the access point of non-concealed (by logical Normal Wi-Fi scan modes just can be obtained), the access point of hiding access point and non-concealed can also be illustrated in Wi-Fi row In table, for providing the user more access points, lifting user can access the chance of access point.
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 an access point being successfully connected in N bars Wi-Fi connection record, N be less than Or the positive integer equal to M, the K access-in point information of access point is obtained from N bars Wi-Fi connection record, K is less than or equal to N Positive integer, Wi-Fi scannings are carried out according to the K access-in point information of access point.So that, can be from history Wi-Fi connection data The access point being successfully connected is searched, therefore, when the access point being successfully connected is changed into hidden state from non-concealed state, The hiding access point being successfully connected can be scanned.More access points be may also provide so that user selects, Wi-Fi companies can be improved Connect efficiency.
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 an access point being successfully connected, and the M is positive integer, and the N is less than or equal to the positive integer of the M.
203rd, from the N bars Wi-Fi connection record in obtain the K access-in point information of access point, the K be less than or wait In the positive integer of the N.
204th, the access-in point information according to the K access point carries out Wi-Fi scannings.
Wherein, the specific descriptions of above-mentioned steps 201- steps 204 can refer to the Wireless Fidelity Wi-Fi connection described by Fig. 1 The step of method 101- steps 104, will not be repeated here.
205th, when the mobile terminal accesses access point i, by the hiding attribute of described access point i labeled as hiding, institute It is any access point in the K access point to state access point i.
Wherein, after mobile terminal is linked into access point i, the hiding attribute of access point i can be marked, when So, access point i is any access point in above-mentioned K access point.
It should be noted that the main application scenarios of the embodiment of the present invention are, for connecing that mobile terminal was successfully connected Access point, is illustrated by taking certain access point B as an example, when access point B turns into and hides access point, it is generally the case that move Dynamic terminal cannot search access point B, and access point B is then may search for using the embodiments of the present invention, then, Search after access point B, the hiding attribute of access point B can be labeled as hiding, so that, carry out Wi-Fi in next time and sweep When retouching, SSID or BSSID that can be directly according to access point B carry out Wi-Fi scannings, in this way, Wi-Fi connection can be lifted Efficiency.
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 an access point being successfully connected in N bars Wi-Fi connection record, N be less than Or the positive integer equal to M, the K access-in point information of access point is obtained from N bars Wi-Fi connection record, K is less than or equal to N Positive integer, Wi-Fi scannings are carried out according to the K access-in point information of access point, mobile terminal access access point i when, will connect Labeled as hiding, access point i is any access point in K access point to the hiding attribute of access point i.So that, can be from history Wi- The access point being successfully connected is searched in Fi connection data, therefore, become by non-concealed state in the access point being successfully connected During for hidden state, the hiding access point being successfully connected can be scanned.More access points be may also provide so that user selects, Wi-Fi connection efficiency can be improved.
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:First acquisition unit 301, determining unit 302, second acquisition unit 303 and sweep Unit 304 is retouched, it is specific as follows:
First acquisition 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 an access point being successfully connected, and the M is positive integer, and the N is less than or equal to described The positive integer of M;
Second acquisition unit 303, for obtaining the K access point letter of access point from N bars Wi-Fi connection record Breath, the K is less than or equal to the positive integer of the N;
Scanning element 304, for carrying out Wi-Fi scannings according to the access-in point information of the K access point.
Alternatively, the specific refinement structure of the determining unit 302 of the mobile terminal as described by Fig. 3 b, Fig. 3 b are Fig. 3 a, The determining unit 302 may include:First determining module 3021 and first chooses module 3022, specific as follows:
First determining module 3021, for determining the M position, the M bars from the history Wi-Fi connection data Each Wi-Fi connection record includes a position in Wi-Fi connection record;
First determining module 3021, also particularly useful for:
The distance between the current location and described M position are determined respectively, obtain the M distance value;
First chooses module 3022, is less than P distance value of the first predetermined threshold value in the M distance value for choosing, The P is positive integer;
Described first chooses module 3022, also particularly useful for:
The N bars Wi-Fi connection record is chosen from the corresponding Wi-Fi connection record of the P distance value.
Alternatively, the specific refinement structure of the determining unit 302 of the mobile terminal as described by Fig. 3 c, Fig. 3 c are Fig. 3 a, The determining unit 302 may include:Second determining module 3023, acquisition module 3024 and second choose module 3025, specifically such as Under:
Second determining module 3023, for determining that Q bars Wi-Fi connection is recorded from the history Wi-Fi connection data, Each Wi-Fi connection record includes an access point being successfully connected in the Q bars Wi-Fi connection record, and the Q is just whole Number;
Acquisition module 3024, for obtaining the Q position from Q bars Wi-Fi connection record,
Second determining module 3023, also particularly useful for:
Determine the distance between the current location and described Q position, obtain the Q distance value;
Second chooses module 3025, is less than N number of distance value of the second predetermined threshold value in the Q distance value for choosing, And obtain the corresponding N bars Wi-Fi connection record of N number of distance value.
Alternatively, the scanning element 304 specifically for:
SSID or BSSID according to each access point in the K access point are scanned.
Alternatively, a kind of modification structures of the mobile terminal as described by Fig. 3 d, Fig. 3 d are Fig. 3 a, Fig. 3 d are compared with Fig. 3 a Compared with it may also include:Indexing unit 305, it is specific as follows:
Indexing unit 305, for carrying out Wi- according to the access-in point information of the K access point in the scanning element 304 It is described by the hiding attribute of described access point i labeled as hiding when the mobile terminal accesses access point i after Fi scannings Access point i is any access point in the K access point.
As can be seen that by the mobile terminal described by the embodiment of the present invention, the current location of mobile terminal is obtained, according to The current location, determines that N bars Wi-Fi connection is recorded, in the history Wi-Fi connection data from history Wi-Fi connection data Comprising M bars Wi-Fi connection record, each Wi-Fi connection record was successfully connected comprising one in N bars Wi-Fi connection record Access point, N is the positive integer less than or equal to M, and the access point that K access point is obtained from N bars Wi-Fi connection record is believed Breath, K is the positive integer less than or equal to N, and Wi-Fi scannings are carried out according to the K access-in point information of access point.So as to can be from going through The access point being successfully connected is searched in history Wi-Fi connection data, therefore, in the access point being successfully connected by non-concealed shape When state is changed into hidden state, the hiding access point being successfully connected can be scanned.More access points be may also provide for user Selection, 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 an access point being successfully connected, the M is positive integer, and the N is less than or equal to the positive integer of the M;
The K access-in point information of access point is obtained from N bars Wi-Fi connection record, the K is less than or equal to institute State the positive integer of N;
Access-in point information according to the K access point carries out Wi-Fi scannings.
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:
The M position is determined from the history Wi-Fi connection data, it is each in the M bars Wi-Fi connection record Wi-Fi connection record includes a position;
The distance between the current location and described M position are determined respectively, obtain the M distance value;
The P distance value less than the first predetermined threshold value in the M distance value is chosen, the P is positive integer;
The N bars Wi-Fi connection record is chosen from the corresponding Wi-Fi connection record of the P distance value.
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 an access point being successfully connected, 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 the second predetermined threshold value in the Q distance value is chosen, and obtains N number of distance value pair The N bars Wi-Fi connection answered is recorded.
Alternatively, above-mentioned processor 3000 carries out Wi-Fi scannings according to the access-in point information of the K access point, including:
SSID or BSSID according to each access point in the K access point are scanned.
Alternatively, above-mentioned processor 3000, carries out Wi-Fi and sweeps in the access-in point information according to the K access point After retouching, also particularly useful for:
It is described to connect by the hiding attribute of described access point i labeled as hiding when the mobile terminal accesses access point i Access point i is any access point in the K access point.
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 access point being successfully connected, the M is positive integer, and the N is less than or equal to the positive integer of the M;
The K access-in point information of access point is obtained from N bars Wi-Fi connection record, the K is less than or equal to the N Positive integer;
Access-in point information according to the K access point carries out Wi-Fi scannings.
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:
The M position, every Wi-Fi in the M bars Wi-Fi connection record are determined from the history Wi-Fi connection data Linkage record includes a position;
The distance between the current location and described M position are determined respectively, obtain the M distance value;
The P distance value less than the first predetermined threshold value in the M distance value is chosen, the P is positive integer;
The N bars Wi-Fi connection record is chosen from the corresponding Wi-Fi connection record of the P distance value.
3. 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 an access point being successfully connected, 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 the second 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.
4. the method according to any one of claims 1 to 3, it is characterised in that the access according to the K access point Point information carries out Wi-Fi scannings, including:
SSID or BSSID according to each access point in the K access point are scanned.
5. the method according to any one of claims 1 to 3, it is characterised in that in the connecing according to the K access point Access point information is carried out after Wi-Fi scannings, and methods described also includes:
When the mobile terminal accesses access point i, by the hiding attribute of described access point i labeled as hiding, described access point i It is any access point in the K access point.
6. a kind of mobile terminal, it is characterised in that including:
First acquisition 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 an access point being successfully connected, and the M is positive integer, and the N is less than or equal to the M just Integer;
Second acquisition unit, for obtaining the K access-in point information of access point, the K from N bars Wi-Fi connection record It is less than or equal to the positive integer of the N;
Scanning element, for carrying out Wi-Fi scannings according to the access-in point information of the K access point.
7. mobile terminal according to claim 6, it is characterised in that the determining unit includes:
First determining module, for determining the M position from the history Wi-Fi connection data, the M bars Wi-Fi connects Each Wi-Fi connection record is comprising a position in connecing record;
First determining module, also particularly useful for:
The distance between the current location and described M position are determined respectively, obtain the M distance value;
First chooses module, and for choosing P distance value in the M distance value less than the first predetermined threshold value, the P is just Integer;
Described first chooses module, also particularly useful for:
The N bars Wi-Fi connection record is chosen from the corresponding Wi-Fi connection record of the P distance value.
8. mobile terminal according to claim 6, it is characterised in that the determining unit includes:
Second 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 an access point being successfully connected 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, also particularly useful for:
Determine the distance between the current location and described Q position, obtain the Q distance value;
Second chooses module, is less than N number of distance value of the second predetermined threshold value 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.
9. the mobile terminal according to any one of claim 6 to 8, it is characterised in that the scanning element specifically for:
SSID or BSSID according to each access point in the K access point are scanned.
10. the mobile terminal according to any one of claim 6 to 8, it is characterised in that the mobile terminal also includes:
Indexing unit, it is scanned for carrying out Wi-Fi according to the access-in point information of the K access point in the scanning element Afterwards, when the mobile terminal accesses access point i, by the hiding attribute of described access point i labeled as hiding, described access point i It is any access point in the K access point.
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.
CN201710090772.2A 2017-02-20 2017-02-20 A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal Pending CN106793015A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710090772.2A CN106793015A (en) 2017-02-20 2017-02-20 A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710090772.2A CN106793015A (en) 2017-02-20 2017-02-20 A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal

Publications (1)

Publication Number Publication Date
CN106793015A true CN106793015A (en) 2017-05-31

Family

ID=58958898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710090772.2A Pending CN106793015A (en) 2017-02-20 2017-02-20 A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal

Country Status (1)

Country Link
CN (1) CN106793015A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107949031A (en) * 2017-12-20 2018-04-20 深圳市中科明望通信软件有限公司 A kind of scan method of wireless network, mobile terminal and storage medium
CN109151952A (en) * 2018-09-26 2019-01-04 连尚(新昌)网络科技有限公司 Processing method, equipment and the computer storage medium of WiFi information
WO2019006662A1 (en) * 2017-07-04 2019-01-10 华为技术有限公司 Hotspot scanning method and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209464A (en) * 2012-01-11 2013-07-17 联想(北京)有限公司 Wireless access method and electronic device using same
CN103501482A (en) * 2013-09-26 2014-01-08 小米科技有限责任公司 Network access method, network access device and terminal
CN104782187A (en) * 2012-11-05 2015-07-15 高通股份有限公司 Systems and methods for utilizing hidden access points
WO2016180210A1 (en) * 2015-08-24 2016-11-17 中兴通讯股份有限公司 Method and apparatus for accessing wifi network
CN106211293A (en) * 2016-08-26 2016-12-07 广东欧珀移动通信有限公司 Control method, device and the mobile terminal of a kind of Wireless Fidelity function

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209464A (en) * 2012-01-11 2013-07-17 联想(北京)有限公司 Wireless access method and electronic device using same
CN104782187A (en) * 2012-11-05 2015-07-15 高通股份有限公司 Systems and methods for utilizing hidden access points
CN103501482A (en) * 2013-09-26 2014-01-08 小米科技有限责任公司 Network access method, network access device and terminal
WO2016180210A1 (en) * 2015-08-24 2016-11-17 中兴通讯股份有限公司 Method and apparatus for accessing wifi network
CN106211293A (en) * 2016-08-26 2016-12-07 广东欧珀移动通信有限公司 Control method, device and the mobile terminal of a kind of Wireless Fidelity function

Cited By (6)

* Cited by examiner, † Cited by third party
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
CN107949031A (en) * 2017-12-20 2018-04-20 深圳市中科明望通信软件有限公司 A kind of scan method of wireless network, mobile terminal and storage medium
CN109151952A (en) * 2018-09-26 2019-01-04 连尚(新昌)网络科技有限公司 Processing method, equipment and the computer storage medium of WiFi information

Similar Documents

Publication Publication Date Title
CN106973384B (en) A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal
CN106658672A (en) Wireless fidelity Wi-Fi connecting method and mobile terminal
CN106804055A (en) A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal
CN106792699A (en) A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal
CN104660549A (en) Identity verification method and device
CN106326091A (en) Browser webpage compatibility detection method and system
CN106604362A (en) Wireless fidelity (Wi-Fi) scanning method and mobile terminal
CN104679405A (en) Terminal
CN110674247A (en) Barrage information intercepting method and device, storage medium and equipment
CN106793015A (en) A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal
CN106686587A (en) Wireless fidelity Wi-Fi connecting method and mobile terminal
CN112312378A (en) Sharing method and device of operator network and core network equipment
CN111782758A (en) Drawing review result viewing method based on CAD and related device
CN106793016A (en) A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal
CN106843829A (en) The display methods of desktop control, device and electronic equipment
CN106658670A (en) Wireless fidelity Wi-Fi scanning method and mobile terminal
CN106888496A (en) A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal
CN106535102A (en) Mobile terminal positioning method and mobile terminal
CN106550423A (en) A kind of access point management method and terminal
CN106686588A (en) Wireless fidelity Wi-Fi connecting method and mobile terminal
CN106792698A (en) A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal
WO2020233093A1 (en) Association graph generation method and apparatus, computer device, and storage medium
CN112073505A (en) Method for unloading on cloud server, control device and storage medium
CN106793017A (en) A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal
CN116070979A (en) Method, device, equipment and computer readable storage medium for generating biperism map

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531