Summary of the invention
The embodiment of the present invention provides a kind of prompting can connect the method and system of WLAN, when closing with the WLAN switch solving mobile terminal, being in available wireless local area networks network overlay area but adopts mobile data network to surf the Net, and causes the problem that mass data flow is wasted.
For this reason, the embodiment of the present invention provides following technical scheme:
Prompting can connect a method for WLAN, comprising:
Judge whether mobile terminal produces the mobile data network flow consuming and be greater than setting threshold, if so, then obtains described mobile terminal current geographic position;
Judge whether described mobile terminal current geographic position is in the available wireless local area networks network overlay area prestored, and if so, then carries out user reminding.
Preferably, described method also comprises:
When mobile terminal connects WLAN, obtain current wireless Local Area Network network geographical location information, and the available wireless local area networks network overlay area prestored described in upgrading.
Preferably, described method also comprises:
After described mobile terminal is connected to WLAN, obtain the current geographic position of described mobile terminal;
Carry out the center self-regulation of current wireless Local Area Network network according to the current geographic position of described mobile terminal, obtain the measuring and calculating center of current wireless Local Area Network network;
According to the measuring and calculating center of the WLAN covering radius preset and described current wireless Local Area Network network, determine current wireless Local Area Network network overlay area;
Store current wireless Local Area Network network coverage area information.
Preferably, described method also comprises:
Obtain the number of times that described mobile terminal is connected to current wireless Local Area Network network;
If connect number of times exceed setting threshold, then using current wireless Local Area Network network overlay area as conventional WLAN overlay area;
Describedly judge whether described mobile terminal current geographic position is in the available wireless local area networks network overlay area prestored and comprises:
Judge whether described mobile terminal current geographic position is in the conventional WLAN overlay area prestored.
Preferably, the described current geographic position according to described mobile terminal carries out the center self-regulation of current wireless Local Area Network network, and the measuring and calculating center obtaining current wireless Local Area Network network comprises:
(1) the measuring and calculating center of initialization current local network and signal strength signal intensity;
(2) when described mobile terminal is in current wireless Local Area Network network overlay area, the geographical position of described mobile terminal of interval time and the signal strength signal intensity of the current wireless Local Area Network network in this geographical position of setting is obtained;
(3) the measuring and calculating center of current wireless Local Area Network network according to the signal strength signal intensity self-regulation of the geographical position of described mobile terminal and the current wireless Local Area Network network in this geographical position, comprising:
A. the signal strength signal intensity of the signal strength signal intensity of the current wireless Local Area Network network of acquisition and existing current wireless Local Area Network network is compared;
If the signal strength signal intensity obtained is greater than existing signal strength signal intensity, then empty existing adjustment list, and the signal strength signal intensity of the current wireless Local Area Network network of described acquisition and corresponding geographical position are added state adjustment list;
If the signal strength signal intensity obtained equals existing signal strength signal intensity, then the signal strength signal intensity of the current wireless Local Area Network network of described acquisition and corresponding geographical position are added described adjustment list;
If the signal strength signal intensity obtained is less than existing signal strength signal intensity, then abandon the result of acquisition;
B., when reaching the acquisition signal strength signal intensity number of times of setting, the geometric center position in all geographical position in described adjustment list is obtained, and using signal maximum in described adjustment list as the signal strength signal intensity in this corresponding geographical position, geometric center position;
The signal strength signal intensity in the corresponding geographical position, geometric center position c. step b obtained, the signal strength signal intensity accessing the corresponding geographical position, geometric center position that current wireless Local Area Network network obtains to the last time compares;
If the signal strength signal intensity in this corresponding geographical position, geometric center position obtained is greater than the signal strength signal intensity in the corresponding geographical position, geometric center position that last access current wireless Local Area Network network obtains, then using the measuring and calculating center of this geometric center position obtained as described current wireless Local Area Network network;
If the signal strength signal intensity in this corresponding geographical position, geometric center position obtained equals the signal strength signal intensity in the corresponding geographical position, geometric center position that last access current wireless Local Area Network network obtains, then obtain the center of this and the last geometric center position obtained, and using the measuring and calculating center of this center as described current wireless Local Area Network network;
If the signal strength signal intensity in this corresponding geographical position, geometric center position obtained is less than the signal strength signal intensity in the corresponding geographical position, geometric center position that last access current wireless Local Area Network network obtains, then give up the geometric center position that this obtains.
Preferably, described method also comprises:
If it is determined that described mobile terminal current geographic position is in the available wireless local area networks network overlay area prestored, then open WLAN switch, access this available wireless local area networks network to make described mobile terminal.
Preferably, describedly judge whether mobile terminal consumes the mobile data network flow being greater than setting threshold and comprise:
Judge whether mobile terminal accesses mobile data network;
Judge whether this access mobile data network consumes the mobile data network flow being greater than setting threshold.
Prompting can connect a system for WLAN, comprising:
Flow judge module, for judging whether mobile terminal consumes the mobile data network flow being greater than setting threshold, if then executing location acquisition module;
Position acquisition module, for obtaining described mobile terminal current geographic position;
Judge module, for judging whether described mobile terminal current geographic position is in the available wireless local area networks network overlay area prestored, and if so, then carries out user reminding.
Preferably, described system also comprises:
Locating module, is connected with position acquisition module, for after described mobile terminal is connected to WLAN, obtains the current geographic position of described mobile terminal;
Measuring and calculating center acquisition module, for carrying out the center self-regulation of current wireless Local Area Network network according to the current geographic position of described mobile terminal, obtains the measuring and calculating center of current wireless Local Area Network network;
Overlay area determination module, for the measuring and calculating center according to the WLAN covering radius preset and described current wireless Local Area Network network, determines current wireless Local Area Network network overlay area;
Memory module, for storing current wireless Local Area Network network coverage area information.
Preferably, described system also comprises:
Update module, is connected with described memory module, for when mobile terminal connects WLAN, obtains current wireless Local Area Network network geographical location information, and the available wireless local area networks network overlay area prestored described in upgrading.
Preferably, described system also comprises:
Counting module, is connected to the number of times of current wireless Local Area Network network for obtaining described mobile terminal;
Conventional overlay area determination module, if exceed setting threshold for connecting number of times, then using current wireless Local Area Network network overlay area as conventional WLAN overlay area;
Described judge module is specifically for judging whether described mobile terminal current geographic position is in the conventional WLAN overlay area prestored.
Preferably, described measuring and calculating center acquisition module comprises:
Initialization unit, for measuring and calculating center and the signal strength signal intensity of initialization current local network;
Signal strength signal intensity acquiring unit, during for being in current wireless Local Area Network network overlay area when described mobile terminal, obtains the geographical position of described mobile terminal of interval time and the signal strength signal intensity of the current wireless Local Area Network network in this geographical position of setting;
Center self-regulation unit, for the measuring and calculating center of current wireless Local Area Network network according to the signal strength signal intensity self-regulation in the geographical position of described mobile terminal and the current wireless Local Area Network network in this geographical position.
Preferably, described system also comprises the switch module be connected with described judge module, if it is determined that described switch module is used for described mobile terminal current geographic position be in the available wireless local area networks network overlay area prestored, then open WLAN switch, access this available wireless local area networks network to make described mobile terminal.
A kind of mobile terminal, comprising:
Processor, for judging whether mobile terminal consumes the mobile data network flow being greater than setting threshold, if so, then obtains described mobile terminal current geographic position; Judge whether described mobile terminal current geographic position is in the available wireless local area networks network overlay area prestored, and if so, then carries out user reminding;
Sensor cluster, for positioning mobile terminal; Obtain WLAN network signal strength signal intensity;
Memory, for storage of processor executable instruction and/or the available wireless local area networks network coverage area information that prestores;
Communication part, for carrying out transfer of data and/or obtaining WLAN network signal strength signal intensity.
The prompting that the embodiment of the present invention provides can connect the method and system of WLAN, by determining available wireless local area networks network overlay area, then consume by location determination the mobile terminal that Mobile data flow is greater than setting threshold and whether be in WLAN overlay area, if so, then reminding user.Because prompting provided by the invention can connect the method for WLAN, first available wireless local area networks network overlay area is determined, then judge whether mobile terminal consumes the mobile data network flow being greater than setting threshold, when judged result is yes, then obtain the geographical position of this mobile terminal, and judge whether this geographical position is in available wireless local area networks network overlay area, judge whether mobile terminal can use with this to surf the Net than the WLAN of mobile data network cheapness, thus prompting user can open WLAN switch, the online of Mobile data flow need not be consumed to use WLAN to surf the Net, the spending of final saving cell-phone fee, in addition, user can also be pointed out to obtain better online experience effect by available WLAN.
Further, carry out the center self-regulation of current wireless Local Area Network network according to the current geographic position of described mobile terminal, obtain the measuring and calculating center of current wireless Local Area Network network; According to the measuring and calculating center of the WLAN covering radius preset and described current wireless Local Area Network network, determine current wireless Local Area Network network overlay area; Store current wireless Local Area Network network coverage area information.Because the present invention can automatically according to the measuring and calculating center of the geographical location information measuring and calculating current wireless Local Area Network network of the current wireless Local Area Network network obtained, and upgrade current wireless Local Area Network network coverage area information according to this measuring and calculating center, when this WLAN overlay area causes its overlay area to change due to reasons such as network center's change in location, this WLAN overlay area is manually upgraded without the need to user, automatically can upgrade, improve the satisfaction of Consumer's Experience.
Further, WLAN overlay area is commonly used for user in available wireless local area networks network overlay area provided by the invention, the scope of activities of each user and the WLAN used is different, thus the conventional WLAN of each user may be unique, conventional WLAN provided by the invention is the available wireless local area networks network that user repeatedly accesses, namely the WLAN commonly used according to the reality of each user and private customized WLAN coverage, be generally internet security, network speeds etc. are WLAN preferably, improve the satisfaction of Consumer's Experience.
Embodiment
In order to the scheme making those skilled in the art person understand the embodiment of the present invention better, below in conjunction with drawings and embodiments, the present invention is described in further detail.Following examples are exemplary, only for explaining the present invention, and can not be interpreted as limitation of the present invention.
In addition, the present invention can in different example repeat reference numerals and/or letter.This repetition is to simplify and clearly object, itself does not indicate the relation between discussed various embodiment and/or setting.
Prompting provided by the invention can connect the method and system of WLAN, first available wireless local area networks network overlay area is determined, when mobile terminal consumption is greater than the mobile data network flow of setting threshold, obtain the geographical position of this mobile terminal, then judge whether this mobile terminal is positioned at available wireless local area networks network overlay area, when being judged as YES, then reminding user can be surfed the Net with by Wi-Fi network, does not need other external devices.Because the available Wi-Fi network of each user is different, the Wi-Fi network such as once used or often use is different, therefore, Wi-Fi network in the present invention connects prompting and customizes according to different user, and available wireless local area networks network overlay area automatically generates, be prompted to user simultaneously be all user oneself be familiar with, and the Wi-Fi network once accessed.Therefore desirable effect can be reached from convenience, practicality, reliability, fail safe and power consumption.
Technical scheme for a better understanding of the present invention and technique effect, be described in detail below with reference to flow chart and specific embodiment.
As shown in Figure 1, be the flow chart that prompting that the embodiment of the present invention provides can connect the method for WLAN, comprise the following steps:
Step S01, judges whether mobile terminal consumes the mobile data network flow being greater than setting threshold, if so, then obtains described mobile terminal current geographic position.
In the present embodiment, described setting threshold can be the threshold value that the threshold value that rule of thumb sets or training obtain, this threshold value can for being stored in mobile terminal this locality, also remote server can be stored in, and this threshold value can be transmitted in the communication process of mobile terminal and remote server.Particularly, this threshold value can be deposited in a database, such as local data base or cloud database etc.
The traffic statistic function that described mobile data network flow can be carried by mobile terminal or the traffic statistic function that service provider provides obtain, and do not limit at this.In addition, when follow-up user reminding, this traffic statistics result can be showed user.
The traffic consumes amount obtained when data flux statistics is more than or equal to the threshold value of setting, such as, the consumption of average minute clock flow exceed 2,000,000 (Mb) or consumed the same day flow exceed 10Mb, can certainly be the threshold value set combining above two kinds of situations, specifically determine according to practical effect; In addition, can also for the threshold value etc. whether sufficient and fixed according to this month residual flow, such as, when this month, flow was sufficient, this threshold value can be set as larger numerical value, and when this month, flow was inadequate, this threshold value can be set as less numerical value, does not limit at this.
Further, before judging whether mobile terminal consumes the mobile data network flow being greater than setting threshold, first can also judge the current network type of mobile terminal, such as, whether the network type that can judge current connection every a minute is mobile data network, if so, then judge whether mobile terminal consumes the mobile data network flow being greater than setting threshold.
When mobile terminal consumption is greater than the mobile data network flow of setting threshold, obtain the geographical position of mobile terminal.Concrete, the available geographical position being obtained mobile terminal by GPS location, Big Dipper location etc., in addition, with reference to the location relevant portion mentioned in step S02, can also be not described in detail in this.
In addition, in other embodiments, describedly judge whether mobile terminal consumes the mobile data network flow being greater than setting threshold and comprise: judge whether mobile terminal accesses mobile data network; Judge whether this access mobile data network consumes the mobile data network flow being greater than setting threshold.Like this, when mobile terminal is greater than setting threshold at the mobile data network flow of this access mobile data network consumption, just can position, when avoiding the mobile data network flow adding up to consume when mobile terminal to be greater than setting threshold, situation about just positioning, to meet customer need.
Step S02, judges whether described mobile terminal current geographic position is in the available wireless local area networks network overlay area prestored, and if so, then carries out user reminding.
In the present embodiment, described WLAN is Wi-Fi network.Each mobile terminal, the region that the user of such as smart mobile phone can go a lot of Wi-Fi network to cover, in such as family, office, hotel and restaurant etc.The built-in wireless network card support of smart mobile phone obtains the information of current Wi-Fi network, and connects through the Wi-Fi network of checking, and the Wi-Fi network these successfully connected is as available wireless local area networks network.Wi-Fi network overlay area is one is the center of circle by geographical position, Wi-Fi network center, and Wi-Fi coverage is the border circular areas of radius.This border circular areas is the concept of a geographical space planar data, is exactly in fact the management to spatial data to the management in this region.Therefore the information structure of Wi-Fi network just comprises intrinsic data of attribute information and spatial data two parts.Build-in attribute information data comprises the title of Wi-Fi network, the unique identifier of Wi-Fi network, and Wi-Fi network signal strength signal intensity and this Wi-Fi network are moved terminal and connect number of times etc.; Spatial data then comprises the latitude and longitude coordinates etc. at Wi-Fi network center.
Although had the center of Wi-Fi network and some information of Wi-Fi network, such as this Wi-Fi network coverage radius, but these data can't form a Wi-Fi network overlay area entity, above-mentioned data transformations, by the geography fence function of high moral location SDK, is become a Wi-Fi network overlay area entity by the present invention.And identify this Wi-Fi network overlay area entity by the exclusive identification code of Wi-Fi network.Finally this Wi-Fi network coverage entity is effectively used.
Preferably, described available wireless network commonly uses WLAN for user, and therefore, described method also comprises: obtain the number of times that described mobile terminal is connected to current wireless Local Area Network network; If connect number of times exceed setting threshold, then using current wireless Local Area Network network overlay area as conventional WLAN overlay area; Describedly judge whether described mobile terminal current geographic position is in the available wireless local area networks network overlay area prestored and comprises: judge whether described mobile terminal current geographic position is in the conventional WLAN overlay area prestored.When judged result is yes, then carry out user reminding.In practical application, when user successfully connects certain WLAN, and when the number of times successfully connecting this WLAN is greater than setting threshold, then think that this WLAN is the WLAN that user often connects use, define such available wireless local area networks network in the present embodiment for conventional WLAN, the practicality of these conventional WLAN, reliability and fail safe have higher guarantee.
In actual applications, be used for determining that the method for available wireless local area networks network overlay area is more, such as, after mobile terminal accesses certain Wi-Fi network, the available position by location technology localisation of mobile terminals such as GPS, BDS, simultaneously because the effective radius of Wi-Fi network coverage is generally tens meters, the general coverage of current Wi-Fi network can be estimated; In addition, the geographical position of mobile terminal can also be determined, the position of the positioning function localisation of mobile terminals that the application program such as positioning service or Baidu's map, high moral map, micro-letter, Tencent QQ such as provided by Internet service provider is provided by network positions, application program location etc.Further, in order to improve the accuracy of the available wireless local area networks network coverage of acquisition, the present invention adopts the self-regulating mode in WLAN center, obtain the measuring and calculating center of current wireless Local Area Network network, then current available wireless local area networks network overlay area is determined according to this measuring and calculating center, concrete, the available wireless local area networks network overlay area prestored described in the present invention determines comprises:
After described mobile terminal is connected to WLAN, obtain the current geographic position of described mobile terminal;
Carry out the center self-regulation of current wireless Local Area Network network according to the current geographic position of described mobile terminal, obtain the measuring and calculating center of current wireless Local Area Network network;
According to the measuring and calculating center of the WLAN covering radius preset and described current wireless Local Area Network network, determine current wireless Local Area Network network overlay area;
Store current wireless Local Area Network network coverage area information.
Wherein, described current wireless Local Area Network network center self-regulation mainly based on following 3 points, for Wi-Fi network: the intensity of Wi-Fi network signal, self-regulation interval and self-regulation number of times.Wi-Fi network signal strength signal intensity can be obtained by Wi-Fi module, when Wi-Fi network signal strength signal intensity is stronger, then can think that the distance at distance Wi-Fi network center is nearer.Self-regulation interval can for the value preset, also can be issued by remote server, such as issued by the telemanagement assembly of Wi-Fi module, this self-regulation spacing value determines in the middle of a self-regulating process, how long carry out one-time positioning, this self-regulation spacing value value can be different according to the difference of time residing for this conventional Wi-Fi network overlay area last time, and the time be in conventional Wi-Fi network overlay area is longer, then self-regulation interval can be longer, otherwise shorter; In addition, can also be the value rule of thumb set, specifically can determine according to result of use, not do particular determination at this.Self-regulating number of times can for the value preset, also can be issued by remote server, such as issued by the telemanagement assembly of Wi-Fi module, this value determines should to perform in the middle of a self-regulating process and locates several times, the value that the time that this value value calculates this conventional Wi-Fi network overlay area residing for the signal strength signal intensity of center and last time by the last time jointly determines or rule of thumb sets, specifically can determine according to result of use.
In actual applications, the current phone data traffic set meal situation that can obtain according to data flux statistics carrys out configuration center position self-regulation relevant parameter, comprising: self-regulation number of times, self-regulation interval, the connection frequency threshold value commonly using Wi-Fi network, Wi-Fi network radius coverage area and data network flux consume threshold value.Preferably, self-regulation number of times and self-regulation are spaced apart the optimum value obtained by remote server training.The connection frequency threshold value of conventional Wi-Fi network is the lower limit that certain Wi-Fi network is determined into the access number of times of conventional Wi-Fi network, and this value is for can dynamically change according to demand.Conventional Wi-Fi zone radius determines the size in conventional Wi-Fi region.It is judge whether mobile terminal is in the prerequisite Rule of judgment of Wi-Fi overlay area that data traffic consumes threshold value, only have when actual consumption flow is greater than this threshold value, just can activate location, this data traffic consumes threshold value and dynamically can determine according to the center self-regulation relevant parameter uploaded.
Further, when mobile terminal connects WLAN, obtain current wireless Local Area Network network geographical location information, and the available wireless local area networks network overlay area prestored described in upgrading.
Further, current wireless Local Area Network network overlay area can be upgraded by the center and covering radius upgrading current wireless Local Area Network network, particularly, described acquisition current wireless Local Area Network network geographical location information, and the available wireless local area networks network overlay area prestored described in upgrading comprises: according to the up-to-date self-regulating result in current wireless Local Area Network network center, upgrade the measuring and calculating center of this current WLAN existing.
In actual applications, the described current geographic position according to described mobile terminal carries out the center self-regulation of current wireless Local Area Network network, and the measuring and calculating center obtaining current wireless Local Area Network network comprises:
(1) the measuring and calculating center of initialization current local network and signal strength signal intensity;
(2) when described mobile terminal is in current wireless Local Area Network network overlay area, the geographical position of described mobile terminal of interval time and the signal strength signal intensity of the current wireless Local Area Network network in this geographical position of setting is obtained;
(3) the measuring and calculating center of current wireless Local Area Network network according to the signal strength signal intensity self-regulation of the geographical position of described mobile terminal and the current wireless Local Area Network network in this geographical position, comprising:
A. the signal strength signal intensity of the signal strength signal intensity of the current wireless Local Area Network network of acquisition and existing current wireless Local Area Network network is compared;
If the signal strength signal intensity obtained is greater than existing signal strength signal intensity, then empty existing adjustment list, and the signal strength signal intensity of the current wireless Local Area Network network of described acquisition and corresponding geographical position are added described adjustment list;
If the signal strength signal intensity obtained equals existing signal strength signal intensity, then the signal strength signal intensity of the current wireless Local Area Network network of described acquisition and corresponding geographical position are added described adjustment list;
If the signal strength signal intensity obtained is less than existing signal strength signal intensity, then abandon the result of acquisition;
B., when reaching the acquisition signal strength signal intensity number of times of setting, the geometric center position in all geographical position in described adjustment list is obtained, and using signal maximum in described adjustment list as the signal strength signal intensity in this corresponding geographical position, geometric center position;
The signal strength signal intensity in the corresponding geographical position, geometric center position c. step b obtained, the signal strength signal intensity accessing the corresponding geographical position, geometric center position that current wireless Local Area Network network obtains to the last time compares;
If the signal strength signal intensity in this corresponding geographical position, geometric center position obtained is greater than the signal strength signal intensity in the corresponding geographical position, geometric center position that last access current wireless Local Area Network network obtains, then using the measuring and calculating center of this geometric center position obtained as described current wireless Local Area Network network;
If the signal strength signal intensity in this corresponding geographical position, geometric center position obtained equals the signal strength signal intensity in the corresponding geographical position, geometric center position that last access current wireless Local Area Network network obtains, then obtain the center of this and the last geometric center position obtained, and using the measuring and calculating center of this center as described current wireless Local Area Network network;
If the signal strength signal intensity in this corresponding geographical position, geometric center position obtained is less than the signal strength signal intensity in the corresponding geographical position, geometric center position that last access current wireless Local Area Network network obtains, then give up the geometric center position that this obtains.
It should be noted that, if first time access current wireless Local Area Network network, then the direct geometric center position obtained by step b is as the measuring and calculating center of described current wireless Local Area Network network.
In a specific embodiment, when after mobile terminal access Wi-Fi network, first record the build-in attribute information data of Wi-Fi network, then by high moral location SDK, obtain the current geographic position information of mobile terminal.This position is for after user enters Wi-Fi network overlay area, and position during mobile terminal access Wi-Fi network, be not directly regarded as the center of Wi-Fi network overlay area.Need in the present embodiment to regulate this position, self-regulating process can simply be described as: the time defined every self-regulation interval obtains the geographical location information Wi-Fi network signal strength signal intensity corresponding to this geographical position of a mobile terminal, specifically network signal intensity can be grown from weak to strong and be divided into 0-5 rank, the signal strength signal intensity of acquisition and geographical location information are added adjustment list.If the network signal intensity that the Wi-Fi network signal strength signal intensity that follow-up location gets obtains when being greater than last location, then adjustment list is emptied, follow-up positioning result is added adjustment list; If follow-up location gets Wi-Fi network signal strength signal intensity equal last, then add adjustment list; If the signal strength signal intensity that follow-up location gets is less than the last time, then abandon result.After reaching self-regulation number of times, obtain the geometric center value regulating all geographical position in list, shown in figure 2.The geometric center value that this geometric center value can take turns acquisition according to second regulates, the signal strength signal intensity of such as taking turns the geometric center value position of acquisition when second is less than the signal strength signal intensity of the geometric center value position that the first round obtains, then will abandon the result that second takes turns acquisition, continue the result using the first round to obtain; Otherwise then the result of acquisition is taken turns in use second; If the second signal strength signal intensity of taking turns the geometric center value position of acquisition equals the signal strength signal intensity of the geometric center value position that the first round obtains, then can obtain the central point of above-mentioned two geometric center values, final using this central point as the measuring and calculating center of this conventional Wi-Fi network, shown in figure 3.Wherein, the described first round can refer to the adjustment process of the current Wi-Fi network of last access, and described second takes turns and can refer to that this accesses the adjustment process of current Wi-Fi network.Certainly, many wheels can also be carried out and obtain geometric center value position and corresponding network signal strength signal intensity, to improve the accuracy of the measuring and calculating center of the final Wi-Fi network obtained, not limit at this.Preserve this measuring and calculating center and corresponding Wi-Fi network signal strength signal intensity, then this measuring and calculating center and corresponding Wi-Fi network signal strength signal intensity are uploaded to the telemanagement assembly of Wi-Fi module.After user connects identical Wi-Fi at every turn, repeat aforesaid operations.Finally realize center to regulate, cover center with approaching to reality Wi-Fi network.
Correspondingly, said process can be realized by following mathematical expression form:
Definition signal intensity is s, the geographical position that location obtains is p, and geographical position coordinates is loc (x, y), the information of certain position t can specifically describe as pt [st, loc (xt, yt)], st is the signal strength signal intensity of position t, geometric center is center, geometric center corresponding signal intensity is sc, and geometric center position coordinates is loc (xc, yc).
With mobile terminal at p1 point access network, this positional information is p1 [s1, loc (x1, y1)], record p1, then p2 [s2 is obtained, loc (x2, y2)], carry out signal strength signal intensity to compare, if s1=s2, record p2, then p3 [s3 is obtained, loc (x3, y3)], carry out signal strength signal intensity to compare, if s3>s2, abandon p1 and p2, and record p3, finally obtaining first round adjustment result is successively pcenter1 [sc1, loc (xc1, yc1)], second take turns regulate result be pcenter2 [sc2, loc (xc2, yc2)], as sc1=sc2, pcenter [sc is obtained after second rotation section end, (loc (xc1, yc1)+loc (xc2, yc2))/2], wherein, (loc (xc1, yc1)+loc (xc2, yc2))/2 is measuring and calculating center position coordinates, shown in Fig. 3.
It should be noted that, in actual applications, if the accurate location at known network center, the actual installation position of such as modulator-demodulator, can go to approach real geographical position, Wi-Fi network center by the method for artificial location.
In the present embodiment, by judging whether described mobile terminal current geographic position is in the available wireless local area networks network overlay area that prestores, judge whether to there is the WLAN that can access, when judged result is yes, then show that mobile terminal position is covered by available wireless local area networks network, and notify that mobile phone users can be avoided consuming mobile data network flow by accessing WLAN network.
In a specific embodiment, the geographical position obtained and the conventional Wi-Fi network overlay area entity determined is located by high moral SDK, namely spatial operation is done in Wi-Fi network geography fence region, judges whether locate by high moral SDK the geographical position obtained is in Wi-Fi network overlay area.Judge that mobile terminal is in certain Wi-Fi network overlay area when first, then message informing mobile phone users of giving notice can open WLAN switch, so that accessing WLAN network.Such as show in informing have accessible Wi-Fi network, accessible network name at present, time that last time uses, last time signal strength signal intensity when using, safe class, general distance etc. apart from this Wi-Fi network coverage center so that user makes the judgement whether accessing this Wi-Fi network.In addition, described notice can also comprise respective extension content: this month mobile data network traffic consumes amount and/or percentage, this month residue mobile data network flow whether sufficient, use the number of times of each Wi-Fi network and/or data traffic in the recent period, use less Wi-Fi network, the safe class etc. of each available Wi-Fi network in the recent period, so that user uses.Notice display format can be as shown in Figure 4, then user can check corresponding expansion content by specific operation, such as, user can enter the interface of display respective extension content by clicking the modes such as notice, the display format of notice expansion content can be as shown in Figure 5.
It should be noted that, described method can also comprise: when mobile terminal connects WLAN, obtains current wireless Local Area Network network geographical location information, and the available wireless local area networks network overlay area prestored described in upgrading.Particularly, according to the up-to-date self-regulating result in current wireless Local Area Network network center, upgrade the measuring and calculating center of this current WLAN existing, and according to this measuring and calculating center and the relevant information of this current WLAN that accumulates before, such as network signal intensity information and effective covering radius etc., upgrade this current WLAN overlay area existing.In addition, relevant information can also be kept in this locality and/or remote server, certainly, this process can synchronously be carried out, such as mobile terminal automatically by local relevant information synchronous transmission to remote server or be saved in cloud storage.
Certainly, in actual applications, conveniently user uses, and automatically can open the WLAN switch of described terminal, with accessing WLAN network.Particularly, described method also comprises: if it is determined that described mobile terminal current geographic position is in the available wireless local area networks network overlay area prestored, then open WLAN switch, accesses this available wireless local area networks network to make described mobile terminal.
The prompting that the embodiment of the present invention provides can connect the method for WLAN, by positioning consuming the mobile terminal exceeding setting mobile data network flow, then judging whether this geographical position is in is confirmed as in available wireless local area networks network coverage, when judged result is yes, then give notice, prompting user can open WLAN switch, to access this network, avoid waste mobile data network flow, effectively can reduce the waste of cell-phone fee, and the online experience effect of user can be promoted.
Accordingly, present invention also offers the system that prompting can connect WLAN, as shown in Figure 6, comprising:
Flow judge module 701, for judging whether mobile terminal consumes the mobile data network flow being greater than setting threshold, if then executing location acquisition module 702;
Position acquisition module 702, for obtaining described mobile terminal current geographic position;
Judge module 703, for judging whether described mobile terminal current geographic position is in the available wireless local area networks network overlay area prestored, and if so, then carries out user reminding.
Concrete, the traffic consumes threshold value that the telemanagement assembly that this system can obtain Wi-Fi module issues, this traffic consumes threshold value can be different according to the difference of the flow package of user.According to the statistics of flow judge module 701 to data traffic Expenditure Levels per minute, when statistics is greater than above-mentioned traffic consumes threshold value, then excite position acquisition module 702, to obtain the geographical position of mobile terminal, then judge whether described mobile terminal current geographic position is in the available wireless local area networks network overlay area prestored by judge module 703, if so, then user reminding is carried out.
In the present embodiment, described system also comprises:
Locating module 801, is connected with position acquisition module 702, for after described mobile terminal is connected to WLAN, obtains the current geographic position of described mobile terminal;
Measuring and calculating center acquisition module 802, for carrying out the center self-regulation of current wireless Local Area Network network according to the current geographic position of described mobile terminal, obtains the measuring and calculating center of current wireless Local Area Network network;
Overlay area determination module 803, for the measuring and calculating center according to the WLAN covering radius preset and described current wireless Local Area Network network, determines current wireless Local Area Network network overlay area;
Memory module 804, for storing current wireless Local Area Network network coverage area information.
Wherein, described measuring and calculating center acquisition module 802 comprises:
Initialization unit, for measuring and calculating center and the signal strength signal intensity of initialization current local network;
Signal strength signal intensity acquiring unit, during for being in current wireless Local Area Network network overlay area when described mobile terminal, obtains the geographical position of described mobile terminal of interval time and the signal strength signal intensity of the current wireless Local Area Network network in this geographical position of setting;
Center self-regulation unit, for the measuring and calculating center of current wireless Local Area Network network according to the signal strength signal intensity self-regulation in the geographical position of described mobile terminal and the current wireless Local Area Network network in this geographical position.
Preferably, in order to improve fail safe and the availability of the WLAN of user's access, described system also comprises:
Counting module 808, is connected to the number of times of current wireless Local Area Network network for obtaining described mobile terminal;
Conventional overlay area determination module 805, if exceed setting threshold for connecting number of times, then using current wireless Local Area Network network overlay area as conventional WLAN overlay area;
Described judge module 703 is specifically for judging whether described mobile terminal current geographic position is in the conventional WLAN overlay area prestored.
It should be noted that the parameter that the center self-regulation relevant parameter of described measuring and calculating center acquisition module 802 can issue for the telemanagement assembly of Wi-Fi module certainly, also can be the local setup parameter of mobile terminal.Such as, the telemanagement assembly of described Wi-Fi module is from acquisition for mobile terminal current data flow package situation, then according to current data flow package situation, be handed down to the some center self-regulation relevant parameters of described measuring and calculating center acquisition module 802 by the telemanagement assembly of Wi-Fi module, details can reference method part related content.
Preferably, described system also comprises:
Update module 806, is connected with described memory module 804, for when mobile terminal connects WLAN, obtains current wireless Local Area Network network geographical location information, and the available wireless local area networks network overlay area prestored described in upgrading.
In one embodiment, can according to the WLAN center self-regulation result of overlay area determination module 803, upgrade the measuring and calculating center of this current WLAN existing, corresponding adjustment process reference method relevant portion, does not describe in detail at this.
Certainly, described system can also comprise:
Switch module 807, for opening WLAN switch, to make described mobile terminal accessing WLAN network.In actual applications, this switch module 807 can be an independent module, also can embed in other modules, such as, this switch module 807 can embed in judge module 703, when the result of judge module 703 acquisition is for there being accessible WLAN, then notifies user, and open WLAN switch.
Further, described flow judge module 701 can also comprise network type judging unit.This network type judging unit can obtain network change each time by the system broadcasts monitoring the network change state of mobile phone, when network changes time, described flow judge module 701 first can judge whether access network by this network type judging unit, if do not connected, then can not operate, if accessed network, then can judge it is WLAN further, or mobile data network, when judged result is WLAN, then do not carry out judging whether mobile terminal consumes the mobile data network flow being greater than setting threshold, otherwise, then carry out judging whether mobile terminal consumes the mobile data network flow being greater than setting threshold.
The prompting that the embodiment of the present invention provides can connect the system of WLAN, judge whether mobile terminal consumes the mobile data network flow being greater than setting threshold by flow judge module 701, when result is yes, then active position acquisition module 702 is to obtain the current geographic position of mobile terminal, judge whether mobile terminal has the WLAN that can access eventually through judge module 703, and notify user when there being WLAN can be accessed by.Because this system can when mobile data network flows exceed setting threshold, judge whether to there is accessible WLAN by judge module 703, and notify user, waste mobile data network flow can be avoided, and the online experience effect of user can be promoted.
Accordingly, the present invention goes back a kind of mobile terminal of system, comprising:
Processor 2820, for judging whether mobile terminal produces the mobile data network flow consuming and be greater than setting threshold, if so, then obtains described mobile terminal current geographic position; Judge whether described mobile terminal current geographic position is in the available wireless local area networks network overlay area prestored, and if so, then carries out user reminding; The available wireless local area networks network overlay area prestored described in renewal; Carry out the center self-regulation of current wireless Local Area Network network according to the current geographic position of described mobile terminal, obtain the measuring and calculating center of current wireless Local Area Network network; According to the measuring and calculating center of the WLAN covering radius preset and described current wireless Local Area Network network, determine current wireless Local Area Network network overlay area;
Sensor cluster, for positioning mobile terminal; Obtain Wi-Fi network signal strength signal intensity;
Memory 2804, for storage of processor executable instruction and/or the available wireless local area networks network coverage area information that prestores;
Communication part 2816, for carrying out transfer of data;
Fig. 7 is the block diagram that a kind of prompting shown in an exemplary embodiment can connect the mobile terminal 2800 of WLAN.Such as,
This mobile terminal 2800 can be smart mobile phone, pocket computer, digital broadcast terminal, messaging devices, game machine, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to shown in Fig. 7, mobile terminal 2800 can comprise following one or more assembly: processing components 2802, memory 2820, power supply module 2806, multimedia groupware 2808, audio-frequency assembly 2810, the interface 2812 of I/O (I/O), sensor cluster 2814, and communications component 2816.
Processing components 2802 controls the integrated operation of mobile terminal 2800 usually, and such as, with location, display, call, data communication and record operate the operation etc. be associated.Processing components 2802 can comprise one or more processor 2820 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 2802 can comprise one or more module, and what be convenient between processing components 2802 and other assemblies is mutual.Such as, processing components 2802 can comprise multi-media module, mutual with what facilitate between multimedia groupware 2808 and processing components 2802.In the present embodiment, processor 2820, for judging whether mobile terminal consumes the mobile data network flow being greater than setting threshold, if so, then obtains described mobile terminal current geographic position; Judge whether described mobile terminal current geographic position is in the available wireless local area networks network overlay area prestored, and if so, then carries out user reminding; The available wireless local area networks network overlay area prestored described in renewal; After described mobile terminal is connected to WLAN, obtain the current geographic position of described mobile terminal; Carry out the center self-regulation of current wireless Local Area Network network according to the current geographic position of described mobile terminal, obtain the measuring and calculating center of current wireless Local Area Network network; According to the measuring and calculating center of the WLAN covering radius preset and described current wireless Local Area Network network, determine current wireless Local Area Network network overlay area.
Memory 2804 is configured to store various types of data to be supported in the operation of equipment 2800.The example of these data comprises for any application program of operation on mobile terminal 2800 or the instruction of method, contact data, geographical location information, the network information, message, picture, video etc.Memory 2804 can be realized by the volatibility of any type or non-volatile memory device or their combination.In the present embodiment, memory 2804 is for storage of processor executable instruction, current wireless Local Area Network network coverage area information and/or the available wireless local area networks network coverage area information that prestores.
The various assemblies that power supply module 2806 is mobile terminal 2800 provide electric power.Power supply module 2806 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for mobile terminal 2800 and be associated.
Multimedia groupware 2808 is included in the screen providing an output interface between described mobile terminal 2800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP), with to user's display information etc.If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.In addition, can also comprise: a front-facing camera and/or post-positioned pick-up head.
Audio-frequency assembly 2810 is configured to export and/or input audio signal.Such as, audio-frequency assembly 2810 comprises a microphone (MIC), and when mobile terminal 2800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 2804 further or be sent via communications component 2816.In certain embodiments, audio-frequency assembly 2810 also comprises a loud speaker, for output audio signal.
I/O interface 2812 is for providing interface between processing components 2802 and peripheral interface module, and above-mentioned peripheral interface module can be touch-screen, keyboard, some striking wheel, button etc.These buttons can be entity, and also can be virtual, such as, virtual key etc. on touch-screen, specifically can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 2814 comprises one or more transducer, for providing the state estimation of various aspects for mobile terminal 2800.Such as, sensor cluster 2814 can detect the opening/closing state of equipment 2800, the relative positioning etc. of assembly.In certain embodiments, this sensor cluster 2814 can comprise GPS module, acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor etc.The information that described sensor cluster 2814 obtains can be stored in memory 2804 further or be sent via communications component 2816.In the present embodiment, sensor cluster 2814, for positioning mobile terminal, obtains Wi-Fi network signal strength signal intensity.
Communications component 2816 is configured to the communication being convenient to wired or wireless mode between mobile terminal 2800 and other equipment.Mobile terminal 2800 can access the wireless network based on communication standard and can obtain current network information, such as signal strength signal intensity etc.The described wireless network based on communication standard is as WiFi, 2G or 3G, or their combination.Certainly, can also comprise: near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for system embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.System embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Being described in detail the embodiment of the present invention above, applying embodiment herein to invention has been elaboration, the explanation of above embodiment just understands method and apparatus of the present invention for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.