CN105744523A - WIFI connection method and mobile terminal - Google Patents

WIFI connection method and mobile terminal Download PDF

Info

Publication number
CN105744523A
CN105744523A CN201610113282.5A CN201610113282A CN105744523A CN 105744523 A CN105744523 A CN 105744523A CN 201610113282 A CN201610113282 A CN 201610113282A CN 105744523 A CN105744523 A CN 105744523A
Authority
CN
China
Prior art keywords
hot spot
mobile terminal
wifi hot
target
attribute information
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
CN201610113282.5A
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201610113282.5A priority Critical patent/CN105744523A/en
Publication of CN105744523A publication Critical patent/CN105744523A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a WIFI connection method and a mobile terminal. The method comprises the following steps: when a WIFI function of the mobile terminal is in an open state, if scanning a target WIFI hotspot with target connection attribute information, determining the current position of the mobile terminal, wherein the target connection attribute information refers to the connection attribute information in a pre-recorded WIFI hotspot information table; looking a target position corresponding to the target connection attribute information in the pre-recorded WIFI hotspot information table; judging whether the distance of the current position and the target position is smaller than a preset threshold or not; and when the judgment result is positive, connecting the target WIFI hotspot according to the target connection attribute information. By adopting the method disclosed by the invention, when the mobile terminal automatically accesses the WIFI hotspot, the position of the mobile terminal is verified to reduce the leakage risk of private information, and the security of the mobile terminal is improved.

Description

