CN108064024A - Control method, device, storage medium and mobile terminal based on locating module - Google Patents
Control method, device, storage medium and mobile terminal based on locating module Download PDFInfo
- Publication number
- CN108064024A CN108064024A CN201711325856.6A CN201711325856A CN108064024A CN 108064024 A CN108064024 A CN 108064024A CN 201711325856 A CN201711325856 A CN 201711325856A CN 108064024 A CN108064024 A CN 108064024A
- Authority
- CN
- China
- Prior art keywords
- hotspot
- mobile terminal
- default
- current
- gnss module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0264—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/01—Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/13—Receivers
- G01S19/34—Power consumption
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the present application discloses the control method based on locating module, device, storage medium and mobile terminal.This method includes:Detect that the GNSS module in mobile terminal is in by the state of LBS application calls;Obtain the current Wi-Fi hotspot information list that mobile terminal to search arrives;Judge whether comprising default Wi-Fi hotspot in current Wi-Fi hotspot information list, wherein, presetting Wi-Fi hotspot includes the Wi-Fi hotspot in indoor environment;If comprising, it is determined that mobile terminal gets in environment, and control GNSS module stops positioning.The embodiment of the present application by using above-mentioned technical proposal, can reduce because in GNSS module indoors environment because of power consumption caused by flogging a dead horse.
Description
Technical field
The invention relates to field of locating technology more particularly to the control method based on locating module, device, storage
Medium and mobile terminal.
Background technology
At present, most mobile terminals are provided with positioning function, can provide a user many location based services, for
Family brings facility.
The positioning method of mobile terminal mainly includes Global Navigation Satellite System (Global Navigation
Satellite System, GNSS) positioning, network positions and base station location etc..Wherein, GNSS positioning methods have positioning accurate
The advantages that degree is high and need not use mobile data network, but position fixing process power consumption is very big, when influencing the continuation of the journey of mobile terminal
Between.In addition, GNSS positioning methods need search of satellite signal, compare the environment of closing or surrounding presence when mobile terminal is in
When shelter, satellite-signal may be caused unstable or difference in signal strength etc., can not realize positioning.
The content of the invention
The embodiment of the present application provides a kind of control method based on locating module, device, storage medium and mobile terminal, can
To optimize the control program based on locating module in mobile terminal.
In a first aspect, the embodiment of the present application provides a kind of control method based on locating module, including:
It detects that the Global Satellite Navigation System GNSS module in mobile terminal is in be adjusted based on location-based service LBS applications
State;
Obtain the current Wi-Fi hotspot information list that the mobile terminal to search arrives;
Judge whether comprising default Wi-Fi hotspot in current Wi-Fi hotspot information list, wherein, the default Wi-Fi hotspot
Including the Wi-Fi hotspot being in indoor environment;
If comprising, it is determined that the mobile terminal gets in environment, and the GNSS module is controlled to stop positioning.
Second aspect, the embodiment of the present application provide a kind of control device based on locating module, including:
State detection module is called, whether the Global Satellite Navigation System GNSS module for detecting in mobile terminal is in
By the state based on location-based service LBS application calls;
Hot information list acquisition module, for detect the GNSS module be in by LBS application calls state when,
Obtain the current Wi-Fi hotspot information list that the mobile terminal to search arrives;
Default hot spot judgment module, for judging default Wi-Fi hotspot whether is included in current Wi-Fi hotspot information list,
Wherein, the default Wi-Fi hotspot includes the Wi-Fi hotspot in indoor environment;
Localization process module, for when in judging current Wi-Fi hotspot information list comprising default Wi-Fi hotspot, really
The fixed mobile terminal gets in environment, and the GNSS module is controlled to stop positioning.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey
Sequence realizes the control method based on locating module as described in the embodiment of the present application when the program is executed by processor.
Fourth aspect, the embodiment of the present application provide a kind of mobile terminal, including memory, GNSS module, processor and
The computer program that can be run on a memory and in processor is stored, the processor be realized when performing the computer program
The control method based on locating module as described in the embodiment of the present application.
The control program based on locating module provided in the embodiment of the present application, detects the GNSS module in mobile terminal
In by LBS application calls state when, the current Wi-Fi hotspot information list that arrives of mobile terminal to search is obtained, if judging to work as
Default Wi-Fi hotspot is included in preceding Wi-Fi hotspot information list, it is determined that the mobile terminal gets in environment, described in control
GNSS module stops positioning.By using above-mentioned technical proposal, when GNSS module is in running order because of LBS application calls
When, judge that can mobile terminal search default Wi-Fi hotspot, so as to judge whether mobile terminal gets in, if into
Interior, then be not suitable for GNSS module work, and control GNSS module stops positioning, reduces caused by flogging a dead horse because of GNSS module
Power consumption.
Description of the drawings
Fig. 1 is a kind of flow diagram of the control method based on locating module provided by the embodiments of the present application;
Fig. 2 is a kind of Wi-Fi hotspot information list interface schematic diagram provided by the embodiments of the present application;
Fig. 3 is a kind of Wi-Fi hotspot details interface schematic diagram provided by the embodiments of the present application;
Fig. 4 is the flow diagram of another control method based on locating module provided by the embodiments of the present application;
Fig. 5 is the flow diagram of another control method based on locating module provided by the embodiments of the present application;
Fig. 6 is the flow diagram of another control method based on locating module provided by the embodiments of the present application;
Fig. 7 is a kind of structure diagram of the control device based on locating module provided by the embodiments of the present application;
Fig. 8 is a kind of structure diagram of mobile terminal provided by the embodiments of the present application;
Fig. 9 is the structure diagram of another mobile terminal provided by the embodiments of the present application.
Specific embodiment
Further illustrate the technical solution of the application below with reference to the accompanying drawings and specific embodiments.It is appreciated that
It is that specific embodiment described herein is used only for explaining the application rather than the restriction to the application.It further needs exist for illustrating
, part relevant with the application rather than entire infrastructure are illustrated only for ease of description, in attached drawing.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The processing described as flow chart or method.Although each step is described as the processing of order, many of which by flow chart
Step can be implemented concurrently, concomitantly or simultaneously.In addition, the order of each step can be rearranged.When its operation
The processing can be terminated during completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with
Corresponding to method, function, regulation, subroutine, subprogram etc..
Fig. 1 be a kind of flow diagram of the control method based on locating module provided by the embodiments of the present application, this method
It can be performed by the control device based on locating module, wherein the device can be generally integrated in by software and/or hardware realization
In mobile terminal.As shown in Figure 1, this method includes:
Step 101 detects that the GNSS module in mobile terminal is in by the state of LBS application calls.
Illustratively, the mobile terminal in the embodiment of the present application may include that mobile phone and tablet computer etc. are provided with GNSS and determine
The mobile equipment of position module (abbreviation GNSS module).The embodiment of the present application is not construed as limiting the concrete type of GNSS module, can be with
It is defended including global positioning system (Global Positioning System, GPS), Beidou satellite navigation system and Galileo
Star navigation system (GALILEO) etc..
In the embodiment of the present application, to being based on the concrete kind of location-based service (Location Based Service, LBS) application
Type does not limit, it may include class application (such as U.S. group takes out), social class are taken out in electronic map class application (such as Baidu map)
Using (such as wechat), information service class application (such as popular comment) and GT grand touring using (such as taking journey) etc..Generally
, LBS application need using positioning service when, can send to GNSS module call request (namely LBS application initiate GNSS determine
Position mode Location Request), if agreeing to the call request (even agreeing to the Location Request), then GNSS module would be at by
The state of LBS application calls in this state in normal operating mode, search of satellite signal and obtains other for fixed
The related data of position, and then the location information of mobile terminal is calculated, LBS is supplied to apply, LBS is applied further according to location information
Provide a user more abundant service.When GNSS module is in the state by LBS application calls, GNSS module should to LBS
With location information is provided, it can thus detect whether GNSS module is in by the state of LBS application calls.For example, detection LBS applications
Whether the location information of GNSS module offer is received, if receiving, GNSS module is in by the state of LBS application calls.
Step 102 obtains the current Wi-Fi hotspot information list that the mobile terminal to search arrives.
At present, mobile terminal possesses wireless networking capabilities mostly, and the most common type is by Wireless Fidelity (Wireless
Fidelity, WiFi) mode.When the WLAN switch in mobile terminal, (also known as WiFi switches or wireless network connection are opened
Close when) be in opening when, mobile terminal can search for the Wi-Fi hotspot of surrounding, and the Wi-Fi hotspot that will search is added
Into the Wi-Fi hotspot information list of itself, in the list, the title of each Wi-Fi hotspot can be generally included, the title is for example
Can be service set (Service Set Identifier, SSID), it is also possible to include the corresponding letter of each Wi-Fi hotspot
Number intensity, user can want the Wi-Fi hotspot of connection according to title and the corresponding icon selection of signal strength, and input corresponding
Password (need not then input password) for the hot spot of unencryption, you can be connected to the Wi-Fi hotspot and be successfully joined corresponding wireless
LAN realizes wireless networking capabilities.Fig. 2 is a kind of Wi-Fi hotspot information list interface signal provided by the embodiments of the present application
Figure, as shown in Fig. 2, wireless lan function switch 201, in opening, user selects connection WiFiE, after inputting password,
It is successfully established and is connected with WiFiE.
In daily life, people increasingly be unable to do without network, by access internet can realize mobile payment, chat,
It listens to music, see video and browsing webpage etc., access that interconnection net spee is fast and expense is low or even some are by WiFi modes
Free, so, in order to meet the online demand of people, used there are various Wi-Fi hotspots for mobile terminal user.
For example, user can generally set wireless router at home, wireless router can be used as a Wi-Fi hotspot to be connected for user;
Office, the computer of employee usually can access internet by modes such as broadbands, when be integrated in computer or it is external have it is wireless
During network interface card, Wi-Fi hotspot can be also used as to be used for mobile equipment connection;In many public places, such as market, dining room and hospital
Deng, also for people provide Wi-Fi hotspot for user connect;Outdoors, such as street or tourist attractions, the mobile terminal of user
It can also search for some urban services WiFi, such as iTianjin;In addition, mobile terminal can also be built based on cellular mobile network
Vertical Wi-Fi hotspot, also known as personal Wi-Fi hotspot or carry-on Wi-Fi hotspot etc. connect use for the mobile terminal of relatives and friends.Thus
As it can be seen that different Wi-Fi hotspots may correspond to different use environments.
It, can be when GNSS module be in and be called by LBS application functions, according between the first preset time in the embodiment of the present application
Every the current Wi-Fi hotspot information list that acquisition mobile terminal searches at this time, the Wi-Fi hotspot in the list is carried out subsequent
Judge, to determine whether mobile terminal is in indoor environment.First prefixed time interval can freely be set, for example, first is default
Time interval can be 1 minute.
Whether step 103 is judged in current Wi-Fi hotspot information list comprising default Wi-Fi hotspot.
In the embodiment of the present application, default Wi-Fi hotspot can include the Wi-Fi hotspot in indoor environment.Default WiFi
Hot spot can voluntarily be set in advance by user, and be stored in the terminal;Can also by mobile terminal from server etc. other
Source is obtained;User can also be counted or be learnt using the historical custom data of WiFi function by mobile terminal,
And then determine default Wi-Fi hotspot.
Illustratively, user can be the WiFi heat currently connected when using the wireless network connection function of mobile terminal
Point or the Wi-Fi hotspot addition label in Wi-Fi hotspot information list, for representing whether Wi-Fi hotspot is in indoor ring
Wi-Fi hotspot in border.For example, as shown in Fig. 2, each Wi-Fi hotspot rightmost side is both provided with details icon 202, user can point
It hits the details icon and enters details interface.Fig. 3 is a kind of Wi-Fi hotspot details interface schematic diagram provided by the embodiments of the present application, such as
Shown in Fig. 3, increase interior WiFi setting areas 301 in details interface, comprising check box 302 in the region, work as check box
302 when being checked, and it is indoor Wi-Fi hotspot that current Wi-Fi hotspot, which can be explained,.User can be selected according to actual conditions to check box
302 are chosen or are cancelled and chosen.For example, WiFiE is the Wi-Fi hotspot in user family, user can checking box, by WiFiE
It is identified as indoor Wi-Fi hotspot.Being identified as the Wi-Fi hotspot of indoor Wi-Fi hotspot becomes default Wi-Fi hotspot.It, can in this step
Judge with the presence or absence of the Wi-Fi hotspot for being identified as indoor WiFi in current Wi-Fi hotspot information list, if in the presence of comprising pre-
If Wi-Fi hotspot.
Illustratively, the indoor/outdoor attribute information of different Wi-Fi hotspots can be also collected by given server, by attribute
Relevant information for indoor Wi-Fi hotspot is summarized, and obtains default Wi-Fi hotspot set.It, can be by current WiFi in this step
The information of each Wi-Fi hotspot, such as title in hot information list, are sent to given server and are inquired about, if inquiring presence
Wi-Fi hotspot is in default Wi-Fi hotspot set, then can determine in current Wi-Fi hotspot information list comprising default WiFi heat
Point.
If step 104, comprising, it is determined that the mobile terminal gets in environment, the GNSS module is controlled to stop fixed
Position.
Indoor environment is not suitable for GNSS module work, continues to position if getting in GNSS module after environment, will be because of place
In in the environment for being not suitable for work, so positioning can not be realized, GNSS module is caused to flog a dead horse, generate many unnecessary work(
Consumption influences the standby time of mobile terminal.Therefore, in the embodiment of the present application, control GNSS module stops positioning, reduces because of GNSS
Module flogs a dead horse caused power consumption.Wherein, GNSS module is controlled, which to stop positioning, can include closing GNSS module, such as can be with
Stopping is powered GNSS chips, the advantages of this arrangement are as follows, GNSS positioning functions can thoroughly be closed, avoid GNSS moulds
Power consumption caused by block;Control GNSS module, which stops positioning, can include GNSS module is controlled to enter dormant state, illustratively,
Controllable GNSS module stops search the relevant operations such as satellite-signal, the advantages of this arrangement are as follows, GNSS module is stopped,
GNSS module can be reduced because of power consumption caused by positioning, and when being positioned, normal work can be quickly recovered to
State.
Optionally, if not including, it may be determined that mobile terminal is introduced into indoor environment, will not be to the working condition of GNSS module
It is changed, and the current Wi-Fi hotspot information list searched can be reacquired, continue to judge mobile terminal whether into entering the room
Interior environment.
The control method based on locating module provided in the embodiment of the present application, detects the GNSS module in mobile terminal
In by LBS application calls state when, the current Wi-Fi hotspot information list that arrives of mobile terminal to search is obtained, if judging to work as
Default Wi-Fi hotspot is included in preceding Wi-Fi hotspot information list, it is determined that the mobile terminal gets in environment, described in control
GNSS module stops positioning.By using above-mentioned technical proposal, when GNSS module is in running order because of LBS application calls
When, judge that can mobile terminal search default Wi-Fi hotspot, so as to judge whether mobile terminal gets in, if into
Interior, then be not suitable for GNSS module work, and control GNSS module stops positioning, reduces caused by flogging a dead horse because of GNSS module
Power consumption.
In some embodiments, the GNSS module in mobile terminal is detected be in by the state of LBS application calls it
Before, it further includes:Obtain the Wi-Fi hotspot connection history in the mobile terminal;It is determined according to Wi-Fi hotspot connection history pre-
If Wi-Fi hotspot.The advantages of this arrangement are as follows it can be automatically determined according to user on the use habit of Wi-Fi hotspot default
Wi-Fi hotspot without user's manual setting and meets the daily behavior custom of user, and accuracy is high.It is understood that with
User is constantly elongated using the time of mobile terminal, and Wi-Fi hotspot connection history is also constantly updated, so default Wi-Fi hotspot
Dynamically it can increase or change.
Further, the Wi-Fi hotspot connection history includes:The time of connection is established with Wi-Fi hotspot, with Wi-Fi hotspot
Duration in connection status establishes the number of connection with Wi-Fi hotspot, and verification mode when connecting is being established with Wi-Fi hotspot,
It is and at least one in the operation of mobile terminal execution when with Wi-Fi hotspot being in connection status.
Correspondingly, described determine default Wi-Fi hotspot according to Wi-Fi hotspot connection history, including at least one of following:
1st, determine the mobile terminal in the multiple first default measurement periods when connecting history according to the Wi-Fi hotspot
When establishing connection with the first Wi-Fi hotspot in preset period of time, first Wi-Fi hotspot is determined as default Wi-Fi hotspot.Wherein,
The multiple to refer to more than default amount threshold, default amount threshold can freely be set, such as 10.Illustratively, first
Default measurement period can be one day or one week etc..Exemplified by one day, preset time period can include at night 6 points to 10 points it
Between, user generally can during this period of time come home from work, when many days of the mobile terminal for counting user are all in preset time period
Interior established with the first Wi-Fi hotspot connects, then can illustrate that the first Wi-Fi hotspot is to be in for the Wi-Fi hotspot in user family
Wi-Fi hotspot in indoor environment can be automatically set as default Wi-Fi hotspot.
2nd, determine the mobile terminal in the second default measurement period with the when connecting history according to the Wi-Fi hotspot
When the duration that two Wi-Fi hotspots are in connection status reaches preset duration threshold value, second Wi-Fi hotspot is determined as presetting
Wi-Fi hotspot.Illustratively, the second default measurement period can be one day or one week etc., and preset duration threshold value can be pre- according to second
If the time span of measurement period determines.Assuming that the time span of the second default measurement period is T, preset duration threshold value is t,
There can be a t=kT, k is the positive number less than 1, such as 0.5 or 0.3.Exemplified by one day, when preset duration threshold value can be 6 small, one
In it, residence time can be long in office or family by user, and most users are not turning off movement during sleep
Terminal, so mobile terminal is generally still in connection status with Wi-Fi hotspot, when the mobile terminal of user and second in one day
Wi-Fi hotspot be in connection status duration reach 6 it is small when after, explainable mobile terminal may in office or family, and second
Wi-Fi hotspot should be also in the office or family of user, be the Wi-Fi hotspot in indoor environment, can be automatically set as
Default Wi-Fi hotspot.
3rd, determine the mobile terminal in the 3rd default measurement period with the when connecting history according to the Wi-Fi hotspot
When the number that three Wi-Fi hotspots establish connection reaches preset times threshold value, the 3rd Wi-Fi hotspot is determined as default WiFi heat
Point.Illustratively, the first default measurement period can be one week or one month etc., and preset times threshold value can freely be set, such as
It can be 5 times.Exemplified by one week, since outdoor Wi-Fi hotspot many places are in the public domains such as street or tourist attractions, Yong Huyi
As will not go repeatedly, therefore only the corresponding Wi-Fi hotspot of barrier with even parity in one week;And user repeatedly connected in one week
Wi-Fi hotspot should be user through haunt, such as office, family and dining room.In addition, the WiFi heat repeatedly connected
Point is usually the Wi-Fi hotspot that user compares trust, because individual privacy and proprietary information that mobile terminal is currently related to are more next
More, user is generally relatively more careful when using mobile terminal accessing internet, and outdoor many Wi-Fi hotspots are of unknown origin,
User will not select repeatedly to connect.To sum up, when the mobile terminal of user is warm with same WiFi in the 3rd default measurement period
When the number that point establishes connection reaches certain threshold value, it is believed that the Wi-Fi hotspot is the Wi-Fi hotspot in indoor environment, can
It is automatically set as default Wi-Fi hotspot.
4th, determine the mobile terminal the last with the 4th Wi-Fi hotspot when connecting history according to the Wi-Fi hotspot
When verification mode when establishing connection is automatic connection, the 4th Wi-Fi hotspot is determined as default Wi-Fi hotspot.As above
Described, outdoor Wi-Fi hotspot many places for security reasons, can generally be set in the public domains such as street or tourist attractions
There is authentication process itself, such as verified by phone number, to ensure that user logs in as real name, and connected again after disconnecting
When connecing, it is still desirable to carry out authentication.And general indoor Wi-Fi hotspot is the Wi-Fi hotspot that user compares trust, is being inputted
After password, generally without input password again when next time reconnects, but directly automatic connection.Therefore, when mobile terminal is most
Closely once established with the 4th Wi-Fi hotspot verification mode when connecting for automatic connection when, illustrate the Wi-Fi hotspot be user once
The Wi-Fi hotspot of authenticated non-public class, it is believed that be the Wi-Fi hotspot in indoor environment, can be automatically set as presetting
Wi-Fi hotspot.
5th, when according to the Wi-Fi hotspot connect history determine the mobile terminal with the 5th Wi-Fi hotspot be in connection
When execution safe class is higher than the operation of predetermined registration operation safe class during state, the 5th Wi-Fi hotspot is determined as presetting
Wi-Fi hotspot.Illustratively, the operation that user carries out in the state of Wi-Fi hotspot is connected can be wanted according to security in advance
The height asked carries out grade classification, for example, the safe operation grade of delivery operation is high, in the safe operation grade of chatting operation,
The safe operation grade of web page browsing is low.As it was noted above, because individual privacy and the property letter that mobile terminal is currently related to
Cease more and more, user's many Wi-Fi hotspots generally all relatively more careful, outdoor when using mobile terminal accessing internet
Go through unknown, user will not generally carry out the behaviour higher to security requirement such as paying in the case of Wi-Fi hotspot outside junction chamber
Make.Therefore, when the higher operation of safe class is performed when mobile terminal is being in connection status with a Wi-Fi hotspot, can recognize
For the users to trust Wi-Fi hotspot, generally indoor Wi-Fi hotspot can be automatically set as default Wi-Fi hotspot.
It is understood that above-mentioned 5 are all to set default Wi-Fi hotspot automatically by mobile terminal, in any one or more
On the basis of, it can also be modified by user to the result that mobile terminal is set automatically.For example, it adds in the terminal pre-
If Wi-Fi hotspot list, default Wi-Fi hotspot wherein included is set automatically by mobile terminal, which can
It to show on the screen, consults and edits for user, user can preset Wi-Fi hotspot list and carry out default Wi-Fi hotspot at this
The operations such as increase, deletion and modification.The advantages of this arrangement are as follows so that default Wi-Fi hotspot can be more accurately used for
Identify whether mobile terminal is in indoor environment.
In some embodiments, the default Wi-Fi hotspot does not include the Wi-Fi hotspot established based on cellular mobile network.
Since cellular mobile network is generally provided by network operator, such as China Mobile is, it is necessary to pay campus network, so can
When selection WiFi modes are surfed the Internet, user will not generally select to surf the Internet by cellular mobile network.And in many outdoor environments, have
Many places do not possess the condition of WiFi online, and at this moment, some users may open personal hot spot function, are moved based on honeycomb
Network establishes Wi-Fi hotspot, and other movement equipment of such user or the mobile equipment of friend can be by searching for and connecting
The Wi-Fi hotspot realizes online.As it can be seen that the excluded benefit of the Wi-Fi hotspot established based on cellular mobile network is existed here
In preventing from this kind of Wi-Fi hotspot being mistakenly identified as indoor Wi-Fi hotspot.Illustratively, can according in the title of Wi-Fi hotspot whether
Identify whether the Wi-Fi hotspot to be established based on cellular mobile network comprising preset keyword, generally, the name of this hot spot
The printed words such as " phone ", " mobile phone ", " pad " or " hot spot of XX " can be included in title, when including these printed words in a Wi-Fi hotspot
When, it is believed that it is the Wi-Fi hotspot established based on cellular mobile network.
In some embodiments, judge default Wi-Fi hotspot whether is included in current Wi-Fi hotspot information list, including:It obtains
Take the attribute information of each Wi-Fi hotspot in current Wi-Fi hotspot information list, the attribute information includes WiFi titles and/or attached
Mark-on is known;For each Wi-Fi hotspot in current Wi-Fi hotspot information list, according to the attribute information of current Wi-Fi hotspot point
Analyse the public the Wi-Fi hotspot whether current Wi-Fi hotspot belongs to indoor environment;If there are the public of at least one indoor environment
Wi-Fi hotspot, it is determined that default Wi-Fi hotspot is included in current Wi-Fi hotspot information list.The advantages of this arrangement are as follows can be into
Whether work(identifies the public Wi-Fi hotspot in indoor environment, more accurately judge mobile terminal in indoor environment.
Generally, many public places, such as market, dining room, airport and hospital, Wi-Fi hotspot can be provided and connected for user, in order to
It is distinguished with other Wi-Fi hotspots, personalized printed words can be generally included in hotspot name, can be Chinese, English, phonetic or lead-in
Mother etc., such as " exultation city ", " joycity ", " KFC ", " kfc ", " airport " and " hospital general ", can be to WiFi
Title is analyzed, confirm its whether be indoor environment public Wi-Fi hotspot.In addition, some public Wi-Fi hotspots may carry
Additional identification for representing the holder of the Wi-Fi hotspot, also can confirm it by analyzing the information in additional identification
Whether be indoor environment public Wi-Fi hotspot.
In some embodiments, if it is described comprising, it is determined that the mobile terminal gets in environment, controls the GNSS
Module stops positioning, including:If comprising whether the corresponding signal strength of default Wi-Fi hotspot for judging to be included reaches default
Intensity threshold;If reach, it is determined that the mobile terminal gets in environment, and the GNSS module is controlled to stop positioning.So
Setting is advantageous in that, the situation that some mobile terminals are in outdoor environment is avoided to be mistakenly identified as interior.When in indoor
When the signal strength of Wi-Fi hotspot is higher, there are some a few cases, the outdoor area nearer apart from the Wi-Fi hotspot may also
The Wi-Fi hotspot can be searched, such as some dining room is outdoors, at this moment, if because including the room in current Wi-Fi hotspot information list
Interior Wi-Fi hotspot and be determined as indoor environment, then may judge by accident.Although indoor Wi-Fi hotspot may be searched in outdoor,
But due to the buffer action of wall OR gate, signal is generally weaker, so, it is included in current Wi-Fi hotspot information list is judged
During default Wi-Fi hotspot, the signal strength of the hot spot is further verified, if signal strength reaches preset strength threshold value,
It is explainable to be in indoor environment really;Opposite, it is explainable to be not in interior if signal strength is not up to preset strength threshold value
Environment, but in outdoor environment.Wherein, preset strength threshold value can be configured according to actual conditions.
In some embodiments, after the GNSS module is controlled to stop positioning, further include:Using GNSS positioning methods
Positioning method in addition provides location information to LBS applications.Positioning method beyond GNSS positioning methods may include base station
Positioning or network positions (such as WiFi positioning) positioning method, may also include the mode using sensor auxiliary positioning.It is for example, logical
The exercise data that motion sensor obtains mobile terminal is crossed, location information is provided according to the exercise data.Wherein, motion-sensing
Device may include acceleration transducer, gravity sensor, gyroscope and geomagnetic sensor etc..For example, controlling the GNSS
While module stops positioning, current location, the movement number collected using motion sensor are positioned using WiFi positioning methods
According to movement velocity, displacement distance and rotation angle that can calculate mobile terminal etc., then the current location phase with above-mentioned positioning
With reference to the real time position of mobile terminal can be obtained, so as to fulfill continuing to provide location information.Wherein, current location can be
Latitude and longitude coordinates.Power consumption is relatively low caused by motion sensor, can ensure positioning function when GNSS module can not position
Availability provides location-based service to the user, and reduces the power consumption of mobile terminal.
In some embodiments, after the GNSS module is controlled to stop positioning, further include:Reacquire the movement
The current Wi-Fi hotspot information list that terminal searching arrives, if judging not including default WiFi in current Wi-Fi hotspot information list
Hot spot then when determining that the LBS applications are needed using positioning service, controls the GNSS module to be provided to LBS applications
Location information.Illustratively, if after control GNSS module stops positioning, do not wrapped in the Wi-Fi hotspot information list of reacquisition
Containing default Wi-Fi hotspot, explainable mobile terminal is likely to leave indoor environment.The advantages of this arrangement are as follows when user leaves
Indoor environment, when coming outdoor environment, GNSS module can realize normal positioning, in order to ensure the precision of positioning result and accurate
Degree can allow GNSS module to recover normal work.If LBS applications are there is still a need for acquisition location information or LBS applications are sent again
During to the call request of GNSS module, control GNSS module carries out positioning relevant operation, and provides location information to LBS applications.
In some embodiments, in order to more accurately identify indoor environment, avoid occurring to misidentify and cause GNSS
Module can not normally provide the situation of location information for LBS applications, can also combine with other decision conditions and be judged.Show
Example property, if comprising, it is determined that the mobile terminal gets in environment, and the GNSS module is controlled to stop positioning, it may include:
If comprising by the positioning method positioning current location beyond GNSS positioning methods, according to the corresponding weather of current location acquisition
Information gathers weather dependent data by default sensor in mobile terminal, by the weather dependent data gathered with it is described
Weather information is compared, and judges whether the mobile terminal gets in environment according to comparison result, if getting in environment,
The GNSS module is then controlled to stop positioning.The advantages of this arrangement are as follows it can further be verified according to weather condition mobile whole
Whether end gets in environment, prevents from judging by accident.
Further, it is described that the weather dependent data gathered is compared with the Weather information, including:Obtain institute
The sampled value of preset term in the weather dependent data of acquisition;The sampled value is corresponded to the Weather information described pre-
If the standard value of project is compared;Wherein, the preset term includes gas epidemic disaster, intensity of illumination, uitraviolet intensity, wind
It is any one or more in power and air quality.By taking preset term includes temperature as an example, the temperature that is included in Weather information
It is worth the standard value for outdoor temperature, mobile terminal can gather the sampling that environment temperature is used as temperature by built-in temperature sensor
Value.Optionally, temperature sensor is located on the mobile terminal case inner surface, and away from the easy fever in the mobile terminal
Position.The advantages of this arrangement are as follows the result measured inside the shell on surface is more close to environment temperature, and away from easily fever
The heat that position can avoid mobile terminal itself from generating impacts measurement result.Easy sites of heat generation may include processing chip
Position, charging chip position and camera position etc..In addition, when gathering environment temperature by temperature sensor, can close
The application program of running background is further reduced the heat of mobile terminal itself generation.Generally, the isolation effect due to wall
Presence so that indoor and outdoor temperature is there are difference, (as overcast and rainy especially at summer and winter or more severe outdoor weather
It or wind are bigger etc.), the temperature difference of indoor and outdoor is larger, because when weather is warmmer or colder, is set using air-conditioning or heating
Temperature is adjusted in standby wait, and indoor temperature can be caused to be different from outdoor temperature, if sampled value differs larger with standard value, can be said
Bright mobile terminal is in indoor environment.For example, the current location of positioning is Tianjin peace zone, Tianjin peace zone is got
Temperature be 4 degrees Celsius, then standard value be 4, and if mobile terminal indoors, indoor environment is warmer, and sampled value may be 20,
Visible samples value and standard value difference are larger, it may be determined that mobile terminal is in interior.
Further, judge whether the mobile terminal gets in environment according to comparison result, it may include:It is pre- when meeting
If the quantity of the preset term of indoor decision condition reaches default amount threshold, determine that the mobile terminal gets in ring
Border;Wherein, the default indoor decision condition includes:Gap between the corresponding sampled value of preset term and standard value reaches phase
The predetermined threshold value answered.It the advantages of this arrangement are as follows can the interior accuracy judged of enhanced room.
Further, the default sensor by the mobile terminal gathers weather dependent data and includes:According to
The numerical value of each project determines preset term in the Weather information;By in the mobile terminal with the preset term pair
The sensor acquisition weather dependent data answered.The advantages of this arrangement are as follows targetedly indicate acquisition for mobile terminal weather
Related data can reduce the data volume of acquisition for mobile terminal, reduce determination step, accelerate the judgement of indoor and outdoor surroundings.It is exemplary
, it can be estimated with being beneficial to quickly judge indoor and outdoor surroundings previously according to the current value of each project included in Weather information
Project, as preset term, so as to achieve the purpose that screen preset term.For example, the temperature in Weather information is Celsius for -10
Degree illustrates outdoor very cold, then indoor temperature can be very big with outdoor temperature gap, can temperature be determined as preset term,
And indicate that mobile terminal obtains temperature by temperature sensor, it then can quickly judge that mobile terminal is in room according to temperature difference
Interior environment.For another example, the temperature in Weather information is 25 degrees Celsius, illustrates that outdoor temperature is moderate, then indoor temperature and outdoor temp
The possible very little of gap is spent, is unfavorable for judging, the unexpected project of temperature can be determined as preset term.
Further, if getting in environment, the GNSS module is controlled to stop positioning, including:If get in ring
Whether border then judges the mobile terminal in automotive interior;If being not in automotive interior, the GNSS module is controlled to stop
Positioning.Optionally, it is described to judge whether the mobile terminal includes in automotive interior:Pass through the camera of the mobile terminal
Captured image;When identifying in described image comprising article in road surface scenery or automobile, determine that the mobile terminal is in vapour
Interior portion.The advantages of this arrangement are as follows can avoid that there is a situation where judge by accident.When user in the car when, environment inside car also compares
Closing, and environment inside car can be also adjusted by on-board air conditioner, humidity control apparatus or air purifier etc., easily missed
Indoor environment is identified as, and due to vehicle material, the influence to the satellite-signal of GNSS module search is smaller, still may be used
With realize positioning, so in the car when GNSS module can continue normal work.
Fig. 4 is the flow diagram of another control method based on locating module provided by the embodiments of the present application, the party
Method includes the following steps:
Step 401, the Wi-Fi hotspot obtained in mobile terminal connect history, and connecting history according to Wi-Fi hotspot determines to preset
Wi-Fi hotspot.
Wherein, the Wi-Fi hotspot connection history includes:The time of connection is established with Wi-Fi hotspot, is in Wi-Fi hotspot
The duration of connection status, with Wi-Fi hotspot establish connection number, with Wi-Fi hotspot establish connect when verification mode and
The operation of mobile terminal execution when being in connection status with Wi-Fi hotspot.
History is connected according to Wi-Fi hotspot and determines default Wi-Fi hotspot, including:
Determine mobile terminal in the preset period of time of the multiple first default measurement periods when connecting history according to Wi-Fi hotspot
When establishing connection with the first Wi-Fi hotspot, the first Wi-Fi hotspot is determined as default Wi-Fi hotspot;It is connected when according to Wi-Fi hotspot
History determines that mobile terminal is in the duration of connection status with the second Wi-Fi hotspot in the second default measurement period and reaches default
During duration threshold value, the second Wi-Fi hotspot is determined as default Wi-Fi hotspot;Determine movement eventually when connecting history according to Wi-Fi hotspot
It holds when the 3rd presets and reach preset times threshold value with the number of the 3rd Wi-Fi hotspot foundation connection in measurement period, by the 3rd
Wi-Fi hotspot is determined as default Wi-Fi hotspot;When according to Wi-Fi hotspot connect history determine the mobile terminal it is the last with
When verification mode when 4th Wi-Fi hotspot establishes connection is automatic connects, the 4th Wi-Fi hotspot is determined as default WiFi heat
Point;And determine mobile terminal when being established with the 5th Wi-Fi hotspot in connection status when connecting history according to Wi-Fi hotspot
When execution safe class is higher than the operation of predetermined registration operation safe class, the 5th Wi-Fi hotspot is determined as default Wi-Fi hotspot.
Step 402 detects that the GNSS module in mobile terminal is in by the state of LBS application calls.
Step 403 obtains the current Wi-Fi hotspot information list that mobile terminal to search arrives.
Whether step 404 is judged comprising default Wi-Fi hotspot in current Wi-Fi hotspot information list, if so, performing step
Rapid 405;Otherwise, return and perform step 403.
Step 405 determines that mobile terminal gets in environment, and control GNSS module stops positioning.
Step 406 provides location information by WiFi positioning methods to LBS applications.
Step 407 reacquires the current Wi-Fi hotspot information list that mobile terminal to search arrives.
Step 408 judges default Wi-Fi hotspot whether is included in the current Wi-Fi hotspot information list reacquired, if
It is then to return to perform step 407;Otherwise, step 409 is performed.
Step 409, when determining that LBS application is needed using positioning service, control GNSS module is applied to the LBS
Location information is provided.
Control method provided by the embodiments of the present application based on locating module, determines to preset according to the use habit of user
Wi-Fi hotspot, when detecting that GNSS module is in the state by LBS application calls, acquisition mobile terminal to search arrives current
Whether Wi-Fi hotspot information list determines mobile terminal according in current Wi-Fi hotspot information list comprising default Wi-Fi hotspot
Environment is got in, after environment is got in GNSS module is controlled to stop positioning, avoids GNSS module useless because doing indoors
Work(and waste power consumption, and pass through WiFi positioning methods to the LBS application provide location information, ensure LBS application normal work
Make.Also, after control GNSS module stops positioning, continue to judge whether mobile terminal can search out default Wi-Fi hotspot, into
And judge whether mobile terminal leaves indoor environment, so that GNSS module is controlled to provide location information to LBS applications in time, protect
Demonstrate,prove positioning accuracy and accuracy.
Fig. 5 is the flow diagram of another control method based on locating module provided by the embodiments of the present application, the party
Method includes:
Step 501, the Wi-Fi hotspot obtained in mobile terminal connect history, and connecting history according to Wi-Fi hotspot determines first
Class presets Wi-Fi hotspot.
Step 502 detects that the GNSS module in mobile terminal is in by the state of LBS application calls.
Step 503 obtains the current Wi-Fi hotspot information list that mobile terminal to search arrives.
Step 504 judges in current Wi-Fi hotspot information list whether comprising the first kind to preset Wi-Fi hotspot, if so,
Perform step 507;Otherwise, step 505 is performed.
Step 505, the title for obtaining each Wi-Fi hotspot in current Wi-Fi hotspot information list, according in name analysis list
With the presence or absence of the public Wi-Fi hotspot of indoor environment, if so, performing step 506;Otherwise, return and perform step 503.
Step 506 determines in current Wi-Fi hotspot information list that there are the second classes to preset Wi-Fi hotspot.
Wherein, second class presets the public Wi-Fi hotspot that Wi-Fi hotspot is indoor environment.
Whether the corresponding signal strength of default Wi-Fi hotspot that step 507, judgement are included reaches preset strength threshold value, if
It is then to perform step 508;Otherwise, return and perform step 503.
Wherein, the default Wi-Fi hotspot in this step may include that the above-mentioned first kind presets Wi-Fi hotspot and the second class is preset
Wi-Fi hotspot.
Step 508 determines that mobile terminal gets in environment, and control GNSS module stops positioning.
Control method provided by the embodiments of the present application based on locating module determines the first kind according to the use habit of user
Default Wi-Fi hotspot, when detecting that GNSS module is in the state by LBS application calls, what acquisition mobile terminal to search arrived works as
Preceding Wi-Fi hotspot information list, if wherein presetting Wi-Fi hotspot comprising the first kind, it is determined that mobile terminal gets in environment, if
Do not include, then continue to determine whether that there are the second classes to preset Wi-Fi hotspot, prevent from failing to judge.In addition, in order to avoid erroneous judgement, also increase
Judgement to the signal strength of default Wi-Fi hotspot searched.Finally, environment time control is got in confirmation mobile terminal
GNSS module processed stops positioning, avoid GNSS module because do indoors it is idle caused by power wastage.
Fig. 6 is the flow diagram of another control method based on locating module provided by the embodiments of the present application, the party
Method includes:
Step 601, the Wi-Fi hotspot obtained in mobile terminal connect history, and connecting history according to Wi-Fi hotspot determines to preset
Wi-Fi hotspot.
Step 602 detects that the GNSS module in mobile terminal is in by the state of LBS application calls.
Step 603 obtains the current Wi-Fi hotspot information list that mobile terminal to search arrives.
Whether step 604 is judged comprising default Wi-Fi hotspot in current Wi-Fi hotspot information list, if so, performing step
Rapid 605;Otherwise, return and perform step 603.
Step 605 positions current location by WiFi positioning methods, and corresponding Weather information is obtained according to current location.
Step 606 gathers weather dependent data by the default sensor in mobile terminal.
Step 607 judges whether mobile terminal gets according to the comparison result of weather dependent data and Weather information
Environment, if so, performing step 608;Otherwise, return and perform step 603.
Step 608, control GNSS module stop positioning.
Control method provided by the embodiments of the present application based on locating module, by the default WiFi heat for being in indoor environment
The mode that the judgement of point is combined with weather condition judgement, can more accurately judge whether mobile terminal gets in ring
Border, and when determining to get in environment, refusal LBS applies the calling to GNSS module, avoids GNSS module because doing indoors
Idle work and waste power consumption.
Fig. 7 is a kind of structure diagram of the control device based on locating module provided by the embodiments of the present application, which can
By software and/or hardware realization, be typically integrated in mobile terminal, can by perform based on the control method of locating module come pair
GNSS module in mobile terminal carries out relevant control.As shown in fig. 7, the device includes:
State detection module 701 is called, for whether detecting the Global Satellite Navigation System GNSS module in mobile terminal
In by the state based on location-based service LBS application calls;
Hot information list acquisition module 702, for detecting that the GNSS module is in by the state of LBS application calls
When, obtain the current Wi-Fi hotspot information list that the mobile terminal to search arrives;
Default hot spot judgment module 703, for whether judging in current Wi-Fi hotspot information list comprising default WiFi heat
Point, wherein, the default Wi-Fi hotspot includes the Wi-Fi hotspot in indoor environment;
Localization process module 704, for when in judging current Wi-Fi hotspot information list comprising default Wi-Fi hotspot,
It determines that the mobile terminal gets in environment, the GNSS module is controlled to stop positioning.
The control device based on locating module provided in the embodiment of the present application, detects the GNSS module in mobile terminal
In by LBS application calls state when, the current Wi-Fi hotspot information list that arrives of mobile terminal to search is obtained, if judging to work as
Default Wi-Fi hotspot is included in preceding Wi-Fi hotspot information list, it is determined that the mobile terminal gets in environment, described in control
GNSS module stops positioning.By using above-mentioned technical proposal, when GNSS module is in running order because of LBS application calls
When, judge that can mobile terminal search default Wi-Fi hotspot, so as to judge whether mobile terminal gets in, if into
Interior, then be not suitable for GNSS module work, and control GNSS module stops positioning, reduces caused by flogging a dead horse because of GNSS module
Power consumption.
Optionally, which may also include:
History acquisition module is connected, is in for the GNSS module in mobile terminal is detected by LBS application calls
Before state, the Wi-Fi hotspot connection history in the mobile terminal is obtained;
Default Wi-Fi hotspot determining module determines default Wi-Fi hotspot for connecting history according to the Wi-Fi hotspot.
Optionally, the Wi-Fi hotspot connection history includes:The time of connection is established with Wi-Fi hotspot, at Wi-Fi hotspot
In the duration of connection status, the number of connection is established with Wi-Fi hotspot, verification mode when connecting is being established with Wi-Fi hotspot, with
It is and at least one in the operation of mobile terminal execution when with Wi-Fi hotspot being in connection status;
It is described that default Wi-Fi hotspot is determined according to Wi-Fi hotspot connection history, including at least one of following:
When according to the Wi-Fi hotspot connect history determine the mobile terminal the first default measurement period it is default when
When establishing connection with the first Wi-Fi hotspot in section, first Wi-Fi hotspot is determined as default Wi-Fi hotspot;
Determine the mobile terminal in the second default measurement period with second when connecting history according to the Wi-Fi hotspot
When the duration that Wi-Fi hotspot is in connection status reaches preset duration threshold value, second Wi-Fi hotspot is determined as default WiFi
Hot spot;
Determine the mobile terminal in the 3rd default measurement period with the 3rd when connecting history according to the Wi-Fi hotspot
When the number that Wi-Fi hotspot establishes connection reaches preset times threshold value, the 3rd Wi-Fi hotspot is determined as default WiFi heat
Point;
Determine that the mobile terminal is built in the last time with the 4th Wi-Fi hotspot when connecting history according to the Wi-Fi hotspot
When verification mode during vertical connection is automatic connection, the 4th Wi-Fi hotspot is determined as default Wi-Fi hotspot;
Determine that the mobile terminal is being in connection shape with the 5th Wi-Fi hotspot when connecting history according to the Wi-Fi hotspot
When execution safe class is higher than the operation of predetermined registration operation safe class during state, the 5th Wi-Fi hotspot is determined as default WiFi
Hot spot.
Optionally, the default Wi-Fi hotspot does not include the Wi-Fi hotspot established based on cellular mobile network.
Optionally, judge default Wi-Fi hotspot whether is included in current Wi-Fi hotspot information list, including:
The attribute information of each Wi-Fi hotspot in current Wi-Fi hotspot information list is obtained, the attribute information includes WiFi
Title and/or Internet protocol IP address;
For each Wi-Fi hotspot in current Wi-Fi hotspot information list, according to the attribute information of current Wi-Fi hotspot point
Analyse the public the Wi-Fi hotspot whether current Wi-Fi hotspot belongs to indoor environment;
If there are the public Wi-Fi hotspots of at least one indoor environment, it is determined that is included in current Wi-Fi hotspot information list
Default Wi-Fi hotspot.
Optionally, it is described when in judging current Wi-Fi hotspot information list comprising default Wi-Fi hotspot, it determines described
Mobile terminal gets in environment, and the GNSS module is controlled to stop positioning, including:
When judging in current Wi-Fi hotspot information list comprising default Wi-Fi hotspot, the default WiFi included heat is judged
Whether the corresponding signal strength of point reaches preset strength threshold value;
If reach, it is determined that the mobile terminal gets in environment, and the GNSS module is controlled to stop positioning.
Optionally, which further includes:Location information provides control module, for the GNSS module to be controlled to stop determining
After position, the current Wi-Fi hotspot information list that the mobile terminal to search arrives is reacquired, if judging current Wi-Fi hotspot
Default Wi-Fi hotspot is not included in information list, then when determining that the LBS applications are needed using positioning service, described in control
GNSS module provides location information to LBS applications.
The embodiment of the present application also provides a kind of storage medium for including computer executable instructions, and the computer can perform
When being performed by computer processor for performing the control method based on locating module, this method includes for instruction:
It detects that the Global Satellite Navigation System GNSS module in mobile terminal is in be adjusted based on location-based service LBS applications
State;
Obtain the current Wi-Fi hotspot information list that the mobile terminal to search arrives;
Judge whether comprising default Wi-Fi hotspot in current Wi-Fi hotspot information list, wherein, the default Wi-Fi hotspot
Including the Wi-Fi hotspot being in indoor environment;
If comprising, it is determined that the mobile terminal gets in environment, and the GNSS module is controlled to stop positioning.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap
It includes:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as
DRAM, DDRRAM, SRAM, EDORAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium (example
Such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can further include other types
Memory or its combination.In addition, storage medium can be located at program in the first computer system being wherein performed or
It can be located in different second computer systems, second computer system is connected to the first meter by network (such as internet)
Calculation machine system.Second computer system can provide program instruction and be used to perform to the first computer.Term " storage medium " can
With include may reside in different position (such as in different computer systems by network connection) two or more
Storage medium.Storage medium can store the program instruction that can be performed by one or more processors and (such as be implemented as counting
Calculation machine program).
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present application is provided, computer
The control operation based on locating module that executable instruction is not limited to the described above can also carry out the application any embodiment institute
Relevant operation in the control method based on locating module provided.
The embodiment of the present application provides a kind of mobile terminal, and base provided by the embodiments of the present application can be integrated in the mobile terminal
In the control device of locating module.Fig. 8 is a kind of structure diagram of mobile terminal provided by the embodiments of the present application.Mobile terminal
800 can include:Memory 801, processor 802 and are stored on memory 801 and can be in processor 802 GNSS module 803
The computer program of operation, the processor 802 realize the base as described in the embodiment of the present application when performing the computer program
In the control method of locating module.
Mobile terminal provided by the embodiments of the present application, when GNSS module is in running order because of LBS application calls,
Judge that can mobile terminal search default Wi-Fi hotspot, so as to judge whether mobile terminal gets in, if into entering the room
It is interior, then be not suitable for GNSS module work, control GNSS module stop positioning, reduce because GNSS module flog a dead horse caused by work(
Consumption.
Fig. 9 is the structure diagram of another mobile terminal provided by the embodiments of the present application, which can include:
Housing (not shown), memory 901, GPS chip (not shown), central processing unit (central processing
Unit, CPU) 902 (also known as processor, hereinafter referred to as CPU), circuit board (not shown) and power circuit (do not show in figure
Go out).The circuit board is placed in the interior volume that the housing surrounds;The CPU902 and the memory 901 are arranged on institute
It states on circuit board;The power circuit, for powering for each circuit or device of the mobile terminal;The memory 901,
For storing executable program code;The CPU902 is by reading the executable program code stored in the memory 901
Computer program corresponding with the executable program code is run, to realize following steps:
It detects that the Global Satellite Navigation System GNSS module in mobile terminal is in be adjusted based on location-based service LBS applications
State;
Obtain the current Wi-Fi hotspot information list that the mobile terminal to search arrives;
Judge whether comprising default Wi-Fi hotspot in current Wi-Fi hotspot information list, wherein, the default Wi-Fi hotspot
Including the Wi-Fi hotspot being in indoor environment;
If comprising, it is determined that the mobile terminal gets in environment, and the GNSS module is controlled to stop positioning.
The mobile terminal further includes:Peripheral Interface 903, RF (Radio Frequency, radio frequency) circuit 905, audio-frequency electric
Road 906, loud speaker 911, power management chip 908, input/output (I/O) subsystem 909, other input/control devicess 910,
Touch-screen 912, other input/control devicess 910 and outside port 904, these components pass through one or more communication bus
Or signal wire 907 communicates.
It should be understood that diagram mobile terminal 900 is only an example of mobile terminal, and mobile terminal 900
Can have than more or less components shown in figure, two or more components can be combined or can be with
It is configured with different components.Various parts shown in figure can be including one or more signal processings and/or special
Hardware, software including integrated circuit are realized in the combination of hardware and software.
Detailed retouch is carried out with regard to the mobile terminal provided in this embodiment for being used to carry out GNSS module relevant control below
It states, the mobile terminal is by taking mobile phone as an example.
Memory 901, the memory 901 can be by access such as CPU902, Peripheral Interfaces 903, and the memory 901 can
To include high-speed random access memory, nonvolatile memory can also be included, such as one or more disk memory,
Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU902 and deposited by Peripheral Interface 903, the Peripheral Interface 903
Reservoir 901.
I/O subsystems 909, the I/O subsystems 909 can be by the input/output peripherals in equipment, such as touch-screen 912
With other input/control devicess 910, Peripheral Interface 903 is connected to.I/O subsystems 909 can include 9091 He of display controller
For controlling one or more input controllers 9092 of other input/control devicess 910.Wherein, one or more input controls
Device 9092 processed receives electric signal from other input/control devicess 910 or sends electric signal to other input/control devicess 910,
Other input/control devicess 910 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour
Vertical pole clicks on idler wheel.What deserves to be explained is input controller 9092 can with it is following any one be connected:Keyboard, infrared port,
The instruction equipment of USB interface and such as mouse.
Touch-screen 912, the touch-screen 912 are the input interface and output interface between customer mobile terminal and user,
Visual output is shown to user, visual output can include figure, text, icon, video etc..
Display controller 9091 in I/O subsystems 909 receives electric signal from touch-screen 912 or is sent out to touch-screen 912
Electric signals.Touch-screen 912 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 9091
The interaction of user interface object on touch-screen 912, that is, realize human-computer interaction, the user interface being shown on touch-screen 912
Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light
Mouse, light mouse are the extensions for not showing the touch sensitive surface visually exported or the touch sensitive surface formed by touch-screen.
RF circuits 905 are mainly used for establishing the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network
The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 905 receive and send RF letters
Number, RF signals are also referred to as electromagnetic signal, and RF circuits 905 convert electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications
Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuits 905 can include performing
The known circuit of these functions includes but not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one
A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould
Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 906 is mainly used for receiving voice data from Peripheral Interface 903, which is converted to telecommunications
Number, and the electric signal is sent to loud speaker 911.
Loud speaker 911 for the voice signal for receiving mobile phone from wireless network by RF circuits 905, is reduced to sound
And play the sound to user.
Power management chip 908, the hardware for being connected by CPU902, I/O subsystem and Peripheral Interface are powered
And power management.
The control device based on locating module, storage medium and the mobile terminal provided in above-described embodiment can perform this Shen
Please the control method based on locating module that is provided of any embodiment, possess and perform the corresponding function module of this method and beneficial
Effect.The not technical detail of detailed description in the above-described embodiments, reference can be made to the application any embodiment provided based on fixed
The control method of position module.
Note that it above are only the preferred embodiment of the application and institute's application technology principle.It will be appreciated by those skilled in the art that
The application is not limited to specific embodiment described here, can carry out for a person skilled in the art it is various it is apparent variation,
The protection domain readjusted and substituted without departing from the application.Therefore, although being carried out by above example to the application
It is described in further detail, but the application is not limited only to above example, in the case where not departing from the application design, also
It can include other more equivalent embodiments, and scope of the present application is determined by scope of the appended claims.
Claims (10)
1. a kind of control method based on locating module, which is characterized in that including:
Detect that the Global Satellite Navigation System GNSS module in mobile terminal is in by based on location-based service LBS application calls
State;
Obtain the current wireless fidelity Wi-Fi hotspot information list that the mobile terminal to search arrives;
Judge whether comprising default Wi-Fi hotspot in current Wi-Fi hotspot information list, wherein, the default Wi-Fi hotspot includes
Wi-Fi hotspot in indoor environment;
If comprising, it is determined that the mobile terminal gets in environment, and the GNSS module is controlled to stop positioning.
2. according to the method described in claim 1, it is characterized in that, the GNSS module in mobile terminal is detected is in quilt
Before the state of LBS application calls, further include:
Obtain the Wi-Fi hotspot connection history in the mobile terminal;
History is connected according to the Wi-Fi hotspot and determines default Wi-Fi hotspot.
3. according to the method described in claim 2, it is characterized in that, Wi-Fi hotspot connection history includes:With Wi-Fi hotspot
Establish the time of connection, the duration of connection status be in Wi-Fi hotspot, the number connected is established with Wi-Fi hotspot, with WiFi
When hot spot establishes verification mode when connecting and is in connection status with Wi-Fi hotspot in the operation of mobile terminal execution extremely
It is one few;
It is described that default Wi-Fi hotspot is determined according to Wi-Fi hotspot connection history, including at least one of following:
Determine the mobile terminal in the preset period of time of the first default measurement period when connecting history according to the Wi-Fi hotspot
When establishing connection with the first Wi-Fi hotspot, first Wi-Fi hotspot is determined as default Wi-Fi hotspot;
When connected according to the Wi-Fi hotspot history determine the mobile terminal in the second default measurement period with the 2nd WiFi
When the duration that hot spot is in connection status reaches preset duration threshold value, second Wi-Fi hotspot is determined as default WiFi heat
Point;
When connected according to the Wi-Fi hotspot history determine the mobile terminal in the 3rd default measurement period with the 3rd WiFi
When the number that hot spot establishes connection reaches preset times threshold value, the 3rd Wi-Fi hotspot is determined as default Wi-Fi hotspot;
Determine that the mobile terminal connects in the last established with the 4th Wi-Fi hotspot when connecting history according to the Wi-Fi hotspot
When verification mode when connecing is automatic connection, the 4th Wi-Fi hotspot is determined as default Wi-Fi hotspot;
Determine the mobile terminal when being in connection status with the 5th Wi-Fi hotspot when connecting history according to the Wi-Fi hotspot
When execution safe class is higher than the operation of predetermined registration operation safe class, the 5th Wi-Fi hotspot is determined as default WiFi heat
Point.
4. according to any methods of claim 1-3, which is characterized in that the default Wi-Fi hotspot is not included based on honeycomb
The Wi-Fi hotspot that mobile network establishes.
5. according to the method described in claim 1, it is characterized in that, whether judge in current Wi-Fi hotspot information list comprising pre-
If Wi-Fi hotspot, including:
The attribute information of each Wi-Fi hotspot in current Wi-Fi hotspot information list is obtained, the attribute information includes WiFi titles
And/or Internet protocol IP address;
For each Wi-Fi hotspot in current Wi-Fi hotspot information list, institute is analyzed according to the attribute information of current Wi-Fi hotspot
State the public Wi-Fi hotspot whether current Wi-Fi hotspot belongs to indoor environment;
If there are the public Wi-Fi hotspots of at least one indoor environment, it is determined that comprising default in current Wi-Fi hotspot information list
Wi-Fi hotspot.
If 6. according to the method described in claim 1, it is characterized in that, it is described comprising, it is determined that the mobile terminal into entering the room
Interior environment controls the GNSS module to stop positioning, including:
If comprising whether the corresponding signal strength of default Wi-Fi hotspot for judging to be included reaches preset strength threshold value;
If reach, it is determined that the mobile terminal gets in environment, and the GNSS module is controlled to stop positioning.
7. according to the method described in claim 1, it is characterized in that, after the GNSS module is controlled to stop positioning, also wrap
It includes:
The current Wi-Fi hotspot information list that the mobile terminal to search arrives is reacquired, if judging current Wi-Fi hotspot information
Do not include default Wi-Fi hotspot in list, then when determining that the LBS applications are needed using positioning service, control the GNSS moulds
Block provides location information to LBS applications.
8. a kind of control device based on locating module, which is characterized in that including:
State detection module is called, for detecting whether the Global Satellite Navigation System GNSS module in mobile terminal is in by base
In the state of location-based service LBS application calls;
Hot information list acquisition module, for detect the GNSS module be in by LBS application calls state when, obtain
The current wireless fidelity Wi-Fi hotspot information list that the mobile terminal to search arrives;
Default hot spot judgment module, for judging whether comprising default Wi-Fi hotspot in current Wi-Fi hotspot information list, wherein,
The default Wi-Fi hotspot includes the Wi-Fi hotspot in indoor environment;
Localization process module, for when in judging current Wi-Fi hotspot information list comprising default Wi-Fi hotspot, determining institute
It states mobile terminal and gets in environment, the GNSS module is controlled to stop positioning.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
The control method based on locating module as described in any in claim 1-7 is realized during row.
10. a kind of mobile terminal, which is characterized in that including memory, Global Satellite Navigation System GNSS module and is deposited processor
The computer program that can be run on a memory and in processor is stored up, the processor is realized such as when performing the computer program
Any control methods based on locating module of claim 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711325856.6A CN108064024B (en) | 2017-12-13 | 2017-12-13 | Control method and device based on positioning module, storage medium and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711325856.6A CN108064024B (en) | 2017-12-13 | 2017-12-13 | Control method and device based on positioning module, storage medium and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108064024A true CN108064024A (en) | 2018-05-22 |
CN108064024B CN108064024B (en) | 2020-01-14 |
Family
ID=62138379
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711325856.6A Active CN108064024B (en) | 2017-12-13 | 2017-12-13 | Control method and device based on positioning module, storage medium and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108064024B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109257700A (en) * | 2018-11-19 | 2019-01-22 | 广东小天才科技有限公司 | A kind of localization method based on positioning and rectifying, server and system |
CN110167118A (en) * | 2019-05-27 | 2019-08-23 | 广东乐芯智能科技有限公司 | A kind of wearable device saves the method and system of network flow |
CN111103611A (en) * | 2020-01-16 | 2020-05-05 | 合肥四相至新科技有限公司 | UWB and GPS integrated positioning method and system |
CN112135260A (en) * | 2020-08-26 | 2020-12-25 | 宇龙计算机通信科技(深圳)有限公司 | Control method of main control unit, reporting method of position information and tracker |
WO2021088065A1 (en) * | 2019-11-08 | 2021-05-14 | 华为技术有限公司 | Wireless positioning method and device |
WO2023098365A1 (en) * | 2021-11-30 | 2023-06-08 | 华为技术有限公司 | Detection method for vehicle entering indoor environment, electronic device, and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130260790A1 (en) * | 2012-04-02 | 2013-10-03 | Storewards Ltd. | Method and system for providing location identification |
CN103856989A (en) * | 2012-11-28 | 2014-06-11 | 中国电信股份有限公司 | Method and system for positioning switching between indoor and outdoor, terminal and positioning application platform |
CN104539782A (en) * | 2014-12-19 | 2015-04-22 | 广东欧珀移动通信有限公司 | Event promoting method and device |
CN105407497A (en) * | 2015-12-08 | 2016-03-16 | 北京百度网讯科技有限公司 | Indoor and outdoor position judging method and device |
CN106550446A (en) * | 2015-09-18 | 2017-03-29 | 北京奇宝科技有限公司 | Localization method and geographical position monitoring device |
CN107172205A (en) * | 2017-06-29 | 2017-09-15 | 腾讯科技(深圳)有限公司 | Pushed information processing method, mobile terminal and computer-readable storage medium |
-
2017
- 2017-12-13 CN CN201711325856.6A patent/CN108064024B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130260790A1 (en) * | 2012-04-02 | 2013-10-03 | Storewards Ltd. | Method and system for providing location identification |
CN103856989A (en) * | 2012-11-28 | 2014-06-11 | 中国电信股份有限公司 | Method and system for positioning switching between indoor and outdoor, terminal and positioning application platform |
CN104539782A (en) * | 2014-12-19 | 2015-04-22 | 广东欧珀移动通信有限公司 | Event promoting method and device |
CN106550446A (en) * | 2015-09-18 | 2017-03-29 | 北京奇宝科技有限公司 | Localization method and geographical position monitoring device |
CN105407497A (en) * | 2015-12-08 | 2016-03-16 | 北京百度网讯科技有限公司 | Indoor and outdoor position judging method and device |
CN107172205A (en) * | 2017-06-29 | 2017-09-15 | 腾讯科技(深圳)有限公司 | Pushed information processing method, mobile terminal and computer-readable storage medium |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109257700A (en) * | 2018-11-19 | 2019-01-22 | 广东小天才科技有限公司 | A kind of localization method based on positioning and rectifying, server and system |
CN109257700B (en) * | 2018-11-19 | 2020-11-06 | 广东小天才科技有限公司 | Positioning method, server and system based on positioning deviation rectification |
CN110167118A (en) * | 2019-05-27 | 2019-08-23 | 广东乐芯智能科技有限公司 | A kind of wearable device saves the method and system of network flow |
WO2021088065A1 (en) * | 2019-11-08 | 2021-05-14 | 华为技术有限公司 | Wireless positioning method and device |
CN114600519A (en) * | 2019-11-08 | 2022-06-07 | 华为技术有限公司 | Wireless positioning method and device |
CN114600519B (en) * | 2019-11-08 | 2023-08-04 | 华为技术有限公司 | Wireless positioning method and device |
CN111103611A (en) * | 2020-01-16 | 2020-05-05 | 合肥四相至新科技有限公司 | UWB and GPS integrated positioning method and system |
CN111103611B (en) * | 2020-01-16 | 2021-09-07 | 合肥四相至新科技有限公司 | UWB and GPS integrated positioning method and system |
CN112135260A (en) * | 2020-08-26 | 2020-12-25 | 宇龙计算机通信科技(深圳)有限公司 | Control method of main control unit, reporting method of position information and tracker |
WO2023098365A1 (en) * | 2021-11-30 | 2023-06-08 | 华为技术有限公司 | Detection method for vehicle entering indoor environment, electronic device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108064024B (en) | 2020-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108064024A (en) | Control method, device, storage medium and mobile terminal based on locating module | |
CN108064023A (en) | Control method, device, storage medium and mobile terminal based on locating module | |
CN109479180B (en) | Method and terminal for displaying current geographic position on emergency call interface | |
CN108055642B (en) | Control method and device of positioning module, storage medium and mobile terminal | |
CN107508883B (en) | Information pushing method and device, storage medium and mobile terminal | |
CN103563406B (en) | Monitoring geofence exit | |
RU2608948C2 (en) | Method, device and system for access to router controlling | |
WO2017133541A1 (en) | Method and apparatus for information recommendation | |
CN108111971B (en) | Positioning method, positioning device, storage medium and mobile terminal | |
CN107667542B (en) | Use the location determination of partner appliance | |
KR101936605B1 (en) | Method and apparatus for tagging contents in portable terminal | |
CN103563415A (en) | Over-the-air device configuration | |
US8804680B2 (en) | System and method for managing wireless connections and radio resources | |
US20170063980A1 (en) | Method and device for accessing server | |
CN108076428B (en) | Control method and device based on positioning module, storage medium and mobile terminal | |
CN105323244B (en) | Network Recognition method and apparatus | |
CN108093368A (en) | Control method, device, storage medium and mobile terminal based on locating module | |
CN108008423A (en) | Control method, device, storage medium and mobile terminal based on locating module | |
CN109219953A (en) | A kind of alarm clock prompting method and terminal device | |
CN105933209B (en) | Position sharing method and device | |
CN108020851B (en) | Control method and device based on positioning module, storage medium and mobile terminal | |
CN110622528B (en) | Information recommendation method and device | |
CN114223222B (en) | Terminal payment method, device, terminal equipment and computer readable storage medium | |
CN108093367A (en) | Control method, device, storage medium and mobile terminal based on locating module | |
KR100920442B1 (en) | Methods for searching information in portable terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong Opel Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |