CN105491642B - The method and apparatus of network connection - Google Patents

The method and apparatus of network connection Download PDF

Info

Publication number
CN105491642B
CN105491642B CN201510829273.1A CN201510829273A CN105491642B CN 105491642 B CN105491642 B CN 105491642B CN 201510829273 A CN201510829273 A CN 201510829273A CN 105491642 B CN105491642 B CN 105491642B
Authority
CN
China
Prior art keywords
access point
wifi access
connection
time
away
Prior art date
Application number
CN201510829273.1A
Other languages
Chinese (zh)
Other versions
CN105491642A (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 CN201510829273.1A priority Critical patent/CN105491642B/en
Publication of CN105491642A publication Critical patent/CN105491642A/en
Application granted granted Critical
Publication of CN105491642B publication Critical patent/CN105491642B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The disclosure is directed to a kind of method and apparatus of network connection.Wherein, this method comprises: obtaining the connection number of the WIFI access point connected, and, away from the Connection Time that current time is nearest;According to the connection number of the WIFI access point connected, and, away from the Connection Time that current time is nearest, calculate the connection weight of the WIFI access point;According to the connection weight of the WIFI access point, WIFI access point to be scanned is filtered out.Since the terminal device WIFI access point to be scanned is the WIFI access point filtered out according to nearest Connection Time and connection number, the WIFI number of access point to be scanned is few, and sweep time is reduced, and improves connection speed when opening WIFI.

Description

The method and apparatus of network connection

Technical field

This disclosure relates to internet area, more particularly to the method and apparatus of network connection.

Background technique

Some terminal device can record the WIFI access point connected in the related technology, in this way, user opens After WIFI, terminal device can scan all WIFI access points once connected.

The WIFI access point that terminal device connected constantly increases with the time, and such as in various coffee shops, dining room is public Department, the WIF access point, etc. that family connected.Therefore, the WIFI access point that terminal device was recorded once connected also is got over Come more, this results in the terminal device scans time increasingly longer, and the connection speed of WIFI is slower and slower.

Summary of the invention

To overcome the problems in correlation technique, the disclosure provides a kind of method and apparatus of network connection.

According to the first aspect of the embodiments of the present disclosure, a kind of method for WIF connection is provided, comprising: acquisition connected WIFI access point connection number, and, away from the Connection Time that current time is nearest;According to the WIFI access point connected Number is connected, and, away from the Connection Time that current time is nearest, calculate the connection weight of the WIFI access point;According to described The connection weight of WIFI access point filters out WIFI access point to be scanned.

The technical scheme provided by this disclosed embodiment can include the following benefits: since embodiment of the disclosure mentions The technical solution of confession according to the connection number of the WIFI access point connected, and, away from the Connection Time that current time is nearest, meter The connection weight for calculating the WIFI access point filters out WIFI to be scanned and connects according to the connection weight of the WIFI access point Access point, therefore, the terminal device WIFI access point to be scanned were filtered out according to nearest Connection Time and connection number WIFI access point, the WIFI number of access point to be scanned is few, and sweep time is reduced, and improves connection speed when opening WIFI.

It is described according to the WIFI connected in the first possible embodiment of embodiment of the present disclosure first aspect The connection number of access point, and, away from the Connection Time that current time is nearest, calculate the connection weight packet of the WIFI access point It includes: according to the corresponding weight component of the connection number of the WIFI access point connected, and, when away from current time nearest connection Between corresponding weight component, calculate the connection weight of the WIFI access point;Wherein, the connection time of the WIFI access point connected The corresponding weight component of number, as connection number increases and increases, the WIFI access point connected the company nearest away from current time Time corresponding weight component is connect, is increased as the time promotes.

The technical scheme provided by this disclosed embodiment can include the following benefits: in this embodiment, due to The corresponding weight component of the connection number of the WIFI access point connected, as connection number increases and increases, and connects WIFI access point increases, therefore, recently away from corresponding weight component of nearest Connection Time at current time as the time promotes The connection weight of common WIFI access point is bigger, and the connection weight for the WIFI access point being of little use recently is smaller.To the reality The mode of applying can more accurately filter out common WIFI access point recently according to the size of the connection weight of WIFI access point As WIFI access point to be scanned, improves, subtract so that terminal device was quickly scanned to a possibility that available WIFI access point Few sweep time, improve connection speed.

In conjunction with the first possible embodiment of embodiment of the present disclosure first aspect, in second of possible embodiment party In formula, X=(Ti-Tmin)*K1/(Tmax-Tmin);Y=(Ci-Cmin)*K2/(Cmax-Cmin).Wherein, Y is described connected The corresponding weight component of the connection number of WIFI access point;X is that the WIFI access point connected is nearest away from current time Connection Time corresponding weight component;TiIndicate the WIFI access point connected the Connection Time nearest away from current time; TmaxIndicate acquired all WIFI access points away from nearest Connection Time at current time, Connection Time the latest;TminTable Show acquired all WIFI access points away from nearest Connection Time at current time, the earliest Connection Time;CiDescribed in expression The connection number of the WIFI access point connected;CmaxIndicate the maximum in the connection number of acquired all WIFI access points Value;CminIndicate the minimum value in the connection number of acquired all WIFI access points;K1Indicate the weight system of Connection Time Number, K2Indicate the weight coefficient of connection number, K1And K2For positive number.

The technical scheme provided by this disclosed embodiment can include the following benefits: in this embodiment, due to X =(Ti-Tmin)*K1/(Tmax-Tmin), Y=(Ci-Cmin)*K2/(Cmax-Cmin), enable connection weight more accurately table Reveal and increase as connection number increases, the characteristics of increase as the time promotes, so that being screened according to connection weight wait sweep It can be filtered out when the WIFI access point retouched and more accurately commonly use WIFI access point recently.

In conjunction with second of possible embodiment of embodiment of the present disclosure first aspect, in the third possible embodiment party In formula, Z=X+Y.Wherein, Z is the connection weight of the WIFI access point connected.

The technical scheme provided by this disclosed embodiment can include the following benefits: in this embodiment, due to Z =X+Y enables connection weight more accurately to show to increase as connection number increases, increases as the time promotes Big feature to filter out when screening WIFI access point to be scanned according to connection weight and more accurately commonly use recently WIFI access point.

In conjunction with the first possible embodiment of embodiment of the present disclosure first aspect, in the 4th kind of possible embodiment party In formula, the connection number for obtaining the WIFI access point connected, and, include: away from the nearest Connection Time at current time From WIFI access point linkage record, the connection number of WIFI access point connected is obtained, and, it is nearest away from current time Connection Time.The connection weight according to the WIFI access point, filtering out WIFI access point to be scanned includes: according to institute The connection weight for stating WIFI access point deletes the WIFI for exceeding preset quantity threshold portion in the WIFI access point linkage record Access point obtains the WIFI access point linkage record of update, wherein the connection weight of the WIFI access point of deletion, which is respectively less than, to be retained WIFI access point connection weight.

The technical scheme provided by this disclosed embodiment can include the following benefits: in this embodiment, due to The WIFI access for being limited, and being deleted according to quantity of the preset quantity threshold value to the WIFI access point being retained in linkage record The connection weight of point is respectively less than the connection weight of the WIFI access point retained, it may therefore be assured that the WIFI access point updated connects Connecing retain in record is common WIFI access point recently, and terminal device is directly in the WIFI access point linkage record of update The WIFI access point of reservation is scanned, and the WIFI number of access point to be scanned is few, and sweep time is reduced, and is improved and is opened WIFI When connection speed.

In conjunction with the 4th kind of possible embodiment of embodiment of the present disclosure first aspect, in the 5th kind of possible embodiment party In formula, the connection weight according to the WIFI access point and the amount threshold connect from the WIFI access point and remember In record, the WIFI access point for exceeding the amount threshold part is deleted, the WIFI access point linkage record for obtaining update includes: to work as When the quantity of the WIFI access point in the WIFI access point linkage record is more than the amount threshold, determines and delete institute State the smallest WIFI access point of connection weight in WIFI access point linkage record;Recorded in WIFI access point linkage record When the quantity of WIFI access point is less than or equal to the amount threshold, the WIFI access point linkage record of update is obtained.

The technical scheme provided by this disclosed embodiment can include the following benefits: in this embodiment, pass through The smallest WIFI access point of connection weight is determined and deleted, can accurately make the connection weight for the WIFI access point deleted small In the connection weight of the WIFI access point of reservation, it may therefore be assured that is retained in the WIFI access point linkage record updated is Common WIFI access point recently, terminal device is directly to the WIFI access point retained in the WIFI access point linkage record of update It is scanned, the WIFI number of access point to be scanned is few, and sweep time is reduced, and improves connection speed when opening WIFI.

According to the second aspect of an embodiment of the present disclosure, a kind of device of network connection is provided, comprising: linkage record obtains mould Block is configured as obtaining the connection number of the WIFI access point connected, and, away from the Connection Time that current time is nearest.Even Weight calculation module is connect, is configured as obtaining the connection for the WIFI access point connected that module obtains according to the linkage record Number, and, away from the Connection Time that current time is nearest, calculate the connection weight of the WIFI access point.Access point screens mould Block is configured as the connection weight of the WIFI access point calculated according to the connection weight computing module, filters out wait sweep The WIFI access point retouched.

In the first possible embodiment of embodiment of the present disclosure the second aspect, the connection weight computing module It is configured as obtaining the corresponding weight of connection number for the WIFI access point connected that module obtains according to the linkage record Component, and, away from corresponding weight component of nearest Connection Time at current time, calculate the connection weight of the WIFI access point Weight.Wherein, the corresponding weight component of the connection number of the WIFI access point connected, as connection number increases and increases, even The WIFI access point taken over increases away from corresponding weight component of nearest Connection Time at current time as the time promotes.

In conjunction with the first possible embodiment of embodiment of the present disclosure the second aspect, in second of possible embodiment party In formula, X=(Ti-Tmin)*K1/(Tmax-Tmin);Y=(Ci-Cmin)*K2/(Cmax-Cmin).Wherein, Y is described connected The corresponding weight component of the connection number of WIFI access point;X is that the WIFI access point connected is nearest away from current time Connection Time corresponding weight component;TiIndicate the WIFI access point connected the Connection Time nearest away from current time; TmaxIndicate acquired all WIFI access points away from nearest Connection Time at current time, Connection Time the latest;TminTable Show acquired all WIFI access points away from nearest Connection Time at current time, the earliest Connection Time;CiDescribed in expression The connection number of the WIFI access point connected;CmaxIndicate the maximum in the connection number of acquired all WIFI access points Value;CminIndicate the minimum value in the connection number of acquired all WIFI access points;K1Indicate the weight system of Connection Time Number, K2Indicate the weight coefficient of connection number, K1And K2For positive number.

In conjunction with second of possible embodiment of embodiment of the present disclosure the second aspect, in the third possible embodiment party In formula, Z=X+Y;Wherein, Z is the connection weight of the WIFI access point connected.

In conjunction with the first possible embodiment of embodiment of the present disclosure the second aspect, in the 4th kind of possible embodiment party In formula, the linkage record obtains module and is configured as from WIFI access point linkage record, obtains the WIFI access connected The connection number of point, and, away from the Connection Time that current time is nearest.Described access point screening module is configured as according to The connection weight of WIFI access point is deleted the WIFI in the WIFI access point linkage record beyond preset quantity threshold portion and is connect Access point obtains the WIFI access point linkage record of update, wherein the connection weight of the WIFI access point of deletion is respectively less than reservation The connection weight of WIFI access point.

In conjunction with the 4th kind of possible embodiment of embodiment of the present disclosure the second aspect, in the 5th kind of possible embodiment party In formula, described access point screening module is configured as the number when the WIFI access point in the WIFI access point linkage record When amount is more than the amount threshold, determines and delete the smallest WIFI access of connection weight in the WIFI access point linkage record Point, when the quantity of the WIFI access point recorded in WIFI access point linkage record is less than or equal to the amount threshold, Obtain the WIFI access point linkage record updated.

According to the third aspect of an embodiment of the present disclosure, a kind of device of network connection is provided, comprising: processor;For depositing Store up the memory of processor-executable instruction;Wherein, the processor is configured to: obtain the company of WIFI access point connected Number is connect, and, away from the Connection Time that current time is nearest;According to the connection number of the WIFI access point connected, and, away from Nearest Connection Time at current time, calculate the connection weight of the WIFI access point;According to the connection of the WIFI access point Weight filters out WIFI access point to be scanned.

It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.

Detailed description of the invention

The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.

Fig. 1 is a kind of structural schematic diagram of implementation environment shown according to an exemplary embodiment.

Fig. 2 is a kind of flow chart of the method for network connection shown according to an exemplary embodiment.

Fig. 3 is a kind of flow chart of the method for the network connection shown according to another exemplary embodiment.

Fig. 4 is a kind of flow chart of the method for the network connection shown according to a further exemplary embodiment.

Fig. 5 is a kind of device block diagram of network connection shown according to an exemplary embodiment.

Fig. 6 is a kind of device block diagram of the network connection shown according to another exemplary embodiment.

Specific embodiment

Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.

Fig. 1 is a kind of structural schematic diagram of implementation environment shown according to an exemplary embodiment.As shown in Figure 1, the reality Applying environment may include: terminal device 110, WIFI access point 120.Terminal device 110 can be smart phone, tablet computer, PC machine, laptop etc..In Fig. 1, terminal device 110 is illustrated by taking smart phone as an example.WIFI access point 120 is Refer to Wireless Fidelity, Wireless Fidelity access point.

Fig. 2 is a kind of flow chart of the method for network connection shown according to an exemplary embodiment.This method can answer For terminal device 110 shown in Fig. 1.This method may comprise steps of:

In step 210, the connection number of the WIFI access point connected is obtained, and, away from the company that current time is nearest Connect the time.

For example, a note to the WIFI access point can be increased newly when scanning every time and being connected to new WIFI access point Record item.Wherein, in the entry of the corresponding WIFI access point, connection number and Connection Time be can recorde.It is scanning every time And when being connected to the WIFI access point recorded, the current Connection Time of the corresponding entry of WIFI access point can be carried out It updates, and connection number is accumulated once.It is connect in this way, WIFI access point linkage record can be read to obtain the WIFI connected The connection number of access point, and, away from the Connection Time that current time is nearest.

In a step 220, according to the connection number of the WIFI access point connected, and, away from the company that current time is nearest The time is connect, the connection weight of the WIFI access point is calculated.

It should be noted that the embodiment of the present disclosure is to the connection number according to the WIFI access point connected, and, away from working as Nearest Connection Time at preceding moment, the implementation for calculating the connection weight of the WIFI access point are unlimited.

In a kind of possible embodiment, for example, multiple time zones can be divided from default earliest time to current time Between, the corresponding weight value of a time interval, the nearlyr weight value of time interval can be bigger.It can be by WIFI access point Connection number, it is direct away from the corresponding weight value of time interval where nearest Connection Time at current time with WIFI access point It is added, obtains the connection weight of WIFI access point.In this embodiment, common WIFI access point recently, is calculated Connection weight out can be bigger.

In alternatively possible embodiment, in order to more accurately filter out common WIFI access point recently be used as to The WIFI access point of scanning, can according to the corresponding weight component of connection number of the WIFI access point connected, and, away from working as Nearest Connection Time corresponding weight component of preceding moment, calculates the connection weight of the WIFI access point.Wherein, it connected The corresponding weight component of the connection number of WIFI access point, as connection number increases and increases, the WIFI access point connected Away from corresponding weight component of nearest Connection Time at current time, increase as the time promotes.

In this embodiment, due to the corresponding weight component of the connection number of the WIFI access point connected, with even Number is connect to increase and increase, the WIFI access point connected away from corresponding weight component of nearest Connection Time at current time, with The time promote and increase, therefore, the connection weight of common WIFI access point is bigger recently, the WIFI access being of little use recently The connection weight of point is smaller.Relative to the embodiment of the corresponding weight value of said one time interval, institute is calculated Connection weight can more accurately show commonly use whether recently.To which the embodiment can be according to the connection of WIFI access point The size of weight more accurately filters out nearest common WIFI access point as WIFI access point to be scanned, so that eventually End equipment is quickly scanned to a possibility that available WIFI access point and is improved, and is reduced sweep time, is improved connection speed.

It should be noted that connection number corresponding weight of the embodiment for the WIFI access point connected Component, and, value mode of the WIFI access point connected away from corresponding weight component of nearest Connection Time at current time And be not limited, as long as increasing respectively as connection number increases, increase as the time promotes.

In a kind of possible embodiment, in order to enable connection weight can more accurately be shown with connection number Increase and increase, the characteristics of increase as the time promotes, when so that screening WIFI access point to be scanned according to connection weight It can filter out and more accurately commonly use WIFI access point recently, X=(T can be enabledi-Tmin)*K1/(Tmax-Tmin), Y=(Ci- Cmin)*K2/(Cmax-Cmin).Wherein, Y is the corresponding weight component of connection number of the WIFI access point connected;X is The WIFI access point connected is away from corresponding weight component of nearest Connection Time at current time;TiIt indicates described to connect WIFI access point Connection Time nearest away from current time;TmaxAll WIFI access points acquired in indicating are away from current time In the nearest Connection Time, Connection Time the latest;TminIndicate that acquired all WIFI access points are nearest away from current time In Connection Time, the earliest Connection Time;CiIndicate the connection number of the WIFI access point connected;CmaxExpression is obtained Maximum value in the connection number of all WIFI access points taken;CminIndicate the connection time of acquired all WIFI access points Minimum value in number;K1Indicate the weight coefficient of Connection Time, K2Indicate the weight coefficient of connection number, K1And K2For positive number.Example Such as, in a kind of possible embodiment, K1K can be greater than2.In another possible embodiment, K1+K21 can be equal to.

For example, in this embodiment, it can be according to the WIFI access point W connectediConnection weight Z=X+Y, Calculate the WIFI access point W connectediConnection weight.

In a kind of possible embodiment, Z=X+Y can be enabled.Wherein, Z is the company of the WIFI access point connected Connect weight.

For example, it is assumed that one of acquired WIFI access point connected Wi, away from the Connection Time that current time is nearest For on November 1st, 2015, connecting number was 5 times;Assuming that two W of the acquired WIFI access point connectedj, away from it is current when Carving the nearest Connection Time is on October 20th, 2015, and connection number is 3 times;In all WIFI access points connected away from current In nearest Connection Time at moment, the Connection Time the latest is on November 2nd, 2015, and the earliest Connection Time is in October, 2015 1 day;Maximum value in the connection number of all WIFI access points connected is 5, minimum value 1;K1=0.6, K2=0.4.Root According to embodiments noted above, one of described WIFI access point WiConnection weight=((5-1)/(5-1)) * 0.6+ ((20151101-20151001)/(20151102-20151001)) * 0.4=0.6+100*0.4/101=0.996;It is described Two W of WIFI access pointjConnection weight=((3-1)/(5-1)) * 0.6+ ((20151020-20151001)/(20151102- 20151001)) * 0.4=0.3+19*0.4/101=0.375.

In step 230, according to the connection weight of the WIFI access point, WIFI access point to be scanned is filtered out.

For example, can filter out connection weight according to the size of the connection weight of WIFI access point and be weighed greater than certain predetermined The WIFI access point of weight threshold value is as WIFI access point to be scanned.For another example can be according to the connection weight of WIFI access point Size, find out connection weight and connect by to small sequence, coming the WIFI access point for presetting former as WIFI to be scanned Access point, etc..

In conclusion connection number of the terminal device according to the WIFI access point connected, and, it is nearest away from current time Connection Time, calculate the connection weight of the WIFI access point, according to the connection weight of the WIFI access point, filter out to The WIFI access point of scanning, therefore, the terminal device WIFI access point to be scanned is according to nearest Connection Time and connection The WIFI access point that number filters out, the WIFI number of access point to be scanned is few, and sweep time is reduced, when improving unlatching WIFI Connection speed.

It should be noted that the embodiment of the present disclosure filters out to be scanned the connection weight according to the WIFI access point WIFI access point implementation it is unlimited.Possible embodiment a kind of to the embodiment of the present disclosure is described in detail below.

Fig. 3 is a kind of flow chart of the method for the network connection shown according to another exemplary embodiment.This method can be with Applied to terminal device 110 shown in Fig. 1.This method may comprise steps of:

In the step 310, from WIFI access point linkage record, the connection number of the WIFI access point connected is obtained, And the Connection Time nearest away from current time.

In step 320, according to the connection number of the WIFI access point connected, and, away from the company that current time is nearest The time is connect, the connection weight of the WIFI access point is calculated.

In a step 330, it according to the connection weight of the WIFI access point, deletes in the WIFI access point linkage record WIFI access point beyond preset quantity threshold portion obtains the WIFI access point linkage record of update, wherein the WIFI of deletion The connection weight of access point is respectively less than the connection weight of the WIFI access point retained.

Wherein, preset quantity threshold value can be set according to actual needs, and the embodiment of the present disclosure is to this and is not limited.Example Such as, in a kind of possible embodiment, all WIFI access point linkage records can be stored in a record sheet, and to be somebody's turn to do A preset quantity threshold value is arranged in record sheet, for limiting the quantity of WIFI access point linkage record.

For example, can be more than the quantity when the quantity of the WIFI access point in the WIFI access point linkage record When threshold value, the smallest WIFI access point of connection weight in the WIFI access point linkage record is determined and deletes, when WIFI is accessed When the quantity of WIFI access point recorded in point linkage record is less than or equal to the amount threshold, the WIFI of update is obtained Access point linkage record.

In this embodiment, by determining and deleting the corresponding the smallest WIFI access point of connection weight, until WIFI The quantity of WIFI access point recorded in access point linkage record is less than or equal to the amount threshold, accurately makes to delete The corresponding connection weight of WIFI access point be respectively less than retain the corresponding connection weight of WIFI access point, it may therefore be assured that What is retained in the WIFI access point linkage record of update is nearest common WIFI access point, and terminal device is directly to update The WIFI access point retained in WIFI access point linkage record is scanned, and the WIFI number of access point to be scanned is few, when scanning Between reduce, improve open WIFI when connection speed.

In conjunction with above embodiment, for example, the WIFI access point recorded in the WIFI access point linkage record When quantity is more than the amount threshold, the smallest WIFI access point of connection weight can be searched.It is the smallest according to connection weight WIFI access point is invalid WIFI access point, by the smallest WIFI access point of connection weight from WIFI access point linkage record It deletes.When the quantity of the WIFI access point recorded in WIFI access point linkage record is less than or equal to the amount threshold, Obtain the WIFI access point linkage record updated.The number of the WIFI access point recorded in the WIFI access point linkage record When amount is more than the amount threshold, the step of back to the lookup connection weight the smallest WIFI access point.

In order to quickly find out the corresponding the smallest WIFI access point of connection weight, a kind of possible embodiment In, can by all WIFI access points recorded in the WIFI access point linkage record according to corresponding connection weight from greatly to Small sequence.When the quantity of the WIFI access point recorded in the WIFI access point linkage record is more than the amount threshold, The WIFI access point to roll into last place is searched in WIFI access point linkage record after sequence.

In the present embodiment, it due to the connection weight according to the WIFI access point, deletes and exceeds the amount threshold portion The WIFI access point divided, obtains the WIFI access point linkage record of update, wherein the corresponding connection weight of WIFI access point of deletion It is respectively less than the corresponding connection weight of WIFI access point retained again, it may therefore be assured that the WIFI access point linkage record updated Middle reservation is common WIFI access point recently, and terminal device in the WIFI access point linkage record of update directly to retaining WIFI access point is scanned, and the WIFI number of access point to be scanned is few, and sweep time is reduced, and improves company when opening WIFI Connect speed.

In the following, a kind of possible embodiment for combining the above various embodiments is described in detail.

Fig. 4 is a kind of flow chart of the method for the network connection shown according to a further exemplary embodiment.This method can be with Applied to terminal device 110 shown in Fig. 1.This method may comprise steps of:

In step 410, the quantity of the WIFI access point recorded in the WIFI access point linkage record is more than institute When stating amount threshold, from WIFI access point linkage record, the connection number of the WIFI access point connected is obtained, and, away from Nearest Connection Time at current time.

At step 420, according to Z=X+Y, Z is calculated;Wherein, Z is the connection weight of the WIFI access point connected Weight.

In step 421, by all WIFI access points recorded in the WIFI access point linkage record according to connection weight It sorts from large to small again.

In step 430, the WIFI access to roll into last place is searched in the WIFI access point linkage record after sequence Point.

In step 431, the WIFI access point to roll into last place is deleted from WIFI access point linkage record.

In step 432, judge WIFI access point recorded in the WIFI access point linkage record quantity whether More than the amount threshold.It is searched if so, returning in the WIFI access point linkage record described in step 430 after sequence The step of WIFI access point to roll into last place.

In step 433, if not, obtaining the WIFI access point linkage record updated.

It is understood that the WIFI access point linkage record is referred to and will be come in step 431 in step 432 WIFI access point linkage record of last the WIFI access point after being deleted in WIFI access point linkage record.

In the present embodiment, since the connection weight of WIFI access point Wi is equal to (Ti-Tmin)*K1/(Tmax-Tmin)+(Ci- Cmin)*K2/(Cmax-Cmin), therefore, connection weight can more accurately show to increase as connection number increases, with The characteristics of promoting and increasing time connected from the WIFI access point also, according to the connection weight of the WIFI access point In record, gradually delete beyond the smallest WIFI access point of connection weight recorded in WIFI access point linkage record The quantity of WIFI access point is less than or equal to preset quantity threshold value, obtains the WIFI access point linkage record of update, therefore, can be with Guarantee to retain in the WIFI access point linkage record updated is nearest common WIFI access point, and terminal device is directly to update WIFI access point linkage record in the WIFI access point that retains be scanned, the WIFI number of access point to be scanned is few, scanning Time is reduced, and improves connection speed when opening WIFI.

Fig. 5 is a kind of device block diagram of network connection shown according to an exemplary embodiment.The device can be configured at Terminal device 110 shown in Fig. 1.Reference Fig. 5, the apparatus may include: linkage record obtains module 510, connection weight calculates mould Block 520, access point screening module 530.

The linkage record obtains module 510, can be configured as the connection number for obtaining the WIFI access point connected, with And the Connection Time nearest away from current time.

The connection weight computing module 520 can be configured as and obtain the company that module 510 obtains according to the linkage record The connection number for the WIFI access point taken over, and, away from the Connection Time that current time is nearest, calculate the WIFI access point Connection weight.

The access point screening module 530 can be configured as according to the connection weight computing module 530 calculating The connection weight of WIFI access point filters out WIFI access point to be scanned.

For example, can filter out connection weight according to the size of the connection weight of WIFI access point and be weighed greater than certain predetermined The WIFI access point of weight threshold value is as WIFI access point to be scanned.For another example can be according to the connection weight of WIFI access point Size, find out connection weight and connect by to small sequence, coming the WIFI access point for presetting former as WIFI to be scanned Access point, etc..

In conclusion connection number of the terminal device according to the WIFI access point connected, and, it is nearest away from current time Connection Time, calculate the connection weight of the WIFI access point, according to the connection weight of the WIFI access point, filter out to The WIFI access point of scanning, therefore, the terminal device WIFI access point to be scanned is according to nearest Connection Time and connection The WIFI access point that number filters out, the WIFI number of access point to be scanned is few, and sweep time is reduced, when improving unlatching WIFI Connection speed.

In a kind of possible embodiment, can when scanning every time and being connected to new WIFI access point, increase newly one it is right The entry of the WIFI access point.Wherein, in the entry of the corresponding WIFI access point, connection number and connection be can recorde Time.It, can be by the corresponding entry of WIFI access point when scanning every time and being connected to the WIFI access point recorded The current Connection Time is updated, and accumulates once to connection number.In this way, WIFI access point linkage record can be read to obtain The connection number of the WIFI access point connected is taken, and, away from the Connection Time that current time is nearest.

It should be noted that the embodiment of the present disclosure is to the connection number according to the WIFI access point connected, and, away from working as Nearest Connection Time at preceding moment, the implementation for calculating the connection weight of the WIFI access point are unlimited.

In a kind of possible embodiment, for example, multiple time zones can be divided from default earliest time to current time Between, the corresponding weight value of a time interval, the nearlyr weight value of time interval can be bigger.The connection weight calculates mould Block 520 can be by the connection number of WIFI access point, the Connection Time place time nearest away from current time with WIFI access point The corresponding weight value in section is directly added, and obtains the connection weight of WIFI access point.In this embodiment, normal recently WIFI access point, the calculated connection weight of institute can be bigger.

In alternatively possible embodiment, in order to more accurately filter out common WIFI access point recently be used as to The WIFI access point of scanning, which, which can be configured as, obtains module 510 according to the linkage record The corresponding weight component of connection number for the WIFI access point of acquisition connected, and, when away from current time nearest connection Between corresponding weight component, calculate the connection weight of the WIFI access point.Wherein, the connection time of the WIFI access point connected The corresponding weight component of number, as connection number increases and increases, the WIFI access point connected the company nearest away from current time Time corresponding weight component is connect, is increased as the time promotes.

In this embodiment, due to the corresponding weight component of the connection number of the WIFI access point connected, with even Number is connect to increase and increase, the WIFI access point connected away from corresponding weight component of nearest Connection Time at current time, with The time promote and increase, therefore, the corresponding connection weight of common WIFI access point is bigger recently, the WIFI being of little use recently The corresponding connection weight of access point is smaller.Relative to the embodiment of the corresponding weight value of said one time interval, institute Calculated connection weight can more accurately show commonly use whether recently.To which the embodiment can be accessed according to WIFI The size of the connection weight of point more accurately filters out common WIFI access point recently and accesses as WIFI to be scanned Point improves so that terminal device was quickly scanned to a possibility that available WIFI access point, reduces sweep time, improves connection Speed.

It should be noted that connection number corresponding weight of the embodiment for the WIFI access point connected Component, and, value mode of the WIFI access point connected away from corresponding weight component of nearest Connection Time at current time And be not limited, as long as increasing respectively as connection number increases, increase as the time promotes.

In a kind of possible embodiment, in order to enable connection weight can more accurately be shown with connection number Increase and increase, the characteristics of increase as the time promotes, when so that screening WIFI access point to be scanned according to connection weight It can filter out and more accurately commonly use WIFI access point, X=(T recentlyi-Tmin)*K1/(Tmax-Tmin);Y=(Ci-Cmin)*K2/ (Cmax-Cmin)。

Wherein, Y is the corresponding weight component of connection number of the WIFI access point connected;X is described connected WIFI access point away from corresponding weight component of nearest Connection Time at current time;TiIndicate the WIFI access connected The point Connection Time nearest away from current time;TmaxIndicate the connection nearest away from current time of acquired all WIFI access points In time, Connection Time the latest;TminIndicate acquired all WIFI access points Connection Time nearest away from current time In, the earliest Connection Time;CiIndicate the connection number of the WIFI access point connected;CmaxIt indicates acquired to own Maximum value in the connection number of WIFI access point;CminIt indicates in the connection number of acquired all WIFI access points most Small value;K1Indicate the weight coefficient of Connection Time, K2Indicate the weight coefficient of connection number, K1And K2For positive number.

For example, in a kind of possible embodiment, K1K can be greater than2.In another possible embodiment, K1+K2It can To be equal to 1.

In a kind of possible embodiment, Z=X+Y can be enabled.Wherein, Z is the company of the WIFI access point connected Connect weight.

For example, it is assumed that one of acquired WIFI access point connected Wi, away from the Connection Time that current time is nearest For on November 1st, 2015, connecting number was 5 times;Assuming that two W of the acquired WIFI access point connectedj, away from it is current when Carving the nearest Connection Time is on October 20th, 2015, and connection number is 3 times;In all WIFI access points connected away from current In nearest Connection Time at moment, the Connection Time the latest is on November 2nd, 2015, and the earliest Connection Time is in October, 2015 1 day;Maximum value in the connection number of all WIFI access points connected is 5, minimum value 1;K1=0.6, K2=0.4.Root According to embodiments noted above, one of described WIFI access point WiConnection weight=((5-1)/(5-1)) * 0.6+ ((20151101-20151001)/(20151102-20151001)) * 0.4=0.6+100*0.4/101=0.996;It is described Two W of WIFI access pointjConnection weight=((3-1)/(5-1)) * 0.6+ ((20151020-20151001)/(20151102- 20151001)) * 0.4=0.3+19*0.4/101=0.375.

It should be noted that the embodiment of the present disclosure filters out to be scanned the connection weight according to the WIFI access point WIFI access point implementation it is unlimited.Possible embodiment a kind of to the embodiment of the present disclosure is described in detail below.

It can be configured as from WIFI access point linkage record for example, the linkage record obtains module 510, obtain connection The connection number for the WIFI access point crossed, and, away from the Connection Time that current time is nearest.The access point screening module 530 can To be configured as the connection weight according to the WIFI access point, delete in the WIFI access point linkage record beyond present count The WIFI access point for measuring threshold portion, obtains the WIFI access point linkage record of update, wherein the company of the WIFI access point of deletion Connect the connection weight that weight is respectively less than the WIFI access point retained.

Wherein, preset quantity threshold value can be set according to actual needs, and the embodiment of the present disclosure is to this and is not limited.Example Such as, in a kind of possible embodiment, all WIFI access point linkage records can be stored in a record sheet, and to be somebody's turn to do A preset quantity threshold value is arranged in record sheet, for limiting the quantity of WIFI access point linkage record.

In a kind of possible embodiment, described access point screening module 530 be can be configured as when the WIFI is accessed When the quantity of the WIFI access point in point linkage record is more than the amount threshold, determines and delete the WIFI access point The smallest WIFI access point of connection weight in linkage record, the WIFI access point recorded in WIFI access point linkage record When quantity is less than or equal to the amount threshold, the WIFI access point linkage record of update is obtained.

In conjunction with above embodiment, it can determine and delete the smallest WIFI of connection weight in WIFI access point linkage record The quantity of access point, the WIFI access point recorded in WIFI access point linkage record is less than or equal to the quantity threshold Value.For example, when the quantity of the WIFI access point recorded in the WIFI access point linkage record is more than the amount threshold, The smallest WIFI access point of connection weight can be searched.It is that invalid WIFI is accessed according to the smallest WIFI access point of connection weight Point deletes the smallest WIFI access point of connection weight from WIFI access point linkage record.In WIFI access point linkage record Recorded in WIFI access point quantity be less than or equal to the amount threshold when, obtain update WIFI access point connection note Record.When the quantity of the WIFI access point recorded in the WIFI access point linkage record is more than the amount threshold, return The step of WIFI access point the smallest to the lookup connection weight.

In order to quickly find out the corresponding the smallest WIFI access point of connection weight, a kind of possible embodiment In, the described access point screening module 530 of the device can be additionally configured to obtaining the linkage record into what module obtained All WIFI access points recorded in WIFI access point linkage record are sorted from large to small according to corresponding connection weight, so as to To search the WIFI access point to roll into last place in the WIFI access point linkage record after sequence.

In the present embodiment, it due to the connection weight according to the WIFI access point, deletes and exceeds the amount threshold portion The WIFI access point divided, obtains the WIFI access point linkage record of update, wherein the corresponding connection weight of WIFI access point of deletion It is respectively less than the corresponding connection weight of WIFI access point retained again, it may therefore be assured that the WIFI access point linkage record updated Middle reservation is common WIFI access point recently, and terminal device in the WIFI access point linkage record of update directly to retaining WIFI access point is scanned, and the WIFI number of access point to be scanned is few, and sweep time is reduced, and improves company when opening WIFI Connect speed.

About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.

Fig. 6 is a kind of block diagram of the device 600 of network connection shown according to an exemplary embodiment.For example, device 600 It can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, Body-building equipment, personal digital assistant etc..

Referring to Fig. 6, device 600 may include following one or more components: processing component 602, memory 604, electric power Component 606, multimedia component 608, audio component 610, the interface 612 of input/output (I/O), sensor module 614, and Communication component 616.

The integrated operation of the usual control device 600 of processing component 602, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 602 may include that one or more processors 620 refer to execute It enables, to complete all or part of the steps of the method for above-mentioned network connection.In addition, processing component 602 may include one or more A module, convenient for the interaction between processing component 602 and other assemblies.For example, processing component 602 may include multimedia mould Block, to facilitate the interaction between multimedia component 608 and processing component 602.

Memory 604 is configured as storing various types of data to support the operation in device 600.These data are shown Example includes the instruction of any application or method for operating on device 600, contact data, and telephone book data disappears Breath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.

Electric power assembly 606 provides electric power for the various assemblies of device 600.Electric power assembly 606 may include power management system System, one or more power supplys and other with for device 600 generate, manage, and distribute the associated component of electric power.

Multimedia component 608 includes the screen of one output interface of offer between described device 600 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 608 includes a front camera and/or rear camera.When device 600 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.

Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike Wind (MIC), when device 600 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 604 or via communication set Part 616 is sent.In some embodiments, audio component 610 further includes a loudspeaker, is used for output audio signal.

I/O interface 612 provides interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.

Sensor module 614 includes one or more sensors, and the state for providing various aspects for device 600 is commented Estimate.For example, sensor module 614 can detecte the state that opens/closes of device 600, and the relative positioning of component, for example, it is described Component is the display and keypad of device 600, and sensor module 614 can be with 600 1 components of detection device 600 or device Position change, the existence or non-existence that user contacts with device 600,600 orientation of device or acceleration/deceleration and device 600 Temperature change.Sensor module 614 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 614 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.

Communication component 616 is configured to facilitate the communication of wired or wireless way between device 600 and other equipment.Device 600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 616 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 616 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.

In the exemplary embodiment, device 600 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, the method for executing above-mentioned network connection.

In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 604 of instruction, above-metioned instruction can be executed by the processor 620 of device 600 to complete above-mentioned network connection Method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, Tape, floppy disk and optical data storage devices etc..

Those skilled in the art will readily occur to other embodiment party of the disclosure after considering specification and practicing the disclosure Case.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or adaptability Variation follows the general principles of this disclosure and including the undocumented common knowledge or usual skill in the art of the disclosure Art means.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following claim It points out.

It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (5)

1. a kind of method of network connection, which is characterized in that be applied in terminal device, which comprises
From WIFI access point linkage record, the connection number of the WIFI access point connected is obtained, and, most away from current time The close Connection Time;
According to formula X=(Ti-Tmin)*K1/(Tmax-Tmin) determine that the WIFI access point connected is nearest away from current time Connection Time corresponding weight component;
Wherein, X is the WIFI access point connected away from corresponding weight component of nearest Connection Time at current time;TiTable Show the WIFI access point connected the Connection Time nearest away from current time;TmaxIndicate acquired all WIFI access Point is away from nearest Connection Time at current time, Connection Time the latest;TminIndicate acquired all WIFI access points away from working as In nearest Connection Time at preceding moment, the earliest Connection Time;K1Indicate the weight coefficient of Connection Time, K1For positive number;
According to formula Y=(Ci-Cmin)*K2/(Cmax-Cmin) determine that the connection number of the WIFI access point connected is corresponding Weight component;
Wherein, Y is the corresponding weight component of connection number of the WIFI access point connected;CiIt indicates described to connect The connection number of WIFI access point;CmaxIndicate the maximum value in the connection number of acquired all WIFI access points;CminTable Show the minimum value in the connection number of acquired all WIFI access points;K2Indicate the weight coefficient of connection number, K2It is positive Number;
According to the corresponding weight component of connection number of the WIFI access point connected, and, it is described away from current time most Corresponding weight component of close Connection Time, the connection weight of the WIFI access point is calculated by formula Z=X+Y;
Wherein, Z is the connection weight of the WIFI access point connected, and X is the WIFI access point connected away from current Moment nearest Connection Time corresponding weight component, Y are the corresponding power of connection number of the WIFI access point connected Weight component, the corresponding weight component of connection number of the WIFI access point connected as connection number increases and increase, The WIFI access point connected increases away from corresponding weight component of nearest Connection Time at current time as the time promotes Greatly;
According to the connection weight of the WIFI access point, delete in the WIFI access point linkage record beyond preset quantity threshold value Partial WIFI access point obtains the WIFI access point linkage record of update, wherein the connection weight of the WIFI access point of deletion The connection weight of the WIFI access point respectively less than retained.
2. the method according to claim 1, wherein the connection weight according to the WIFI access point, is deleted Except the WIFI access point for exceeding preset quantity threshold portion in the WIFI access point linkage record, the WIFI access of update is obtained Putting linkage record includes:
When the quantity of the WIFI access point in the WIFI access point linkage record is more than the amount threshold, determine simultaneously Delete the smallest WIFI access point of connection weight in the WIFI access point linkage record;
When the quantity of the WIFI access point recorded in WIFI access point linkage record is less than or equal to the amount threshold, Obtain the WIFI access point linkage record updated.
3. a kind of device of network connection, which is characterized in that be applied in terminal device, described device includes:
Linkage record obtains module, is configured as from WIFI access point linkage record, obtains the WIFI access point connected Number is connected, and, away from the Connection Time that current time is nearest;
Connection weight computing module is configured as according to formula X=(Ti-Tmin) * K1/ (Tmax-Tmin) determines described connected WIFI access point away from corresponding weight component of nearest Connection Time at current time;
Wherein, X is the WIFI access point connected away from corresponding weight component of nearest Connection Time at current time;Ti table Show the WIFI access point connected the Connection Time nearest away from current time;Tmax indicates acquired all WIFI access Point is away from nearest Connection Time at current time, Connection Time the latest;Tmin indicate acquired all WIFI access points away from In nearest Connection Time at current time, the earliest Connection Time;K1Indicate the weight coefficient of Connection Time, K1For positive number;According to Formula Y=(Ci-Cmin) * K2/ (Cmax-Cmin) determines the corresponding weight of connection number of the WIFI access point connected Component;Wherein, Y is the corresponding weight component of connection number of the WIFI access point connected;Ci indicates described and connected WIFI access point connection number;Cmax indicates the maximum value in the connection number of acquired all WIFI access points; Cmin indicates the minimum value in the connection number of acquired all WIFI access points;K2Indicate the weight coefficient of connection number, K2 For positive number;
The corresponding weight component of connection number for the WIFI access point connected that module obtains is obtained according to the linkage record, And away from corresponding weight component of nearest Connection Time at current time, the WIFI access point is calculated by formula Z=X+Y Connection weight;
Wherein, Z is the connection weight of the WIFI access point connected, and X is the WIFI access point connected away from current Moment nearest Connection Time corresponding weight component, Y are the corresponding power of connection number of the WIFI access point connected Weight component, the corresponding weight component of connection number of the WIFI access point connected as connection number increases and increase, The WIFI access point connected increases away from corresponding weight component of nearest Connection Time at current time as the time promotes Greatly;
Access point screening module is configured as the connection weight according to the WIFI access point, deletes the WIFI access point and connects The WIFI access point for exceeding preset quantity threshold portion in record is connect, obtains the WIFI access point linkage record of update, wherein delete The connection weight of the WIFI access point removed is respectively less than the connection weight of the WIFI access point retained.
4. device according to claim 3, which is characterized in that described access point screening module is configured as the WIFI When the quantity of the WIFI access point in access point linkage record is more than the amount threshold, determines and delete the WIFI and connect The smallest WIFI access point of connection weight in access point linkage record, the access of the WIFI recorded in WIFI access point linkage record When the quantity of point is less than or equal to the amount threshold, the WIFI access point linkage record of update is obtained.
5. a kind of device of network connection, which is characterized in that be applied in terminal device, described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
From WIFI access point linkage record, the connection number of the WIFI access point connected is obtained, and, most away from current time The close Connection Time;
According to formula X=(Ti-Tmin) * K1/ (Tmax-Tmin) determines the WIFI access point connected away from current time most Corresponding weight component of close Connection Time;
Wherein, X is the WIFI access point connected away from corresponding weight component of nearest Connection Time at current time;Ti table Show the WIFI access point connected the Connection Time nearest away from current time;Tmax indicates acquired all WIFI access Point is away from nearest Connection Time at current time, Connection Time the latest;Tmin indicate acquired all WIFI access points away from In nearest Connection Time at current time, the earliest Connection Time;K1Indicate the weight coefficient of Connection Time, K1For positive number;
According to formula Y=(Ci-Cmin) * K2/ (Cmax-Cmin) determines the connection number pair of the WIFI access point connected The weight component answered;
Wherein, Y is the corresponding weight component of connection number of the WIFI access point connected;Ci indicates described and connected The connection number of WIFI access point;Cmax indicates the maximum value in the connection number of acquired all WIFI access points;Cmin Indicate the minimum value in the connection number of acquired all WIFI access points;K2Indicate the weight coefficient of connection number, K2It is positive Number;
According to the corresponding weight component of connection number of the WIFI access point connected, and, it is described away from current time most Corresponding weight component of close Connection Time, the connection weight of the WIFI access point is calculated by formula Z=X+Y;
Wherein, Z is the connection weight of the WIFI access point connected, and X is the WIFI access point connected away from current Moment nearest Connection Time corresponding weight component, Y are the corresponding power of connection number of the WIFI access point connected Weight component, the corresponding weight component of connection number of the WIFI access point connected as connection number increases and increase, The WIFI access point connected increases away from corresponding weight component of nearest Connection Time at current time as the time promotes Greatly;
According to the connection weight of the WIFI access point, delete in the WIFI access point linkage record beyond preset quantity threshold value Partial WIFI access point obtains the WIFI access point linkage record of update, wherein the connection weight of the WIFI access point of deletion The connection weight of the WIFI access point respectively less than retained.
CN201510829273.1A 2015-11-25 2015-11-25 The method and apparatus of network connection CN105491642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510829273.1A CN105491642B (en) 2015-11-25 2015-11-25 The method and apparatus of network connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510829273.1A CN105491642B (en) 2015-11-25 2015-11-25 The method and apparatus of network connection

Publications (2)

Publication Number Publication Date
CN105491642A CN105491642A (en) 2016-04-13
CN105491642B true CN105491642B (en) 2019-09-10

Family

ID=55678265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510829273.1A CN105491642B (en) 2015-11-25 2015-11-25 The method and apparatus of network connection

Country Status (1)

Country Link
CN (1) CN105491642B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131929A (en) * 2016-08-03 2016-11-16 北京小米移动软件有限公司 WiFi access-in point information method for cleaning and device
CN106162829A (en) * 2016-09-19 2016-11-23 青岛海信电器股份有限公司 WIFI method of attachment and device
CN106550423A (en) * 2016-11-04 2017-03-29 广东欧珀移动通信有限公司 A kind of access point management method and terminal
CN107071865B (en) * 2016-12-07 2019-09-06 Oppo广东移动通信有限公司 A kind of method and device that Wireless Fidelity quickly connects
CN106604304B (en) * 2016-12-07 2019-12-31 Oppo广东移动通信有限公司 Connection method and device for accelerating wireless fidelity
CN106888514B (en) * 2017-04-13 2019-05-17 维沃移动通信有限公司 A kind of Wireless LAN connection method and mobile terminal
US10383002B2 (en) 2017-05-01 2019-08-13 University Of Notre Dame Du Lac Systems and methods for rapidly estimating available bandwidth in a WiFi link

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497638A (en) * 2011-12-21 2012-06-13 上海云联计算机系统有限公司 Method, system and mobile terminal for accessing public wireless local area network quickly
WO2014052839A1 (en) * 2012-09-28 2014-04-03 Intel Corporation Reducing wireless reconnection time of a computing device
CN104105165A (en) * 2013-04-08 2014-10-15 中兴通讯股份有限公司 Method and terminal for processing accessing of WLAN
CN104349391A (en) * 2013-07-30 2015-02-11 华为终端有限公司 Scheduling processing method and device of WiFi (wireless fidelity) stations
CN104394263A (en) * 2014-09-30 2015-03-04 小米科技有限责任公司 Accessing point list displaying method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820689A (en) * 2009-02-27 2010-09-01 中兴通讯股份有限公司 Scanning method
CN103476004A (en) * 2013-09-26 2013-12-25 东莞宇龙通信科技有限公司 Network access auxiliary method and network access auxiliary system
CN104244374B (en) * 2014-09-25 2019-03-29 联想(北京)有限公司 A kind of connection control method, connection controller and electronic equipment
CN104980975B (en) * 2015-06-25 2019-03-22 西安理工大学 A kind of wifi switching method of mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497638A (en) * 2011-12-21 2012-06-13 上海云联计算机系统有限公司 Method, system and mobile terminal for accessing public wireless local area network quickly
WO2014052839A1 (en) * 2012-09-28 2014-04-03 Intel Corporation Reducing wireless reconnection time of a computing device
CN104105165A (en) * 2013-04-08 2014-10-15 中兴通讯股份有限公司 Method and terminal for processing accessing of WLAN
CN104349391A (en) * 2013-07-30 2015-02-11 华为终端有限公司 Scheduling processing method and device of WiFi (wireless fidelity) stations
CN104394263A (en) * 2014-09-30 2015-03-04 小米科技有限责任公司 Accessing point list displaying method and device

Also Published As

Publication number Publication date
CN105491642A (en) 2016-04-13

Similar Documents

Publication Publication Date Title
CN102035935B (en) Mobile terminal and image metadata editing method thereof
CN104021350A (en) Privacy-information hiding method and device
CN102714698A (en) Photograph intention prediction including automatic photograph recording with autofocus and respective method
EP3079082A1 (en) Method and apparatus for album display
JP6389014B2 (en) Voice control method, device, program, recording medium, control device and smart device for smart device
CN104035558A (en) Terminal device control method and device
CN105511686B (en) Call processing method, device and terminal electronic device
CN105261346B (en) Method of adjustment, device and the terminal device of backlight illumination
CN105607883B (en) The processing method and processing device of instant message
CN105045467B (en) The display methods and device at task manager interface
CN105991930B (en) Zoom processing method, device and the mobile terminal of dual camera
KR101725706B1 (en) Method, device and terminal for displaying application messages, program and recording medium
CN105072337B (en) Image processing method and device
CN104519282A (en) Image shooting method and device
CN105224349A (en) The deletion reminding method of application program and device
CN104808500A (en) Task setting method and device
CN104717293A (en) Method and device for showing information resources on conversation interface
CN105120144A (en) Image shooting method and device
CN105763812B (en) Intelligent photographing method and device
KR101933642B1 (en) Method and apparatus for triggering execution of operation instruction
CN105635567A (en) Shooting method and device
WO2017084183A1 (en) Information displaying method and device
CN104852966B (en) Numeric value transfer, terminal and cloud server
CN104933170A (en) Information exhibition method and device
CN105069073B (en) Contact information recommendation method and device

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