A kind of WIFI method of attachment and mobile terminal
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of WIFI method of attachment and mobile terminal.
Background technology
Fast development along with wireless communication technique, increasing mobile terminal all possesses wireless connecting function, mobile terminal sets up WLAN (Wirelessfidelity by adding wireless router, WIFI) network, can realize the access between internet access and equipment and control.At present, in in public places, increasing WIFI hot spot is established, such as, on airport, the public places such as cafe, more and more businessmans can provide free WIFI to use to user, user uses hands machine in public places, during the mobile terminal Internet accesses such as flat board laptop computer, mobile terminal can search neighbouring multiple WIFI hot spot automatically, and it is supplied to user's selection, according to the title of public WIFI, user determines that WIFI connects, if mobile terminal is set to from being dynamically connected WIFI hot spot by user, when mobile terminal to search to the WIFI hot spot being successfully connected, user need not be inquired again, can connect voluntarily.
But, great risk is there is in user when connecting this kind of WIFI hot spot being successfully connected, if running into a fishing WIFI hot spot imitating public WIFI title and WIFI password, after mobile terminal is connected to fishing WIFI hot spot, user data by go fishing WIFI hot spot mutual time, easily monitored and analyze, the relevant input secret data such as account, password will directly be stolen.Therefore, mobile terminal from be dynamically connected WIFI hot spot time there is potential safety hazard, it is easy to cause the risk that private data reveals, reduce the safety of mobile terminal.
Summary of the invention
The embodiment of the present invention provides a kind of WIFI method of attachment and mobile terminal, at mobile terminal from being dynamically connected in the process of WIFI hot spot, by verifying that the position of mobile terminal decreases the risk that private data reveals, improves the safety of mobile terminal.
Embodiment of the present invention first aspect provides a kind of WIFI method of attachment, including:
When mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, determine the current location of described mobile terminal, wherein, described target connection attribute information refers to the connection attribute information existed in pre-recorded WIFI hot spot information list;
In pre-recorded described WIFI hot spot information list, search the target location corresponding with described target connection attribute information;
Judge that whether the distance between described current location and described target location is less than predetermined threshold value;
When judged result is for being, connect described target WIFI hot spot according to described target connection attribute information.
Embodiment of the present invention second aspect provides a kind of mobile terminal, including:
Determine unit, for when mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, determine the current location of described mobile terminal, wherein, described target connection attribute information refers to the connection attribute information existed in pre-recorded WIFI hot spot information list;
Search unit, for, in pre-recorded described WIFI hot spot information list, searching the target location corresponding with described target connection attribute information;
Judging unit, whether the distance being used for judging between described current location and described target location is less than predetermined threshold value;
Connect unit, for when described judging unit judges the distance between described current location and described target location less than described predetermined threshold value, connecting described target WIFI hot spot according to described target connection attribute information.
In embodiments of the present invention, when mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, determine the current location of mobile terminal, and in pre-recorded WIFI hot spot information list, search the target location corresponding with target connection attribute information, if the distance between current location and target location is less than predetermined threshold value, then linking objective WIFI hot spot.So at mobile terminal from being dynamically connected in the process of WIFI hot spot, by verifying that the position of mobile terminal decreases the risk that private data reveals, improve the safety of mobile terminal.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below the accompanying drawing used required during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of WIFI method of attachment that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of WIFI method of attachment that the embodiment of the present invention provides;
Fig. 3 is the structural representation of a kind of mobile terminal that the embodiment of the present invention provides;
Fig. 4 is the structural representation of the another kind of mobile terminal that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the another kind of mobile terminal that the embodiment of the present invention provides.
Detailed description of the invention
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 clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not paying creative work premise, broadly fall into the scope of protection of the invention.
It should be noted that the term used in embodiments of the present invention is only merely for the purpose describing specific embodiment, and it is not intended to be limiting the present invention." one ", " described " and " being somebody's turn to do " of the singulative used in the embodiment of the present invention and appended claims is also intended to include most form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and comprises any or all of one or more project of listing being associated and be likely to combination.It addition, term " first " in description and claims of this specification and above-mentioned accompanying drawing, " second ", " the 3rd " and " the 4th " etc. are for distinguishing different object, rather than it is used for describing particular order.Additionally, term " including " and " having " and their any deformation, it is intended that cover non-exclusive comprising.Such as contain series of steps or the process of unit, method, system, product or equipment are not limited to step or the unit listed, but also include step or the unit do not listed alternatively, or also include other step intrinsic for these processes, method, product or equipment or unit alternatively.
In embodiments of the present invention, described mobile terminal can be any equipment possessing communication and storage function, such as: panel computer, mobile phone, electronic reader, remote controller, personal computer (PersonalComputer, PC), notebook computer, mobile unit, Web TV, wearable device etc. there is the smart machine of communication function, the embodiment of the present invention is not construed as limiting.
Below in conjunction with accompanying drawing 1-accompanying drawing 2, the WIFI method of attachment that the embodiment of the present invention is provided is introduced.
Refer to Fig. 1, for embodiments providing the configuration diagram of a kind of WIFI method of attachment.As it is shown in figure 1, the described method of the embodiment of the present invention may comprise steps of S101-step S104.
S101, when mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, it is determined that the current location of described mobile terminal.
Concrete, when mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, it is determined that the current location of described mobile terminal.It is understandable that, when the WIFI function of mobile terminal is opened, described mobile terminal can also be dynamically connected the WIFI hot spot connected certainly, as, can from being not connected with the state of WIFI from being dynamically connected the WIFI hot spot scanned, it is also possible to be switched to, by the WIFI hot spot that signal is more weak, the WIFI hot spot that signal is stronger.nullWherein,Described target connection attribute information refers to the connection attribute information existed in pre-recorded WIFI hot spot information list,Such as,Described target connection attribute information connects into the connection attribute information of the WIFI hot spot of merits and demerits before can being mobile terminal,Or,It is by user record connection attribute information in WIFI hot spot information list,If described mobile scanning terminal is to the target WIFI hot spot that the target connection attribute information being present in WIFI hot spot information list is corresponding,Determine the current location of described mobile terminal,In order to determine whether described mobile terminal can linking objective WIFI hot spot according to current location,In feasible scheme,The current location of described mobile terminal can be determined by location technology,Such as,GPS positions、Architecture、IP positions、Bluetooth location etc.,This is not limited by the embodiment of the present invention.
In feasible scheme, in described WIFI hot spot information list, record has the connection attribute information of one or more WIFI, wherein, described connection attribute information includes service set SSID and WIFI password, owing to when SSID and the WIFI password of WIFI hot spot is all verified, just can be successfully connected network, and then realize from being dynamically connected WIFI hot spot, if network can be connected, it is determined that the current location of mobile terminal, and current location is verified further.Except above-mentioned two parameter, described connection attribute information can also include Basic Service Set Identification BSSID, WIFI cipher mode etc., and this is not limited by the embodiment of the present invention.By multiple-authentication target WIFI hot spot, the mobile terminal safety from the WIFI hot spot that is dynamically connected more can be strengthened.
S102, in pre-recorded described WIFI hot spot information list, searches the target location corresponding with described target connection attribute information.
Concrete, described mobile terminal, in pre-recorded described WIFI hot spot information list, searches the target location corresponding with described target connection attribute information.Wherein, in described WIFI hot spot information list, also record has and the target location of described target connection attribute information association storage.In feasible scheme, described target location can be the position that mobile terminal connects network first according to described target connection attribute information, is namely not connected with the WIFI hot spot that described target connection attribute information is corresponding before described mobile terminal;Or, mobile terminal connects multiple positions of network according to described target connection attribute information;Or, user record there is the position of binding relationship with described target connection attribute information, this is not limited by the embodiment of the present invention.
S103, it is judged that whether the distance between described current location and described target location is less than predetermined threshold value.
Concrete, described mobile terminal judges that whether whether the distance between described current location and described target location is less than predetermined threshold value, judge current location with the target location recorded at the same area by described predetermined threshold value.
S104, when judged result is for being, connects described target WIFI hot spot according to described target connection attribute information.
Concrete, when described mobile terminal judges the distance between described current location and described target location less than predetermined threshold value, the target location determining current location and record is at the same area, and described mobile terminal connects described target WIFI hot spot according to described target connection attribute information.
In embodiments of the present invention, when mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, determine the current location of mobile terminal, and in pre-recorded WIFI hot spot information list, search the target location corresponding with target connection attribute information, if the distance between current location and target location is less than predetermined threshold value, then linking objective WIFI hot spot.So at mobile terminal from being dynamically connected in the process of WIFI hot spot, by verifying that the position of mobile terminal decreases the risk that private data reveals, improve the safety of mobile terminal.
Refer to Fig. 2, for embodiments providing the schematic flow sheet of another kind of WIFI method of attachment.As in figure 2 it is shown, the described method of the embodiment of the present invention may comprise steps of S201-step S209.
S201, when described mobile terminal is successfully connected the WIFI hot spot being not connected with, it is determined that the position of described mobile terminal.
Concrete, when described mobile terminal is successfully connected the WIFI hot spot being not connected with, in other words, when described mobile terminal is successfully connected this WIFI hot spot first, described mobile terminal determines the position of described mobile terminal.It is understandable that, described mobile terminal is successfully connected the WIFI hot spot being not connected with, refer to the described mobile scanning terminal SSID to this WIFI hot spot, and by being successfully connected network with the described SSID WIFI password matched, SSID and the WIFI password of described WIFI hot spot can as the connection attribute information of described WIFI hot spot, described mobile terminal is it may also be determined that the attribute such as BSSID, WIFI cipher mode of described WIFI hot spot, and is added in connection attribute information.After being successfully connected network, described mobile terminal determines position by location technology, for instance, GPS location, architecture, IP location, bluetooth location etc., this is not limited by the embodiment of the present invention.
S202, records the connection attribute information of described WIFI hot spot and the position of described mobile terminal in WIFI hot spot information list.
Concrete, the connection attribute information of WIFI hot spot described in associated record and be successfully connected the position of described mobile terminal of described WIFI hot spot in WIFI hot spot information list.Described connection attribute information includes multiple attributes of above-mentioned introduction, does not repeat them here.
S203, when mobile terminal WIFI function is opened, when scanning the WIFI hot spot carrying the SSID existed in WIFI hot spot information list, utilizing WIFI password corresponding with described SSID in described WIFI hot spot information list, detection success connects network.
Concrete, when mobile terminal WIFI function is opened, when scanning the WIFI hot spot carrying the SSID existed in WIFI hot spot information list, utilizing WIFI password corresponding with described SSID in described WIFI hot spot information list, detection success connects network.It is understandable that, when the WIFI function of mobile terminal is opened, described mobile terminal can also be dynamically connected the WIFI hot spot connected certainly, as, can from being not connected with the state of WIFI from being dynamically connected the WIFI hot spot scanned, it is also possible to be switched to, by the WIFI hot spot that signal is more weak, the WIFI hot spot that signal is stronger.If during the WIFI hot spot of the SSID that described mobile scanning terminal exists in WIFI hot spot information list, search the WIFI password with SSID associated record in WIFI hot spot information list, and connect network with this password attempt, to detect success connection network.
S204, when being successfully connected network, it is determined that described WIFI hot spot is the target WIFI hot spot possessing target connection attribute information.
Concrete, when network can be successfully connected, represent that described mobile terminal is able to automatically connect to this WIFI hot spot, and the connection attribute information of this WIFI hot spot is present in WIFI hot spot information list, therefore described mobile terminal determines that described WIFI hot spot is the target WIFI hot spot possessing target connection attribute information.
S205, if scan the target WIFI hot spot possessing target connection attribute information, it is determined that the current location of described mobile terminal.
Concrete, if described mobile scanning terminal is to the target WIFI hot spot that the target connection attribute information being present in WIFI hot spot information list is corresponding, determine the current location of described mobile terminal, in order to determine whether described mobile terminal can linking objective WIFI hot spot according to current location.
S206, in pre-recorded described WIFI hot spot information list, searches the target location corresponding with described target connection attribute information.
Concrete, described mobile terminal, in pre-recorded described WIFI hot spot information list, searches the target location corresponding with described target connection attribute information.Wherein, in described WIFI hot spot information list, also record has and the target location of described target connection attribute information association storage.In feasible scheme, described target location can be the position that mobile terminal connects network first according to described target connection attribute information, or mobile terminal connects multiple positions of network according to described target connection attribute information, or there is the position of binding relationship with described target connection attribute information in user record, this is not limited by the embodiment of the present invention.
S207, it is judged that whether the distance between described current location and described target location is less than predetermined threshold value.
Concrete, described mobile terminal judges that whether whether the distance between described current location and described target location is less than predetermined threshold value, judge current location with the target location recorded at the same area by described predetermined threshold value.When described mobile terminal judges the distance between described current location and described target location less than predetermined threshold value, perform step S208;When described mobile terminal judges that the distance between described current location and described target location is not less than predetermined threshold value, perform step S209.
S208, when judged result is for being, connects described target WIFI hot spot according to described target connection attribute information.
Concrete, when described mobile terminal judges the distance between described current location and described target location less than predetermined threshold value, the target location determining current location and record is at the same area, and described mobile terminal connects described target WIFI hot spot according to described target connection attribute information.
S209, when judged result is no, exports the prompting message whether connecting described target WIFI hot spot in described mobile terminal.
Concrete, when described mobile terminal judges that the distance between described current location and described target location is not less than predetermined threshold value, described mobile terminal exports the prompting message whether connecting described target WIFI hot spot, operate with the selection according to user and be determined, for example, described prompting message can show output in the display interface of described mobile terminal, it is also possible to exporting in the form of speech, this is not limited by the embodiment of the present invention.In feasible scheme, if user selects to connect described target WIFI hot spot, then described current location can be added in described WIFI hot spot information list by described mobile terminal, and stores with the target connection attribute information association of described target WIFI hot spot.
In embodiments of the present invention, when mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, determine the current location of mobile terminal, and in pre-recorded WIFI hot spot information list, search the target location corresponding with target connection attribute information, if the distance between current location and target location is less than predetermined threshold value, then linking objective WIFI hot spot.So at mobile terminal from being dynamically connected in the process of WIFI hot spot, by verifying that the position of mobile terminal decreases the risk that private data reveals, improve the safety of mobile terminal.
Below in conjunction with accompanying drawing 3-accompanying drawing 5, the mobile terminal that the embodiment of the present invention is provided describes in detail.It should be noted that the mobile terminal shown in accompanying drawing 3-accompanying drawing 5, for the method performing Fig. 1-embodiment illustrated in fig. 2 of the present invention, for the ease of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and refer to the embodiment shown in Fig. 1-Fig. 2 of the present invention.
Refer to Fig. 3, for embodiments providing the structural representation of a kind of mobile terminal.Determine unit 11, lookup unit 12, judging unit 13 as it is shown on figure 3, the described mobile terminal 1 of the embodiment of the present invention may include that and connect unit 14.
Determine unit 11, for when mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, determine the current location of described mobile terminal, wherein, described target connection attribute information refers to the connection attribute information existed in pre-recorded WIFI hot spot information list.
Concrete, when mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, described determine that unit 11 determines the current location of described mobile terminal.It is understandable that, when the WIFI function of mobile terminal is opened, described mobile terminal can also be dynamically connected the WIFI hot spot connected certainly, as, can from being not connected with the state of WIFI from being dynamically connected the WIFI hot spot scanned, it is also possible to be switched to, by the WIFI hot spot that signal is more weak, the WIFI hot spot that signal is stronger.nullWherein,Described target connection attribute information refers to the connection attribute information existed in pre-recorded WIFI hot spot information list,Such as,Described target connection attribute information connects into the connection attribute information of the WIFI hot spot of merits and demerits before can being mobile terminal,Or,It is by user record connection attribute information in WIFI hot spot information list,If described mobile scanning terminal is to the target WIFI hot spot that the target connection attribute information being present in WIFI hot spot information list is corresponding,Described determine that unit 11 determines the current location of described mobile terminal,In order to determine whether described mobile terminal can linking objective WIFI hot spot according to current location,In feasible scheme,The current location of described mobile terminal can be determined by location technology,Such as,GPS positions、Architecture、IP positions、Bluetooth location etc.,This is not limited by the embodiment of the present invention.
In feasible scheme, in described WIFI hot spot information list, record has the connection attribute information of one or more WIFI, wherein, described connection attribute information includes service set SSID and WIFI password, owing to when SSID and the WIFI password of WIFI hot spot is all verified, just can be successfully connected network, and then realize from being dynamically connected WIFI hot spot, if network can be connected, described determine that unit 11 determines the current location of mobile terminal, and current location is verified further.Except above-mentioned two parameter, described connection attribute information can also include Basic Service Set Identification BSSID, WIFI cipher mode etc., and this is not limited by the embodiment of the present invention.By multiple-authentication target WIFI hot spot, the mobile terminal safety from the WIFI hot spot that is dynamically connected more can be strengthened.
Search unit 12, for, in pre-recorded described WIFI hot spot information list, searching the target location corresponding with described target connection attribute information.
Concrete, described lookup unit 12, in pre-recorded described WIFI hot spot information list, searches the target location corresponding with described target connection attribute information.Wherein, in described WIFI hot spot information list, also record has and the target location of described target connection attribute information association storage.In feasible scheme, described target location can be the position that mobile terminal connects network first according to described target connection attribute information, is namely not connected with the WIFI hot spot that described target connection attribute information is corresponding before described mobile terminal;Or, mobile terminal connects multiple positions of network according to described target connection attribute information;Or, user record there is the position of binding relationship with described target connection attribute information, this is not limited by the embodiment of the present invention.
Judging unit 13, whether the distance being used for judging between described current location and described target location is less than predetermined threshold value.
Concrete, described judging unit 13 judges that whether whether the distance between described current location and described target location is less than predetermined threshold value, judge current location with the target location recorded at the same area by described predetermined threshold value.
Connect unit 14, for when described judging unit judges the distance between described current location and described target location less than described predetermined threshold value, connecting described target WIFI hot spot according to described target connection attribute information.
Concrete, when described judging unit 13 judges the distance between described current location and described target location less than predetermined threshold value, the target location determining current location and record is at the same area, and described connection unit 14 connects described target WIFI hot spot according to described target connection attribute information.
In embodiments of the present invention, when mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, determine the current location of mobile terminal, and in pre-recorded WIFI hot spot information list, search the target location corresponding with target connection attribute information, if the distance between current location and target location is less than predetermined threshold value, then linking objective WIFI hot spot.So at mobile terminal from being dynamically connected in the process of WIFI hot spot, by verifying that the position of mobile terminal decreases the risk that private data reveals, improve the safety of mobile terminal.
Refer to Fig. 4, for embodiments providing the structural representation of a kind of mobile terminal.As shown in Figure 4, the described mobile terminal 1 of the embodiment of the present invention may include that and determines unit 11, lookup unit 12, judging unit 13, connection unit 14, record unit 15, detection unit 16 and output unit 17.
Determine unit 11, for when described mobile terminal is successfully connected the WIFI hot spot being not connected with, it is determined that the position of described mobile terminal.
Concrete, when described mobile terminal is successfully connected the WIFI hot spot being not connected with, in other words, when described mobile terminal is successfully connected this WIFI hot spot first, described determine that unit 11 determines the position of described mobile terminal.It is understandable that, described mobile terminal is successfully connected the WIFI hot spot being not connected with, refer to the described mobile scanning terminal SSID to this WIFI hot spot, and by being successfully connected network with the described SSID WIFI password matched, SSID and the WIFI password of described WIFI hot spot can as the connection attribute information of described WIFI hot spot, described determine unit 11 it may also be determined that the attribute such as BSSID, WIFI cipher mode of described WIFI hot spot, and be added in connection attribute information.After being successfully connected network, described mobile terminal determines position by location technology, for instance, GPS location, architecture, IP location, bluetooth location etc., this is not limited by the embodiment of the present invention.
Record unit 15, for recording the connection attribute information of described WIFI hot spot and the position of described mobile terminal in WIFI hot spot information list.
Concrete, described record unit 15 connection attribute information of WIFI hot spot described in associated record and be successfully connected the position of described mobile terminal of described WIFI hot spot in WIFI hot spot information list.Described connection attribute information includes multiple attributes of above-mentioned introduction, does not repeat them here.
Detection unit 16, for when scanning the WIFI hot spot carrying the SSID existed in WIFI hot spot information list, utilizing WIFI password corresponding with described SSID in described WIFI hot spot information list, detection success connects network.
Concrete, when mobile terminal WIFI function is opened, when scanning the WIFI hot spot carrying the SSID existed in WIFI hot spot information list, utilize WIFI password corresponding with described SSID in described WIFI hot spot information list, described detection unit 16 to detect success and connect network.It is understandable that, when the WIFI function of mobile terminal is opened, described mobile terminal can also be dynamically connected the WIFI hot spot connected certainly, as, can from being not connected with the state of WIFI from being dynamically connected the WIFI hot spot scanned, it is also possible to be switched to, by the WIFI hot spot that signal is more weak, the WIFI hot spot that signal is stronger.If during the WIFI hot spot of the SSID that described mobile scanning terminal exists in WIFI hot spot information list, search the WIFI password with SSID associated record in WIFI hot spot information list, and connect network with this password attempt, to detect success connection network.
Described determine unit 11, be additionally operable to when network can be successfully connected, it is determined that described WIFI hot spot is the target WIFI hot spot possessing target connection attribute information.
Concrete, when network can be successfully connected, represent that described mobile terminal is able to automatically connect to this WIFI hot spot, and the connection attribute information of this WIFI hot spot is present in WIFI hot spot information list, therefore described determine that unit 11 determines that described WIFI hot spot is the target WIFI hot spot possessing target connection attribute information.
Described determine unit 11, for when mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, determine the current location of described mobile terminal, wherein, described target connection attribute information refers to the connection attribute information existed in pre-recorded WIFI hot spot information list.
Concrete, if described mobile scanning terminal is to the target WIFI hot spot that the target connection attribute information being present in WIFI hot spot information list is corresponding, described determine that unit 11 determines the current location of described mobile terminal, in order to determine whether described mobile terminal can linking objective WIFI hot spot according to current location.
Search unit 12, for, in pre-recorded described WIFI hot spot information list, searching the target location corresponding with described target connection attribute information.
Concrete, described lookup unit 12, in pre-recorded described WIFI hot spot information list, searches the target location corresponding with described target connection attribute information.Wherein, in described WIFI hot spot information list, also record has and the target location of described target connection attribute information association storage.In feasible scheme, described target location can be the position that mobile terminal connects network first according to described target connection attribute information, or mobile terminal connects multiple positions of network according to described target connection attribute information, or there is the position of binding relationship with described target connection attribute information in user record, this is not limited by the embodiment of the present invention.
Judging unit 13, whether the distance being used for judging between described current location and described target location is less than predetermined threshold value.
Concrete, described judging unit 13 judges that whether whether the distance between described current location and described target location is less than predetermined threshold value, judge current location with the target location recorded at the same area by described predetermined threshold value.When described judging unit 13 judges the distance between described current location and described target location less than predetermined threshold value, perform link unit 14;When described judging unit 13 judges that the distance between described current location and described target location is not less than predetermined threshold value, perform output unit 17.
Connect unit 14, for when described judging unit judges the distance between described current location and described target location less than described predetermined threshold value, connecting described target WIFI hot spot according to described target connection attribute information.
Concrete, when described judging unit 13 judges the distance between described current location and described target location less than predetermined threshold value, the target location determining current location and record is at the same area, and described connection unit 14 connects described target WIFI hot spot according to described target connection attribute information.
Output unit 17, for when described judging unit judges that the distance between described current location and described target location is not less than described predetermined threshold value, exporting the prompting message whether connecting described target WIFI hot spot in described mobile terminal.
Concrete, when described judging unit 13 judges that the distance between described current location and described target location is not less than predetermined threshold value, described output unit 17 exports the prompting message whether connecting described target WIFI hot spot in described mobile terminal, operate with the selection according to user and be determined, for example, described prompting message can show output in the display interface of described mobile terminal, it is also possible to exporting in the form of speech, this is not limited by the embodiment of the present invention.In feasible scheme, if user selects to connect described target WIFI hot spot, then described current location can be added in described WIFI hot spot information list by described mobile terminal, and stores with the target connection attribute information association of described target WIFI hot spot.
In embodiments of the present invention, when mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, determine the current location of mobile terminal, and in pre-recorded WIFI hot spot information list, search the target location corresponding with target connection attribute information, if the distance between current location and target location is less than predetermined threshold value, then linking objective WIFI hot spot.So at mobile terminal from being dynamically connected in the process of WIFI hot spot, by verifying that the position of mobile terminal decreases the risk that private data reveals, improve the safety of mobile terminal.
Referring to Fig. 5, for the structural representation of the another kind of mobile terminal that the embodiment of the present invention provides.As it is shown in figure 5, described mobile terminal 1000 includes at least one processor 1001, for instance CPU, at least one communication bus 1002, input equipment 1003, outut device 1004 and memorizer 1005.Wherein, described communication bus 1002 is for realizing the connection communication between these assemblies.It is first-class that input equipment 1003 can include display screen, keyboard, shooting.Outut device 1004 optionally can include display screen etc..Memorizer 1005 can be high-speed RAM memorizer, it is also possible to be non-labile memorizer (non-volatilememory), for instance at least one disk memory.Memorizer 1005 optionally can also is that at least one is located remotely from the storage device of aforementioned processor 1001.As the memorizer 1005 of a kind of computer-readable storage medium can include application program.
In the terminal 1000 shown in Fig. 5, processor 1001 may be used for calling the application program of storage in memorizer 1005, and specifically performs following steps:
When mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, determine the current location of described mobile terminal, wherein, described target connection attribute information refers to the connection attribute information existed in pre-recorded WIFI hot spot information list;
In pre-recorded described WIFI hot spot information list, search the target location corresponding with described target connection attribute information;
Judge that whether the distance between described current location and described target location is less than predetermined threshold value;
When judged result is for being, connect described target WIFI hot spot according to described target connection attribute information.
In one embodiment, described processor 1001 is when opening in mobile terminal WIFI function described in performing, if scan the target WIFI hot spot possessing target connection attribute information, before determining the current location of described mobile terminal, also perform following steps: when described mobile terminal is successfully connected the WIFI hot spot being not connected with, it is determined that the position of described mobile terminal;
WIFI hot spot information list records the connection attribute information of described WIFI hot spot and the position of described mobile terminal.
In one embodiment, described connection attribute information includes service set SSID and WIFI password.
In one embodiment, described processor 1001 is when mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, before determining the current location of described mobile terminal, also perform following steps: when scanning the WIFI hot spot carrying the SSID existed in WIFI hot spot information list, utilizing WIFI password corresponding with described SSID in described WIFI hot spot information list, detection success connects network;
When network can be successfully connected, it is determined that described WIFI hot spot is the target WIFI hot spot possessing target connection attribute information.
In one embodiment, described processor 1001 also performs following steps: when judged result is no, export the prompting message whether connecting described target WIFI hot spot in described mobile terminal.
In embodiments of the present invention, when mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, determine the current location of mobile terminal, and in pre-recorded WIFI hot spot information list, search the target location corresponding with target connection attribute information, if the distance between current location and target location is less than predetermined threshold value, then linking objective WIFI hot spot.So at mobile terminal from being dynamically connected in the process of WIFI hot spot, by verifying that the position of mobile terminal decreases the risk that private data reveals, improve the safety of mobile terminal.
In several embodiments provided herein, it should be understood that disclosed device, can realize by another way.Such as, device embodiment described above is merely schematic, the division of such as said units, it is only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, device or unit, it is possible to be electrical or other form.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, and the parts shown as unit can be or may not be physical location, namely may be located at a place, or can also be distributed on multiple NE.Some or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in various embodiments of the present invention can be integrated in a processing unit, it is also possible to be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, it would however also be possible to employ the form of SFU software functional unit realizes.
If above-mentioned integrated unit is using the form realization of SFU software functional unit and as independent production marketing or use, it is possible to be stored in a computer read/write memory medium.Based on such understanding, part or all or part of of this technical scheme that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product is stored in a storage medium, including some instructions with so that computer equipment (can be personal computer, server or the network equipment etc., can be specifically the processor in computer equipment) performs all or part of step of each embodiment said method of the present invention.Wherein, and aforesaid storage medium comprises the steps that USB flash disk, portable hard drive, magnetic disc, CD, read only memory are (English: Read-OnlyMemory, abbreviation: ROM) or random access memory (English: RandomAccessMemory, RAM) abbreviation: the various media that can store program code such as.
The above, above example only in order to technical scheme to be described, is not intended to limit;Although the present invention being described in detail with reference to previous embodiment, it will be understood by those within the art that: the technical scheme described in foregoing embodiments still can be modified by it, or wherein portion of techniques feature is carried out equivalent replacement;And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a WIFI method of attachment, it is characterised in that including:
When mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, determine the current location of described mobile terminal, wherein, described target connection attribute information refers to the connection attribute information existed in pre-recorded WIFI hot spot information list;
In pre-recorded described WIFI hot spot information list, search the target location corresponding with described target connection attribute information;
Judge that whether the distance between described current location and described target location is less than predetermined threshold value;
When judged result is for being, connect described target WIFI hot spot according to described target connection attribute information.
2. method according to claim 1, it is characterised in that described when mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, it is determined that before the current location of described mobile terminal, also include:
When described mobile terminal is successfully connected the WIFI hot spot being not connected with, it is determined that the position of described mobile terminal;
WIFI hot spot information list records the connection attribute information of described WIFI hot spot and the position of described mobile terminal.
3. method according to claim 1 and 2, it is characterised in that described connection attribute information includes service set SSID and WIFI password.
4. method according to claim 3, it is characterised in that described when mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, it is determined that before the current location of described mobile terminal, also include:
When scanning the WIFI hot spot carrying the SSID existed in WIFI hot spot information list, utilizing WIFI password corresponding with described SSID in described WIFI hot spot information list, detection success connects network;
When network can be successfully connected, it is determined that described WIFI hot spot is the target WIFI hot spot possessing target connection attribute information.
5. method according to claim 1 and 2, it is characterised in that described method also includes:
When judged result is no, described mobile terminal exports the prompting message whether connecting described target WIFI hot spot.
6. a mobile terminal, it is characterised in that including:
Determine unit, for when mobile terminal WIFI function is opened, if scan the target WIFI hot spot possessing target connection attribute information, determine the current location of described mobile terminal, wherein, described target connection attribute information refers to the connection attribute information existed in pre-recorded WIFI hot spot information list;
Search unit, for, in pre-recorded described WIFI hot spot information list, searching the target location corresponding with described target connection attribute information;
Judging unit, whether the distance being used for judging between described current location and described target location is less than predetermined threshold value;
Connect unit, for when described judging unit judges the distance between described current location and described target location less than described predetermined threshold value, connecting described target WIFI hot spot according to described target connection attribute information.
7. mobile terminal according to claim 6, it is characterised in that described mobile terminal also includes record unit:
Described determine unit, be additionally operable to when described mobile terminal is successfully connected the WIFI hot spot being not connected with, it is determined that the position of described mobile terminal;
Described record unit, for recording the connection attribute information of described WIFI hot spot and the position of described mobile terminal in WIFI hot spot information list.
8. the mobile terminal according to claim 6 or 7, it is characterised in that described connection attribute information includes service set SSID and WIFI password.
9. mobile terminal according to claim 8, it is characterised in that described mobile terminal also includes detection unit:
Described detection unit, for when scanning the WIFI hot spot carrying the SSID existed in WIFI hot spot information list, utilizing WIFI password corresponding with described SSID in described WIFI hot spot information list, detection success connects network;
Described determine unit, be additionally operable to when network can be successfully connected, it is determined that described WIFI hot spot is the target WIFI hot spot possessing target connection attribute information.
10. the mobile terminal according to claim 6 or 7, it is characterised in that described mobile terminal also includes:
Output unit, for when described judging unit judges that the distance between described current location and described target location is not less than described predetermined threshold value, exporting the prompting message whether connecting described target WIFI hot spot in described mobile terminal.
CN201610113282.5A 2016-02-29 2016-02-29 WIFI connection method and mobile terminal Pending CN105744523A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610113282.5A CN105744523A (en) 2016-02-29 2016-02-29 WIFI connection method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610113282.5A CN105744523A (en) 2016-02-29 2016-02-29 WIFI connection method and mobile terminal

