CN105517189A - Method and apparatus for realizing WIFI connection - Google Patents

Method and apparatus for realizing WIFI connection Download PDF

Info

Publication number
CN105517189A
CN105517189A CN201510893721.4A CN201510893721A CN105517189A CN 105517189 A CN105517189 A CN 105517189A CN 201510893721 A CN201510893721 A CN 201510893721A CN 105517189 A CN105517189 A CN 105517189A
Authority
CN
China
Prior art keywords
wifi
ssid
mobile
determines
submodule
Prior art date
Application number
CN201510893721.4A
Other languages
Chinese (zh)
Other versions
CN105517189B (en
Inventor
赵建凯
鲍协浩
赵小平
Original Assignee
小米科技有限责任公司
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 小米科技有限责任公司 filed Critical 小米科技有限责任公司
Priority to CN201510893721.4A priority Critical patent/CN105517189B/en
Publication of CN105517189A publication Critical patent/CN105517189A/en
Application granted granted Critical
Publication of CN105517189B publication Critical patent/CN105517189B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The invention discloses a method and an apparatus for realizing WIFI connection, which are used for improving speed of WIFI connection. The method comprises the following steps of: when a mobile device is ready to build the WIFI connection, determining a current geographical position of the mobile device; determining a SSID of at least one first WIFI which is recorded in a WIFI connection record sheet and from which the distance to the current geographical position is in a preset range, wherein the WIFI connection record sheet is used for recording the SSID of the WIFI which the mobile device is logged in already; controlling the mobile device to scan in the SSID of the at least one first WIFI; and according to the scanning result, controlling the mobile device to build the WIFI connection. The technical scheme provided by the invention can reduce the number of times of WIFI scanning, shorten time for searching for WIFI and improve the speed of WIFI connection.

Description

Realize method and the device of WIFI connection

Technical field

The disclosure relates to field of terminal technology, particularly relates to a kind of method and the device that realize WIFI connection.

Background technology

Increasing of occasion (such as, various coffee shop, dining room, hotel, company) that arrive along with user, the WIFI that smart mobile phone connects also can increase, and smart mobile phone needs the login name of the WIFI of record and login password also can be on the increase.When smart mobile phone reopens WIFI, WIFI available near scanning, now, smart mobile phone needs to search the WIFI recorded, if the quantity of WIFI that smart mobile phone has recorded is more, then smart mobile phone needs the number of times scanned successively also can be more, such as, smart mobile phone have recorded 100 WIFI, then at least need scanning 100 times, cause and search the chronic of WIFI, the speed that WIFI connects is slower.

Summary of the invention

For overcoming Problems existing in correlation technique, disclosure embodiment provides a kind of method and the device that realize WIFI connection, in order to improve the speed that WIFI connects.

According to the first aspect of disclosure embodiment, a kind of method realizing WIFI and connect is provided, comprises:

When mobile device prepares to set up WIFI connection, determine the current geographic position of described mobile device;

Determine the SSID of at least one WIFI in current geographic position preset range described in the distance that records in WIFI linkage record table, wherein, described WIFI linkage record table is for recording the SSID of the listed WIFI of described mobile device;

Control described mobile device to scan in the SSID of at least one WIFI described;

Control described mobile device by scanning result and set up WIFI connection.

In one embodiment, described WIFI linkage record table also records the time point that SSID accesses WIFI, and described method also can comprise:

Determine the number of the SSID of the whole WIFI recorded in described WIFI linkage record table;

When described number exceedes predetermined threshold value, the time point according to the SSID access WIFI of described whole WIFI determines the SSID needing the WIFI deleted;

Delete the described SSID needing the WIFI deleted.

In one embodiment, the time point of the described access of the SSID according to described whole WIFI WIFI determines the SSID needing the WIFI deleted, and can comprise:

The time point determining to access WIFI from the SSID of described whole WIFI has been more than the SSID of at least one the 2nd WIFI of preset time period;

Determine the SSID of at least one the 3rd WIFI of non-recording mark in the SSID of at least one the 2nd WIFI described;

Determine that the SSID of at least one the 3rd WIFI described is the SSID needing the WIFI deleted.

In one embodiment, described by scanning result control described mobile device set up WIFI connect, can comprise:

Determine the SSID mated of the SSID of the WIFI that the SSID that whether there is at least one WIFI described in scanning result scans with described current geographic position;

When there is the SSID of coupling, determine the SSID that in the SSID of described coupling, signal is the strongest;

Control the described mobile device SSID the strongest with described signal to set up WIFI and be connected;

When there is not the SSID of coupling, the SSID controlling the WIFI that described mobile device is scanned by described current geographic position sets up WIFI and connects.

In one embodiment, described method also can comprise:

Described mobile device is set up WIFI to connect the SSID of corresponding WIFI, login password that described SSID is corresponding, set up the time that WIFI connects and be recorded in described WIFI linkage record table.

According to the second aspect of disclosure embodiment, a kind of device realizing WIFI and connect is provided, comprises:

First determination module, is configured to, when mobile device prepares to set up WIFI connection, determine the current geographic position of described mobile device;

Second determination module, be configured to the SSID of at least one WIFI in described current geographic position preset range that described in the distance determining to record in WIFI linkage record table, described first determination module is determined, wherein, described WIFI linkage record table is for recording the SSID of the listed WIFI of described mobile device;

Control module, be configured to control described mobile device determine at described second determination module described at least one WIFI SSID in scan, obtain scanning result;

WIFI link block, the described scanning result being configured to be obtained by control module is controlled described mobile device and sets up WIFI connection.

In one embodiment, described WIFI linkage record table also records the time point that SSID accesses WIFI, and described device also can comprise:

3rd determination module, is configured to the number of the SSID determining the whole WIFI recorded in described WIFI linkage record table;

4th determination module, is configured to when the described number that described 3rd determination module is determined exceedes predetermined threshold value, and the time point according to the SSID access WIFI of described whole WIFI determines the SSID needing the WIFI deleted;

Removing module, is configured to the SSID of the WIFI deleting the described needs deletion that described 4th determination module is determined.

In one embodiment, described 4th determination module can comprise:

First determines submodule, is configured to from the SSID of described whole WIFI, determine that the time point accessing WIFI has been more than the SSID of at least one the 2nd WIFI of preset time period;

Second determines submodule, is configured to determine the described first SSID determining at least one the 3rd WIFI of non-recording mark in the SSID of at least one the 2nd WIFI described that submodule is determined;

3rd determines submodule, is configured to determine that described second determines that the SSID of at least one the 3rd WIFI described that submodule is determined is the SSID needing the WIFI deleted.

In one embodiment, described WIFI link block can comprise:

4th determines submodule, is configured to the SSID mated of the SSID determining the WIFI that the SSID that whether there is at least one WIFI described in scanning result scans with described current geographic position;

5th determines submodule, is configured to, when the described 4th determines that submodule determines the SSID that there is coupling, determine the SSID that in the SSID of described coupling, signal is the strongest;

First controls submodule, is configured to control the strongest SSID of described signal that described mobile device and the described 5th determines that submodule is determined and sets up WIFI and be connected;

Second controls submodule, is configured to when the described 4th determines that submodule determines the SSID that there is not coupling, and the SSID controlling the WIFI that described mobile device is scanned by described current geographic position sets up WIFI and connects.

In one embodiment, described device also can comprise:

Logging modle, is configured to control described second described mobile device that submodule controls and sets up WIFI and connect the SSID of corresponding WIFI, login password that described SSID is corresponding, set up the time that WIFI connects and be recorded in described WIFI linkage record table.

According to the third aspect of disclosure embodiment, a kind of device realizing WIFI and connect is provided, comprises:

Processor;

For the memory of storage of processor executable instruction;

Wherein, described processor is configured to:

When mobile device prepares to set up WIFI connection, determine the current geographic position of described mobile device;

Determine the SSID of at least one WIFI in current geographic position preset range described in the distance that records in WIFI linkage record table, wherein, described WIFI linkage record table is for recording the SSID of the listed WIFI of described mobile device;

Control described mobile device to scan in the SSID of at least one WIFI described;

Control described mobile device by scanning result and set up WIFI connection.

The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: the SSID determining at least one WIFI in the distance current geographic position preset range that records in WIFI linkage record table, control mobile device to scan in the SSID of at least one WIFI, control mobile device by scanning result and set up WIFI connection, thus the number of times of WIFI scanning can be reduced, shorten the time of searching WIFI, improve the speed that WIFI connects.

And, when the number of the SSID of the whole WIFI recorded in WIFI linkage record table exceedes predetermined threshold value, time point according to the SSID access WIFI of whole WIFI determines the SSID needing the WIFI deleted, recorded many accumulation WIFI hot spot in WIFI linkage record table can be avoided, cause the WIFI connection speed of mobile device more and more slower.

Deleted by the SSID that will do not make marks, retain the SSID made marks, can guarantee that user has the SSID of specific demand not deleted, facilitate user can access fast when needs access this markd SSID, improve Consumer's Experience.

By determining the strongest SSID of signal in the SSID that mates, can guarantee that the network of user is experienced.

Connecting login password corresponding to SSID, SSID of corresponding WIFI by mobile device being set up WIFI, setting up the time that WIFI connects and be recorded in WIFI linkage record table, mobile device can be made again to need the SSID recorded by this to access WIFI network next time, avoid user to repeat manual input.

Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.

Accompanying drawing explanation

Accompanying drawing to be herein merged in specification and to form the part of this specification, shows embodiment according to the invention, and is used from specification one and explains principle of the present invention.

Fig. 1 is the flow chart realizing the method that WIFI connects according to an exemplary embodiment.

Fig. 2 A is the flow chart realizing the method that WIFI connects according to an exemplary embodiment one.

Fig. 2 B is the flow chart how determining the SSID needing the WIFI deleted according to an exemplary embodiment one.

Fig. 3 is the flow chart realizing the method that WIFI connects according to an exemplary embodiment two.

Fig. 4 is a kind of block diagram realizing the device that WIFI connects according to an exemplary embodiment.

Fig. 5 is the block diagram that another kind according to an exemplary embodiment realizes the device that WIFI connects.

Fig. 6 is a kind of block diagram being applicable to realize the device that WIFI connects according to an exemplary embodiment.

Embodiment

Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.

Fig. 1 is the flow chart realizing the method that WIFI connects according to an exemplary embodiment; This method realizing WIFI connection can be applied on mobile device (such as: smart mobile phone, panel computer), and as shown in Figure 1, this method realizing WIFI connection comprises the following steps S101-S104:

In step S101, when mobile device prepares to set up WIFI connection, determine the current geographic position of mobile device.

In one embodiment, can be determined mobile device current geographic position by the locating module on mobile device, locating module is such as GSP module etc.

In step s 102, determine the SSID of at least one WIFI in the distance current geographic position preset range that records in WIFI linkage record table, wherein, WIFI linkage record table is used for the SSID of the listed WIFI of record move equipment.

In one embodiment, can the service set (ServiceSetIdentifier, referred to as SSID) of WIFI that accessed of record move equipment and login password, the login time point of this SSID in WIFI linkage record table.Such as, mobile device had accessed the SSIDABC1 of Chaoyang coffee-house 1, the SSIDABC2 of Chaoyang coffee-house 2, the SSIDABC3 in restaurant, Chaoyang 3, the SSIDABC4 in Haidian hotel 1, the SSIDABC5 in Haidian 2, the SSIDABC6 in Hebei, the SSIDABC7 of Inner Mongol, the SSIDABC8 in Hainan, etc., then WIFI linkage record table can by the time point of above-mentioned SSID, corresponding login password and access WIFI with the mode record of list, and WIFI linkage record tableau format can see table 1.

Table 1

Geographical position SSID Login password Turn-on time point Chaoyang ABC1 1231 2015.10.30 Chaoyang ABC2 1232 2015.11.02 Chaoyang ABC3 1233 2015.05.09 Haidian ABC4 1234 2015.06.04 Haidian ABC5 1235 2015.01.12 Hebei ABC6 1236 2015.10.01 Inner Mongol ABC7 1237 2014.10.11 Hainan ABC8 1238 2014.1.12

In one embodiment, when current geographic position is the coordinate points being positioned at Chaoyang District, this coordinate points setting range (such as, 500 meters) within SSID be ABC1 and ABC2, the SSID of at least one WIFI corresponding to Chaoyang can be filtered out thus from above-mentioned table 1, also be ABC1 and ABC2, Chaoyang ABC3 is excluded.

In step s 103, control mobile device to scan in the SSID of at least one WIFI.

In one embodiment, mobile device scans from least one having filtered out above-mentioned one WIFI (i.e. ABC1 and ABC2), thus can avoid scanning search in turn from above-mentioned table 1, decreases the number of times of scanning.

In step S104, control mobile device by scanning result and set up WIFI connection.

In one embodiment, the SSID mated of the SSID of the WIFI that the SSID that whether there is at least one WIFI in scanning result scans with current geographic position is determined; When there is the SSID of coupling, determine the SSID that in the SSID mated, signal is the strongest; The SSID that control mobile device is the strongest with signal sets up WIFI and is connected; When there is not the SSID of coupling, the SSID controlling the WIFI that mobile device is scanned by current geographic position sets up WIFI and connects.

In the present embodiment, determine the SSID of at least one WIFI in the distance current geographic position preset range that records in WIFI linkage record table, control mobile device to scan in the SSID of at least one WIFI, control mobile device by scanning result and set up WIFI connection, thus the number of times of WIFI scanning can be reduced, shorten the time of searching WIFI, improve the speed that WIFI connects.

In one embodiment, WIFI linkage record table also records the time point that SSID accesses WIFI, and method also can comprise:

Determine the number of the SSID of the whole WIFI recorded in WIFI linkage record table;

Determine the SSID of the WIFI that needs are deleted according to the time point of the SSID access WIFI of whole WIFI when number exceedes predetermined threshold value;

Delete the SSID needing the WIFI deleted.

In one embodiment, the time point according to the SSID access WIFI of whole WIFI determines the SSID needing the WIFI deleted, and can comprise:

The time point determining to access WIFI from the SSID of whole WIFI has been more than the SSID of at least one the 2nd WIFI of preset time period;

Determine the SSID of at least one the 3rd WIFI of non-recording mark in the SSID of at least one the 2nd WIFI;

Determine that the SSID of at least one the 3rd WIFI is the SSID needing the WIFI deleted.

In one embodiment, control mobile device by scanning result and set up WIFI connection, can comprise:

Determine the SSID mated of the SSID of the WIFI that the SSID that whether there is at least one WIFI in scanning result scans with current geographic position;

When there is the SSID of coupling, determine the SSID that in the SSID mated, signal is the strongest;

The SSID that control mobile device is the strongest with signal sets up WIFI and is connected;

When there is not the SSID of coupling, the SSID controlling the WIFI that mobile device is scanned by current geographic position sets up WIFI and connects.

In one embodiment, method also can comprise:

Mobile device is set up WIFI to connect login password corresponding to SSID, SSID of corresponding WIFI, set up the time that WIFI connects and be recorded in WIFI linkage record table.

Concrete how to realize that WIFI connects, please refer to subsequent embodiment.

So far, the said method that disclosure embodiment provides, can reduce the number of times of WIFI scanning, shorten the time of searching WIFI, improves the speed that WIFI connects.

With specific embodiment, the technical scheme that disclosure embodiment provides is described below.

Fig. 2 A is the flow chart realizing the method that WIFI connects according to an exemplary embodiment one, and Fig. 2 B is the flow chart how determining the SSID needing the WIFI deleted according to an exemplary embodiment one; The said method that the present embodiment utilizes disclosure embodiment to provide, how to upgrade WIFI linkage record table and to carry out exemplary illustration in conjunction with above-mentioned table 1, as shown in Figure 2 A, comprises the steps:

In step s 201, the number of the SSID of the whole WIFI recorded in WIFI linkage record table is determined.

In step S202, when number exceedes predetermined threshold value, the time point according to the SSID access WIFI of whole WIFI determines the SSID needing the WIFI deleted.

In step S203, delete the SSID of the WIFI that the needs in WIFI linkage record table are deleted.

In one embodiment, the SSID that can record whole WIFI in WIFI linkage record table accesses the time point of WIFI, thus can determine according to time point the SSID needing the WIFI deleted, such as, the SSID exceeding the WIFI do not connected half a year can be deleted, to guarantee that the number of the SSID that WIFI linkage record table records is within some, such as, guarantee the SSID only recording 20 WIFI in WIFI linkage record table, recorded many accumulation WIFI hot spot in WIFI linkage record table can be avoided thus, cause the WIFI connection speed of mobile device more and more slower.In another embodiment, the SSID needing the WIFI deleted can also be determined according to time point and access number of times, such as will exceed setting-up time section and access number of times be less than certain threshold value SSID delete, thus the SSID of the WIFI that mobile device infrequently can be accessed deletes, reduce the SSID that WIFI linkage record table records.

The concrete SSID how determining the WIFI needing deletion, in one embodiment, as shown in Figure 2 B, determines to need the SSID of the WIFI deleted to comprise the steps:

In step S211, the time point determining to access WIFI from the SSID of the whole WIFI WIFI linkage record table has been more than the SSID of at least one the 2nd WIFI of preset time period.

In step S212, determine the SSID of at least one the 3rd WIFI of non-recording mark in the SSID of at least one the 2nd WIFI.

In step S213, determine that the SSID of at least one the 3rd WIFI is the SSID needing the WIFI deleted.

In one embodiment, preset time period can be arranged by User Defined, and such as, preset time period is half a year, then the SSID exceeding the WIFI do not accessed half a year can be deleted.In one embodiment, mark can be recorded in WIFI linkage record table, and such as, 1 expression marks, and 0 expression does not make marks.

Particularly, as shown in Table 1 above, current time is on November 01st, 2015, the SSID exceeding at least one the 2nd WIFI do not accessed half a year is ABC3, ABC5, ABC7, ABC8, if ABC7 is the SSID of the WIFI of user in the father and mother family of Inner Mongol, user may not need to delete this SSID, thus can by marking this SSID, thus this can have been made to do mark SSID not deleted when exceeding the time limit yet, and ABC3, ABC5, ABC8 may be the SSID that user accessed due to the factor such as business demand or tourism, and user is not to ABC3, ABC5, ABC8 makes marks, then ABC3, ABC5, ABC8 is the SSID of at least one the 3rd WIFI of the non-recording mark in the present embodiment, thus can by ABC3, ABC5, ABC8 is defined as the SSID needing to delete.

In the present embodiment, deleted by the SSID that will do not make marks, retain the SSID made marks, can guarantee that user has the SSID of specific demand not deleted, facilitate user can access fast when needs access this markd SSID, improve Consumer's Experience.

Fig. 3 is the flow chart realizing the method that WIFI connects according to an exemplary embodiment two; The said method that the present embodiment utilizes disclosure embodiment to provide, carries out exemplary illustration how to set up WIFI connection by scanning result control mobile device, as shown in Figure 3, comprises the steps:

In step S301, determining the SSID mated of the SSID of the WIFI that the SSID that whether there is at least one WIFI in scanning result scans with current geographic position, when there is the SSID of coupling, performing step S302, when there is not the SSID of coupling, perform step S304.

Such as, the SSID of the coupling of the SSID of the WIFI of current geographic position scanning comprises: BCD1, BCD2, BCD3, ABC1, ABC2.Because the SSID of at least one WIFI obtained by above-described embodiment includes ABC1, ABC2, now can determine the SSID that there is coupling, the SSID of this coupling is ABC1, ABC2.When the SSID of the coupling of the SSID of the WIFI of current geographic position scanning does not comprise above-mentioned ABC1, ABC2, then can determine the SSID that there is not coupling.

In step s 302, when there is the SSID of coupling, determining the SSID that in the SSID mated, signal is the strongest, performing step S303.

In one embodiment, due to the SSID of two or more coupling may be comprised, therefore can determine that in the SSID mated, signal is the strongest, such as, mobile device first can detect each self-corresponding signal strength signal intensity of ABC1, ABC2, from two, determine the SSID that signal strength signal intensity is maximum, thus can guarantee that the network of user is experienced.

In step S303, the SSID that control mobile device is the strongest with signal sets up WIFI and is connected, and flow process terminates.

In step s 304, when there is not the SSID of coupling, the SSID controlling the WIFI that mobile device is scanned by current geographic position sets up WIFI and connects, and performs step S305.

In step S305, mobile device is set up WIFI and connect login password corresponding to SSID, SSID of corresponding WIFI, set up the time that WIFI connects and be recorded in WIFI linkage record table, flow process terminates.

In one embodiment, user can be pointed out to need the SSID of the WIFI accessed by the mode of dialog box, such as, user sets up WIFI by BCD3 and connects.Also need to access this SSID in order to ensure user in the future, can by the login password of BCD3 and correspondence, set up the time that WIFI connects and be recorded in WIFI linkage record table, again need to access WIFI network by this BCD3 next time in order to mobile device.

In the present embodiment, when there is the SSID of coupling, determining the SSID that in the SSID mated, signal is the strongest, can guarantee that the network of user is experienced; Connecting login password corresponding to SSID, SSID of corresponding WIFI by mobile device being set up WIFI, setting up the time that WIFI connects and be recorded in WIFI linkage record table, mobile device can be made again to need the SSID recorded by this to access WIFI network next time, avoid user to repeat manual input.

Fig. 4 is a kind of block diagram realizing the device that WIFI connects according to an exemplary embodiment, and as shown in Figure 4, the device realizing WIFI connection comprises:

First determination module 41, is configured to, when mobile device prepares to set up WIFI connection, determine the current geographic position of mobile device.In one embodiment, the first determination module 41 can by the locating module determination mobile device current geographic position on mobile device, and locating module is such as GSP module etc.

Second determination module 42, the SSID of at least one WIFI in the current geographic position preset range that distance first determination module 41 being configured to determine to record in WIFI linkage record table is determined, wherein, WIFI linkage record table is used for the SSID of the listed WIFI of record move equipment.In one embodiment, can the service set (ServiceSetIdentifier, referred to as SSID) of WIFI that accessed of record move equipment and login password, the login time point of this SSID in WIFI linkage record table.Such as, mobile device had accessed the SSIDABC1 of Chaoyang coffee-house 1, the SSIDABC2 of Chaoyang coffee-house 2, the SSIDABC3 in restaurant, Chaoyang 3, the SSIDABC4 in Haidian hotel 1, the SSIDABC5 in Haidian 2, the SSIDABC6 in Hebei, the SSIDABC7 of Inner Mongol, the SSIDABC8 in Hainan, etc., then WIFI linkage record table can by the time point of above-mentioned SSID, corresponding login password and access WIFI with the mode record of list, and WIFI linkage record tableau format can see above-mentioned table 1.In one embodiment, when the current geographic position that the first determination module 41 is determined is the coordinate points being positioned at Chaoyang District, second determination module 42 determine this coordinate points setting range (such as, 500 meters) within SSID be ABC1 and ABC2, second determination module 42 can filter out the SSID of at least one WIFI corresponding to Chaoyang thus from above-mentioned table 1, also be ABC1 and ABC2, Chaoyang ABC3 is excluded.

Control module 43, is configured to control scan in the SSID of at least one WIFI that mobile device is determined at the second determination module 42, obtains scanning result.In one embodiment, control module 43 can scan from least one having filtered out above-mentioned one WIFI (i.e. ABC1 and ABC2), thus can avoid scanning search in turn from above-mentioned table 1, decreases the number of times of scanning.

WIFI link block 44, the scanning result being configured to be obtained by control module 43 is controlled mobile device and sets up WIFI connection.In one embodiment, WIFI link block 44 can determine the SSID mated of the SSID of the WIFI that the SSID that whether there is at least one WIFI in scanning result scans with current geographic position; When there is the SSID of coupling, determine the SSID that in the SSID mated, signal is the strongest; The SSID that control mobile device is the strongest with signal sets up WIFI and is connected; When there is not the SSID of coupling, the SSID controlling the WIFI that mobile device is scanned by current geographic position sets up WIFI and connects.

In the present embodiment, determine the SSID of at least one WIFI in the distance current geographic position preset range that records in WIFI linkage record table, control mobile device to scan in the SSID of at least one WIFI, control mobile device by scanning result and set up WIFI connection, thus the number of times of WIFI scanning can be reduced, shorten the time of searching WIFI, improve the speed that WIFI connects.

Fig. 5 is the block diagram that another kind according to an exemplary embodiment realizes the device that WIFI connects, as shown in Figure 5, on above-mentioned basis embodiment illustrated in fig. 4, in one embodiment, WIFI linkage record table also records the time point that SSID accesses WIFI, and device also can comprise:

3rd determination module 45, is configured to the number of the SSID of the whole WIFI recorded in the WIFI linkage record table determining that the second determination module 42 uses;

4th determination module 46, is configured to when the number that the 3rd determination module 45 is determined exceedes predetermined threshold value, and the time point according to the SSID access WIFI of whole WIFI determines the SSID needing the WIFI deleted;

Removing module 47, be configured to the SSID of the WIFI of the needs deletion that deletion the 4th determination module 46 is determined, the SSID of at least one WIFI in the current geographic position preset range that distance first determination module 41 recorded in the WIFI linkage record table after passing through renewal for the second determination module 42 is determined.

In one embodiment, the SSID that can record whole WIFI in WIFI linkage record table accesses the time point of WIFI, thus the 4th determination module 46 can be made can to determine to need according to time point the SSID of the WIFI deleted, such as, the SSID exceeding the WIFI do not connected half a year can delete by removing module 47, to guarantee that the number of the SSID that WIFI linkage record table records is within some, such as, guarantee the SSID only recording 20 WIFI in WIFI linkage record table, recorded many accumulation WIFI hot spot in WIFI linkage record table can be avoided thus, cause the WIFI connection speed of mobile device more and more slower.In another embodiment, 4th determination module 46 can also determine according to time point and access number of times the SSID needing the WIFI deleted, removing module 47 will exceed setting-up time section and access number of times be less than certain threshold value SSID delete, thus the SSID of the WIFI that mobile device infrequently can be accessed deletes, reduce the SSID that WIFI linkage record table records.

In one embodiment, the 4th determination module 46 can comprise:

First determines submodule 461, is configured to from the SSID of whole WIFI, determine that the time point accessing WIFI has been more than the SSID of at least one the 2nd WIFI of preset time period;

Second determines submodule 462, is configured to determine the first SSID determining at least one the 3rd WIFI of non-recording mark in the SSID of at least one the 2nd WIFI that submodule 461 is determined;

3rd determines submodule 463, is configured to determine that second determines that the SSID of at least one the 3rd WIFI that submodule 462 is determined is the SSID needing the WIFI deleted.

In one embodiment, preset time period can be arranged by User Defined, and such as, preset time period is half a year, then the SSID exceeding the WIFI do not accessed half a year can be deleted.In one embodiment, mark can be recorded in WIFI linkage record table, and such as, 1 expression marks, and 0 expression does not make marks.

Particularly, as shown in Table 1 above, current time is on November 01st, 2015, first determines that submodule 461 determines that the SSID exceeding at least one the 2nd WIFI do not accessed half a year is ABC3, ABC5, ABC7, ABC8, when ABC7 is the SSID of the WIFI of user in the father and mother family of Inner Mongol, user may not need to delete this SSID, thus can by marking this SSID, thus this can have been made to do mark SSID not deleted when exceeding the time limit yet, and ABC3, ABC5, ABC8 may be the SSID that user accessed due to the factor such as business demand or tourism, and user is not to ABC3, ABC5, ABC8 makes marks, then ABC3, ABC5, ABC8 is the SSID of at least one the 3rd WIFI of the non-recording mark in the present embodiment, thus can by ABC3, ABC5, ABC8 is defined as the SSID needing to delete.

By determining that by the 3rd the SSID do not made marks that submodule 463 is determined deletes, retain the SSID made marks, can guarantee that user has the SSID of specific demand not deleted, facilitate user can access fast when needs access this markd SSID, improve Consumer's Experience.

In one embodiment, WIFI link block 44 can comprise:

4th determines submodule 441, the SSID mated of the SSID of the WIFI that the SSID being configured to whether there is at least one WIFI in the scanning result determining that control module 43 obtains scans with current geographic position.Such as, the SSID of the coupling of the SSID of the WIFI of current geographic position scanning comprises: BCD1, BCD2, BCD3, ABC1, ABC2.Because the SSID of at least one WIFI obtained by above-described embodiment includes ABC1, ABC2, now the 4th determines that submodule 441 can determine to exist the SSID of coupling, and the SSID of this coupling is ABC1, ABC2.When the SSID of the coupling of the SSID of the WIFI of current geographic position scanning does not comprise above-mentioned ABC1, ABC2, then the 4th determines that submodule 441 can determine not exist the SSID of coupling.

5th determines submodule 442, is configured to, when the 4th determines that submodule 441 determines the SSID that there is coupling, determine the SSID that in the SSID mated, signal is the strongest.

First controls submodule 443, is configured to control SSID that mobile device and the 5th determines that signal that submodule 442 is determined is the strongest and sets up WIFI and be connected.

In one embodiment, due to the SSID of two or more coupling may be comprised, therefore the 5th determines that submodule 442 can determine that in the SSID mated, signal is the strongest, such as the 5th determines that submodule 442 first can determine each self-corresponding signal strength signal intensity of ABC1, ABC2, from two, determine the SSID that signal strength signal intensity is maximum, thus can guarantee that the network of user is experienced.

Second controls submodule 444, is configured to when the 4th determines that submodule 441 determines the SSID that there is not coupling, and the SSID controlling the WIFI that mobile device is scanned by current geographic position sets up WIFI and connects.

In one embodiment, device also can comprise:

Logging modle 48, is configured to control second the mobile device that controls of submodule 444 and sets up WIFI and connect login password corresponding to SSID, SSID of corresponding WIFI, set up the time that WIFI connects and be recorded in WIFI linkage record table.

In one embodiment, user can be pointed out to need the SSID of the WIFI accessed by the mode of dialog box, such as, user sets up WIFI by BCD3 and connects.Also need to access this SSID in order to ensure user in the future, logging modle 48 can by the login password of BCD3 and correspondence, set up the time that WIFI connects and be recorded in WIFI linkage record table, again need to access WIFI network by this BCD3 next time in order to mobile device.

In the present embodiment, when there is the SSID of coupling, the 5th determines that submodule 442 determines the SSID that in the SSID mated, signal is the strongest, can guarantee that the network of user is experienced; Mobile device set up WIFI by logging modle 48 to connect login password corresponding to SSID, SSID of corresponding WIFI, set up the time that WIFI connects and be recorded in WIFI linkage record table, mobile device can be made again to need the SSID recorded by this to access WIFI network next time, avoid user to repeat manual input.

Fig. 6 is a kind of block diagram being applicable to realize the device that WIFI connects according to an exemplary embodiment.Such as, device 600 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.

With reference to Fig. 6, device 600 can comprise following one or more assembly: processing components 602, memory 604, power supply module 606, multimedia groupware 608, audio-frequency assembly 610, the interface 612 of I/O (I/O), sensor cluster 614, and communications component 616.

The integrated operation of the usual control device 600 of processing components 602, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 602 can comprise one or more processor 620 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 602 can comprise one or more module, and what be convenient between processing components 602 and other assemblies is mutual.Such as, processing unit 602 can comprise multi-media module, mutual with what facilitate between multimedia groupware 608 and processing components 602.

Memory 604 is configured to store various types of data to be supported in the operation of equipment 600.The example of these data comprises for any application program of operation on device 600 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 604 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.

The various assemblies that electric power assembly 606 is device 600 provide electric power.Electric power assembly 606 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 600 and be associated.

Multimedia groupware 608 is included in the screen providing an output interface between described device 600 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 608 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 600 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.

Audio-frequency assembly 610 is configured to export and/or input audio signal.Such as, audio-frequency assembly 610 comprises a microphone (MIC), and when device 600 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 604 further or be sent via communications component 616.In certain embodiments, audio-frequency assembly 610 also comprises a loud speaker, for output audio signal.

I/O interface 612 is for providing interface between processing components 602 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.

Sensor cluster 614 comprises one or more transducer, for providing the state estimation of various aspects for device 600.Such as, sensor cluster 614 can detect the opening/closing state of equipment 600, the relative positioning of assembly, such as described assembly is display and the keypad of device 600, the position of all right checkout gear 600 of sensor cluster 614 or device 600 1 assemblies changes, the presence or absence that user contacts with device 600, the variations in temperature of device 600 orientation or acceleration/deceleration and device 600.Sensor cluster 614 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 614 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 614 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.

Communications component 616 is configured to the communication being convenient to wired or wireless mode between device 600 and other equipment.Device 600 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 616 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 616 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.

In the exemplary embodiment, device 600 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.

In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 604 of instruction, above-mentioned instruction can perform said method by the processor 620 of device 600.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.

Those skilled in the art, at consideration specification and after putting into practice disclosed herein disclosing, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.

Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (11)

1. realize the method that WIFI connects, it is characterized in that, described method comprises:
When mobile device prepares to set up WIFI connection, determine the current geographic position of described mobile device;
Determine the SSID of at least one in preset range of current geographic position the one WIFI described in the distance that records in WIFI linkage record table, wherein, described WIFI linkage record table is for recording the SSID of the listed WIFI of described mobile device;
Control described mobile device to scan in the SSID of at least one WIFI described;
Control described mobile device by scanning result and set up WIFI connection.
2. method according to claim 1, is characterized in that, described WIFI linkage record table also records the time point that SSID accesses WIFI, and described method also comprises:
Determine the number of the SSID of the whole WIFI recorded in described WIFI linkage record table;
When described number exceedes predetermined threshold value, the time point according to the SSID access WIFI of described whole WIFI determines the SSID needing the WIFI deleted;
Delete the described SSID needing the WIFI deleted.
3. method according to claim 2, is characterized in that, the time point of the described access of the SSID according to described whole WIFI WIFI determines the SSID needing the WIFI deleted, and comprising:
The time point determining to access WIFI from the SSID of described whole WIFI has been more than the SSID of at least one the 2nd WIFI of preset time period;
Determine the SSID of at least one the 3rd WIFI of non-recording mark in the SSID of at least one the 2nd WIFI described;
Determine that the SSID of at least one the 3rd WIFI described is the SSID needing the WIFI deleted.
4. method according to claim 1, is characterized in that, described by scanning result control described mobile device set up WIFI connect, comprising:
Determine the SSID mated of the SSID of the WIFI that the SSID that whether there is at least one WIFI described in scanning result scans with described current geographic position;
When there is the SSID of coupling, determine the SSID that in the SSID of described coupling, signal is the strongest, and control the described mobile device SSID the strongest with described signal and set up WIFI and be connected;
When there is not the SSID of coupling, the SSID controlling the WIFI that described mobile device is scanned by described current geographic position sets up WIFI and connects.
5. method according to claim 4, is characterized in that, described method also comprises:
Described mobile device is set up WIFI to connect the SSID of corresponding WIFI, login password that described SSID is corresponding, set up the time that WIFI connects and be recorded in described WIFI linkage record table.
6. realize the device that WIFI connects, it is characterized in that, described device comprises:
First determination module, is configured to, when mobile device prepares to set up WIFI connection, determine the current geographic position of described mobile device;
Second determination module, be configured to the SSID of at least one WIFI in described current geographic position preset range that described in the distance determining to record in WIFI linkage record table, described first determination module is determined, wherein, described WIFI linkage record table is for recording the SSID of the listed WIFI of described mobile device;
Control module, be configured to control described mobile device determine at described second determination module described at least one WIFI SSID in scan, obtain scanning result;
WIFI link block, the described scanning result being configured to be obtained by control module is controlled described mobile device and sets up WIFI connection.
7. device according to claim 6, is characterized in that, described WIFI linkage record table also records the time point that SSID accesses WIFI, and described device also comprises:
3rd determination module, is configured to the number of the SSID determining the whole WIFI recorded in described WIFI linkage record table;
4th determination module, is configured to when the described number that described 3rd determination module is determined exceedes predetermined threshold value, and the time point according to the SSID access WIFI of described whole WIFI determines the SSID needing the WIFI deleted;
Removing module, is configured to the SSID of the WIFI deleting the described needs deletion that described 4th determination module is determined.
8. device according to claim 7, is characterized in that, described 4th determination module comprises:
First determines submodule, is configured to from the SSID of described whole WIFI, determine that the time point accessing WIFI has been more than the SSID of at least one the 2nd WIFI of preset time period;
Second determines submodule, is configured to determine the described first SSID determining at least one the 3rd WIFI of non-recording mark in the SSID of at least one the 2nd WIFI described that submodule is determined;
3rd determines submodule, is configured to determine that described second determines that the SSID of at least one the 3rd WIFI described that submodule is determined is the SSID needing the WIFI deleted.
9. device according to claim 6, is characterized in that, described WIFI link block comprises:
4th determines submodule, is configured to the SSID mated of the SSID determining the WIFI that the SSID that whether there is at least one WIFI described in scanning result scans with described current geographic position;
5th determines submodule, is configured to, when the described 4th determines that submodule determines the SSID that there is coupling, determine the SSID that in the SSID of described coupling, signal is the strongest;
First controls submodule, is configured to control the strongest SSID of described signal that described mobile device and the described 5th determines that submodule is determined and sets up WIFI and be connected;
Second controls submodule, is configured to when the described 4th determines that submodule determines the SSID that there is not coupling, and the SSID controlling the WIFI that described mobile device is scanned by described current geographic position sets up WIFI and connects.
10. device according to claim 9, is characterized in that, described device also comprises:
Logging modle, is configured to control described second described mobile device that submodule controls and sets up WIFI and connect the SSID of corresponding WIFI, login password that described SSID is corresponding, set up the time that WIFI connects and be recorded in described WIFI linkage record table.
11. 1 kinds of devices realizing WIFI and connect, it is characterized in that, described device comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
When mobile device prepares to set up WIFI connection, determine the current geographic position of described mobile device;
Determine the SSID of at least one WIFI in current geographic position preset range described in the distance that records in WIFI linkage record table, wherein, described WIFI linkage record table is for recording the SSID of the listed WIFI of described mobile device;
Control described mobile device to scan in the SSID of at least one WIFI described;
Control described mobile device by scanning result and set up WIFI connection.
CN201510893721.4A 2015-11-27 2015-11-27 Method and device for realizing WIFI connection CN105517189B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510893721.4A CN105517189B (en) 2015-11-27 2015-11-27 Method and device for realizing WIFI connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510893721.4A CN105517189B (en) 2015-11-27 2015-11-27 Method and device for realizing WIFI connection

Publications (2)

Publication Number Publication Date
CN105517189A true CN105517189A (en) 2016-04-20
CN105517189B CN105517189B (en) 2020-02-07

Family

ID=55724720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510893721.4A CN105517189B (en) 2015-11-27 2015-11-27 Method and device for realizing WIFI connection

Country Status (1)

Country Link
CN (1) CN105517189B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105873172A (en) * 2016-05-31 2016-08-17 努比亚技术有限公司 Method and device for searching for wireless local area network signals
CN105898705A (en) * 2016-06-24 2016-08-24 维沃移动通信有限公司 Method for controlling scanning frequency of wireless local area network and mobile terminal
CN106162827A (en) * 2016-08-16 2016-11-23 Tcl移动通信科技(宁波)有限公司 A kind of Network Access Point storage processing method based on mobile terminal and system
WO2018006505A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Information processing method and apparatus
CN108769401A (en) * 2018-05-23 2018-11-06 Oppo广东移动通信有限公司 Signal detecting method and related product
CN108882229A (en) * 2018-05-31 2018-11-23 上海连尚网络科技有限公司 Information processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104507078A (en) * 2014-12-15 2015-04-08 乐视致新电子科技(天津)有限公司 Method and device for managing wireless hotspot information
CN104582000A (en) * 2014-12-31 2015-04-29 广东欧珀移动通信有限公司 Method and mobile terminal for wireless hotspot treatment
CN104640174A (en) * 2015-02-05 2015-05-20 腾讯科技(深圳)有限公司 Method and device for promoting wireless network access points
WO2015131562A1 (en) * 2014-09-22 2015-09-11 中兴通讯股份有限公司 Wifi connecting method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015131562A1 (en) * 2014-09-22 2015-09-11 中兴通讯股份有限公司 Wifi connecting method and device
CN104507078A (en) * 2014-12-15 2015-04-08 乐视致新电子科技(天津)有限公司 Method and device for managing wireless hotspot information
CN104582000A (en) * 2014-12-31 2015-04-29 广东欧珀移动通信有限公司 Method and mobile terminal for wireless hotspot treatment
CN104640174A (en) * 2015-02-05 2015-05-20 腾讯科技(深圳)有限公司 Method and device for promoting wireless network access points

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105873172A (en) * 2016-05-31 2016-08-17 努比亚技术有限公司 Method and device for searching for wireless local area network signals
CN105898705A (en) * 2016-06-24 2016-08-24 维沃移动通信有限公司 Method for controlling scanning frequency of wireless local area network and mobile terminal
CN105898705B (en) * 2016-06-24 2019-06-07 维沃移动通信有限公司 A kind of method and mobile terminal of the scan frequency controlling WLAN
WO2018006505A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Information processing method and apparatus
CN106162827A (en) * 2016-08-16 2016-11-23 Tcl移动通信科技(宁波)有限公司 A kind of Network Access Point storage processing method based on mobile terminal and system
CN108769401A (en) * 2018-05-23 2018-11-06 Oppo广东移动通信有限公司 Signal detecting method and related product
CN108769401B (en) * 2018-05-23 2020-12-08 Oppo广东移动通信有限公司 Signal detection method and related product
CN108882229A (en) * 2018-05-31 2018-11-23 上海连尚网络科技有限公司 Information processing method and device

Also Published As

Publication number Publication date
CN105517189B (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN104038263B (en) Method and device for establishing Bluetooth connection
EP2975821B1 (en) Network connection method and apparatus
CN104780155B (en) Apparatus bound method and device
CN104683938A (en) Configuration method and device for intelligent equipment
CN104159218B (en) Internetwork connection establishing method and device
CN104219092B (en) The compatibility method of a kind of router administration application and router firmware and device
CN103926890A (en) Intelligent terminal control method and device
CN104735057A (en) Sharing device control right method and device
CN105224195A (en) Terminal operation method and device
CN104010222A (en) Method, device and system for displaying comment information
CN104793739A (en) Play control method and device
CN105242556A (en) A speech control method and device of intelligent devices, a control device and the intelligent device
CN105491113A (en) Migrating method, device and terminal
CN104936304A (en) Intelligent equipment binding method, intelligent equipment, and server
CN104753766A (en) Expression sending method and device
CN104460365A (en) Equipment control method and device
CN104283745A (en) Method, device and system for controlling intelligent household equipment
CN105094962A (en) Application disabled method and apparatus
CN104394263A (en) Accessing point list displaying method and device
CN105228224A (en) The cut-in method of wireless network and device
CN104105169B (en) From method and the device of the WLAN (wireless local area network) that is dynamically connected
CN104660685A (en) Method and device for obtaining equipment information
CN105407036A (en) Red envelope sending method and device
CN104519282A (en) Image shooting method and device
CN105677316A (en) Message notification filtering method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
GR01 Patent grant