CN108076428B - Control method and device based on positioning module, storage medium and mobile terminal - Google Patents

Control method and device based on positioning module, storage medium and mobile terminal Download PDF

Info

Publication number
CN108076428B
CN108076428B CN201711325668.3A CN201711325668A CN108076428B CN 108076428 B CN108076428 B CN 108076428B CN 201711325668 A CN201711325668 A CN 201711325668A CN 108076428 B CN108076428 B CN 108076428B
Authority
CN
China
Prior art keywords
mobile terminal
positioning
module
preset
gnss
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.)
Expired - Fee Related
Application number
CN201711325668.3A
Other languages
Chinese (zh)
Other versions
CN108076428A (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 CN201711325668.3A priority Critical patent/CN108076428B/en
Publication of CN108076428A publication Critical patent/CN108076428A/en
Application granted granted Critical
Publication of CN108076428B publication Critical patent/CN108076428B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • 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/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • G01S19/48Determining position by combining or switching between position solutions derived from the satellite radio beacon positioning system and position solutions derived from a further system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the application discloses a control method and device based on a positioning module, a storage medium and a mobile terminal. The method comprises the following steps: detecting that a GNSS module in the mobile terminal is in a state called by LBS application; positioning the current position in a GNSS positioning mode, and acquiring corresponding weather information according to the current position; collecting weather related data through a preset sensor in the mobile terminal, comparing the collected weather related data with weather information, and judging whether the mobile terminal enters an indoor environment or not according to a comparison result; and if the GNSS module enters the indoor environment, controlling the GNSS module to stop positioning. By adopting the technical scheme, the power consumption caused by idle work of the GNSS module in an indoor environment can be reduced.

Description

Control method and device based on positioning module, storage medium and mobile terminal
Technical Field
The embodiment of the application relates to the technical field of positioning, in particular to a control method and device based on a positioning module, a storage medium and a mobile terminal.
Background
At present, most mobile terminals have a positioning function, can provide a lot of location-based services for users, and bring convenience to the users.
The positioning method of the mobile terminal mainly includes Global Navigation Satellite System (GNSS) positioning, network positioning, base station positioning, and the like. The GNSS positioning mode has the advantages of high positioning precision, no need of using a mobile data network and the like, but the power consumption in the positioning process is large, and the endurance time of the mobile terminal is influenced. In addition, the GNSS positioning method needs to search for satellite signals, and when the mobile terminal is in a relatively closed environment or there are obstacles around the mobile terminal, the satellite signals may be unstable or have poor signal strength, and thus positioning cannot be achieved.
Disclosure of Invention
The embodiment of the application provides a control method and device based on a positioning module, a storage medium and a mobile terminal, which can optimize a control scheme based on the positioning module in the mobile terminal.
In a first aspect, an embodiment of the present application provides a control method based on a positioning module, including:
detecting that a Global Navigation Satellite System (GNSS) module in the mobile terminal is in a state of being called by a Location Based Service (LBS) application;
positioning a current position in a GNSS positioning mode, and acquiring corresponding weather information according to the current position;
collecting weather related data through a preset sensor in the mobile terminal, comparing the collected weather related data with the weather information, and judging whether the mobile terminal enters an indoor environment or not according to a comparison result;
and if the GNSS module enters the indoor environment, controlling the GNSS module to stop positioning.
In a second aspect, an embodiment of the present application provides a control device based on a positioning module, including:
the calling state detection module is used for detecting whether a Global Navigation Satellite System (GNSS) module in the mobile terminal is in a state called by the Location Based Service (LBS) application;
the current position positioning module is used for positioning the current position in a GNSS positioning mode;
the weather information acquisition module is used for acquiring corresponding weather information according to the current position when detecting that the GNSS module is in a state called by LBS application;
the weather data acquisition module is used for acquiring weather related data through a preset sensor in the mobile terminal;
the weather comparison module is used for comparing the collected weather related data with the weather information and judging whether the mobile terminal enters an indoor environment or not according to a comparison result;
and the positioning control module is used for controlling the GNSS module to stop positioning when the mobile terminal is judged to enter the indoor environment.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a positioning module-based control method according to an embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, including a memory, a GNSS module, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the positioning module-based control method according to the embodiment of the present application.
According to the control scheme based on the positioning module, when a GNSS module in the mobile terminal is detected to be in a state called by a Location Based Service (LBS) application, the current position is positioned in a GNSS positioning mode, and corresponding weather information is obtained according to the current position; and acquiring weather related data through a preset sensor in the mobile terminal, comparing the acquired weather related data with the weather information, and controlling the GNSS module to stop positioning if the mobile terminal is judged to enter an indoor environment according to a comparison result. By adopting the technical scheme, the weather related data acquired by the sensor in the mobile terminal is compared with the weather information of the current position, and when the mobile terminal is judged to enter the room, the GNSS module is no longer suitable for positioning work, the GNSS module is controlled to stop positioning, and the power consumption caused by idle work of the GNSS module is reduced.
Drawings
Fig. 1 is a schematic flowchart of a control method based on a positioning module according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another positioning module-based control method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another positioning module-based control method according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another positioning module-based control method according to an embodiment of the present disclosure;
fig. 5 is a block diagram of a control device based on a positioning module according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart illustrating a positioning module-based control method according to an embodiment of the present application, where the method may be executed by a positioning module-based control apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a mobile terminal. As shown in fig. 1, the method includes:
step 101, detecting that a GNSS module in a mobile terminal is in a state called by a location based service LBS application.
For example, the mobile terminal in the embodiment of the present application may include a mobile device such as a mobile phone and a tablet computer, which is provided with a GNSS positioning module (referred to as a GNSS module for short). The specific type of the GNSS module is not limited in the embodiments of the present application, and may include a Global Positioning System (GPS), a beidou satellite navigation System, a GALILEO satellite navigation System (GALILEO), and the like.
In the embodiment of the present application, specific types of Location Based Service (LBS) applications are not limited, and may include an electronic map application (such as a hundred degree map), a takeaway application (such as a beauty group takeout), a social contact application (such as a Wechat), an information Service application (such as a popular comment), a travel application (such as a travel taking route), and the like. Generally, when the LBS application needs to use the positioning service, it sends a call request to the GNSS module (i.e., the LBS application initiates a positioning request of a GNSS positioning mode), and if the call request is granted (i.e., if the positioning request is granted), the GNSS module is in a state called by the LBS application, and in this state, it is in a normal working mode, searches for satellite signals and obtains other related data for positioning, and further calculates the location information of the mobile terminal, and provides the location information to the LBS application, and the LBS application provides a richer service to the user according to the location information. When the GNSS module is in a state of being invoked by the LBS application, the GNSS module provides the location information to the LBS application, and it can thus detect whether the GNSS module is in a state of being invoked by the LBS application. For example, it is detected whether the LBS application receives the location information provided by the GNSS module, and if so, the GNSS module is in a state called by the LBS application.
And 102, positioning the current position in a GNSS positioning mode, and acquiring corresponding weather information according to the current position.
For example, the current location may be a longitude and latitude coordinate of the mobile terminal, or may be a city where the mobile terminal is located or an administrative region of the city, and may be specifically determined by a region division policy in a server that provides weather information. Optionally, because the requirement on the accuracy of the position by the weather condition is not high, the difference is small as the weather condition within several kilometers of a square circle is general, and the difference can be ignored, and the change of the weather condition along with the time is relatively slow, the current position can be located by a GNSS positioning mode according to a first preset time interval, and corresponding weather information can be obtained according to the current position. The first predetermined time interval may be freely set and may be generally somewhat longer, for example, the first predetermined time interval may be 10 minutes.
At present, with the rapid development of weather detection technology and the rising concern of residents on weather conditions, the weather information provided by relevant government departments or relevant enterprises to the public is more and more abundant and more detailed, and people can easily inquire the real-time weather conditions of different places by accessing the internet. Generally, the weather information is collected and updated by a corresponding server, and when a system application or a third-party application of the mobile terminal wants to acquire the weather information, the system application or the third-party application may access the corresponding server to acquire the weather information. The weather information may include air temperature, humidity, illumination intensity, ultraviolet intensity, wind power, air quality, rainfall, snow quantity, soil humidity, soil air temperature, and the like, and one or more of them are used in the embodiment of the present application to determine the indoor environment. Generally, when geographic locations are different, weather information is different, the weather server is generally divided into cities, and considering that cities in China have large areas, administrative areas can be divided, so that the division accuracy of the weather information is improved.
In the embodiment of the application, the mobile terminal can access the weather server, and inquire the current weather information corresponding to the current position from the weather server according to the positioned current position for subsequent judgment.
Step 103, collecting weather related data through a preset sensor in the mobile terminal, comparing the collected weather related data with the weather information, and judging whether the mobile terminal enters an indoor environment according to a comparison result.
At present, with the rapid development of sensor technology, the types of sensors are more and more, the size is smaller and smaller, and a plurality of sensors can be generally integrated in a mobile terminal and used for detecting different items. The items detected by the preset sensor in the embodiment of the application correspond to the acquired weather information. For example, when the weather information includes the temperature, the preset sensor may include a temperature sensor; when the weather information comprises humidity, the preset sensor can comprise a humidity sensor; when the weather information comprises illumination intensity, the preset sensor can comprise an illumination sensor or an ambient light sensor; when the weather information comprises wind power, the preset sensor can comprise an airflow sensor; when the air quality is included in the weather information, the preset sensor may include an air quality sensor, such as a PM2.5 sensor.
Optionally, the weather-related data may be collected by a preset sensor in the mobile terminal at a second preset time interval, which may be slightly shorter due to the possibility that the user may enter the indoor environment at any time, and the second preset time interval is smaller than the first preset time interval, for example, the second preset time interval may be 1 minute.
In the embodiment of the application, the weather information acquired according to the current position is the weather information of the outdoor environment, and the indoor environment is generally a closed environment, so that the value of the weather related parameter is different from the outdoor environment, the weather related data acquired by the mobile terminal can be compared with the weather information, if the difference is large, the mobile terminal can be described to enter the indoor environment, and otherwise, the mobile terminal can be described to be still in the outdoor environment.
And 104, controlling the GNSS module to stop positioning if the GNSS module enters an indoor environment.
The indoor environment is not suitable for the GNSS module to work, if the GNSS module continues to be positioned after entering the indoor environment, the GNSS module cannot be positioned because the GNSS module is in the environment which is not suitable for working, the GNSS module does useless work, a lot of unnecessary power consumption is generated, and the standby time of the mobile terminal is influenced. Therefore, in the embodiment of the application, the GNSS module is controlled to stop positioning, and power consumption caused by idle work of the GNSS module is reduced. The GNSS module is controlled to stop positioning, and the GNSS module can be turned off, for example, the GNSS chip can be stopped to be powered on, so that the GNSS positioning function can be completely turned off, and the power consumption generated by the GNSS module is avoided; the GNSS module can be controlled to stop positioning, for example, the GNSS module can be controlled to stop searching for satellite signals and other related operations, and thus the GNSS module stops working, power consumption of the GNSS module due to positioning can be reduced, and when positioning is needed, the GNSS module can be quickly restored to a normal working state.
Optionally, if the mobile terminal does not enter the indoor environment, the working state of the GNSS module may not be changed, and the weather-related data may be obtained again, so as to continuously determine whether the mobile terminal enters the indoor environment.
According to the control method based on the positioning module, when a GNSS module in the mobile terminal is detected to be in a state called by a Location Based Service (LBS) application, the current position is positioned in a GNSS positioning mode, and corresponding weather information is obtained according to the current position; and acquiring weather related data through a preset sensor in the mobile terminal, comparing the acquired weather related data with the weather information, and controlling the GNSS module to stop positioning if the mobile terminal is judged to enter an indoor environment according to a comparison result. By adopting the technical scheme, the weather related data acquired by the sensor in the mobile terminal is compared with the weather information of the current position, and when the mobile terminal is judged to enter the room, the GNSS module is no longer suitable for positioning work, the GNSS module is controlled to stop positioning, and the power consumption caused by idle work of the GNSS module is reduced.
In some embodiments, the comparing the collected weather-related data with the weather information includes: acquiring sampling values of preset items in the collected weather related data; comparing the sampling value with a standard value corresponding to the preset item in the weather information; wherein the preset items comprise any one or more of air temperature, humidity, illumination intensity, ultraviolet intensity, wind power and air quality. The advantage of this setting is that can strengthen the pertinence of comparison project, make whether to be in the judgement of indoor environment more accurate. When the preset items include a plurality of items, the accuracy of the determination result can be further increased.
Taking the preset items including air temperature as an example, the air temperature value contained in the weather information is a standard value of the outdoor temperature, and the mobile terminal can acquire the environmental temperature through a built-in temperature sensor as a sampling value of the air temperature. The temperature sensor may be a heat sensitive element made of a sensitive material whose physical properties change with temperature, for example: fusible alloys or thermally sensitive insulating materials, bimetallic strips, thermocouples, thermistors, semiconductor materials, and the like. The thermosensitive element can determine the current temperature according to the currently sensed change amount of the sensitive material in real time. Optionally, the temperature sensor is located on the inner surface of the mobile terminal housing and is far away from a position prone to heat in the mobile terminal. The benefit of this arrangement is that the results of measurements on the inner surface of the housing are closer to the ambient temperature, and the remote location of the easily heatable position can avoid the heat generated by the mobile terminal itself from affecting the measurements. The heat-prone position may include a processing chip position, a charging chip position, a camera position, and the like. In addition, when the ambient temperature is collected through the temperature sensor, the application program running in the background can be closed, and the heat generated by the mobile terminal can be further reduced. Generally, because the existence of the isolation effect of wall for indoor outer temperature has the difference, especially in summer and winter, or outdoor weather is when comparatively bad (for example overcast and rainy day or wind is big etc.), indoor outer temperature difference is great, because weather is hot or when colder, usable air conditioner or heating equipment etc. adjust the temperature, can make indoor temperature be different from outdoor temperature, if the sampling value is great with the standard value difference, can explain that mobile terminal is in indoor environment. For example, the current positions of the positioning are tianjin city and the equal district, the temperature obtained from tianjin city and the equal district is 4 degrees celsius, the standard value is 4, and if the mobile terminal is indoors, the indoor environment is warmer, the sampling value may be 20, and it can be determined that the mobile terminal is indoors if the difference between the sampling value and the standard value is large.
Taking the preset items including humidity as an example, the humidity value (also called relative humidity value) included in the weather information is a standard value of outdoor environment humidity, and the mobile terminal can acquire the environment humidity value as a humidity sampling value through a built-in humidity sensor. The humidity sensor can be a humidity sensitive element, and mainly comprises a resistance type and a capacitance type. The humidity sensitive resistor features that a layer of humidity sensitive material is coated on the substrate, and when water vapor in air is adsorbed onto the humidity sensitive film, the resistivity and resistance of the element are changed. The humidity sensitive capacitor is generally made of a polymer film capacitor, and the commonly used polymer materials include polystyrene, polyimide, acetate butyrate and the like. When the environmental humidity changes, the dielectric constant of the humidity sensitive capacitor changes, so that the capacitance of the humidity sensitive capacitor also changes, and the capacitance change quantity of the humidity sensitive capacitor is in direct proportion to the relative humidity. Optionally, the humidity sensor is located on the inner surface of the mobile terminal housing and is far away from a position prone to heat in the mobile terminal. The benefit that sets up like this lies in, and the environment humidity is pressed close to more to the measuring result on the shell internal surface, and keeps away from the position that easily generates heat and can avoid the thermal stoving effect of mobile terminal self production to cause the influence to humidity measurement result. The heat-prone position may include a processing chip position, a charging chip position, a camera position, and the like. In addition, when the ambient temperature is collected through the humidity sensor, the application program running in the background can be closed, and the influence of heat generated by the mobile terminal on the humidity measurement result is further reduced. Generally, because the existence of the isolation effect of wall for indoor outer humidity has the difference, especially when outdoor environment is very dry or very moist, if rainy day or wind are big, indoor outer humidity difference is great, because indoor probably has equipment such as dehumidifier or humidifier to adjust humidity, can make indoor humidity be different from outdoor humidity, if the sampling value is great with the standard value difference, can explain that mobile terminal is in indoor environment. For example, the current positions of the positioning are tianjin city and the equal area, when it rains, the humidity obtained from tianjin city and the equal area is 80%, the standard value is 80, and if the mobile terminal is indoors, the indoor environment is dry, the sampling value may be 50, and it is found that the difference between the sampling value and the standard value is large, and it is determined that the mobile terminal is indoors.
Taking the example that the preset items include the illumination intensity, the illumination intensity value contained in the weather information is a standard value of the illumination intensity of the outdoor environment, and the mobile terminal can acquire the illumination intensity value as a sampling value of the illumination intensity through a built-in illumination sensor. Alternatively, the light level sensor may be a silicon blue photovoltaic detector, which has a high sensitivity to weak light. For example, the illuminance sensor may be disposed on the front surface of the mobile terminal, for example, near the front camera. The advantage of this arrangement is that the mobile terminal is generally face up when in use, which facilitates accurate illumination intensity values to be collected. Generally, lighting is adopted indoors, if the outdoor is sunny, the illumination intensity value is larger than that of the indoor, and if the outdoor is cloudy or at night, the illumination intensity value is smaller than that of the indoor, so that whether the mobile terminal is located indoors or not can be judged. For example, the outdoor illumination intensity value on a sunny day is generally 10000 lux (lx) or more, the indoor daylight lamp is generally about 500lx, and the outdoor moonlight is generally about 1 lx.
Taking the example that the preset items include the ultraviolet intensity, the ultraviolet intensity value included in the weather information is a standard value of the outdoor environment ultraviolet intensity, and the mobile terminal can collect the ultraviolet intensity value as a sampling value of the illumination intensity through a built-in environment light sensor. The ultraviolet intensity value may be represented by an ultraviolet index. Alternatively, the ambient light sensor may be disposed on the front side of the mobile terminal, for example, near the front facing camera. This has the advantage that the mobile terminal is generally right-side-up when in use, which facilitates the collection of accurate uv intensity values. Generally, the indoor lighting is adopted, the ultraviolet intensity is very weak and is generally less than 1, and the outdoor ultraviolet intensity value in the daytime is larger than that in the indoor and is generally more than 3, so that whether the mobile terminal is located indoors or not can be judged.
Taking the preset items including wind power as an example, the airflow value corresponding to the wind power level contained in the weather information is a standard value of the wind power of the outdoor environment, and the mobile terminal can acquire the airflow value as a sampling value of the wind power through a built-in airflow sensor. Alternatively, the air flow sensor may be implemented by a pressure sensor; the method can also be realized by multiplexing a microphone in the mobile terminal, and the microphone can detect the size of the airflow, so that the method has the advantages of saving the manufacturing cost and reducing the number of openings of the mobile terminal. Generally, due to the existence of the shielding effect of the wall, the difference of indoor and outdoor wind power exists, so that whether the mobile terminal is indoors or not can be judged.
Taking the preset items including air quality (such as PM2.5) as an example, the value corresponding to PM2.5 included in the weather information is a standard value of the outdoor environment, and the mobile terminal can acquire the value through a built-in PM2.5 sensor as a sampling value of PM 2.5. Generally, due to the isolation effect of the wall, the amount of outdoor pollutants entering the room is small, so that the numerical value of indoor and outdoor PM2.5 is different, and whether the mobile terminal is indoors or not can be judged.
In some embodiments, determining whether the mobile terminal enters an indoor environment according to the comparison result includes: when the number of preset items meeting preset indoor judgment conditions reaches a preset number threshold, determining that the mobile terminal enters an indoor environment; wherein the preset indoor determination condition includes: and the difference between the sampling value corresponding to the preset item and the standard value reaches a corresponding preset threshold value. This has the advantage that the accuracy of the indoor decision can be enhanced. A plurality of preset items may be preset, and the specific value of the preset number threshold may be a preset fixed value, or a change value determined according to the current situation, for example, determined according to weather information. Different preset items can correspond to different preset thresholds, and specific values of the preset thresholds can be preset fixed values or change values determined according to the current situation, such as determined according to weather information.
In some embodiments, the collecting weather-related data by a preset sensor in the mobile terminal includes: determining preset items according to the numerical values of all items in the weather information; and collecting weather related data through a sensor corresponding to the preset item in the mobile terminal. The method has the advantages that the mobile terminal is pointed to acquire the weather related data, so that the data volume acquired by the mobile terminal can be reduced, the judging steps are reduced, and the judgment of indoor and outdoor environments is accelerated. For example, an item favorable for rapidly judging the indoor and outdoor environments can be estimated in advance according to the current numerical values of the items contained in the weather information, and the estimated item is used as a preset item, so that the purpose of screening the preset item is achieved. For example, if the temperature in the weather information is-10 degrees celsius, which indicates that the outdoor environment is very cold, the difference between the indoor temperature and the outdoor temperature is very large, the temperature can be determined as a preset item, the mobile terminal is instructed to acquire the temperature through the temperature sensor, and then the mobile terminal can be quickly judged to be in the indoor environment according to the temperature difference. For another example, the temperature in the weather information is 25 degrees celsius, which indicates that the outdoor temperature is moderate, and then the difference between the indoor temperature and the outdoor temperature may be small, which is not beneficial to the determination, and the item with unexpected temperature can be determined as the preset item.
In some embodiments, after controlling the GNSS module to stop positioning, the method may further include: and providing the position information to the LBS application by adopting a positioning mode except the GNSS positioning mode. Here, the positioning method other than the GNSS positioning method may include a positioning method such as base station positioning or network positioning (for example, WiFi positioning), and may also include a method of assisting positioning using a sensor. For example, motion data of the mobile terminal is acquired by a motion sensor, and position information is provided according to the motion data. The motion sensor may include an acceleration sensor, a gravity sensor, a gyroscope, a geomagnetic sensor, and the like. The motion data acquired by the motion sensor can be used for calculating the motion speed, the moving distance, the rotating angle and the like of the mobile terminal, and then the motion data is combined with the positioned current position to obtain the real-time position of the mobile terminal, so that the position information can be continuously provided. Wherein, the current position at this time may be latitude and longitude coordinates. The power consumption generated by the motion sensor is low, the usability of the positioning function can be ensured when the GNSS module cannot be positioned, the position service is provided for the user, and the power consumption of the mobile terminal is reduced.
In some embodiments, after the controlling the GNSS module to stop positioning, the method further includes: and continuously acquiring weather related data through the preset sensor, comparing the acquired weather related data with the weather information, and if the mobile terminal is judged to enter an outdoor environment according to a comparison result, controlling the GNSS module to provide position information for the LBS application when the LBS application is determined to need to use positioning service. For example, the determination may be similar to the determination of whether to enter the indoor environment, and when it is determined that the mobile terminal is not in the indoor environment, the mobile terminal may be considered to be still in the outdoor environment. The advantage of setting up like this is that, when the user leaves indoor environment, when arriving outdoor environment, the GNSS module can realize normal positioning, in order to guarantee the precision and the degree of accuracy of location result, can let the GNSS module resume normal work. And if the LBS application still needs to acquire the position information or the LBS application sends a call request for the GNSS module again, controlling the GNSS module to perform positioning related operation and providing the position information for the LBS application.
In some embodiments, the controlling the GNSS module to stop positioning if entering the indoor environment includes: if the mobile terminal enters the indoor environment, judging whether the mobile terminal enters the interior of the automobile; and if the GNSS module does not enter the interior of the automobile, controlling the GNSS module to stop positioning. The advantage of this arrangement is that misjudgment can be avoided. When a user enters the vehicle, the environment in the vehicle is relatively closed, and can be regulated through a vehicle-mounted air conditioner, a humidity regulating device or an air purifier and the like, so that the environment in the vehicle is easily identified as an indoor environment by mistake, and due to the material of the vehicle, the influence on satellite signals searched by the GNSS module is small, the positioning can still be realized, and the GNSS module can still continue to work after the user enters the vehicle. There are many ways to determine whether the mobile terminal enters the interior of the automobile, and the embodiments of the present application are not limited thereto.
1. And when the mobile terminal is detected to be in a driving state through a motion sensor in the mobile terminal, determining that the mobile terminal enters the interior of the automobile.
For example, motion information such as acceleration and speed of the mobile terminal may be detected by a motion sensor. When the mobile terminal is in the automobile, the motion state of the mobile terminal is basically consistent with that of the automobile, the motion state of the automobile can accord with a certain motion rule in the driving process, such as high speed, high acceleration during parking or starting and the like, and when the motion information of the mobile terminal is detected to meet the corresponding motion rule in driving, the mobile terminal can be determined to be in the driving state, and then the mobile terminal is determined to enter the automobile.
2. And detecting that the mobile terminal and the automobile are in a communication connection state.
Most vehicles have a wired or wireless communication function, the mobile terminal can communicate with the vehicle through a Universal Serial Bus (USB) mode, or can communicate with the vehicle through a wireless communication mode such as bluetooth, and after a communication connection is established, data such as music in the mobile terminal can be sent to the vehicle. It is possible for the driver to establish a communication connection with the vehicle from his mobile terminal, and therefore, when it is detected that the mobile terminal is in a communication connection with the vehicle, it can be determined that the mobile terminal enters the vehicle interior.
3. And detecting that the intensity of the automobile wireless signal searched by the mobile terminal exceeds a preset intensity threshold.
As described above, the mobile terminal may establish a communication connection with the car in a wireless manner, and some users may not establish a communication connection for the reason of saving power or the like, or may not be able to connect to passengers because authentication information is not available. When the wireless communication function of the automobile is in an open state, the mobile terminal can search the wireless signals of the automobile, and the strength of the wireless signals searched in the automobile is higher, so that a preset strength threshold value can be set, and if the strength of the wireless signals searched currently exceeds the preset strength threshold value, the mobile terminal can enter the automobile.
4. The method comprises the steps of shooting an image through a camera of the mobile terminal, and determining that the mobile terminal enters the interior of the automobile when the image including a road scene or objects in the automobile is identified.
Wherein, the camera can comprise a rear camera of the mobile terminal. When a user is a driver, the mobile terminal is generally placed on a support in a vehicle, and scenes of a road surface, such as zebra crossings, other vehicles, isolation belts and the like, can be shot through a rear camera; when the user is a passenger, when the mobile phone is used, articles in the automobile, such as automobile seats, windshields or other automobile interior ornaments, can be shot through the rear camera.
It is to be understood that, in order to prevent the missing determination, a plurality of determination manners among the determination manners described above may be applied to determine whether the mobile terminal enters the interior of the automobile, and when any one of the plurality of determination manners is satisfied, it may be determined that the mobile terminal enters the interior of the automobile.
Fig. 2 is a schematic flowchart of another positioning module-based control method according to an embodiment of the present application, where the method includes:
step 201, detecting that the GNSS module in the mobile terminal is in a state called by the LBS application.
Step 202, positioning the current position in a GNSS positioning manner, and obtaining corresponding weather information according to the current position.
And 203, collecting weather related data through a preset sensor in the mobile terminal.
And step 204, acquiring sampling values of preset items in the collected weather-related data.
Wherein the preset items comprise air temperature, humidity, illumination intensity, ultraviolet intensity, wind power and air quality.
And step 205, comparing the sampling value with a standard value of a corresponding preset item in the weather information.
Step 206, judging that the number of preset items meeting the preset indoor judgment condition reaches a preset number threshold value 3, if so, executing step 207; otherwise, step 203 is repeated.
The preset indoor determination condition includes: and the difference between the sampling value corresponding to the preset item and the standard value reaches a corresponding preset threshold value.
The preset number threshold 3 may also be other values.
And step 207, determining that the mobile terminal enters an indoor environment, and controlling the GNSS module to stop positioning.
And step 208, continuously acquiring weather related data through a preset sensor.
Step 209, determining whether the mobile terminal enters an outdoor environment, if so, executing step 210; otherwise, return to execute step 208.
And step 210, controlling the GNSS module to provide the location information to the LBS application when it is determined that the LBS application needs to use the location service.
According to the control method based on the positioning module, in the process that the GNSS module provides the position information for the LBS application, the weather information of the current position is obtained, the weather related data collected by the sensor is compared with the weather information, when the number of items meeting the indoor judgment condition reaches a certain threshold value, the mobile terminal is determined to enter the indoor environment and is not suitable for the GNSS module to work, the GNSS module is controlled to stop working, power consumption caused by useless work of the GNSS module is reduced, meanwhile, the weather related data are collected continuously through the sensor, after the mobile terminal is detected to return to the outdoor environment, if the LBS application needs to use the positioning service, the GNSS module is controlled to provide the position information for the LBS application, and positioning accuracy and precision are guaranteed.
Fig. 3 is a schematic flowchart of another positioning module-based control method according to an embodiment of the present application, where as shown in the drawing, the method includes:
step 301, detecting that the GNSS module in the mobile terminal is in a state called by the LBS application.
And 302, positioning the current position in a GNSS positioning mode, and acquiring corresponding weather information according to the current position.
And step 303, analyzing the acquired weather information, and determining a preset item for comparison.
The items to be selected of the preset items comprise air temperature, humidity, illumination intensity, ultraviolet intensity, wind power and air quality.
And 304, collecting weather related data through a preset sensor corresponding to the mobile terminal and a preset item.
And 305, acquiring sampling values of preset items in the collected weather-related data.
And step 306, comparing the sampling value with a standard value of a corresponding preset item in the weather information.
Step 307, judging whether the difference between the sampling value and the standard value corresponding to the preset item reaches a corresponding preset threshold, if so, executing step 308; otherwise, return to execute step 304.
And 308, determining that the mobile terminal enters an indoor environment, and controlling the GNSS module to stop positioning.
Step 309, continuously collecting weather related data through a preset sensor corresponding to the preset item.
Step 310, judging whether the mobile terminal enters an outdoor environment, if so, executing step 311; otherwise, go back to step 309.
And 311, controlling the GNSS module to provide the location information to the LBS application when determining that the LBS application needs to use the location service.
In the control method based on the positioning module provided by the embodiment of the application, in the process that the GNSS module provides the LBS application with the position information, acquiring weather information of a current position, analyzing values of all items in the weather information, finding out preset items which are easy to judge indoor and outdoor environments, collecting sampling values corresponding to the preset items by the mobile terminal, comparing the sampling values with standard values in the weather information, when the indoor judgment condition is met, the mobile terminal is determined to enter the indoor environment and is not suitable for the GNSS module to work, the GNSS module is controlled to stop positioning, the power consumption caused by idle work of the GNSS module is reduced, meanwhile, the sampling value corresponding to the preset item is continuously acquired through the sensor, after detecting that the mobile terminal arrives in an outdoor environment, if the LBS application needs to use the location service, the GNSS module is controlled to provide the position information for the LBS application, and the positioning accuracy and precision are ensured.
Fig. 4 is a schematic flowchart of another positioning module-based control method according to an embodiment of the present application, where as shown in the drawing, the method includes:
step 401, detecting that the GNSS module in the mobile terminal is in a state called by the LBS application.
Illustratively, the user is traveling to a destination, such as a restaurant in a certain shopping center, using the navigation function of the mass review application, when the GNSS module in the mobile terminal is in a state of being called for mass review.
Step 402, acquiring corresponding weather information according to the current position, analyzing the acquired weather information, and determining a preset item for comparison.
The items to be selected of the preset items comprise air temperature, humidity, illumination intensity, ultraviolet intensity, wind power and air quality.
Illustratively, the current positions are Tianjin city and the equal district, and the server corresponding to Tianjin weather or national weather is accessed through the internet to obtain the weather information of the Tianjin city and the equal district at the current moment. It is assumed that the acquired weather information includes: air temperature-1 deg.C, humidity 57%, illumination intensity 700lx, ultraviolet intensity 2, wind power level 1, PM2.5 value 289. According to analysis, whether the mobile terminal is indoors or not can be judged relatively easily through two items, namely the air temperature and the PM2.5 value, therefore, the air temperature and the air quality are used as preset items for comparison, the standard value of the air temperature is-1, and the standard value of the PM2.5 is 289.
And 403, acquiring weather related data through a preset sensor corresponding to the preset item of the mobile terminal, and acquiring a sampling value of the preset item in the acquired weather related data.
Illustratively, as mentioned above, the preset items are air temperature and PM2.5, the ambient temperature is collected by a temperature sensor of the mobile terminal, and the collected value is used as a sampling value of the air temperature, such as 23 ℃; the PM2.5 value is collected by the PM2.5 sensor of the mobile terminal, and the collected value is taken as the sampling value of the PM2.5, such as 95.
And step 404, comparing the sampling value with a standard value of a corresponding preset item in the weather information.
Illustratively, a sampled value 23 of the air temperature is compared with a standard value-1, and the difference value is 24; the sampled value 95 of PM2.5 is compared to the standard value 289, with a difference of 194.
Step 405, judging whether the difference between the sampling value and the standard value corresponding to the preset item reaches a corresponding preset threshold value, if so, executing step 406; otherwise, return to execute step 403.
For example, assuming that the preset threshold corresponding to the air temperature is 10 degrees celsius and the preset threshold corresponding to PM2.5 is 50 degrees celsius, the difference between the sampling value and the standard value corresponding to the two preset items reaches the corresponding preset threshold, and therefore, the step 406 may be performed continuously. Optionally, the judgment in this step may be that when the difference between the sampling value and the standard value corresponding to any one or more (the specific number can be freely set) preset items reaches a corresponding preset threshold, step 406 may be executed; step 406 may also be executed when the differences between the sampling values and the standard values corresponding to all the preset items reach the corresponding preset threshold values. The embodiments of the present application are not limited.
And step 406, shooting an image through a camera of the mobile terminal.
For example, when a user enters an automobile, the automobile can play a certain role in blocking and isolating, and in addition, a vehicle-mounted air conditioner and a vehicle-mounted air purifier are arranged in a common automobile, so that the air temperature and the PM2.5 value may be similar to the indoor environment, and in order to prevent the condition of entering the automobile from being recognized as the indoor environment by mistake, the determination is strengthened by adopting an image recognition mode in the embodiment of the application. For example, an image is captured by a rear camera of the mobile terminal, and then image recognition is performed.
Step 407, identifying whether the image contains a road scene or an object in the automobile, and if not, executing step 408; if yes, go back to step 403.
For example, if it is recognized that the image contains a road scene, such as a zebra crossing or other vehicles, the mobile terminal may be declared to enter the vehicle; if the image is not identified as containing road scenes or items in the car, indicating that the mobile terminal is not in the car and should indeed enter the room, step 408 may be performed. For example, the user walks into a shopping mall along the navigation path, and the user does not arrive at the destination at this time because the destination of the user is a restaurant of the shopping mall, the public comment can continue to call the GNSS module to acquire the location information, but the GNSS module cannot be normally located because of entering the indoor environment of the shopping mall at this time, and the GNSS module needs to be turned off to reduce extra power consumption caused by useless operation of the GNSS module.
And step 408, determining that the mobile terminal enters an indoor environment, and controlling the GNSS module to stop positioning.
Optionally, after the GNSS module is controlled to stop positioning, other positioning modes can be adopted to provide position information for mass comment, such as a WiFi positioning mode and the like, so that it is ensured that the user can continue to follow the restaurant which navigates to reach the destination.
And 409, continuously acquiring weather related data through a preset sensor corresponding to the preset item.
Illustratively, the temperature continues to be collected by the temperature sensor and the PM2.5 value is detected by the PM2.5 sensor.
Step 410, judging whether the mobile terminal enters an outdoor environment, if so, executing step 411; otherwise, return to execute step 409.
For example, when the collected temperature is 1 degree celsius and the PM2.5 value is 251, the difference values are 2 and 38, respectively, which may indicate that the mobile terminal enters an outdoor environment and the GNSS module may perform positioning normally.
Step 411, when it is determined that the LBS application needs to use the positioning service, controlling the GNSS module to provide the location information to the LBS application.
For example, when the public comment is still in the position information obtaining state, the GNSS module may be turned on and controlled to provide the located position information to the public comment.
In the positioning module-based control method provided by the embodiment of the application, a GNSS module acquires weather information of a current position in the process of providing position information for LBS application, analyzes values of items in the weather information first, finds out preset items which are easy to judge indoor and outdoor environments, a mobile terminal acquires sampling values corresponding to the preset items, compares the sampling values with standard values in the weather information, judges whether the mobile terminal enters the vehicle or not when an indoor judgment condition is met so as to avoid misjudgment, determines that the mobile terminal is located indoors and is not suitable for the GNSS module to work when the mobile terminal is determined not to be located indoors, does not agree to call, reduces power consumption caused by useless work of the GNSS module, continues to acquire the sampling values corresponding to the preset items through a sensor at the same time, and if the LBS application needs to use positioning service after the mobile terminal is detected to reach the outdoor environment, the GNSS module is controlled to provide the position information for the LBS application, and the positioning accuracy and precision are ensured.
Fig. 5 is a block diagram of a positioning module-based control apparatus according to an embodiment of the present disclosure, which may be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and may perform a positioning module-based control method to perform relevant control on a GNSS module in the mobile terminal. As shown in fig. 5, the apparatus includes:
a call state detection module 501, configured to detect whether a GNSS module in the mobile terminal is in a state called by the location based service LBS application;
a current position positioning module 502, configured to position a current position in a GNSS positioning manner;
a weather information obtaining module 503, configured to obtain corresponding weather information according to the current location when detecting that the GNSS module is in a state called by the LBS application;
a weather data acquisition module 504, configured to acquire weather-related data through a preset sensor in the mobile terminal;
a weather comparison module 505, configured to compare the collected weather-related data with the weather information, and determine whether the mobile terminal enters an indoor environment according to a comparison result;
a positioning control module 506, configured to control the GNSS module to stop positioning when it is determined that the mobile terminal enters the indoor environment.
According to the control device based on the positioning module, when detecting that a GNSS module in a mobile terminal is in a state called by a Location Based Service (LBS) application, the current position is positioned in a GNSS positioning mode, and corresponding weather information is obtained according to the current position; and acquiring weather related data through a preset sensor in the mobile terminal, comparing the acquired weather related data with the weather information, and controlling the GNSS module to stop positioning if the mobile terminal is judged to enter an indoor environment according to a comparison result. By adopting the technical scheme, the weather related data acquired by the sensor in the mobile terminal is compared with the weather information of the current position, and when the mobile terminal is judged to enter the room, the GNSS module is no longer suitable for positioning work, the GNSS module is controlled to stop positioning, and the power consumption caused by idle work of the GNSS module is reduced.
Optionally, the comparing the collected weather-related data with the weather information includes:
acquiring sampling values of preset items in the collected weather related data;
comparing the sampling value with a standard value corresponding to the preset item in the weather information;
wherein the preset items comprise any one or more of temperature, humidity, illumination intensity, ultraviolet intensity, wind power and air quality.
Optionally, the determining, according to the comparison result, whether the mobile terminal enters the indoor environment includes:
when the number of preset items meeting preset indoor judgment conditions reaches a preset number threshold, determining that the mobile terminal enters an indoor environment;
wherein the preset indoor determination condition includes: and the difference between the sampling value corresponding to the preset item and the standard value reaches a corresponding preset threshold value.
Optionally, the acquiring weather-related data by a preset sensor in the mobile terminal includes:
determining preset items according to the numerical values of all items in the weather information;
and collecting weather related data through a sensor corresponding to the preset item in the mobile terminal.
Optionally, the weather data collection module is further configured to: after the GNSS module is controlled to stop positioning, continuously acquiring weather related data through the preset sensor;
the weather comparison module is further configured to: after the weather data acquisition module continues to acquire weather related data through the preset sensor, comparing the acquired weather related data with the weather information;
the positioning control module is further configured to: and if the mobile terminal is judged to enter the outdoor environment according to the comparison result, controlling the GNSS module to provide the position information for the LBS application when the LBS application is determined to need the positioning service.
Optionally, when it is determined that the mobile terminal enters the indoor environment, controlling the GNSS module to stop positioning includes:
when the mobile terminal is judged to enter the indoor environment, judging whether the mobile terminal enters the interior of the automobile;
and if the GNSS module does not enter the interior of the automobile, controlling the GNSS module to stop positioning.
Optionally, the determining whether the mobile terminal enters the inside of the automobile includes:
shooting an image through a camera of the mobile terminal;
and when the image is identified to contain the road scene or the objects in the automobile, determining that the mobile terminal enters the interior of the automobile.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for location-based module control, the method including:
detecting that a GNSS module in a mobile terminal is in a state of being invoked by a Location Based Service (LBS) application;
positioning a current position in a GNSS positioning mode, and acquiring corresponding weather information according to the current position;
collecting weather related data through a preset sensor in the mobile terminal, comparing the collected weather related data with the weather information, and judging whether the mobile terminal enters an indoor environment or not according to a comparison result;
and if the GNSS module enters the indoor environment, controlling the GNSS module to stop positioning.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the positioning module-based control operation described above, and may also perform related operations in the positioning module-based control method provided in any embodiment of the present application.
The embodiment of the application provides a mobile terminal, and the control device based on the positioning module provided by the embodiment of the application can be integrated in the mobile terminal. Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. The mobile terminal 600 may include: the positioning module-based control method includes a memory 601, a processor 602, a GNSS module 603, and a computer program stored on the memory 601 and executable by the processor 602, wherein the processor 602 implements the positioning module-based control method according to an embodiment of the present application when executing the computer program.
According to the mobile terminal provided by the embodiment of the application, the weather related data collected by the sensor in the mobile terminal is compared with the weather information of the current position, and when the mobile terminal is judged to enter the room, the GNSS module is no longer suitable for positioning work, the GNSS module is controlled to stop positioning, and the power consumption caused by idle work of the GNSS module is reduced.
Fig. 7 is a schematic structural diagram of another mobile terminal provided in an embodiment of the present application, where the mobile terminal may include: a casing (not shown), a memory 701, a GPS chip (not shown), a Central Processing Unit (CPU) 702 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU702 and the memory 701 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory 701 is used for storing executable program codes; the CPU702 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 701 to implement the steps of:
detecting that a GNSS module in a mobile terminal is in a state of being invoked by a Location Based Service (LBS) application;
positioning a current position in a GNSS positioning mode, and acquiring corresponding weather information according to the current position;
collecting weather related data through a preset sensor in the mobile terminal, comparing the collected weather related data with the weather information, and judging whether the mobile terminal enters an indoor environment or not according to a comparison result;
and if the GNSS module enters the indoor environment, controlling the GNSS module to stop positioning. .
The mobile terminal further includes: peripheral interfaces 703, RF (Radio Frequency) circuitry 705, audio circuitry 706, speakers 711, power management chip 708, input/output (I/O) subsystems 709, other input/control devices 710, touch screen 712, other input/control devices 710, and external port 704, which communicate via one or more communication buses or signal lines 707.
It should be understood that the illustrated mobile terminal 700 is merely one example of a mobile terminal and that the mobile terminal 700 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a mobile terminal for performing relevant control on a GNSS module according to this embodiment, where the mobile terminal is a mobile phone as an example.
A memory 701, the memory 701 being accessible by the CPU702, the peripheral interface 703, and the like, the memory 701 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 703, said peripheral interface 703 may connect input and output peripherals of the device to the CPU702 and the memory 701.
An I/O subsystem 709, which I/O subsystem 709 may connect input and output peripherals on the device, such as a touch screen 712 and other input/control devices 710, to the peripheral interface 703. The I/O subsystem 709 may include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710. Where one or more input controllers 7092 receive electrical signals from or transmit electrical signals to other input/control devices 710, the other input/control devices 710 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 7092 may be connected to any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 712, the touch screen 712 being an input interface and an output interface between the user's mobile terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 7091 in the I/O subsystem 709 receives electrical signals from the touch screen 712 or transmits electrical signals to the touch screen 712. The touch screen 712 detects a contact on the touch screen, and the display controller 7091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 712, i.e., implements a human-computer interaction, and the user interface object displayed on the touch screen 712 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 705 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 705 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 705 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 705 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 706 is mainly used to receive audio data from the peripheral interface 703, convert the audio data into an electric signal, and transmit the electric signal to the speaker 711.
The speaker 711 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 705 into sound and play the sound to the user.
And a power management chip 708 for supplying power and managing power to the hardware connected to the CPU702, the I/O subsystem, and the peripheral interface.
The control device, the storage medium and the mobile terminal based on the positioning module provided in the above embodiments can execute the control method based on the positioning module provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. Technical details that are not described in detail in the above embodiments may be referred to a control method based on a positioning module provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (8)

1. A control method based on a positioning module is characterized by comprising the following steps:
detecting that a Global Navigation Satellite System (GNSS) module in the mobile terminal is in a state of being called by a Location Based Service (LBS) application;
positioning a current position in a GNSS positioning mode, and acquiring corresponding weather information according to the current position;
estimating items beneficial to rapidly judging indoor and outdoor environments according to the numerical values of the items in the weather information, using the items as preset items, acquiring weather related data through a sensor corresponding to the preset items in the mobile terminal, acquiring sampling values of the preset items in the acquired weather related data, comparing the sampling values with standard values corresponding to the preset items in the weather information, and judging whether the mobile terminal enters the indoor environment or not according to comparison results, wherein the preset items comprise any one or more of temperature, humidity, illumination intensity, ultraviolet intensity, wind power and air quality;
and if the GNSS module enters the indoor environment, controlling the GNSS module to stop positioning.
2. The method of claim 1, wherein determining whether the mobile terminal enters an indoor environment according to the comparison result comprises:
when the number of preset items meeting preset indoor judgment conditions reaches a preset number threshold, determining that the mobile terminal enters an indoor environment;
wherein the preset indoor determination condition includes: and the difference between the sampling value corresponding to the preset item and the standard value reaches a corresponding preset threshold value.
3. The method according to claim 1, further comprising, after said controlling the GNSS module to stop positioning:
and continuously acquiring weather related data through the preset sensor, comparing the acquired weather related data with the weather information, and if the mobile terminal is judged to enter an outdoor environment according to a comparison result, controlling the GNSS module to provide position information for the LBS application when the LBS application is determined to need to use positioning service.
4. The method of claim 1, wherein controlling the GNSS module to stop positioning if entering an indoor environment comprises:
if the mobile terminal enters the indoor environment, judging whether the mobile terminal enters the interior of the automobile;
and if the GNSS module does not enter the interior of the automobile, controlling the GNSS module to stop positioning.
5. The method of claim 4, wherein the determining whether the mobile terminal enters the interior of the automobile comprises:
shooting an image through a camera of the mobile terminal;
and when the image is identified to contain the road scene or the objects in the automobile, determining that the mobile terminal enters the interior of the automobile.
6. A control device based on a positioning module, comprising:
the calling state detection module is used for detecting whether a Global Navigation Satellite System (GNSS) module in the mobile terminal is in a state called by the Location Based Service (LBS) application;
the current position positioning module is used for positioning the current position in a GNSS positioning mode;
the weather information acquisition module is used for acquiring corresponding weather information according to the current position when detecting that the GNSS module is in a state called by LBS application;
the weather data acquisition module is used for estimating items beneficial to rapidly judging indoor and outdoor environments according to the numerical values of all items in the weather information, using the items as preset items, and acquiring weather related data through a sensor corresponding to the preset items in the mobile terminal, wherein the preset items comprise any one or more of air temperature, humidity, illumination intensity, ultraviolet intensity, wind power and air quality;
the weather comparison module is used for acquiring a sampling value of the preset item in the collected weather related data, comparing the sampling value with a standard value corresponding to the preset item in the weather information, and judging whether the mobile terminal enters an indoor environment or not according to a comparison result;
and the positioning control module is used for controlling the GNSS module to stop positioning when the mobile terminal is judged to enter the indoor environment.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a positioning module-based control method according to any one of claims 1-5.
8. A mobile terminal comprising a memory, a global navigation satellite system, GNSS, module, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the positioning module based control method according to any of claims 1-5 when executing the computer program.
CN201711325668.3A 2017-12-13 2017-12-13 Control method and device based on positioning module, storage medium and mobile terminal Expired - Fee Related CN108076428B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711325668.3A CN108076428B (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
CN201711325668.3A CN108076428B (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
CN108076428A CN108076428A (en) 2018-05-25
CN108076428B true CN108076428B (en) 2020-01-14

Family

ID=62158202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711325668.3A Expired - Fee Related CN108076428B (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) CN108076428B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062024B (en) * 2018-07-25 2020-09-01 广东小天才科技有限公司 Switching method, device and equipment of reminding mode of smart watch and storage medium
CN112099362A (en) * 2019-06-17 2020-12-18 美的集团武汉制冷设备有限公司 Control terminal, remote control prompting method of household appliance and air conditioner
CN111290553B (en) * 2020-01-21 2022-01-07 Oppo广东移动通信有限公司 Temperature control method, temperature control device, storage medium and electronic equipment
CN112637758B (en) * 2020-08-05 2022-09-09 华为技术有限公司 Equipment positioning method and related equipment thereof
CN113176587B (en) * 2021-04-07 2023-02-07 甄十信息科技(上海)有限公司 Indoor and outdoor identification method and system, electronic equipment and computer readable medium
CN114121141B (en) * 2021-10-19 2022-11-11 厦门安科科技有限公司 Control method and control device for top protection assembly
CN114111801A (en) * 2021-12-14 2022-03-01 中国电信股份有限公司 Automatic start-stop positioning method and device, electronic equipment and storage medium

Citations (6)

* 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
CN104066163A (en) * 2014-04-24 2014-09-24 深圳市研强通信技术有限公司 Power consumption saving device, mobile terminal and power consumption saving 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 广东小天才科技有限公司 A kind of localization method, device, equipment and storage medium

Patent Citations (6)

* 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
CN104066163A (en) * 2014-04-24 2014-09-24 深圳市研强通信技术有限公司 Power consumption saving device, mobile terminal and power consumption saving 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 广东小天才科技有限公司 A kind of localization method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN108076428A (en) 2018-05-25

Similar Documents

Publication Publication Date Title
CN108076428B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108020851B (en) Control method and device based on positioning module, storage medium and mobile terminal
US8666432B2 (en) Method and system for indoor RF mapping
CN108169775B (en) Control method and device based on positioning module, storage medium and mobile terminal
US9066207B2 (en) Managing states of location determination
CN108064024B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108055642B (en) Control method and device of positioning module, storage medium and mobile terminal
EP3351040B1 (en) Augmenting indoor-outdoor detection using side information
US10212545B2 (en) Method and apparatus for device positioning
US9820231B2 (en) Coalescing geo-fence events
KR100775123B1 (en) Method of indexing image object and image object indexing system using the same
US20140370909A1 (en) Reduced power location determinations for detecting geo-fences
CN108064023B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108008423B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN106201448B (en) Information processing method and user terminal
KR101928944B1 (en) Image-based localization method for wireless terminal and apparatus therefor
CN111328020B (en) Service processing method and device based on indoor positioning system
WO2012064860A1 (en) Beacon-based geofencing
WO2009094323A1 (en) Position source selection
WO2021027215A1 (en) Positioning information creation method, vehicle-mounted terminal, server device, and positioning system
CN107835304B (en) Method and device for controlling mobile terminal, mobile terminal and storage medium
JP2018093461A (en) Electronic apparatus, control device, control program and electronic apparatus operation method
CN108093369B (en) Hotel guest room information pushing method and mobile terminal
JP7217824B1 (en) CALIBRATION INSTRUCTION DEVICE, SENSOR, SENSOR SYSTEM, CALIBRATION INSTRUCTION METHOD AND PROGRAM
US11467146B2 (en) Portable apparatus for measuring air quality and method for displaying information about air quality

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: 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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200114

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