Publications (1)

Publication Number Publication Date
CN105744523A true CN105744523A (en) 2016-07-06

Family

ID=56248779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610113282.5A Pending CN105744523A (en) 2016-02-29 2016-02-29 WIFI connection method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105744523A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107809806A (en) * 2017-11-23 2018-03-16 深圳天珑无线科技有限公司 Method for connecting network, network connection system and user terminal
CN108966315A (en) * 2018-06-07 2018-12-07 广州优视网络科技有限公司 Wireless network acquisition methods, device and electronic equipment
CN110636524A (en) * 2019-09-23 2019-12-31 中国联合网络通信集团有限公司 Personal hotspot naming method, mobile terminal and personal hotspot naming system
CN111757421A (en) * 2020-06-09 2020-10-09 四川虹美智能科技有限公司 Method and device for intelligent equipment network distribution
CN114710586A (en) * 2022-03-25 2022-07-05 惠州高盛达智显科技有限公司 WiFi automatic connection implementation method based on position relation
WO2023011289A1 (en) * 2021-08-06 2023-02-09 华为技术有限公司 Wi-fi connection method and apparatus based on location information

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103415013A (en) * 2013-08-26 2013-11-27 南京市海聚信息科技有限公司 Method and system for enabling WiFi terminal to have rapid access to WiFi AP
CN104244371A (en) * 2013-06-09 2014-12-24 中兴通讯股份有限公司 Method and system for starting WIFI module
CN104955028A (en) * 2015-06-23 2015-09-30 北京奇虎科技有限公司 Method, device and sensor for identifying phishing WIFI (wireless fidelity)
CN105323244A (en) * 2015-09-22 2016-02-10 小米科技有限责任公司 Method and device for network identification

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104244371A (en) * 2013-06-09 2014-12-24 中兴通讯股份有限公司 Method and system for starting WIFI module
CN103415013A (en) * 2013-08-26 2013-11-27 南京市海聚信息科技有限公司 Method and system for enabling WiFi terminal to have rapid access to WiFi AP
CN104955028A (en) * 2015-06-23 2015-09-30 北京奇虎科技有限公司 Method, device and sensor for identifying phishing WIFI (wireless fidelity)
CN105323244A (en) * 2015-09-22 2016-02-10 小米科技有限责任公司 Method and device for network identification

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107809806A (en) * 2017-11-23 2018-03-16 深圳天珑无线科技有限公司 Method for connecting network, network connection system and user terminal
CN108966315A (en) * 2018-06-07 2018-12-07 广州优视网络科技有限公司 Wireless network acquisition methods, device and electronic equipment
CN110636524A (en) * 2019-09-23 2019-12-31 中国联合网络通信集团有限公司 Personal hotspot naming method, mobile terminal and personal hotspot naming system
CN110636524B (en) * 2019-09-23 2022-07-19 中国联合网络通信集团有限公司 Personal hotspot naming method, mobile terminal and personal hotspot naming system
CN111757421A (en) * 2020-06-09 2020-10-09 四川虹美智能科技有限公司 Method and device for intelligent equipment network distribution
WO2023011289A1 (en) * 2021-08-06 2023-02-09 华为技术有限公司 Wi-fi connection method and apparatus based on location information
CN114710586A (en) * 2022-03-25 2022-07-05 惠州高盛达智显科技有限公司 WiFi automatic connection implementation method based on position relation

