CN108020851A - 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 PDF

Info

Publication number
CN108020851A
CN108020851A CN201711325845.8A CN201711325845A CN108020851A CN 108020851 A CN108020851 A CN 108020851A CN 201711325845 A CN201711325845 A CN 201711325845A CN 108020851 A CN108020851 A CN 108020851A
Authority
CN
China
Prior art keywords
mobile terminal
weather
module
weather information
dependent data
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
Application number
CN201711325845.8A
Other languages
Chinese (zh)
Other versions
CN108020851B (en
Inventor
吴丕和
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711325845.8A priority Critical patent/CN108020851B/en
Publication of CN108020851A publication Critical patent/CN108020851A/en
Application granted granted Critical
Publication of CN108020851B publication Critical patent/CN108020851B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO 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/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/34Power consumption
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO 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/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/02Details of the space or ground control segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (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:When receiving LBS using call request to the GNSS module in mobile terminal, pass through the positioning method beyond GNSS positioning methods and position current location;Corresponding Weather information is obtained according to current location;Weather dependent data is gathered by default sensor, the weather dependent data gathered is compared with the Weather information, judges whether mobile terminal is in indoor environment according to comparison result;If being in indoor environment, call request is disagreed.The 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

Control method, device, storage medium and mobile terminal based on locating module
Technical field
The invention relates to field of locating technology, more particularly to 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 presence around 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:
Receive the calling applied based on location-based service LBS to the Global Satellite Navigation System GNSS module in mobile terminal During request, current location is positioned by the positioning method beyond GNSS positioning methods;
Corresponding Weather information is obtained according to the current location;
Weather dependent data, the weather dependent data that will be gathered are gathered by the default sensor in the mobile terminal It is compared with the Weather information, judges whether the mobile terminal is in indoor environment according to comparison result;
If being in indoor environment, the call request is disagreed.
Second aspect, the embodiment of the present application provide a kind of control device based on locating module, including:
Position determination module, is applied to the global navigation satellite in mobile terminal for receiving based on location-based service LBS During the call request of system GNSS module, current location is positioned by the positioning method beyond GNSS positioning methods;
Weather information acquisition module, for obtaining corresponding Weather information according to the current location;
Weather data acquisition module, for gathering weather dependent data by the default sensor in the mobile terminal;
Weather comparing module, for the weather dependent data gathered to be compared with the Weather information, according to than Judge result whether the mobile terminal is in indoor environment;
Call request processing module, for when judging that the mobile terminal is in indoor environment, disagreeing the tune With request.
The third aspect, the embodiment of the present application provide a kind of computer-readable recording 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 which 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, receives LBS and applies in mobile terminal GNSS module call request when, current location is positioned by positioning method beyond GNSS positioning methods, according to present bit Put and obtain corresponding Weather information, weather dependent data, the day that will be gathered are gathered by the default sensor in mobile terminal Gas related data is compared with Weather information, if judging whether mobile terminal is in indoor environment according to comparison result, Disagree call request.By using above-mentioned technical proposal, when LBS applications need to call GNSS module to obtain positional information When, the Weather information of current location is first obtained, then sensor collection weather dependent data is compared with Weather information, so that Whether judge mobile terminal in interior, if in interior, be not suitable for GNSS module work, disagree callings, reduction because GNSS module flogs a dead horse caused power consumption.
Brief 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 the flow diagram of another control method based on locating module provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another control method based on locating module 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 a kind of structure diagram of the control device based on locating module provided by the embodiments of the present application;
Fig. 6 is a kind of structure diagram of mobile terminal provided by the embodiments of the present application;
Fig. 7 is the structure diagram of another mobile terminal provided by the embodiments of the present application.
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.Further need exist for illustrating , for the ease of description, part relevant with the application rather than entire infrastructure are illustrate only 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 at the same time.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 the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, code, subroutine, subprogram etc..
Fig. 1 is 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 be able to can be generally integrated in by software and/or hardware realization In mobile terminal.As shown in Figure 1, this method includes:
Step 101, received and applied based on location-based service LBS to the Global Satellite Navigation System GNSS moulds in mobile terminal During the call request of block, current location is positioned by the positioning method beyond GNSS positioning methods.
Exemplary, 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 particular type of GNSS module, can be with 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 the concrete kind applied based on location-based service (Location Based Service, LBS) Type does not limit, it may include electronic map class application (such as Baidu map), take out class application (such as U.S. group takes out), social class Using (such as wechat), information service class application (such as popular comment) and GT grand touring using (such as taking journey) etc..Generally , LBS applications are when needing use positioning service, and (namely LBS application initiations GNSS determines for the call request that can send to GNSS module The Location Request of position mode), if agreeing to the call request (even agreeing to the Location Request), then GNSS module would be at just Normal operating mode, search of satellite signal and obtains other related datas used for positioning, and then calculates mobile terminal Positional information, there is provided applied to LBS, LBS, which is applied, provides a user more abundant service further according to positional information.
In the embodiment of the present application, when receiving LBS using call request to GNSS module, first it is made regarding whether to locate In the judgement of indoor environment, then decide whether to agree to the call request., can before uncertain GNSS module is if appropriate for work First the positioning method beyond GNSS positioning methods is used to be positioned.Wherein, the positioning method beyond GNSS positioning methods can wrap Include base station location or network positions (such as WiFi positioning) positioning method.These positioning methods are come compared to GNSS positioning methods Say, positioning accuracy and positional accuracy are slightly worse, but the power consumption produced in position fixing process is smaller.Optionally, positioned by GNSS The current location that positioning method beyond mode is positioned can be the latitude and longitude coordinates where mobile terminal or movement The administrative region in city or place city where terminal, specifically can be by the region division in the server of offer Weather information Strategy is determined.
Step 102, according to the current location obtain corresponding Weather information.
At present, as the fast development of meteorological detection technique and resident are constantly soaring to the degree of concern of weather condition, The Weather information that department of government concerned or relevant enterprise are provided to the public is increasingly abundanter, and also more and more in detail, people can pass through Access the real-time weather situation that different location is easily inquired about in internet.Generally, Weather information is received by corresponding server Collection and renewal, when the system of mobile terminal is applied or third party application wants to obtain Weather information, may have access to corresponding Server is obtained.Weather information may include gas epidemic disaster, intensity of illumination, uitraviolet intensity, wind-force, air quality, rain Amount, snowfall, soil moisture and soil temperature etc., interior is realized in the embodiment of the present application using one or more therein The judgement of environment.Generally, when geographical location differs, Weather information also differs, generally with city in weather server Divided, and in view of China urban size it is larger, can also administrative region divided, with improve Weather information draw Divide precision.
In the embodiment of the present application, mobile terminal may have access to weather server, according to the current location of positioning from weather service Inquiry and the corresponding current weather information in current location in device, for follow-up judgement.
Step 103, by default sensor in the mobile terminal gather weather dependent data, the weather that will be gathered Related data is compared with the Weather information, judges whether the mobile terminal is in indoor environment according to comparison result.
At present, with the fast development of sensor technology, the species of sensor is more and more, and size is also less and less, moves Multiple sensors can be generally integrated in dynamic terminal, for being detected to different projects.Default biography in the embodiment of the present application The project that sensor is detected is corresponding with acquired Weather information.Exemplary, when including temperature in Weather information, preset Sensor can include temperature sensor;When including humidity in Weather information, default sensor can include humidity sensor;The same day When intensity of illumination is included in gas information, default sensor can include illuminance sensor or ambient light sensor;Work as Weather information In when including wind-force, default sensor can include gas flow transducer;When including air quality in Weather information, sensor is preset Air quality sensor, such as PM2.5 sensors can be included.
In the embodiment of the present application, the Weather information obtained according to current location is the Weather information of outdoor environment, and indoor Environment is generally the environment closed, therefore the value of weather relevant parameter and outdoor environment be usually there are difference, can will it is mobile eventually The weather dependent data of collection is held compared with Weather information, if gap is larger, explainable mobile terminal is in indoor environment, Conversely, explainable mobile terminal is most likely in outdoor environment.
If step 104, be in indoor environment, the call request is disagreed.
Indoor environment is not suitable for GNSS module work, when receiving LBS using call request to GNSS module, if connecing By the call request, GNSS module will start to work, but because in the environment for being not suitable for work, it can not realize Positioning, causes GNSS module to flog a dead horse, and produces many unnecessary power consumptions, influences the standby time of mobile terminal.The application In embodiment, when definite mobile terminal is in indoor environment, LBS is disagreed using the call request to GNSS module, is reduced Because GNSS module flog a dead horse caused by power consumption.Dissenting mode can temporarily be not responding to the call request, can also It is directly to refuse the call request, the embodiment of the present application does not limit.
Optionally, it if being not in indoor environment, can agree to the call request, control GNSS module to be provided for LBS applications Positional information.
The control method based on locating module provided in the embodiment of the present application, receives LBS and applies in mobile terminal GNSS module call request when, current location is positioned by positioning method beyond GNSS positioning methods, according to present bit Put and obtain corresponding Weather information, weather dependent data, the day that will be gathered are gathered by the default sensor in mobile terminal Gas related data is compared with Weather information, if judging whether mobile terminal is in indoor environment according to comparison result, Disagree call request.By using above-mentioned technical proposal, when LBS applications need to call GNSS module to obtain positional information When, the Weather information of current location is first obtained, then sensor collection weather dependent data is compared with Weather information, so that Whether judge mobile terminal in interior, if in interior, be not suitable for GNSS module work, disagree callings, reduction because GNSS module flogs a dead horse caused power consumption.
In certain embodiments, it is described that the weather dependent data gathered is compared with the Weather information, including: Obtain the sampled value of the preset term in gathered weather dependent data;The sampled value is corresponding with the Weather information The standard value of the preset term is compared;Wherein, it is strong to include gas epidemic disaster, intensity of illumination, ultraviolet for the preset term It is any one or more in degree, wind-force and air quality.The advantages of this arrangement are as follows the pin of comparison project can be strengthened To property, make whether the judgement in indoor environment is more accurate.When preset term includes above-mentioned multiple, it can further increase and sentence Determine the accuracy of result.
By taking preset term includes temperature as an example, the temperature value included in Weather information is the standard value of outdoor temperature, mobile Terminal can gather the sampled value that environment temperature is used as temperature by built-in temperature sensor.Temperature sensor can be thermal element Part, temperature-sensitive element is varied with temperature by physical property and changed sensitive material is made, such as:Fusible alloy or temperature-sensitive are exhausted Edge material, bimetal leaf, thermocouple, thermistor, semi-conducting material etc..Temperature-sensitive element basis can be currently sensed in real time The variable quantity of sensitive material determine Current Temperatures.Optionally, temperature sensor is located on the mobile terminal case inner surface, And away from the easy sites of heat generation in the mobile terminal.The advantages of this arrangement are as follows the result measured inside the shell on surface More close to environment temperature, and measurement result is caused away from the heat that easy sites of heat generation can avoid mobile terminal itself from producing Influence.Easy sites of heat generation may include process chip position, charging chip position and camera position etc..In addition, passing through temperature When spending sensor collection environment temperature, the application program of running background can be closed, further reduces what mobile terminal itself produced Heat.Generally, the presence of the isolation effect due to wall so that indoor and outdoor temperature is there are difference, especially in summer and winter, Or outdoor weather it is more severe when (such as rainy days or wind are bigger), the temperature difference of indoor and outdoor is larger because weather compared with When hot or colder, temperature is adjusted using air-conditioning or heating equipment etc., indoor temperature can be caused to be different from outdoor temperature, If sampled value differs larger with standard value, explainable mobile terminal is in indoor environment.For example, the current location of positioning is Tianjin City peace zone, get Tianjin peace zone temperature be 4 degrees Celsius, then standard value be 4, and if mobile terminal indoors, room Interior environment is warmer, and sampled value is probably 20, it is seen that sampled value and standard value difference are larger, it may be determined that mobile terminal is in room It is interior.
By taking preset term includes humidity as an example, the humidity value (also known as rh value) included in Weather information is outdoor ring The standard value of border humidity, mobile terminal can gather the sampled value that environmental wet angle value is used as humidity by built-in humidity sensor. Humidity sensor can be dew cell, mainly there is two class of resistance-type and condenser type.The characteristics of humistor is in substrate overlying One layer of film made of wet sensory material of lid, when the water vapor adsorption in air is when on humidity-sensitive film, the resistivity and resistance of element Value all changes, and utilizes this characteristic, that is, measurable humidity.Humicap is usually made of macromolecule membrane capacitance, often High molecular material has polystyrene, polyimides, butyric acid acetate fiber etc..When ambient humidity changes, wet sensitive electricity The dielectric constant of appearance changes, and its capacitance is also changed, its capacitance change is directly proportional to relative humidity.It is optional , humidity sensor is located on the mobile terminal case inner surface, and away from the easy sites of heat generation in the mobile terminal.This Sample, which is set, to be advantageous in that, the result measured inside the shell on surface is more close to ambient humidity, and remote easy sites of heat generation energy The drying functions of the heat of mobile terminal itself generation are enough avoided to impact humidity measurement results.Easy sites of heat generation may include Process chip position, charging chip position and camera position etc..In addition, environment temperature is being gathered by humidity sensor When, the application program of running background can be closed, further reduces the heat of mobile terminal itself generation to humidity measurement results Influence.Generally, the presence of the isolation effect due to wall so that indoor and outdoor humidity is there are difference, especially in outdoor environment very Dry or when moistening very much, during such as rainy days or bigger wind, the humidity difference of indoor and outdoor is larger, because indoor, there may be dehumidifying Humidity is adjusted in the equipment such as device or humidifier, and indoor humidity can be caused to be different from outside humidity, if sampled value and standard value Differ larger, explainable mobile terminal is in indoor environment.For example, positioning current location be Tianjin peace zone, under Rain, get Tianjin peace zone humidity be 80%, then standard value be 80, and if mobile terminal indoors, indoor environment is done Drier, sampled value is probably 50, it is seen that sampled value and standard value difference are larger, it may be determined that mobile terminal is in interior.
By taking preset term includes intensity of illumination as an example, the illumination intensity value included in Weather information is strong for outdoor environment illumination The standard value of degree, mobile terminal can gather the sampling that illumination intensity value is used as intensity of illumination by built-in illuminance sensor Value.Optionally, illuminance sensor can be silicon indigo plant photovoltaic detector, it has higher sensitivity to dim light.Exemplary, illumination Degree sensor may be disposed at the front of mobile terminal, such as near front camera.It is the advantages of this arrangement are as follows mobile whole Front generally towards upper, is conducive to collect accurate illumination intensity value when in use at end.Generally, indoor shone using light Bright, if outdoor is fine day, illumination intensity value can be bigger than indoor, if outdoor can be smaller than indoor for cloudy day or night, illumination intensity value, Thus it can determine whether mobile terminal whether in interior.For example, the illumination intensity value outside fine day room is generally at 10000 luxs (lx) More than, and generally in 500lx or so under indoor daylight lamp, the outdoor moonlit night is generally in 1lx or so.
By taking preset term includes uitraviolet intensity as an example, the uitraviolet intensity value included in Weather information is purple for outdoor environment The standard value of outer line strength, mobile terminal can gather uitraviolet intensity value by built-in ambient light sensor and be used as intensity of illumination Sampled value.Uitraviolet intensity value can be represented by ultraviolet index.Optionally, ambient light sensor may be disposed at mobile whole The front at end, such as near front camera.The advantages of this arrangement are as follows mobile terminal when in use front generally towards On, be conducive to collect accurate uitraviolet intensity value.Generally, indoor use lighting, uitraviolet intensity is very weak, generally Less than 1, and outdoor uitraviolet intensity value on daytime can be bigger than indoor, and generally higher than 3, it thus can determine whether mobile terminal is in It is indoor.
By taking preset term includes wind-force as an example, the corresponding air flow value of wind scale included in Weather information is outdoor environment The standard value of wind-force, mobile terminal can gather the sampled value that air flow value is used as wind-force by built-in gas flow transducer.Optionally, Gas flow transducer can be realized by pressure sensor;It can also be multiplexed by the microphone in mobile terminal to realize, Microphone can detect the size of air-flow, the advantages of this arrangement are as follows, manufacture cost can be saved, reduces the opening of mobile terminal Quantity.Generally, the presence of the occlusion effect due to wall so that thus indoor and outdoor wind-force can determine whether mobile whole there are difference Whether end is in interior.
By taking preset term includes air quality (such as PM2.5) as an example, the corresponding numerical value of PM2.5 included in Weather information is The standard value of outdoor environment, mobile terminal can gather the sampled value that numerical value is used as PM2.5 by built-in PM2.5 sensors.One As, due to the presence of the isolation effect of wall, the amount that outdoor pollutant can be got in is smaller so that indoor and outdoor Thus whether the numerical value of PM2.5 can determine whether mobile terminal in interior there are difference.
In certain embodiments, judge whether the mobile terminal is in indoor environment according to comparison result, including:When full When the quantity of the preset term of the default indoor decision condition of foot reaches default amount threshold, determine that the mobile terminal is in interior Environment;Wherein, the default indoor decision condition includes:Gap between the corresponding sampled value of preset term and standard value reaches Corresponding predetermined threshold value.The advantages of this arrangement are as follows can the interior accuracy judged of enhanced room.Multiple default items can be pre-set Mesh, the concrete numerical value for presetting amount threshold can be pre-set fixed value or the change determined according to present case Change value, such as determines according to Weather information.Different preset terms can correspond to different predetermined threshold values, the specific number of predetermined threshold value Value can be pre-set fixed value or the changing value determined according to present case, such as be determined according to Weather information.
In certain embodiments, the default sensor by the mobile terminal gathers weather dependent data bag Include:Preset term is determined according to the numerical value of each project in the Weather information;By in the mobile terminal with it is described pre- If the corresponding sensor collection weather dependent data of project.The advantages of this arrangement are as follows targetedly indicate mobile terminal Weather dependent data is obtained, the data volume of acquisition for mobile terminal can be reduced, determination step is reduced, accelerates sentencing for indoor and outdoor surroundings It is fixed.Exemplary, it can be estimated with being beneficial to quick judgement previously according to the current value of each project included in Weather information The project of indoor and outdoor surroundings, as preset term, so as to achieve the purpose that to screen preset term.For example, the gas in Weather information Temperature is -10 degrees Celsius, is illustrated outdoor very cold, then indoor temperature can be very big with outdoor temperature gap, can determine temperature For preset term, and indicate that mobile terminal obtains temperature by temperature sensor, then can quickly be judged to move according to temperature difference Dynamic terminal is in indoor environment.And for example, the temperature in Weather information is 25 degrees Celsius, illustrates that outdoor temperature is moderate, then indoor Temperature and the possible very little of outdoor temperature gap, are unfavorable for judging, the unexpected project of temperature can be determined as preset term.
In certain embodiments, it is described disagree the call request after, further include:Use GNSS positioning methods with Outer positioning method provides positional information to LBS applications.Herein, except base station location or network positions described above Outside (such as WiFi positioning) positioning method, the mode using sensor auxiliary positioning may also include.For example, pass through motion sensor The exercise data of mobile terminal is obtained, positional information is provided according to the exercise data.Wherein, motion sensor may include to accelerate Spend sensor, gravity sensor, gyroscope and geomagnetic sensor etc..The exercise data collected using motion sensor can Movement velocity, displacement distance and rotation angle of mobile terminal etc. are calculated, then is combined with the current location of above-mentioned positioning, The real time position of mobile terminal can be obtained, so as to fulfill continuing to provide positional information.Wherein, current location at this time 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 certain embodiments, it is described disagree the call request after, further include:Pass through the default sensor Continue to gather weather dependent data, and the weather dependent data gathered be compared with the Weather information, if according to than Judge that the mobile terminal enters outdoor environment to result, then when determining that the LBS applications need to use positioning service, The GNSS module is controlled to provide positional information to LBS applications.Exemplary, decision procedure can be with judgement above Whether be indoor environment mode it is similar, when determining mobile terminal and being not in indoor environment, it is believed that mobile terminal into Enter outdoor environment.The advantages of this arrangement are as follows when user leaves indoor environment, comes outdoor environment, GNSS module can Realize normal positioning, in order to ensure the precision of positioning result and accuracy, GNSS module can be allowed by normal call.If LBS is applied There is still a need for when obtaining positional information or LBS using the call request to GNSS module is sent again, LBS application calls are agreed to GNSS module, control GNSS module carries out positioning relevant operation, and provides positional information to LBS applications.
Further, during control GNSS module provides positional information to LBS applications, may also include:By pre- If sensor continuous collecting weather dependent data, and the weather dependent data gathered is compared with the Weather information, If judging that the mobile terminal is re-introduced into indoor environment according to comparison result, the GNSS module is controlled to stop fixed Position.The advantages of this arrangement are as follows user leaves indoor environment into after outdoor environment, it is also possible to indoor environment is turned again to, At this moment can control GNSS module stop positioning, with reduce because GNSS module flog a dead horse caused by power consumption.
In certain embodiments, if described be in indoor environment, the call request is disagreed, including:If it is in room Interior environment, then judge whether the mobile terminal is in automotive interior;If being not in automotive interior, disagreeing the calling please Ask.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 misidentified For indoor environment, and due to vehicle material, the influence to the satellite-signal of GNSS module search is smaller, still can be real Now position, thus in the car when can agree to call request.Judge whether mobile terminal can in the mode of automotive interior Many to have, the embodiment of the present application does not limit, and several ways are given below illustratively.
1st, driving states are in by the motion sensor senses in mobile terminal to the mobile terminal, it is determined that mobile Terminal is in automotive interior.
Exemplary, the movable informations such as acceleration and the speed of mobile terminal can be gone out by motion sensor senses.When When mobile terminal is in in-car, the motion state of mobile terminal is substantially consistent with automobile, and automobile moves shape when driving State can meet certain characteristics of motion, for example speed ratio is very fast, parking or to start brief acceleration bigger etc., when detecting movement When the movable information of terminal meets corresponding characteristics of motion during driving, it may be determined that mobile terminal is in driving states, and then determines Mobile terminal is in automotive interior.
2nd, detect that mobile terminal and automobile are in communication connection status.
Nowadays most vehicles possess wired or wireless communication function, and mobile terminal can pass through Universal Serial Bus (Universal Serial Bus, USB) mode and auto communication, can also be led to by communications such as bluetooths with automobile Letter, can be by the data sendings such as the music in mobile terminal to vehicle after establishing communication connection.For driver, possibility will The mobile terminal of oneself and automobile, which are established, to be communicated to connect, therefore, when detecting that mobile terminal is in communication connection status with automobile When, it may be determined that mobile terminal is in automotive interior.
3rd, detect that the intensity for the automobile wireless signal that mobile terminal to search arrives exceedes preset strength threshold value.
As described above, mobile terminal can be established with automobile and communicated to connect wirelessly, and some users may Will not establish communication connection for the reason such as electricity is saved, or for passenger may due to can not obtain checking information and It can not connect.When the wireless communication function of automobile is in opening, mobile terminal can search the wireless signal of automobile, And the intensity of the wireless signal searched when in the car is higher, therefore, preset strength threshold value can be set, if the nothing that current search arrives Line signal strength exceedes preset strength threshold value, and explainable mobile terminal is in automotive interior.
4th, by the camera shooting image of the mobile terminal, road surface scenery or vapour are included in described image when identifying During in-car article, determine that the mobile terminal is in automotive interior.
Wherein, camera may include the rear camera of mobile terminal.When user is driver, generally by mobile terminal Place on stent in the car, the scenery on road surface can be photographed by rear camera, such as zebra stripes, other vehicles and isolation Band etc.;When user is passenger, when using mobile phone, the article in automobile, such as automobile can be photographed by rear camera Seat, windshield or other in-car ornaments etc..
It is understood that failing to judge in order to prevent, a variety of decision procedures in above-mentioned decision procedure can be applied to judge Whether mobile terminal is in automotive interior, when meeting any one in a variety of decision procedures, it may be determined that mobile terminal is in Automotive interior.
Fig. 2 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 201, receive LBS using the call request to the GNSS module in mobile terminal.
Step 202, by base station location mode position current location.
Step 203, according to current location obtain corresponding Weather information.
Step 204, pass through the default sensor collection weather dependent data in the mobile terminal.
The sampled value of preset term in the gathered weather dependent data of step 205, acquisition.
Wherein, the preset term includes gas epidemic disaster, intensity of illumination, uitraviolet intensity, wind-force and air quality.
Step 206, sampled value is compared with corresponding to the standard value of preset term in Weather information.
Step 207, the quantity for judging to meet the preset term of default indoor decision condition reach default amount threshold 3, if It is then to perform step 208;Otherwise, step 212 is performed.
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.
Wherein, preset amount threshold 3 and can also be other numerical value.
Step 208, determine that mobile terminal is in indoor environment, refuses the call request.
Optionally, after call request is refused, positional information is obtained by base station location mode and is supplied to LBS to apply.
Step 209, continue by default sensor to gather weather dependent data.
Step 210, judge whether mobile terminal enters outdoor environment, if so, then performing step 211;Otherwise, return and perform Step 209.
Step 211, determine LBS using when needing to use positioning service, and control GNSS module provides position letter to LBS applications Breath.
Step 212, agree to the call request, and control GNSS module provides positional information to LBS applications.
Control method provided by the embodiments of the present application based on locating module, when LBS applications need to call GNSS module When obtaining positional information, the Weather information of current location is first obtained, then the weather dependent data of sensor collection is believed with weather Breath is compared, and when the number of entry for meeting indoor decision condition reaches certain threshold value, determines that mobile terminal is in interior, no Be adapted to GNSS module work, then disagree calling, reduce because GNSS module flog a dead horse caused by power consumption, continue through at the same time Sensor gathers weather dependent data, after detecting that mobile terminal reaches outdoor environment, if LBS applications are needed using positioning clothes Business, then control GNSS module to provide positional information to LBS applications, ensure positional accuracy and precision.
Fig. 3 is the flow diagram of another control method based on locating module provided by the embodiments of the present application, is such as schemed Shown, this method includes:
Step 301, receive LBS using the call request to the GNSS module in mobile terminal, passes through WiFi positioning sides Formula positions current location.
Step 302, according to current location obtain corresponding Weather information.
Step 303, analyze acquired Weather information, determines the preset term for comparison.
Wherein, the project to be selected of the preset term include gas epidemic disaster, intensity of illumination, uitraviolet intensity, wind-force and Air quality.
Step 304, pass through the mobile terminal default sensor collection weather dependent data corresponding with preset term.
The sampled value of preset term in the gathered weather dependent data of step 305, acquisition.
Step 306, sampled value is compared with corresponding to the standard value of preset term in Weather information.
Step 307, judge whether the gap between the corresponding sampled value of preset term and standard value reaches corresponding default Threshold value, if so, then performing step 308;Otherwise, step 312 is performed.
Step 308, determine that mobile terminal is in indoor environment, refuses the call request.
Step 309, continue collection weather dependent data by default sensor corresponding with preset term.
Step 310, judge whether mobile terminal enters outdoor environment, if so, then performing step 311;Otherwise, return and perform Step 309.
Step 311, determine LBS using when needing to use positioning service, and control GNSS module provides position letter to LBS applications Breath.
Step 312, agree to the call request, and control GNSS module provides positional information to LBS applications.
Control method provided by the embodiments of the present application based on locating module, when LBS applications need to call GNSS module When obtaining positional information, the Weather information of current location is first obtained, first analyzes the value of projects in Weather information, is found out easily Judge the preset term of indoor and outdoor surroundings, the corresponding sampled value of mobile terminal collection preset term, then by sampled value and weather Standard value in information is compared, and when meeting indoor decision condition, determines that mobile terminal is in interior, is not suitable for GNSS moulds Block work, then disagree callings, reduce because GNSS module flog a dead horse caused by power consumption, while continue through sensor gather The corresponding sampled value of preset term, after detecting that mobile terminal reaches outdoor environment, if LBS applications are needed using positioning clothes Business, then control GNSS module to provide positional information to LBS applications, ensure positional accuracy and precision.
Fig. 4 is the flow diagram of another control method based on locating module provided by the embodiments of the present application, is such as schemed Shown, this method includes:
Step 401, receive LBS using the call request to the GNSS module in mobile terminal, passes through WiFi positioning sides Formula positions current location.
Exemplary, call request of the Baidu map to the GNSS module in mobile terminal is received, if detecting WiFi Positioning method can use, then positions current location by WiFi positioning methods, certainly, if WiFi positioning methods are unavailable, also may be used Using base station etc., other positioning methods are positioned.For example, current location is Tianjin peace zone.
Step 402, according to current location obtain corresponding Weather information, acquired Weather information is analyzed, really The fixed preset term for comparing.
Wherein, the project to be selected of the preset term include gas epidemic disaster, intensity of illumination, uitraviolet intensity, wind-force and Air quality.
Exemplary, by internet access Tianjin weather or the corresponding server of national weather, obtain Tianjin peace The Weather information at area's current time.Assuming that included in the Weather information got:- 1 degree Celsius of temperature, humidity 57%, illumination is strong Spend 700lx, uitraviolet intensity 2,1 grade of wind-force, PM2.5 values 289.By analysis, temperature and PM2.5 values the two project phases To easily determining out that temperature and air quality whether in interior, therefore, are used as the preset term for being used for comparison by mobile terminal, The standard value that the standard value of temperature is -1, PM2.5 is 289.
Step 403, by the mobile terminal default sensor corresponding with preset term gather weather dependent data, obtains Take the sampled value of the preset term in gathered weather dependent data.
Exemplary, such as the example above, preset term is temperature and PM2.5, is adopted by the temperature sensor of mobile terminal Collect environment temperature, such as sampled value using the value collected as temperature, 23 degrees Celsius;Pass through the PM2.5 sensors of mobile terminal Gather PM2.5 values, the sampled value using the value collected as PM2.5, such as 95.
Step 404, sampled value is compared with corresponding to the standard value of preset term in Weather information.
Exemplary, by the sampled value 23 of temperature compared with standard value -1, both differences are 24;By adopting for PM2.5 For sample value 95 compared with standard value 289, both differences are 194.
Step 405, judge whether the gap between the corresponding sampled value of preset term and standard value reaches corresponding default Threshold value, if so, then performing step 406;Otherwise, step 412 is performed.
Exemplary, it is assumed that the corresponding predetermined threshold value of temperature is 10 degrees Celsius, and the corresponding predetermined threshold values of PM2.5 are 50, that Gap between the corresponding sampled value of two preset terms and standard value has reached corresponding predetermined threshold value, therefore, can be after It is continuous to perform step 406.Optionally, the judgement in this step can be that any one or more (particular number can freely be set) are pre- If the gap between the corresponding sampled value of project and standard value reaches corresponding predetermined threshold value, you can perform step 406;May be used also During being that the gap between the corresponding sampled value of all preset terms and standard value reaches corresponding predetermined threshold value, step can perform 406.The embodiment of the present application does not limit.
Step 406, the camera shooting image by mobile terminal.
Exemplary, when user is in automobile, since automobile can play the role of certain stop and isolation, in addition On-board air conditioner and vehicular air purifier are both provided with general automobile, so the numerical value of temperature and PM2.5 may also be with interiors Environment is alike, and the situation in automobile is mistakenly identified as indoor environment in order to prevent, is known in the embodiment of the present application using image Strengthen judging otherwise.For example, by the rear camera shooting image of mobile terminal, image recognition is then carried out.
Whether comprising article in road surface scenery or automobile in step 407, identification image, if it is not, then performing step 408;If It is then to perform step 412.
Exemplary, road surface scenery, such as zebra stripes or other vehicles are included in image if identified, can be explained and move Dynamic terminal is in in-car;If it is unidentified go out image in comprising article in road surface scenery or automobile, illustrate mobile terminal not in car It is interior, it should really in interior, to can perform step 408.
Step 408, determine that mobile terminal is in indoor environment, refuses the call request.
Step 409, continue collection weather dependent data by default sensor corresponding with preset term.
Exemplary, temperature sensor collecting temperature is continued through, PM2.5 values are detected by PM2.5 sensors.
Step 410, judge whether mobile terminal enters outdoor environment, if so, then performing step 411;Otherwise, return and perform Step 409.
Exemplary, temperature is collected as 1 degree Celsius, and when PM2.5 values are 251, difference is respectively 2 and 38, can be explained and moves Dynamic terminal enters outdoor environment, and GNSS module can be normally carried out positioning.
Step 411, determine LBS using when needing to use positioning service, and control GNSS module provides position letter to LBS applications Breath.
Exemplary, when Baidu map, which is still within positional information, obtains state, GNSS module can be opened and controlled The positional information navigated to is supplied to Baidu map by GNSS module.
Step 412, agree to the call request, and control GNSS module provides positional information to LBS applications.
Control method provided by the embodiments of the present application based on locating module, when LBS applications need to call GNSS module When obtaining positional information, the Weather information of current location is first obtained, first analyzes the value of projects in Weather information, is found out easily Judge the preset term of indoor and outdoor surroundings, the corresponding sampled value of mobile terminal collection preset term, then by sampled value and weather Standard value in information is compared, and when meeting indoor decision condition, whether mobile terminal is judged in in-car, to avoid hair Raw erroneous judgement, when definite mobile terminal is not in in-car, determines that mobile terminal is in interior, is not suitable for GNSS module work, then Disagree calling, reduce because GNSS module flog a dead horse caused by power consumption, while continue through sensor collection preset term Corresponding sampled value, after detecting that mobile terminal reaches outdoor environment, if LBS applications need to use positioning service, controls GNSS module provides positional information to LBS applications, ensures positional accuracy and precision.
Fig. 5 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 figure 5, the device includes:
Position determination module 501, leads the global satellite in mobile terminal for receiving to be applied based on location-based service LBS During the call request of boat system GNSS module, current location is positioned by the positioning method beyond GNSS positioning methods;
Weather information acquisition module 502, for obtaining corresponding Weather information according to the current location;
Weather data acquisition module 503, for gathering weather dependency number by the default sensor in the mobile terminal According to;
Weather comparing module 504, for the weather dependent data gathered to be compared with the Weather information, according to Comparison result judges whether the mobile terminal is in indoor environment;
Call request processing module 505, it is described for when judging that the mobile terminal is in indoor environment, disagreeing Call request.
The control device based on locating module provided in the embodiment of the present application, receives LBS and applies in mobile terminal GNSS module call request when, current location is positioned by positioning method beyond GNSS positioning methods, according to present bit Put and obtain corresponding Weather information, weather dependent data, the day that will be gathered are gathered by the default sensor in mobile terminal Gas related data is compared with Weather information, if judging whether mobile terminal is in indoor environment according to comparison result, Disagree call request.By using above-mentioned technical proposal, when LBS applications need to call GNSS module to obtain positional information When, the Weather information of current location is first obtained, then sensor collection weather dependent data is compared with Weather information, so that Whether judge mobile terminal in interior, if in interior, be not suitable for GNSS module work, disagree callings, reduction because GNSS module flogs a dead horse caused power consumption.
Optionally, it is described that the weather dependent data gathered is compared with the Weather information, including:
Obtain the sampled value of the preset term in gathered weather dependent data;
The sampled value is compared with corresponding to the standard value of the preset term in the Weather information;
Wherein, the preset term is included in gas epidemic disaster, intensity of illumination, uitraviolet intensity, wind-force and air quality It is any one or more.
Optionally, judge whether the mobile terminal is in indoor environment according to comparison result, including:
When meeting that the quantity of preset term of default indoor decision condition reaches default amount threshold, the movement is determined Terminal is in indoor environment;
Wherein, the default indoor decision condition includes:Gap between the corresponding sampled value of preset term and standard value Reach corresponding predetermined threshold value.
Optionally, the default sensor by the mobile terminal gathers weather dependent data and includes:
Preset term is determined according to the numerical value of each project in the Weather information;
Weather dependent data is gathered by sensor corresponding with the preset term in the mobile terminal.
Optionally, weather data acquisition module be additionally operable to it is described disagree the call request after, by described pre- If sensor continues to gather weather dependent data;
The weather comparing module is additionally operable to:Continue to adopt by the default sensor in the weather data acquisition module After collecting weather dependent data, the weather dependent data gathered is compared with the Weather information;
The call request processing module is additionally operable to:If judge that the mobile terminal enters outdoor according to comparison result Environment, then when determining that the LBS applications need to use positioning service, control the GNSS module to be provided to LBS applications Positional information.
Optionally, it is described to disagree the call request when judging that the mobile terminal is in indoor environment, bag Include:
When judging that the mobile terminal is in indoor environment, judge whether the mobile terminal is in automotive interior;
If being not in automotive interior, the call request is disagreed.
Optionally, it is described to judge whether the mobile terminal includes in automotive interior:
Pass through the camera shooting image of the mobile terminal;
When identifying in described image comprising article in road surface scenery or automobile, determine that the mobile terminal is in automobile It is internal.
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:
Receive the calling applied based on location-based service LBS to the Global Satellite Navigation System GNSS module in mobile terminal During request, current location is positioned by the positioning method beyond GNSS positioning methods;
Corresponding Weather information is obtained according to the current location;
Weather dependent data, the weather dependent data that will be gathered are gathered by the default sensor in the mobile terminal It is compared with the Weather information, judges whether the mobile terminal is in indoor environment according to comparison result;
If being in indoor environment, the call request is disagreed.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap Include: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, magnetizing mediums (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 programmed instruction and be used to perform to the first computer.Term " storage medium " can With including may reside within diverse location (such as in different computer systems by network connection) two or more Storage medium.Storage medium can store the programmed 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, its 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. 6 is a kind of structure diagram of mobile terminal provided by the embodiments of the present application.Mobile terminal 600 can include:Memory 601, processor 602 and are stored on memory 601 and can be in processor 602 GNSS module 603 The computer program of operation, the processor 602 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 LBS applications need to call GNSS module to obtain positional information, The Weather information of current location is first obtained, then sensor collection weather dependent data is compared with Weather information, so as to sentence Break and whether mobile terminal in interior, if in interior, be not suitable for GNSS module work, disagree callings, reduction because GNSS module flogs a dead horse caused power consumption.
Fig. 7 is the structure diagram of another mobile terminal provided by the embodiments of the present application, which can include: Housing (not shown), memory 701, GPS chip (not shown), central processing unit (central processing Unit, CPU) 702 (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 CPU702 and the memory 701 are arranged on institute State on circuit board;The power circuit, for each circuit or the device power supply for the mobile terminal;The memory 701, For storing executable program code;The CPU702 is by reading the executable program code stored in the memory 701 To run computer program corresponding with the executable program code, to realize following steps:
Receive the calling applied based on location-based service LBS to the Global Satellite Navigation System GNSS module in mobile terminal During request, current location is positioned by the positioning method beyond GNSS positioning methods;
Corresponding Weather information is obtained according to the current location;
Weather dependent data, the weather dependent data that will be gathered are gathered by the default sensor in the mobile terminal It is compared with the Weather information, judges whether the mobile terminal is in indoor environment according to comparison result;
If being in indoor environment, the call request is disagreed.
The mobile terminal further includes:Peripheral Interface 703, RF (Radio Frequency, radio frequency) circuit 705, audio-frequency electric Road 706, loudspeaker 711, power management chip 708, input/output (I/O) subsystem 709, other input/control devicess 710, Touch-screen 712, other input/control devicess 710 and outside port 704, these components pass through one or more communication bus Or signal wire 707 communicates.
It should be understood that diagram mobile terminal 700 is only an example of mobile terminal, and mobile terminal 700 Can have than more or less components shown in figure, can combine two or more components, or can be with 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 State, the mobile terminal is by taking mobile phone as an example.
Memory 701, the memory 701 can be accessed by CPU702, Peripheral Interface 703 etc., and the memory 701 can Including high-speed random access memory, can also include nonvolatile memory, such as one or more disk memories, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU702 and deposited by Peripheral Interface 703, the Peripheral Interface 703 Reservoir 701.
I/O subsystems 709, the I/O subsystems 709 can be by the input/output peripherals in equipment, such as touch-screen 712 With other input/control devicess 710, Peripheral Interface 703 is connected to.I/O subsystems 709 can include 7091 He of display controller For controlling one or more input controllers 7092 of other input/control devicess 710.Wherein, one or more input controls Device 7092 processed receives electric signal from other input/control devicess 710 or sends electric signal to other input/control devicess 710, Other input/control devicess 710 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole, click on roller.What deserves to be explained is input controller 7092 can with it is following any one be connected:Keyboard, infrared port, The instruction equipment of USB interface and such as mouse.
Touch-screen 712, the touch-screen 712 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 7091 in I/O subsystems 709 receives electric signal from touch-screen 712 or is sent out to touch-screen 712 Electric signals.Touch-screen 712 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 7091 The interaction of user interface object on touch-screen 712, that is, realize human-computer interaction, the user interface being shown on touch-screen 712 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 is not show the touch sensitive surface visually exported, or the extension of the touch sensitive surface formed by touch-screen.
RF circuits 705, 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 705 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 705 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 705 can include being used to perform The known circuit of these functions, it 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 706, is mainly used for receiving voice data from Peripheral Interface 703, which is converted to telecommunications Number, and the electric signal is sent to loudspeaker 711.
Loudspeaker 711, for the voice signal for receiving mobile phone from wireless network by RF circuits 705, is reduced to sound And play the sound to user.
Power management chip 708, the hardware for being connected by CPU702, 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.Not ins and outs 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 preferred embodiment and the institute's application technology principle of the application.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 various obvious changes, 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 1. control method based on locating module, it is characterised in that including:
    Receive based on location-based service LBS using the call request to the Global Satellite Navigation System GNSS module in mobile terminal When, current location is positioned by the positioning method beyond GNSS positioning methods;
    Corresponding Weather information is obtained according to the current location;
    Weather dependent data is gathered by the default sensor in the mobile terminal, by the weather dependent data gathered and institute State Weather information to be compared, judge whether the mobile terminal is in indoor environment according to comparison result;
    If being in indoor environment, the call request is disagreed.
  2. It is 2. according to the method described in claim 1, it is characterized in that, described by the weather dependent data gathered and the weather Information is compared, including:
    Obtain the sampled value of the preset term in gathered weather dependent data;
    The sampled value is compared with corresponding to the standard value of the preset term in the Weather information;
    Wherein, the preset term includes appointing in gas epidemic disaster, intensity of illumination, uitraviolet intensity, wind-force and air quality Meaning is one or more.
  3. 3. according to the method described in claim 2, it is characterized in that, judge whether the mobile terminal is according to comparison result Indoor environment, including:
    When meeting that the quantity of preset term of default indoor decision condition reaches default amount threshold, the mobile terminal is determined In indoor environment;
    Wherein, the default indoor decision condition includes:Gap between the corresponding sampled value of preset term and standard value reaches Corresponding predetermined threshold value.
  4. 4. according to the method in claim 2 or 3, it is characterised in that the default sensing by the mobile terminal Device collection weather dependent data includes:
    Preset term is determined according to the numerical value of each project in the Weather information;
    Weather dependent data is gathered by sensor corresponding with the preset term in the mobile terminal.
  5. 5. according to the method described in claim 1, it is characterized in that, it is described disagree the call request after, further include:
    Continue to gather weather dependent data by the default sensor, and by the weather dependent data gathered and the weather Information is compared, should in the definite LBS if judging that the mobile terminal enters outdoor environment according to comparison result During with needing to use positioning service, the GNSS module is controlled to provide positional information to LBS applications.
  6. 6. according to the method described in claim 1, it is characterized in that, if described be in indoor environment, disagree the calling Request, including:
    If being in indoor environment, judge whether the mobile terminal is in automotive interior;
    If being not in automotive interior, the call request is disagreed.
  7. 7. according to the method described in claim 6, it is characterized in that, described judge whether the mobile terminal is in automotive interior Including:
    Pass through the camera shooting image of the mobile terminal;
    When identifying in described image comprising article in road surface scenery or automobile, determine that the mobile terminal is in automobile Portion.
  8. A kind of 8. control device based on locating module, it is characterised in that including:
    Position determination module, is applied to the Global Satellite Navigation System in mobile terminal for receiving based on location-based service LBS During the call request of GNSS module, current location is positioned by the positioning method beyond GNSS positioning methods;
    Weather information acquisition module, for obtaining corresponding Weather information according to the current location;
    Weather data acquisition module, for gathering weather dependent data by the default sensor in the mobile terminal;
    Weather comparing module, for the weather dependent data gathered to be compared with the Weather information, is tied according to comparing Fruit judges whether the mobile terminal is in indoor environment;
    Call request processing module, please for when judging that the mobile terminal is in indoor environment, disagreeing the calling Ask.
  9. 9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised 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. 10. a kind of mobile terminal, it is characterised 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.
CN201711325845.8A 2017-12-13 2017-12-13 Control method and device based on positioning module, storage medium and mobile terminal Expired - Fee Related CN108020851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711325845.8A CN108020851B (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
CN201711325845.8A CN108020851B (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
CN108020851A true CN108020851A (en) 2018-05-11
CN108020851B CN108020851B (en) 2020-01-14

Family

ID=62073352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711325845.8A Expired - Fee Related CN108020851B (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) CN108020851B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882175A (en) * 2018-08-16 2018-11-23 广东小天才科技有限公司 Positioning method and device, intelligent wearable device and storage medium
CN109521451A (en) * 2018-11-07 2019-03-26 广东小天才科技有限公司 Method, device and system for judging environment of intelligent device and storage medium
CN111757263A (en) * 2019-07-31 2020-10-09 广东小天才科技有限公司 Positioning data sharing method and system and mobile terminal
CN115859158A (en) * 2023-02-16 2023-03-28 荣耀终端有限公司 Scene recognition method and system and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011129092A1 (en) * 2010-04-14 2011-10-20 株式会社エヌ・ティ・ティ・ドコモ Mobile terminal apparatus and positioning method
CN104822133A (en) * 2015-04-22 2015-08-05 广东欧珀移动通信有限公司 Method and device for controlling positioning mode of intelligent terminal
CN105682198A (en) * 2016-01-13 2016-06-15 广东欧珀移动通信有限公司 Positioning control method and device of mobile terminal and mobile terminal
CN107172590A (en) * 2017-06-30 2017-09-15 北京奇虎科技有限公司 Moving state information processing method, device and mobile terminal based on mobile terminal
CN107390245A (en) * 2017-07-13 2017-11-24 广东小天才科技有限公司 Positioning method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011129092A1 (en) * 2010-04-14 2011-10-20 株式会社エヌ・ティ・ティ・ドコモ Mobile terminal apparatus and positioning method
CN104822133A (en) * 2015-04-22 2015-08-05 广东欧珀移动通信有限公司 Method and device for controlling positioning mode of intelligent terminal
CN105682198A (en) * 2016-01-13 2016-06-15 广东欧珀移动通信有限公司 Positioning control method and device of mobile terminal and mobile terminal
CN107172590A (en) * 2017-06-30 2017-09-15 北京奇虎科技有限公司 Moving state information processing method, device and mobile terminal based on mobile terminal
CN107390245A (en) * 2017-07-13 2017-11-24 广东小天才科技有限公司 Positioning method, device, equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882175A (en) * 2018-08-16 2018-11-23 广东小天才科技有限公司 Positioning method and device, intelligent wearable device and storage medium
CN109521451A (en) * 2018-11-07 2019-03-26 广东小天才科技有限公司 Method, device and system for judging environment of intelligent device and storage medium
CN111757263A (en) * 2019-07-31 2020-10-09 广东小天才科技有限公司 Positioning data sharing method and system and mobile terminal
CN115859158A (en) * 2023-02-16 2023-03-28 荣耀终端有限公司 Scene recognition method and system and terminal equipment

Also Published As

Publication number Publication date
CN108020851B (en) 2020-01-14

Similar Documents

Publication Publication Date Title
CN108076428A (en) Control method, device, storage medium and mobile terminal based on locating module
CN108020851A (en) Control method, device, storage medium and mobile terminal based on locating module
US20230351747A1 (en) Augmented reality interface for facilitating identification of arriving vehicle
US10310662B2 (en) Rendering across terminals
CN103546866B (en) A kind of method of arrival reminding and terminal
US9066207B2 (en) Managing states of location determination
KR101602268B1 (en) Mobile terminal and control method for the mobile terminal
CN108169775B (en) Control method and device based on positioning module, storage medium and mobile terminal
KR101928944B1 (en) Image-based localization method for wireless terminal and apparatus therefor
CN106327408B (en) Electronic house number plate and house personnel management system
CN106354758B (en) Handle the method and device of houseclearing
CN108064024B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108683744A (en) Information-pushing method, device, computer equipment and storage medium
CN108064023A (en) Control method, device, storage medium and mobile terminal based on locating module
CN108093368A (en) Control method, device, storage medium and mobile terminal based on locating module
CN113129476A (en) Intelligent door lock control method, intelligent door lock and computer readable storage medium
CN107341226B (en) Information display method and device and mobile terminal
WO2019024602A1 (en) Mobile terminal and trigger method for contextual model thereof, and computer readable storage medium
CN112667290B (en) Instruction management method, device, equipment and computer readable storage medium
US11467146B2 (en) Portable apparatus for measuring air quality and method for displaying information about air quality
CN107835304B (en) Method and device for controlling mobile terminal, mobile terminal and storage medium
JP2006343829A (en) Device and method for photographing around vehicle
JP2019202689A (en) Information provision device, information provision method and program
CN109257501B (en) Mobile terminal, method and device for adjusting brightness of display screen of mobile terminal, mobile terminal and storage medium
CN109885065B (en) Intelligent following system and operation method

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200114