Summary of the invention
The embodiment of the present invention provides the method and system that a kind of prompt can connect Wireless LAN, to solve mobile terminal
Wireless LAN switch close when, but mobile data network is used to surf the Internet in available wireless local area networks network overlay area,
The problem of causing mass data flow to waste.
For this purpose, the embodiment of the present invention provides the following technical solutions:
A kind of method that prompt can connect Wireless LAN, comprising:
Judge whether the mobile data network flow of mobile terminal consumption is greater than given threshold, if so, obtaining the shifting
Dynamic terminal current geographic position;
Judge whether the mobile terminal current geographic position is in the pre-stored available wireless local area networks network area of coverage
Domain, if so, carrying out user reminding.
Preferably, the method also includes:
When mobile terminal connects Wireless LAN, current wireless Local Area Network network geographical location information is obtained, and update
The pre-stored available wireless local area networks network overlay area.
Preferably, the method also includes:
After the mobile terminal is connected to Wireless LAN, the current geographic position of the mobile terminal is obtained;
The self-regulation of current wireless Local Area Network network center is carried out according to the current geographic position of the mobile terminal, is obtained
The measuring and calculating center of current wireless Local Area Network network;
According to the measuring and calculating centre bit of preset Wireless LAN covering radius and the current wireless Local Area Network network
It sets, determines current wireless Local Area Network network overlay area;
Store current wireless Local Area Network network coverage area information.
Preferably, the method also includes:
Obtain the number that the mobile terminal is connected to current wireless Local Area Network network;
If connecting number is more than given threshold, using current wireless Local Area Network network overlay area as common wireless local area
Network's coverage area;
It is described to judge whether the mobile terminal current geographic position is in pre-stored available wireless local area networks network and covers
Cover area includes:
Judge whether the mobile terminal current geographic position is in the pre-stored common Wireless LAN area of coverage
Domain.
Preferably, described that current wireless Local Area Network network center is carried out according to the current geographic position of the mobile terminal
Self-regulation, the measuring and calculating center for obtaining current wireless Local Area Network network include:
(1) measuring and calculating center and the signal strength of current local network are initialized;
(2) when the mobile terminal is in current wireless Local Area Network network overlay area, the interval time of setting is obtained
The signal strength of the current wireless Local Area Network network in the geographical location and geographical location of the mobile terminal;
(3) according to the signal strength in the geographical location of the mobile terminal and the current wireless Local Area Network network in the geographical location
Be self-regulated the measuring and calculating center of the current wireless Local Area Network network, comprising:
A. the signal strength for the current wireless Local Area Network network that will acquire and the signal of existing current wireless Local Area Network network are strong
Degree is compared;
If the signal strength obtained is greater than existing signal strength, existing adjusting list is emptied, and obtain described
The signal strength of the current wireless Local Area Network network taken and corresponding geographical location, which are added, states adjusting list;
If the signal strength obtained is equal to existing signal strength, by the current wireless Local Area Network network of the acquisition
The adjusting list is added in signal strength and corresponding geographical location;
If the signal strength obtained is less than existing signal strength, the result of acquisition is abandoned;
B. when reaching the acquisition signal strength number of setting, the geometry in all geographical locations in the adjusting list is found out
Center, and signal maximum in the adjusting list is strong as the signal in the corresponding geographical location in geometric center position
Degree;
C. by the signal strength in the corresponding geographical location in geometric center position obtained step b, current nothing is accessed with the last time
The signal strength in the corresponding geographical location in geometric center position that line local area network obtains is compared;
If the signal strength in this corresponding geographical location in geometric center position obtained is greater than the last current nothing of access
The signal strength in the corresponding geographical location in geometric center position that line local area network obtains, then by the geometric center position of this acquisition
Measuring and calculating center as the current wireless Local Area Network network;
If the signal strength in this corresponding geographical location in geometric center position obtained is equal to the last current nothing of access
It is several with last acquisition then to find out this for the signal strength in the corresponding geographical location in geometric center position that line local area network obtains
The center of what center, and using the center as the measuring and calculating center of the current wireless Local Area Network network;
If the signal strength in this corresponding geographical location in geometric center position obtained is less than the last current nothing of access
The signal strength in the corresponding geographical location in geometric center position that line local area network obtains then gives up the geometric center position of this acquisition
It sets.
Preferably, the method also includes:
If it is determined that the mobile terminal current geographic position is in the pre-stored available wireless local area networks network area of coverage
Wireless LAN switch is then opened, so that the mobile terminal accesses the available wireless local area networks network in domain.
Preferably, the mobile data network flow for judging whether mobile terminal consumes greater than given threshold includes:
Judge whether mobile terminal accesses mobile data network;
Judge whether this access mobile data network consumes the mobile data network flow greater than given threshold.
A kind of system that prompt can connect Wireless LAN, comprising:
Flow judgment module, for judging whether the mobile data network flow of mobile terminal consumption is greater than given threshold,
If so then execute position acquisition module;
Position acquisition module, for obtaining the mobile terminal current geographic position;
Judgment module, for judging whether the mobile terminal current geographic position is in pre-stored available wireless office
Domain network's coverage area, if so, carrying out user reminding.
Preferably, the system also includes:
Locating module is connected with position acquisition module, for after the mobile terminal is connected to Wireless LAN,
Obtain the current geographic position of the mobile terminal;
Measuring and calculating center obtains module, for carrying out current wireless Local Area Network according to the current geographic position of the mobile terminal
The self-regulation of network center, obtains the measuring and calculating center of current wireless Local Area Network network;
Overlay area determining module, for according to preset Wireless LAN covering radius and described current wireless
The measuring and calculating center of local area network determines current wireless Local Area Network network overlay area;
Memory module, for storing current wireless Local Area Network network coverage area information.
Preferably, the system also includes:
Update module is connected with the memory module, for when mobile terminal connects Wireless LAN, acquisition to be worked as
Preceding Wireless LAN geographical location information, and update the pre-stored available wireless local area networks network overlay area.
Preferably, the system also includes:
Counting module, the number for being connected to current wireless Local Area Network network for obtaining the mobile terminal;
Common overlay area determining module, if being more than given threshold for connecting number, by current wireless Local Area Network
Network overlay area is as common Wireless LAN overlay area;
The judgment module is specifically used for judging whether the mobile terminal current geographic position is in pre-stored normal
With Wireless LAN overlay area.
Preferably, the measuring and calculating center acquisition module includes:
Initialization unit, for initializing measuring and calculating center and the signal strength of current local network;
Signal strength acquiring unit, for obtaining when the mobile terminal is in current wireless Local Area Network network overlay area
Take the signal in the geographical location of the mobile terminal of the interval time of setting and the current wireless Local Area Network network in the geographical location
Intensity;
Center self-regulation unit, for according to the geographical location of the mobile terminal and the current nothing in the geographical location
The signal strength of line local area network is self-regulated the measuring and calculating center of the current wireless Local Area Network network.
Preferably, the system also includes the switch module being connected with the judgment module, the switch module is used for
If it is determined that the mobile terminal current geographic position is in pre-stored available wireless local area networks network overlay area, then open
Wireless LAN switch, so that the mobile terminal accesses the available wireless local area networks network.
A kind of mobile terminal, comprising:
Processor, for judging whether the mobile data network flow of mobile terminal consumption is greater than given threshold, if so,
Obtain the mobile terminal current geographic position;Judge the mobile terminal current geographic position whether be in it is pre-stored can
With Wireless LAN overlay area, if so, carrying out user reminding;
Sensor module, for being positioned to mobile terminal;Obtain WLAN network signal strength;
Memory is used for storage processor executable instruction and/or the pre-stored available wireless local area networks network area of coverage
Domain information;
Communication part, for carrying out data transmission and/or obtaining WLAN network signal strength.
Prompt provided in an embodiment of the present invention can connect the method and system of Wireless LAN, by determining available wireless
Then whether local area network overlay area consumes mobile data flow by location determination and locates greater than the mobile terminal of given threshold
In Wireless LAN overlay area, if so, reminding user.Since prompt provided by the invention can connect Wireless LAN
Method, it is first determined then available wireless local area networks network overlay area judges whether mobile terminal consumes and is greater than setting
The mobile data network flow of threshold value, when judging result be it is yes, then obtain the geographical location of the mobile terminal, and judge the geography
Whether position is in available wireless local area networks network overlay area, judges whether mobile terminal can use than mobile data network with this
The cheap Wireless LAN of network is surfed the Internet, thus prompt user that can open Wireless LAN switch, it is wireless to use
Local area network is surfed the Internet and no need to consume the online of mobile data flow, the final spendings for saving mobile phone expense;Further, it is also possible to prompt
User obtains more preferably online experience effect by available Wireless LAN.
Further, current wireless Local Area Network network center is carried out certainly according to the current geographic position of the mobile terminal
It adjusts, obtains the measuring and calculating center of current wireless Local Area Network network;According to preset Wireless LAN covering radius and
The measuring and calculating center of the current wireless Local Area Network network determines current wireless Local Area Network network overlay area;Storage is current wireless
Local area network coverage area information.Since the present invention can be automatically according to the geographical location information of the current wireless Local Area Network network of acquisition
Calculate the measuring and calculating center of current wireless Local Area Network network, and current wireless Local Area Network network is updated according to the measuring and calculating center and is covered
Cover region domain information, when the Wireless LAN overlay area causes its overlay area to become due to network center's change in location etc.
When change, updates the Wireless LAN overlay area manually without user, can be updated automatically, improve the satisfaction of user experience
Degree.
Further, available wireless local area networks network provided by the invention overlay area is that user is often covered with Wireless LAN
Cover area, the scope of activities of each user and the Wireless LAN used are different, thus the common wireless office of each user
Domain network may be available wireless office unique, that common Wireless LAN provided by the invention repeatedly accesses for user
Domain network, the i.e. private customized Wireless LAN covering model according to the practical common Wireless LAN of each user
It encloses, usually the preferably Wireless LAN such as internet security, network speed, improves the satisfaction of user experience.
Specific embodiment
The scheme of embodiment in order to enable those skilled in the art to better understand the present invention with reference to the accompanying drawing and is implemented
The present invention is described in further detail for mode.Following embodiment is exemplary, and for explaining only the invention, and cannot be solved
It is interpreted as limitation of the present invention.
In addition, the present invention can in different examples repeat reference numerals and/or letter.This repetition be in order to simplify and
Clear purpose itself does not indicate the relationship between discussed various embodiments and/or setting.
Prompt provided by the invention can connect the method and system of Wireless LAN, it is first determined available wireless local area networks
Network overlay area obtains the ground of the mobile terminal when mobile terminal consumption is greater than the mobile data network flow of given threshold
Position is managed, then judges whether the mobile terminal is located at available wireless local area networks network overlay area and then reminds use when being judged as YES
Family is available to be surfed the Internet by Wi-Fi network, does not need other external devices.Since the available Wi-Fi network of each user is not
It is the same, for example, the Wi-Fi network that had used or be commonly used be it is different, therefore, the Wi-Fi network in the present invention
It is to be customized according to different user, and available wireless local area networks network overlay area is automatically generated, and is mentioned simultaneously that connection, which is reminded,
Show all is known to user oneself to user, and the Wi-Fi network once accessed.Therefore from convenience, practicability, can
Ideal effect is attained by property, safety and power consumption.
Technical solution and technical effect in order to better understand the present invention, below with reference to flow chart and specific implementation
Example is described in detail.
As shown in Figure 1, be the flow chart for the method that prompt provided in an embodiment of the present invention can connect Wireless LAN, packet
Include following steps:
Step S01, judges whether mobile terminal consumes the mobile data network flow greater than given threshold, if so, obtaining
Take the mobile terminal current geographic position.
In the present embodiment, the threshold value that the given threshold can be the threshold value rule of thumb set or training obtains, should
Threshold value can be to be stored in mobile terminal local, be also possible to be stored in remote server, and the threshold value can move
It is transmitted in the communication process of dynamic terminal and remote server.Specifically, which may exist in database, such as locally
Database or cloud database etc..
What the mobile data network flow can be provided by the included traffic statistic function of mobile terminal or service provider
Traffic statistic function obtains, it is not limited here.In addition, in subsequent user reminding, it can be by the traffic statistics result exhibition
Show to user.
When the flow consumption that data flux statistics obtain is more than or equal to the threshold value of setting, for example, average minute clock consumes
Flow be more than 2,000,000 (Mb) or flow that the same day has consumed is more than 10Mb, naturally it is also possible to be to combine both the above situation
Threshold value set, depending on practical effect;Further, it is also possible to for according to this month residual flow it is whether sufficient depending on
Threshold value etc., for example, the threshold value can be set as biggish numerical value when this month flow abundance, it, should when this month, flow was inadequate
Threshold value can be set as lesser numerical value, it is not limited here.
Further, before judging whether mobile terminal consumes greater than the mobile data network flow of given threshold, may be used also
First to judge the current network type of mobile terminal, for example, whether can judge the network type currently connected every one minute
For mobile data network, if so, judging whether mobile terminal consumes the mobile data network flow greater than given threshold.
When mobile terminal consumption is greater than the mobile data network flow of given threshold, the geographical position of mobile terminal is obtained
It sets.Specifically, the available geographical location that mobile terminal is obtained by GPS positioning, Beidou positioning etc., further, it is also possible to referring to step
The positioning relevant portion referred in rapid S02, this will not be detailed here.
In addition, in other embodiments, it is described to judge whether mobile terminal consumes the mobile data network greater than given threshold
Network flow includes: to judge whether mobile terminal accesses mobile data network;Judge whether this access mobile data network consumes
Greater than the mobile data network flow of given threshold.In this way, when mobile terminal is in the shifting of this access mobile data network consumption
When dynamic data network flux is greater than given threshold, positioning just will do it, avoid the mobile data network when the accumulative consumption of mobile terminal
When network flow is greater than given threshold, the case where just positioning, to meet customer need.
Step S02, judges whether the mobile terminal current geographic position is in pre-stored available wireless local area networks
Network overlay area, if so, carrying out user reminding.
In the present embodiment, the Wireless LAN is Wi-Fi network.Each mobile terminal, such as smart phone
User can go to the region of many Wi-Fi networks covering, for example, in family, office, hotel and restaurant etc..In smart phone
The wireless network card set is supported to obtain the information of current Wi-Fi network, and connects the Wi-Fi network for having already passed through verifying, by this
The Wi-Fi network being successfully connected a bit is as available wireless local area networks network.Wi-Fi network overlay area is one by Wi-Fi net
Network center geographical location is the center of circle, and Wi-Fi coverage area is the border circular areas of radius.The border circular areas is a geographical space planar
The concept of data, the management to the region are substantially exactly the management to spatial data.Therefore the information of Wi-Fi network is constituted just
Include intrinsic two parts of data of attribute information and spatial data.Build-in attribute information data includes the title of Wi-Fi network,
The unique identifier of Wi-Fi network, Wi-Fi network signal strength and the Wi-Fi network are by mobile terminal connection number etc.;It is empty
Between data then include Wi-Fi network center latitude and longitude coordinates etc..
Although having the center of Wi-Fi network and some information of Wi-Fi network, such as the Wi-Fi network is covered
Lid range radius, but these data can't constitute a Wi-Fi network overlay area entity, the present invention is positioned by high moral
Above-mentioned data are converted to a Wi-Fi network overlay area entity by the geography fence function of SDK.And with Wi-Fi network
Exclusive identification code identifies the Wi-Fi network overlay area entity.Finally the Wi-Fi network coverage area entity is carried out effective
With.
Preferably, the available wireless network is that user often uses Wireless LAN, therefore, the method also includes: it obtains
The mobile terminal is taken to be connected to the number of current wireless Local Area Network network;If connecting number is more than given threshold, will be current
Wireless LAN overlay area is as common Wireless LAN overlay area;The judgement mobile terminal current geographic
It includes: to judge mobile terminal current geographic position that whether position, which is in pre-stored available wireless local area networks network overlay area,
It whether sets in pre-stored common Wireless LAN overlay area.When judging result be it is yes, then carry out user reminding.It is real
In the application of border, when user successfully connect some Wireless LAN, and the secondary of the Wireless LAN ought be successfully connected
When number is greater than given threshold, then it is assumed that the Wireless LAN is that user often connects the Wireless LAN used, this implementation
It is common Wireless LAN that such available wireless local area networks network is defined in, these commonly use the practical of Wireless LAN
Property, reliability and safety have higher guarantee.
In practical applications, for determining that the method for available wireless local area networks network overlay area is more, for example, when mobile whole
After terminating some Wi-Fi network, the position that mobile terminal is positioned by location technologies such as GPS, BDS can be used, simultaneously because Wi-
The effective radius of Fi network coverage is usually tens meters, it is estimated that the general coverage area of current Wi-Fi network;This
Outside, the geographical location of mobile terminal can also be determined by network positions, application program positioning etc., such as pass through Internet service provider
The positioning function that the application programs such as the positioning service of offer or Baidu map, Amap, wechat, Tencent QQ provide positions movement
The position of terminal.Further, in order to improve acquisition available wireless local area networks network coverage area accuracy, the present invention use
The mode of Wireless LAN center self-regulation, obtains the measuring and calculating center of current wireless Local Area Network network, then basis
The measuring and calculating center determines currently available Wireless LAN overlay area, specifically, present invention determine that described be stored in advance
Available wireless local area networks network overlay area include:
After the mobile terminal is connected to Wireless LAN, the current geographic position of the mobile terminal is obtained;
The self-regulation of current wireless Local Area Network network center is carried out according to the current geographic position of the mobile terminal, is obtained
The measuring and calculating center of current wireless Local Area Network network;
According to the measuring and calculating centre bit of preset Wireless LAN covering radius and the current wireless Local Area Network network
It sets, determines current wireless Local Area Network network overlay area;
Store current wireless Local Area Network network coverage area information.
Wherein, current wireless Local Area Network network center self-regulation is based primarily upon following three points, is with Wi-Fi network
Example: intensity, self-regulated septa intersegmental and the self-regulation number of Wi-Fi network signal.Wi-Fi network signal strength can be by Wi-Fi mould
Group obtains, when Wi-Fi network signal strength is stronger, then it is believed that the distance apart from Wi-Fi network center is closer.Self-regulated septa intersegmental
It can be preset value, can also be issued by remote server, such as under the long-range management assembly by Wi-Fi mould group
Hair, the self-regulation spacing value determine in a self-regulating process how long once positioned, which takes
Value can be different according to the last difference for commonly using the time locating for Wi-Fi network overlay area herein, are in common Wi-Fi network
Time in overlay area is longer, then self-regulated septa intersegmental can be longer, otherwise shorter;Further, it is also possible to rule of thumb set
Value, specifically can not do particular determination depending on using effect herein.The number of self-regulation can be preset value,
It can also be issued by remote server, such as be issued by the long-range management assembly of Wi-Fi mould group, which determines a self-regulated
It should execute in section process and position several times, the value value is as locating for the signal strength of last measuring and calculating center and last time
The value that the time of the common Wi-Fi network overlay area codetermines or rule of thumb sets, specifically can be according to using effect
Depending on.
In practical applications, it can be configured according to the current phone data traffic set meal situation that data flux statistics obtain
Center self-regulation relevant parameter, comprising: self-regulation number, self-regulated septa intersegmental, the connection number threshold for commonly using Wi-Fi network
Value, Wi-Fi network radius coverage area and data network flow consumption threshold value.Preferably, be self-regulated number and self-regulated septa intersegmental
For the optimum value obtained by remote server training.The connection frequency threshold value of common Wi-Fi network is that certain Wi-Fi network is determined
At the lower limit value of the access number of common Wi-Fi network, which is dynamically to change according to demand.Common Wi-Fi zone radius
Determine the size in the common region Wi-Fi.Data traffic threshold value is to judge whether mobile terminal is in the overlay area Wi-Fi
Prerequisite Rule of judgment can just activate positioning, which can only when actual consumption flow is greater than the threshold value
It is determined according to the center of upload self-regulation relevant parameter dynamic.
Further, when mobile terminal connects Wireless LAN, current wireless Local Area Network network geographical location letter is obtained
Breath, and update the pre-stored available wireless local area networks network overlay area.
Further, current nothing can be updated by updating center and the covering radius of current wireless Local Area Network network
Line local area network overlay area, specifically, the acquisition current wireless Local Area Network network geographical location information, and update described preparatory
The available wireless local area networks network overlay area of storage includes: to be self-regulated according to newest current wireless Local Area Network network center
As a result, updating the measuring and calculating center of the existing current Wireless LAN.
In practical applications, described to be carried out in current wireless Local Area Network network according to the current geographic position of the mobile terminal
The self-regulation of heart position, the measuring and calculating center for obtaining current wireless Local Area Network network include:
(1) measuring and calculating center and the signal strength of current local network are initialized;
(2) when the mobile terminal is in current wireless Local Area Network network overlay area, the interval time of setting is obtained
The signal strength of the current wireless Local Area Network network in the geographical location and geographical location of the mobile terminal;
(3) according to the signal strength in the geographical location of the mobile terminal and the current wireless Local Area Network network in the geographical location
Be self-regulated the measuring and calculating center of the current wireless Local Area Network network, comprising:
A. the signal strength for the current wireless Local Area Network network that will acquire and the signal of existing current wireless Local Area Network network are strong
Degree is compared;
If the signal strength obtained is greater than existing signal strength, existing adjusting list is emptied, and obtain described
The adjusting list is added in the signal strength of the current wireless Local Area Network network taken and corresponding geographical location;
If the signal strength obtained is equal to existing signal strength, by the current wireless Local Area Network network of the acquisition
The adjusting list is added in signal strength and corresponding geographical location;
If the signal strength obtained is less than existing signal strength, the result of acquisition is abandoned;
B. when reaching the acquisition signal strength number of setting, the geometry in all geographical locations in the adjusting list is found out
Center, and signal maximum in the adjusting list is strong as the signal in the corresponding geographical location in geometric center position
Degree;
C. by the signal strength in the corresponding geographical location in geometric center position obtained step b, current nothing is accessed with the last time
The signal strength in the corresponding geographical location in geometric center position that line local area network obtains is compared;
If the signal strength in this corresponding geographical location in geometric center position obtained is greater than the last current nothing of access
The signal strength in the corresponding geographical location in geometric center position that line local area network obtains, then by the geometric center position of this acquisition
Measuring and calculating center as the current wireless Local Area Network network;
If the signal strength in this corresponding geographical location in geometric center position obtained is equal to the last current nothing of access
It is several with last acquisition then to find out this for the signal strength in the corresponding geographical location in geometric center position that line local area network obtains
The center of what center, and using the center as the measuring and calculating center of the current wireless Local Area Network network;
If the signal strength in this corresponding geographical location in geometric center position obtained is less than the last current nothing of access
The signal strength in the corresponding geographical location in geometric center position that line local area network obtains then gives up the geometric center position of this acquisition
It sets.
It should be noted that accessing current wireless Local Area Network network, the then geometry directly obtained step b if it is first time
Measuring and calculating center of the center as the current wireless Local Area Network network.
In a specific embodiment, after mobile terminal accesses Wi-Fi network, consolidating for Wi-Fi network is recorded first
There is data of attribute information, SDK is then positioned by high moral, obtains the current geographic position information of mobile terminal.The position is to use
After family enters Wi-Fi network overlay area, and position when mobile terminal access Wi-Fi network, not directly it is regarded as Wi-
The center of Fi network's coverage area.It needs that the position is adjusted in the present embodiment, self-regulating process can be retouched simply
It states are as follows: the geographical location information that the time defined in the self-regulated septa intersegmental obtains a mobile terminal is corresponding with the geographical location
Network signal intensity can specifically be grown from weak to strong and be divided into 0-5 rank by Wi-Fi network signal strength, and the signal that will acquire is strong
Degree and geographical location information, which are added, adjusts list.If the subsequent Wi-Fi network signal strength got that positions is greater than the last time
The network signal intensity obtained when positioning will then adjust list and empty, subsequent positioning result is added and adjusts list;If subsequent
Positioning gets Wi-Fi network signal strength and is equal to the last time, then adjusting list is added;If subsequent position the signal got
Intensity is less than the last time, then abandons result.When reach self-regulation number after, find out adjust list in all geographical locations it is several
What central value, with reference to shown in Fig. 2.The geometric center value can be adjusted according to the geometric center value that the second wheel obtains, such as when
The signal strength for the geometric center value position that second wheel obtains is less than the signal strength for the geometric center value position that the first round obtains,
It will then abandon that the second wheel obtains as a result, continuing to use the result of first round acquisition;Knot on the contrary then using the second wheel acquisition
Fruit;If the signal strength for the geometric center value position that the second wheel obtains is equal to the letter for the geometric center value position that the first round obtains
Number intensity, then can find out the central point of above-mentioned two geometric center value, finally commonly use Wi-Fi network using the central point as this
Measuring and calculating center, with reference to shown in Fig. 3.Wherein, the first round can refer to the last adjusting for accessing current Wi-Fi network
Process, second wheel can refer to that this accesses the adjustment process of current Wi-Fi network.It is obtained it is, of course, also possible to carry out more wheels
Geometric center value position and corresponding network signal strength, to improve the standard of the measuring and calculating center of the Wi-Fi network finally obtained
Exactness, it is not limited here.This time measuring and calculating center and corresponding Wi-Fi network signal strength are saved, it then will be in the measuring and calculating
Heart position and corresponding Wi-Fi network signal strength are uploaded to the long-range management assembly of Wi-Fi mould group.User connects identical every time
After Wi-Fi, aforesaid operations are repeated.It is final to realize that center is adjusted, center is covered with approaching to reality Wi-Fi network.
Correspondingly, the above process can be realized by following mathematical expression form:
Definition signal intensity is s, and the geographical location for positioning acquisition is p, and geographical position coordinates are loc (x, y), some position
The information of t can be specifically described as pt [st, loc (xt, yt)], signal strength of the st for position t, geometric center center,
Geometric center corresponding signal intensity is sc, and geometric center position coordinates are loc (xc, yc).
Network is accessed in p1 point with mobile terminal, which is p1 [s1, loc (x1, y1)], records p1, then obtains
P2 [s2, loc (x2, y2)], carry out signal strength comparison, if s1=s2, record p2, then obtain p3 [s3, loc (x3,
Y3)], carry out signal strength comparison and abandon p1 and p2, and record p3 if s3 > s2, successively finally obtain first round adjusting knot
Fruit is pcenter1 [sc1, loc (xc1, yc1)], and the second wheel adjusted result is pcenter2 [sc2, loc (xc2, yc2)], when
When sc1=sc2, the second wheel obtains pcenter [sc, (loc (xc1, yc1)+loc (xc2, yc2))/2] after adjusting,
In, (loc (xc1, yc1)+loc (xc2, yc2))/2 is measuring and calculating center position coordinates, referring to figs. 2 to shown in Fig. 3.
It should be noted that in practical applications, if it is known that the accurate location of network center, such as modem
Actual installation position can be gone to approach the true geographical location in Wi-Fi network center by the method being positioned manually.
In the present embodiment, by judging whether the mobile terminal current geographic position is in pre-stored available nothing
In line local area network overlay area, to determine whether in the presence of the Wireless LAN that can be accessed, when judging result is yes, then table
Bright mobile terminal position is covered by available wireless local area networks network, and notifies mobile terminal user can be by accessing wireless office
Domain network avoids consumption mobile data network flow.
In a specific embodiment, the common Wi-Fi network by high moral SDK the geographical location positioned and determining
Overlay area entity, i.e. Wi-Fi network geography fence region do spatial operation, judge the geography positioned by high moral SDK
Whether position is in Wi-Fi network overlay area.When judging that mobile terminal is in some Wi-Fi network overlay area for the first time, then
The message informing mobile terminal user that gives notice can open Wireless LAN switch, to access Wireless LAN.Example
Such as show that at present the time, the last time that have accessible Wi-Fi network, accessible network name, last time to use make in notification bar
Used time signal strength, security level, general distance apart from the Wi-Fi network coverage area center etc., in order to user
It is made whether to access the judgement of the Wi-Fi network.In addition, the notice can also include respective extension content: this month mobile number
It is whether sufficient according to network flow consumption amount and/or percentage, this month residue mobile data network flow, use each Wi-Fi in the recent period
The number and/or data traffic of network use less Wi-Fi network, security level of each available Wi-Fi network etc. in the recent period,
In order to user's use.Notify that display format can be as shown in figure 4, then user can check corresponding expansion by specific operation
Content, for example, user can enter the interface of display respective extension content by clicking the modes such as notice, notice extension content
Display format can be as shown in Figure 5.
It should be noted that the method can also include: to obtain current when mobile terminal connects Wireless LAN
Wireless LAN geographical location information, and update the pre-stored available wireless local area networks network overlay area.Specifically,
According to the self-regulation of newest current wireless Local Area Network network center as a result, updating the existing current Wireless LAN
The relevant information for the current Wireless LAN calculating center, and accumulating according to the measuring and calculating center and before, example
Such as network signal intensity information and effective covering radius update the existing current Wireless LAN overlay area.In addition,
Relevant information can also be stored in locally and/or remotely server, certainly, which can be synchronous progress, such as
Locally associated synchronizing information is transferred to remote server automatically or is saved in cloud storage by mobile terminal.
Certainly, in practical applications, in order to facilitate user's use, the Wireless LAN of the terminal can be automatically opened
Switch, to access Wireless LAN.Specifically, the method also includes: if it is determined that mobile terminal current geographic position
It sets in pre-stored available wireless local area networks network overlay area, then Wireless LAN switch is opened, so that the movement
Terminal accesses the available wireless local area networks network.
The method that prompt provided in an embodiment of the present invention can connect Wireless LAN, by being more than setting movement to consumption
The mobile terminal of data network flux is positioned, and is then judged whether the geographical location is in and is confirmed as available wireless local
In network coverage, when judging result be it is yes, then give notice, prompt user can open Wireless LAN switch, with
The network is accessed, waste mobile data network flow is avoided, the waste of cell-phone fee can be effectively reduced, and can promote user's
Online experience effect.
Correspondingly, the present invention also provides the systems that prompt can connect Wireless LAN, as shown in Figure 6, comprising:
Flow judgment module 701, for judging whether mobile terminal consumes the mobile data network stream greater than given threshold
Amount, if so then execute position acquisition module 702;
Position acquisition module 702, for obtaining the mobile terminal current geographic position;
Judgment module 703, for judging whether the mobile terminal current geographic position is in pre-stored available nothing
Line local area network overlay area, if so, carrying out user reminding.
Specifically, the flow threshold value that the long-range management assembly of the available Wi-Fi mould group of the system issues, the flow
Threshold value can be different according to the difference of the flow package of user.According to flow judgment module 701 to data traffic per minute
The statistical result of Expenditure Levels then excites position acquisition module 702 when statistical result is greater than above-mentioned flow threshold value, with
The geographical location of mobile terminal is obtained, then judges whether the mobile terminal current geographic position is located by judgment module 703
In pre-stored available wireless local area networks network overlay area, if so, carrying out user reminding.
In the present embodiment, the system also includes:
Locating module 801 is connected with position acquisition module 702, for being connected to wireless local area in the mobile terminal
After network, the current geographic position of the mobile terminal is obtained;
Measuring and calculating center obtains module 802, for carrying out current wireless office according to the current geographic position of the mobile terminal
The self-regulation of domain network center position, obtains the measuring and calculating center of current wireless Local Area Network network;
Overlay area determining module 803, for according to preset Wireless LAN covering radius and described current
The measuring and calculating center of Wireless LAN determines current wireless Local Area Network network overlay area;
Memory module 804, for storing current wireless Local Area Network network coverage area information.
Wherein, the measuring and calculating center acquisition module 802 includes:
Initialization unit, for initializing measuring and calculating center and the signal strength of current local network;
Signal strength acquiring unit, for obtaining when the mobile terminal is in current wireless Local Area Network network overlay area
Take the signal in the geographical location of the mobile terminal of the interval time of setting and the current wireless Local Area Network network in the geographical location
Intensity;
Center self-regulation unit, for according to the geographical location of the mobile terminal and the current nothing in the geographical location
The signal strength of line local area network is self-regulated the measuring and calculating center of the current wireless Local Area Network network.
Preferably, in order to improve user access Wireless LAN safety and availability, the system also includes:
Counting module 808, the number for being connected to current wireless Local Area Network network for obtaining the mobile terminal;
Common overlay area determining module 805, if being more than given threshold for connecting number, by Current wireless local area
Network's coverage area is as common Wireless LAN overlay area;
The judgment module 703 is specifically used for judging whether the mobile terminal current geographic position is in pre-stored
Common Wireless LAN overlay area.
It should be noted that the center self-regulation relevant parameter that the measuring and calculating center obtains module 802 can be Wi-
The parameter that the long-range management assembly of Fi mould group issues, it is of course also possible to be the local setup parameter of mobile terminal.For example, described
The long-range management assembly of Wi-Fi mould group is from acquisition for mobile terminal current data flow package situation, then according to current data stream
Set meal situation is measured, the measuring and calculating center is handed down to by the long-range management assembly of Wi-Fi mould group and obtains several centers of module 802
Be self-regulated relevant parameter, and details can refer to method part related content.
Preferably, the system also includes:
Update module 806 is connected with the memory module 804, is used for when mobile terminal connects Wireless LAN,
Current wireless Local Area Network network geographical location information is obtained, and updates the pre-stored available wireless local area networks network area of coverage
Domain.
It in one embodiment, can be according to the Wireless LAN center self-regulated of overlay area determining module 803
For section as a result, updating the measuring and calculating center of the existing current Wireless LAN, corresponding adjustment process refers to method dependent part
Point, it is not described here in detail.
Certainly, the system can also include:
Switch module 807 is used to open Wireless LAN switch, so that the mobile terminal accesses WLAN
Network.In practical applications, which can be an individual module, can also be embedded in other modules, for example,
In the embeddable judgment module 703 of switch module 807, when the result that judgment module 703 obtains is to have accessible WLAN
Network then notifies user, and opens Wireless LAN switch.
Further, the flow judgment module 701 can also include network type judging unit.Network type judgement
Unit can obtain network change each time by the system broadcasts of the network change state of monitoring mobile phone, when network becomes
When change, the flow judgment module 701 can first pass through the network type judging unit and judge whether to access network, if do not had
It connects, then not will do it operation, if accessed network, can further judge to be Wireless LAN, or mobile number
According to network, when judging result is Wireless LAN, then without judging whether mobile terminal consumes the shifting greater than given threshold
Dynamic data network flux, conversely, then carrying out judging the mobile data network flow whether mobile terminal consumes greater than given threshold.
The system that prompt provided in an embodiment of the present invention can connect Wireless LAN is sentenced by flow judgment module 701
Whether disconnected mobile terminal consumes the mobile data network flow greater than given threshold, when result be it is yes, then activated positon obtain mould
To obtain the current geographic position of mobile terminal, judging whether mobile terminal has eventually by judgment module 703 can connect block 702
The Wireless LAN entered, and user is notified when there is Wireless LAN can access.Since the system can be in mobile data network
When network flow is more than given threshold, accessible Wireless LAN is judged whether there is by judgment module 703, and notify to use
Family is avoided that waste mobile data network flow, and can promote the online experience effect of user.
Correspondingly, the present invention goes back a kind of mobile terminal of system, comprising:
Processor 2820, for judging whether mobile terminal generates the mobile data network stream that consumption is greater than given threshold
Amount, if so, obtaining the mobile terminal current geographic position;Judge whether the mobile terminal current geographic position is in pre-
The available wireless local area networks network overlay area first stored, if so, carrying out user reminding;Update the pre-stored available nothing
Line local area network overlay area;Current wireless Local Area Network network center is carried out according to the current geographic position of the mobile terminal
Self-regulation obtains the measuring and calculating center of current wireless Local Area Network network;According to preset Wireless LAN covering radius
With the measuring and calculating center of the current wireless Local Area Network network, current wireless Local Area Network network overlay area is determined;
Sensor module, for being positioned to mobile terminal;Obtain Wi-Fi network signal strength;
Memory 2804 is covered for storage processor executable instruction and/or pre-stored available wireless local area networks network
Cover region domain information;
Communication part 2816, for carrying out data transmission;
Fig. 7 is the frame for the mobile terminal 2800 that a kind of prompt shown in an exemplary embodiment can connect Wireless LAN
Figure.For example,
The mobile terminal 2800 can be smart phone, portable computer, digital broadcasting terminal, messaging device, trip
Gaming machine, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to shown in Fig. 7, mobile terminal 2800 may include following one or more components: processing component 2802, storage
Device 2820, power supply module 2806, multimedia component 2808, audio component 2810, the interface 2812 of input/output (I/O), sensing
Device assembly 2814 and communication component 2816.
Processing component 2802 usually control mobile terminal 2800 integrated operation, such as with positioning, display, call,
Data communication and the associated operation of record operation etc..Processing component 2802 may include one or more processors 2820 to hold
Row instruction, to perform all or part of the steps of the methods described above.In addition, processing component 2802 may include one or more moulds
Block, convenient for the interaction between processing component 2802 and other assemblies.For example, processing component 2802 may include multi-media module,
To facilitate the interaction between multimedia component 2808 and processing component 2802.In the present embodiment, processor 2820, for judging
Whether mobile terminal consumes the mobile data network flow greater than given threshold, if so, obtaining the mobile terminal current position
Manage position;Judge whether the mobile terminal current geographic position is in the pre-stored available wireless local area networks network area of coverage
Domain, if so, carrying out user reminding;Update the pre-stored available wireless local area networks network overlay area;In the movement
After terminal is connected to Wireless LAN, the current geographic position of the mobile terminal is obtained;According to working as the mobile terminal
Preceding geographical location carries out the self-regulation of current wireless Local Area Network network center, obtains the measuring and calculating centre bit of current wireless Local Area Network network
It sets;According to the measuring and calculating center of preset Wireless LAN covering radius and the current wireless Local Area Network network, really
Settled preceding Wireless LAN overlay area.
Memory 2804 is configured as storing various types of data to support the operation in equipment 2800.These data
Example includes the instruction of any application or method for operating on mobile terminal 2800, contact data, geographical position
Confidence breath, the network information, message, picture, video etc..Memory 2804 by any kind of volatibility or non-volatile can be deposited
It stores up equipment or their combination is realized.In the present embodiment, memory 2804 is for storage processor executable instruction, current
Wireless LAN coverage area information and/or pre-stored available wireless local area networks network coverage area information.
Power supply module 2806 provides electric power for the various assemblies of mobile terminal 2800.Power supply module 2806 may include power supply
Management system, one or more power supplys and other with for mobile terminal 2800 generate, manage, and distribute associated group of electric power
Part.
Multimedia component 2808 includes the screen of one output interface of offer between the mobile terminal 2800 and user
Curtain.In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP), to show information to user
Deng.If screen includes touch panel, screen may be implemented as touch screen, to receive input signal from the user.In addition,
It can also include: a front camera and/or rear camera.
Audio component 2810 is configured as output and/or input audio signal.For example, audio component 2810 includes a wheat
Gram wind (MIC), when mobile terminal 2800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, Mike
Wind is configured as receiving external audio signal.The received audio signal can be further stored in memory 2804 or via
Communication component 2816 is sent.In some embodiments, audio component 2810 further includes a loudspeaker, for exporting audio letter
Number.
I/O interface 2812 provides interface, above-mentioned peripheral interface module between processing component 2802 and peripheral interface module
It can be touch screen, keyboard, click wheel, button etc..These buttons can be also possible to virtual for entity, such as touch
Virtual key etc. on screen, specifically may include but be not limited to: home button, volume button, start button and locking press button.
Sensor module 2814 includes one or more sensors, for providing the shape of various aspects for mobile terminal 2800
State assessment.For example, sensor module 2814 can detecte the state that opens/closes of equipment 2800, the relative positioning etc. of component.
In some embodiments, which may include GPS mould group, acceleration transducer, gyro sensor, magnetic biography
Sensor, pressure sensor or temperature sensor etc..The information that the sensor module 2814 obtains can be further stored in
Memory 2804 is sent via communication component 2816.In the present embodiment, sensor module 2814 be used for mobile terminal into
Row positioning, obtains Wi-Fi network signal strength.
Communication component 2816 is configured to facilitate the logical of wired or wireless way between mobile terminal 2800 and other equipment
Letter.Mobile terminal 2800 can access the wireless network based on communication standard and can obtain current network information, such as signal
Intensity etc..Wireless network based on the communication standard such as WiFi, 2G or 3G or their combination.It is, of course, also possible to include:
Near-field communication (NFC) module, to promote short range communication.For example, it can be based on radio frequency identification (RFID) technology in NFC module, it is infrared
Data association (IrDA) technology, ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method
Part explanation.System embodiment described above is only schematical, wherein described be used as separate part description
Unit may or may not be physically separated, component shown as a unit may or may not be
Physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to the actual needs
Some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying
In the case where creative work, it can understand and implement.
The embodiment of the present invention has been described in detail above, and specific embodiment used herein carries out the present invention
It illustrates, the above description of the embodiments is only used to help understand the method and apparatus of the present invention;Meanwhile for the one of this field
As technical staff, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, to sum up institute
It states, the contents of this specification are not to be construed as limiting the invention.