Similar Documents

Publication Publication Date Title
CN105744523A (en) WIFI connection method and mobile terminal
JP6014173B2 (en) Method, system, and terminal for performing Wi-Fi connection by NFC
CN104684048B (en) WIFI list shows method and apparatus
CN104966053A (en) Face recognition method and recognition system
CN104618905A (en) WIFI hotspot sharing method and mobile terminal
CN105593868A (en) Fingerprint identification method and apparatus, and mobile terminal
CN104837179A (en) Method and device for displaying wireless hotspot equipment producer information
CN103037476A (en) Control method for wireless network access and control device for wireless network access
JP2009146193A (en) Wireless communication terminal, method for protecting data of wireless communication terminal, program for having wireless communication terminal protect data, and recording medium storing the program
CN105306682A (en) Method and device for automatically disconnecting network connection
CN104320161A (en) Method and system for rapid Bluetooth pairing
CN105338659B (en) A kind of equipment connection method and terminal
CN106155596A (en) Method for writing data and device
CN107197462A (en) Detection method, device and the electronic equipment of wireless network type
CN104732390A (en) NFC (near field communication) based payment method and device
CN104967593A (en) Identity verification method, apparatus and system
CN103235923B (en) Obtain the method and device of checking mark
CN107567021A (en) A kind of method and apparatus for being used to carry out user equipment wireless connection pre-authorization
CN104486716A (en) Method and device for showing bluetooth name
JP2019510303A (en) Icon processing method and apparatus for application
CN105827816A (en) Screen splitting method for terminal screen, and mobile terminal
CN105718788B (en) A kind of malicious application processing method, device and terminal
CN104601262A (en) Information processing method and mobile equipment
CN105187653A (en) Turning off method and apparatus of network connecting switch
CN104780206A (en) Data sharing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160706

RJ01 Rejection of invention patent application after publication