CN108169775B - 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
CN108169775B
CN108169775B CN201711327829.2A CN201711327829A CN108169775B CN 108169775 B CN108169775 B CN 108169775B CN 201711327829 A CN201711327829 A CN 201711327829A CN 108169775 B CN108169775 B CN 108169775B
Authority
CN
China
Prior art keywords
mobile terminal
preset
gnss module
state
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711327829.2A
Other languages
Chinese (zh)
Other versions
CN108169775A (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 CN201711327829.2A priority Critical patent/CN108169775B/en
Publication of CN108169775A publication Critical patent/CN108169775A/en
Application granted granted Critical
Publication of CN108169775B publication Critical patent/CN108169775B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

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)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Mobile Radio Communication Systems (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: when a GNSS module in the mobile terminal is in a normal working mode due to being called by LBS application, acquiring acceleration data in the horizontal direction generated by an acceleration sensor without containing arithmetic logic through an AP; performing integral operation on acceleration data acquired within a preset time length through the AP; determining whether the mobile terminal is in a first preset state according to the operation result, wherein the first preset state comprises a static state and/or a slow advancing state; and when the mobile terminal is determined to be in the first preset state, controlling the GNSS module to enter a low-power-consumption working mode. By adopting the technical scheme, the motion state of the mobile terminal can be detected under the condition of saving the manufacturing cost of the mobile terminal, the GNSS module is reasonably controlled to enter the low-power-consumption working mode, and the endurance time of the mobile terminal is prolonged.

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
Location Based Service (LBS) is a value-added Service that obtains Location information of a mobile terminal user through a Location technology and provides a corresponding Service for the user, and at present, many applications in a mobile terminal are developed Based on LBS, which already covers the fields of leisure entertainment, life Service, social application and the like, so the LBS technology plays an important role in various industries. The LBS application needs to call the location module to obtain the location information located by the location module when providing location-related services.
Currently, 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. There is still a need for improvements in existing solutions for controlling GNSS positioning modules.
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 a GNSS 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:
when a Global Navigation Satellite System (GNSS) module in a mobile terminal is in a normal working mode due to being called by a Location Based Service (LBS) application, acquiring acceleration data in the horizontal direction generated by an acceleration sensor through an Application Processor (AP), wherein the acceleration sensor does not contain arithmetic logic;
performing integral operation on the acceleration data acquired within a preset time length through the AP;
determining whether the mobile terminal is in a first preset state according to an operation result, wherein the first preset state comprises a static state and/or a slow-speed traveling state;
and when the mobile terminal is determined to be in the first preset state, controlling the GNSS module to enter a low-power-consumption working mode.
In a second aspect, an embodiment of the present application provides a control device based on a positioning module, including:
the system comprises an acceleration data acquisition module, a position based service (LBS) application module and an Application Processor (AP), wherein the acceleration data acquisition module is used for acquiring acceleration data in the horizontal direction generated by an acceleration sensor when a Global Navigation Satellite System (GNSS) module in the mobile terminal is in a normal working mode due to the fact that the GNSS module is called by the LBS application, and the acceleration sensor does not contain arithmetic logic;
the operation module is used for carrying out integral operation on the acceleration data acquired within the preset duration through the AP;
the state determining module is used for determining whether the mobile terminal is in a first preset state according to an operation result, wherein the first preset state comprises a static state and/or a slow advancing state;
and the positioning control module is used for controlling the GNSS module to enter a low-power-consumption working mode when the mobile terminal is determined to be in the first preset state.
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, which includes a memory, a GNSS module, an application processor AP, and a computer program stored on the memory and executable by the application processor, where the application 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 in a normal working mode due to being called by LBS application, acceleration data in the horizontal direction generated by an acceleration sensor is obtained through an AP, wherein the acceleration sensor does not contain arithmetic logic; performing integral operation on acceleration data acquired within a preset time length through the AP; and controlling the GNSS module to enter a low-power-consumption working mode when the mobile terminal is determined to be in a static state or a slow-speed traveling state according to the operation result. By adopting the technical scheme, the motion state of the mobile terminal can be detected by matching the AP and the acceleration sensor without arithmetic logic under the condition of saving the manufacturing cost of the mobile terminal, and the working mode of the GNSS module can be reasonably adjusted according to the motion state.
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 illustrating a process of detecting whether a current scenario is suitable for a GNSS module to work 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, when the GNSS module in the mobile terminal is in a normal operating mode due to being called by the LBS application, acquiring acceleration data in a horizontal direction generated by the acceleration sensor through the AP.
Wherein the acceleration sensor does not include arithmetic logic therein.
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.
The GNSS module consumes a large amount of power in the positioning process, and the endurance time of the mobile terminal is influenced. Generally, a mobile terminal may be loaded with a plurality of Location Based Service (LBS) applications, such as an electronic map application (e.g., a hundred degree map), a takeout application (e.g., a mei juan takeout), a social contact application (e.g., a Wechat application), an information Service application (e.g., a popular comment), and a travel application (e.g., a travel guide). When the LBS application needs to use the positioning service, a call request to the GNSS module is sent (i.e., the LBS application initiates a positioning request of a GNSS positioning mode), if the call request is agreed (i.e., if the positioning request is agreed), the GNSS module is started and in a normal working mode, satellite signals are searched and other related data used for positioning are acquired, further, the position information (also called positioning information) of the mobile terminal is calculated and provided for the LBS application, the LBS application provides richer services to the user according to the position information, and when the LBS application cancels the call, the GNSS module is closed. Whether the working state of the GNSS module is reasonable depends on whether the LBS application reasonably uses the GNSS module, and the mobile terminal in the related art does not manage and control the working state of the GNSS module in the LBS application calling state, so that the GNSS module has the condition of excessive power consumption caused by improper use.
In the embodiment of the application, in order to reasonably control the operation of the GNSS module, the operation mode of the GNSS module may be determined according to the motion state of the mobile terminal. At present, with the rapid development of sensor technology, the variety of sensors is increasing, the functions are more and more powerful, and the cost is higher and higher. In the related art, a mobile terminal generally detects a motion state of the mobile terminal by using a high-level sensor having arithmetic logic, such as a gyroscope, or detects a motion state of the mobile terminal by adding a sensor hub (sensor hub) in combination with the sensor, the sensor hub has arithmetic capability and can calculate and analyze data generated by the sensor so as to obtain a detection result of the motion state, and the high-level sensor or the sensor hub, such as the gyroscope, can transmit a final detection result to a processor in the mobile terminal so that the processor can perform a corresponding operation according to the detection result. However, for some low-end mobile terminals, in order to control the manufacturing cost, it is not considered to add a high-level sensor or a sensor hub having an arithmetic logic, such as a gyroscope, so that these mobile terminals cannot detect the motion state of the mobile terminal based on the existing method.
An Application Processor (AP) is the most important Processor in the mobile terminal, and the system operation and the Application program operation of the mobile terminal depend on the AP. In the embodiment of the application, acceleration data in the horizontal direction generated by a common acceleration sensor without arithmetic logic is directly obtained through the AP, and operation, subsequent identification and other operations are performed based on the obtained sensor raw data, so that the detection of the motion state of a high-level sensor such as a gyroscope and a low-end mobile terminal of the sensorhub can be realized, and the work of the GNSS module is reasonably controlled based on the motion state. Since the change of the mobile terminal positioning information is caused by the movement in the horizontal direction, in the embodiment of the application, only the acceleration data in the horizontal direction is acquired, and the data acquisition amount and the calculation amount can be reduced, thereby reducing the power consumption.
And 102, performing integral operation on the acceleration data acquired within the preset duration through the AP.
For example, the integration operation may be time domain integration, frequency domain integration, primary integration, or secondary integration, and the embodiment of the present application is not limited. The result of the integration operation may be a velocity, a displacement, or data related to the velocity or the displacement in the horizontal direction, and the displacement in the horizontal direction will be described as an example. The embodiment of the present application does not limit the details of the specific operation. To facilitate subsequent determination, the result of the integration operation may be data in absolute value form.
The specific value of the preset time period may be set according to actual requirements, and may be 5 seconds, for example. Optionally, the preset duration may be determined according to a result of predicting the user behavior by the mobile terminal. Illustratively, counting or learning the motion trail of the mobile terminal by taking a preset counting period (such as one day) as a unit, and if it is determined according to a counting result or a learning result that a first probability that the period of the current time of the user is in a static state is higher than a first preset probability threshold (such as 80%), setting the preset time length as a first preset time length (such as 5 seconds); if the first probability is lower than or equal to a first preset probability threshold, setting the preset time length to a second preset time length (for example, 10 seconds) which is longer than the first preset time length so as to prolong the integration time and improve the accuracy of the motion state detection result. It can be understood that more preset probability thresholds and more preset durations can be set, so as to dynamically adjust the preset durations.
Step 103, determining whether the mobile terminal is in a first preset state according to the operation result, wherein the first preset state comprises a static state and/or a slow-speed traveling state.
When the mobile terminal is in a stationary state or a slow-moving state, the position of the mobile terminal is almost unchanged or slightly changed, and if the GNSS module is in a normal operating mode, satellite signal search and other related positioning operations are performed continuously, which causes higher power consumption and affects the endurance time of the mobile terminal.
Exemplarily, when the operation result is smaller than a first preset threshold, determining that the mobile terminal is in a static state; and when the operation result is greater than or equal to the first preset threshold and smaller than a second preset threshold, determining that the mobile terminal is in a slow-speed traveling state. The first preset threshold and the second preset threshold may be related to an integral operation mode, and when the operation result is a speed, the first preset threshold and the second preset threshold are speed values, such as 0.1 m/s and 1 m/s, respectively; when the operation result is displacement, the first preset threshold and the second preset threshold are displacement values, such as 0.5 meter and 5 meters, respectively. The specific values of the first preset threshold and the second preset threshold are not limited in the embodiments of the present application.
And 104, controlling the GNSS module to enter a low-power-consumption working mode when the mobile terminal is determined to be in the first preset state.
In the embodiment of the application, when the mobile terminal is determined to be in a static state or a slow-speed traveling state, if the GNSS module still keeps an efficient normal operation state, the power consumption is high, so that the GNSS module can be controlled to enter a low-power-consumption working mode, unnecessary positioning operation is omitted, and the system power consumption of the mobile terminal is reduced.
In the embodiment of the present application, specific implementation manners for controlling the GNSS module to enter the low power consumption operating mode may be various, and the embodiment of the present application is not limited. For example, the GNSS module may be turned off, for example, the power supply to the GNSS module is stopped, which is advantageous in that the positioning function may be completely turned off to avoid the power consumption generated by the GNSS module. The GNSS module can be controlled to enter a dormant state, satellite signal searching and other related operations can be stopped, and the GNSS module stops working, so that power consumption of the GNSS module caused by positioning can be reduced, and the GNSS module can be quickly restored to a normal working state when positioning is needed. The GNSS module may also be controlled to reduce the frequency of performing positioning related operations, for example, the frequency of searching for satellite signals may be reduced, and the frequency of reporting location information to the application layer may also be reduced. The method may further control a correlator in the GNSS module to close a preset number of channels, and control the correlation unit to stop processing signals or data corresponding to the closed channels, where the preset number may be a fixed value or a variable determined according to an actual situation. The advantage of this arrangement is that the positioning function is still available, and when the mobile terminal moves, the positioning information can be updated in time, and at the same time, the power consumption can be reduced. In addition, a low power consumption working mode can be realized by adopting a mode of reducing positioning precision and the like, and the application is not limited.
In order to facilitate understanding of the technical solutions of the embodiments of the present application, the correlator is briefly described below. The GNSS module in the mobile terminal includes a radio frequency receiving front end, a correlator and a baseband calculation control unit, where the correlator generally includes multiple channels, usually 12 channels and 20 channels (the total number of channels is not limited in the embodiment of the present application), and all channels in the correlator participate in operation during the operation of the GNSS module. After the radio frequency signal of the satellite signal is received by the antenna, the radio frequency signal is amplified, filtered, mixed and sampled by the radio frequency receiving front end and then is sent to the correlator for correlation operation. In the correlation operation process, a signal is multiplied by a local reproduction carrier generated by a correlator to realize demodulation, the signal is divided into an in-phase path and an orthogonal-phase path after the carrier is stripped, then the in-phase path and the orthogonal-phase path are multiplied by the local reproduction carrier respectively to realize de-spreading, and the data is sent to a baseband resolving control unit to be processed by a baseband after integral dump, so that satellite navigation messages and positioning information are finally obtained. Meanwhile, the baseband resolving control unit feeds back the carrier frequency control word and the code frequency control word calculated by the carrier tracking loop and the code tracking loop to a numerically controlled oscillator in the correlator in real time, so that the real-time acquisition and tracking of the correlator loop to the satellite signal are realized. It can be seen that each channel in the correlator needs a lot of operations, which inevitably results in large power consumption. In the embodiment of the application, when the GNSS module is controlled to enter the low power consumption operating mode, the AP may send a preset control instruction to the GNSS module, so that the GNSS module closes the channels of the preset number of correlators according to the preset control instruction, and controls the correlation unit to stop processing the signal or data corresponding to the closed channel. The correlation unit may include a data preprocessing and interrupt control unit, a digitally controlled carrier oscillator, a C/a code (coarse ranging code) generator, a digital multiplier and integral dump unit, and an epoch counter. The power consumption reduction mode can greatly reduce the power consumption generated by the correlator, and experiments prove that the power consumption of the GNSS module can be effectively reduced by reducing the number of logic gates contained in the GNSS module from 50 ten thousand to 10 ten thousand by adopting the mode.
According to the control method based on the positioning module, when a GNSS module in a mobile terminal is in a normal working mode due to being called by LBS application, acceleration data in the horizontal direction generated by an acceleration sensor is obtained through an AP, wherein the acceleration sensor does not contain arithmetic logic; performing integral operation on acceleration data acquired within a preset time length through the AP; determining whether the mobile terminal is in a first preset state according to an operation result, wherein the first preset state comprises a static state and/or a slow-speed traveling state; and when the mobile terminal is determined to be in the first preset state, controlling the GNSS module to enter a low-power-consumption working mode. By adopting the technical scheme, the motion state of the mobile terminal can be detected by matching the AP and the acceleration sensor without arithmetic logic under the condition of saving the manufacturing cost of the mobile terminal, and the working mode of the GNSS module can be reasonably adjusted according to the motion state.
In some embodiments, the controlling the GNSS module to enter the low power operation mode when it is determined that the mobile terminal is in the first preset state includes: when the mobile terminal is determined to be in the first preset state, judging whether a current scene is suitable for the GNSS module to work; and if not, controlling the GNSS module to enter a low-power-consumption working mode. The mobile terminal can be converted into a motion state with a fast change position at any time when the mobile terminal is in a static state or a slow-speed traveling state, the current scene where the mobile terminal is located can be judged for ensuring timeliness of a positioning function, if the current scene is not suitable for the GNSS module to work, even if the GNSS module is in a normal working mode, the GNSS module is probably unable to be positioned, or a positioning result is not credible, and therefore the GNSS module can be controlled to enter a low-power-consumption working mode, such as the GNSS module is turned off.
For example, scenarios unsuitable for GNSS module operation may include indoor environments, or other closed or semi-closed environments, such as inside tunnels and under viaducts, etc. Optionally, the determining whether the current scene is suitable for the GNSS module to work may include determining whether the current scene is an indoor scene, and if the current scene is an indoor scene, determining that the current scene is not suitable for the GNSS module to work. There are many ways to determine whether the scene is an indoor scene, and the embodiment of the present application is not particularly limited. For example, a current position is located through a GNSS module or other locating methods (such as a base station locating method or a network locating method), corresponding weather information is obtained according to the current position, weather-related data is collected through a preset sensor in the mobile terminal, the collected weather-related data is compared with the weather information, and whether the mobile terminal is in an indoor environment is determined according to a comparison result. Further, 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. 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. 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.
For example, whether the current scene is suitable for the GNSS module to work can be further determined according to the number of satellites currently searched by the GNSS module and the satellite signal strength. Optionally, it is determined whether the number of satellites in the satellite information currently acquired by the GNSS module satisfies the number required for positioning, and whether the signal strength of the satellites satisfies the strength required for positioning, and if any one of the satellite strengths does not satisfy the strength required for positioning, it may be determined that the current scene is not suitable for the GNSS module to work. Specifically, when it is determined that the number of satellites in the satellite information currently acquired by the GNSS module is smaller than a preset minimum satellite number, or the CN value of the satellite signal is smaller than a preset signal intensity threshold, it may be determined that the current scene is not suitable for the GNSS module to work. Wherein, the CN value refers to the power ratio of the carrier to the noise, and is used to measure the strength of the satellite signal. Optionally, the minimum satellite number is 4, and the preset signal strength threshold is 8.
Exemplarily, the satellite information acquired by the GNSS module may be acquired at regular time, and when the currently acquired satellite information is the same as the satellite information acquired last time, a value of a preset environmental parameter is added by 1, and an initial value of the environmental parameter is 0; and when the value of the environmental parameter obtained within the preset time is larger than a preset environmental parameter threshold value, determining that the current scene is not suitable for the GNSS module to work. Further, when the currently acquired satellite information is different from the satellite information acquired last time, if the strength value of the satellite signal in the currently acquired satellite information is smaller than a preset signal strength threshold value and the number of satellites in the currently acquired satellite information is smaller than a preset value, adding 1 to the value of the environment parameter; otherwise, determining that the current scene is suitable for the GNSS module to work.
In some embodiments, whether the current scenario is suitable for the GNSS module to operate may be determined as follows. Fig. 2 is a schematic flowchart of a process for detecting whether a current scene is suitable for a GNSS module to work according to an embodiment of the present invention, and as shown in fig. 2, the process for detecting whether a current scene is suitable for a GNSS module to work specifically includes the following steps:
in step 201, the initialization environment parameter variable STimer is equal to 0.
Step 202, satellite information acquired by the GNSS module is acquired.
Step 203, judging whether the currently acquired satellite information is the same as the satellite information acquired last time, if so, executing step 205; otherwise, step 204 is performed.
Step 204, judging whether the CN VALUE of the satellite signals in the currently acquired satellite information is smaller than a preset signal intensity threshold VALUE MIN _ VALUE and the number of the satellites is smaller than a preset minimum satellite number MIN _ NUM, if so, executing step 205; otherwise, step 207 is performed.
And step 205, adding 1 to the value of STImer.
Step 206, judging whether the STImer is greater than a preset environmental parameter threshold MAX _ NUM, if so, executing step 208, and ending the process; otherwise, return to execute step 202.
The specific value of MAX _ NUM is not limited, and may be, for example, 5.
Step 207, reinitializing STimer equal to 0, and returning to execute step 202.
For example, the GNSS module can perform positioning at this time, so that the current scenario is suitable for the GNSS module to work.
And step 208, determining that the current scene is not suitable for the GNSS module to work.
Through the above steps shown in fig. 2, it can be accurately determined whether the current scene is suitable for the GNSS module to work.
In some embodiments, the GNSS module may be controlled to enter the low power operation mode in different manners according to actual situations. Before the controlling the GNSS module to enter the low power consumption operation mode, the method further includes: acquiring type information of the LBS application; the controlling the GNSS module to enter a low power consumption operating mode includes: and determining a target mode for controlling the GNSS module to enter a low-power-consumption working mode according to the type information and the state of the mobile terminal, and controlling the GNSS module to enter the low-power-consumption working mode according to the target mode. The advantage of setting up like this is, under the circumstances of the location demand of giving consideration to different types of LBS application, the power consumption mode that falls of abundant GNSS module.
The type information of the LBS application may include an electronic map application (such as a Baidu map, etc.), a traffic application (such as a drip trip, a Mobai bicycle, etc.), a takeout application (such as a beauty group takeout, etc.), a social application (such as a WeChat, etc.), an information service application (such as a popular comment, etc.), a travel application (such as a travel, etc.), a video application (such as an Archie art), a game application (such as a Royal of a King worker), a text application (such as an office), etc., and may be classified according to different classification policies, where different classification policies may correspond to different classification results. The type information of the LBS application may reflect the level of the positioning accuracy requirement of the application program. For example, the navigation application program has higher requirement on positioning accuracy, and the applications such as Mobai bicycle and automobile have higher requirement on positioning accuracy. These applications need to accurately obtain not only the city in which the user is located, the various areas in the city, street information in the areas, but also latitude and longitude information. And the information service application program, the game application program, the camera application program and other application programs have lower requirements on positioning accuracy. The application programs with low requirements on positioning accuracy only acquire the city where the user is located or each area in the city, and can provide better service for the user.
Further, the determining a target mode for controlling the GNSS module to enter the low power consumption operating mode according to the type information and the state of the mobile terminal includes: when the type information is a first preset type and the mobile terminal is in a static state, determining that a target mode for controlling the GNSS module to enter a low-power-consumption working mode is to close the GNSS module; when the type information is a second preset type and the mobile terminal is in a static state, determining that a target mode for controlling the GNSS module to enter a low-power-consumption working mode is to control the GNSS module to enter a dormant state; when the type information is a first preset type and the mobile terminal is in a slow-speed traveling state, determining that a target mode for controlling the GNSS module to enter a low-power-consumption working mode is to control the GNSS module to close channels with a first preset number of correlators and control a related unit to stop processing signals or data corresponding to the closed channels; and when the type information is a second preset type and the mobile terminal is in a slow-speed traveling state, determining that a target mode for controlling the GNSS module to enter the low-power-consumption working mode is to control the GNSS module to close channels with a second preset number of correlators, and controlling the correlation unit to stop processing signals or data corresponding to the closed channels.
The positioning accuracy required by the LBS application corresponding to the first preset type is smaller than the positioning accuracy required by the LBS application corresponding to the second preset type, and the first preset number is larger than the second preset number. The advantage of this arrangement is that it can be combined with the specific motion state that needs power reduction and the requirement of the application program for positioning accuracy to determine which power reduction mode is adopted. It is to be understood that, in the third and fourth cases, the manner of controlling the correlator in the GNSS module to close the preset number of channels and controlling the correlation unit to stop processing the signals or data corresponding to the closed channels may be replaced by other manners, such as controlling the GNSS module to reduce the frequency of performing the positioning correlation operation as described above.
For example, the first preset type and the second preset type may be set by a default of the system or may be set autonomously by the user. When the system is set by default, the mobile terminal can also count or learn the historical use habits of the user sample and the corresponding scene information to generate and formulate the historical use habits. For example, the embodiment of the present application may further include: counting or learning historical habit data of different types of application programs used by a user according to a preset period; and determining a first preset type and a second preset type according to the statistical result or the learning result. As described above, different classes of LBS applications have different requirements on the positioning accuracy, and the LBS application type with low requirement on the positioning accuracy may be classified into a first preset type, and the LBS application type with high requirement on the positioning accuracy may be classified into a second preset type.
Specifically, the historical habit data includes at least one of the number of times of calling a map screen, the frequency of refreshing the map screen, the number of times of manually correcting the position, and the number of times of actively starting the GNSS positioning function. When the user performs the operation, the requirement of the user on the positioning precision of the application program can be higher, and then the requirement of the application program on the positioning precision is higher. It can be understood that the more times the application calls the map screen, the more the user needs to know the detailed location information of the mobile terminal by calling the map, and the higher the requirement of the application on the positioning accuracy is; the higher the frequency of the application program refreshing the map picture is, the higher the frequency is, the more accurate the map picture is, the more accurate the application program requires for positioning accuracy is; when the application program is positioned, a user often corrects the position positioned by the application program manually, or the more times the user corrects the position manually, the more the position information obtained by the application program is incorrect, or the less the precision of the position information obtained by the application program is, even the application program can not meet the requirement of the user by calling a map picture for many times, or frequently refreshing the map picture, at this time, the user actively corrects the position information manually, and the more the position precision requirement of the application program is further described; when the application program performs positioning, the user often manually starts the GNSS positioning function, or the number of times of starting the GNSS positioning function is more, which indicates that the user expects the application program to be directly positioned in a GNSS positioning mode with higher positioning accuracy, but does not wish to perform positioning in a positioning mode with lower positioning accuracy such as network positioning, base station positioning, or bluetooth positioning, and further indicates that the application program has higher requirement for positioning accuracy. Respectively carrying out statistical learning on the times of calling the map picture, the frequency of refreshing the map picture, the times of manually correcting the position and the times of actively starting the GNSS positioning function by each application program in a user sample, determining LBS application with lower requirement on positioning precision and LBS application with higher requirement on positioning precision, and further determining a first preset type and a second preset type.
In some embodiments, after controlling the GNSS module to enter the low power operation mode, the method further includes: repeating an operation of acquiring acceleration data in a horizontal direction generated by the acceleration sensor through the AP; and when the mobile terminal is determined to be in a second preset state, controlling the GNSS module to enter a normal working mode, wherein the second preset state is a motion state except the first preset state. Specifically, acceleration data in the horizontal direction generated by the acceleration sensor is continuously acquired through the AP, integral operation is performed on the acceleration acquired within a preset time through the AP, whether the mobile terminal is in a first preset state or not is determined according to an operation result, and if the mobile terminal is not in the first preset state, the GNSS module is controlled to enter a normal working mode. The GNSS module is controlled to enter the low-power-consumption working mode, the movement state is continuously judged, the change of the movement state of the mobile terminal is further mastered in real time, when the GNSS module is not in the first preset state, the mobile terminal moves faster, the position change is large, manual operation of a user is not needed, and the normal working mode of the GNSS module is automatically recovered, so that the precision and the accuracy of a positioning result are ensured.
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, it is detected that the GNSS module in the mobile terminal is in a normal operating mode because it is called by the LBS application.
Step 302, acquiring acceleration data in the horizontal direction generated by the acceleration sensor through the AP.
And 303, performing integral operation on the acceleration data acquired within the preset duration through the AP.
Step 304, determining whether the mobile terminal is in a static state according to the operation result, if so, executing step 305; otherwise, return to step 302.
305, judging whether the current scene is suitable for the GNSS module to work, if so, returning to execute the step 302; otherwise, step 306 is performed.
Step 306, turn off the GNSS module.
And 307, continuously acquiring acceleration data in the horizontal direction generated by the acceleration sensor through the AP, and performing integral calculation on the acceleration data acquired within a preset time length.
Step 308, determining whether the mobile terminal is switched to a motion state according to the operation result, if so, executing step 309; otherwise, return to execute step 307.
Step 309, controlling the GNSS module to enter a normal operating mode.
The control method based on the positioning module, which is provided by the embodiment of the application, has a wide application range, is applicable to mobile terminals of low-end models, and saves manufacturing cost, detects the motion state of the mobile terminal through the cooperation of the AP and an acceleration sensor without arithmetic logic, detects whether the current scene is suitable for the work of the GNSS module when the mobile terminal is in a static state, closes the GNSS module when the current scene is not suitable for the work of the GNSS module, can reduce the power consumption of the mobile terminal, prolong the standby time, continues to detect the motion state in the same mode after closing the GNSS module, and restarts the GNSS module when the mobile terminal enters the motion state, so that the GNSS module timely restores to a normal working mode, and provides accurate positioning information for LBS application.
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, it is detected that the GNSS module in the mobile terminal is in a normal operating mode because it is called by the LBS application.
Step 402, acquiring acceleration data in the horizontal direction generated by the acceleration sensor through the AP.
And step 403, performing integral operation on the acceleration data acquired within the preset duration through the AP.
Step 404, determining whether the mobile terminal is in a static state or a slow-speed traveling state according to the operation result, if so, executing step 405; otherwise, return to execute step 402.
And 405, acquiring type information of the LBS application, and determining a mode for controlling the GNSS module to enter a low power consumption working mode according to the type information and the motion state of the mobile terminal.
Step 406, when the type information is the first preset type and the mobile terminal is in a stationary state, turning off the GNSS module.
Step 407, when the type information is the second preset type and the mobile terminal is in a stationary state, controlling the GNSS module to enter a sleep state.
Step 408, when the type information is the first preset type and the mobile terminal is in the slow-moving state, controlling the GNSS module to close the first preset number of channels of the correlator, and controlling the correlation unit to stop processing the signal or data corresponding to the closed channel.
And 409, when the type information is a second preset type and the mobile terminal is in a slow-speed traveling state, controlling the GNSS module to close the channels of the second preset number of the correlators, and controlling the correlation unit to stop processing signals or data corresponding to the closed channels.
The positioning accuracy required by the LBS application corresponding to the first preset type is smaller than the positioning accuracy required by the LBS application corresponding to the second preset type, and the first preset number is larger than the second preset number.
And step 410, continuously acquiring the acceleration data in the horizontal direction generated by the acceleration sensor through the AP, and performing integral calculation on the acceleration data acquired within the preset time length.
Step 411, determining whether the mobile terminal is in a second preset state according to the operation result, if so, executing step 412; otherwise, return to execute step 410.
Step 412, the GNSS module is controlled to enter a normal operation mode.
It should be noted that after step 405 is executed, one of steps 406-409 is executed according to actual conditions, and then step 410 is executed.
The control method based on the positioning module, which is provided by the embodiment of the application, has a wide application range, is applicable to mobile terminals of low-end models, saves the manufacturing cost, detects the motion state of the mobile terminal through the cooperation of the AP and the acceleration sensor without arithmetic logic, determines how to control the GNSS module to enter the low-power-consumption working mode according to the type information of the LBS application calling the GNSS module and the specific motion state of the mobile terminal when the GNSS module is determined to be required to enter the low-power-consumption working mode according to the motion state, and more reasonably controls the GNSS module to reduce the power consumption under the condition of considering the positioning requirements of different types of LBS applications.
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 control a GNSS module in the mobile terminal by executing a positioning module-based control method. As shown in fig. 5, the apparatus includes:
an acceleration data obtaining module 501, configured to obtain, by an application processor AP, acceleration data in a horizontal direction generated by an acceleration sensor when a global navigation satellite system GNSS module in the mobile terminal is in a normal operating mode due to being invoked by a location based service LBS application, where the acceleration sensor does not include an arithmetic logic;
an operation module 502, configured to perform integral operation on acceleration data acquired within a preset duration through the AP;
a state determining module 503, configured to determine whether the mobile terminal is in a first preset state according to an operation result, where the first preset state includes a stationary state and/or a slow moving state;
a positioning control module 504, configured to control the GNSS module to enter a low power consumption operating mode when it is determined that the mobile terminal is in the first preset state.
According to the control device based on the positioning module, when a GNSS module in a mobile terminal is in a normal working mode due to being called by LBS application, acceleration data in the horizontal direction generated by an acceleration sensor is obtained through an AP, wherein the acceleration sensor does not contain arithmetic logic; performing integral operation on acceleration data acquired within a preset time length through the AP; determining whether the mobile terminal is in a first preset state according to an operation result, wherein the first preset state comprises a static state and/or a slow-speed traveling state; and when the mobile terminal is determined to be in the first preset state, controlling the GNSS module to enter a low-power-consumption working mode. By adopting the technical scheme, the motion state of the mobile terminal can be detected by matching the AP and the acceleration sensor without arithmetic logic under the condition of saving the manufacturing cost of the mobile terminal, and the working mode of the GNSS module can be reasonably adjusted according to the motion state.
Optionally, the determining, according to the operation result, whether the mobile terminal is in a first preset state includes:
when the operation result is smaller than a first preset threshold value, determining that the mobile terminal is in a static state;
and when the operation result is greater than or equal to the first preset threshold and smaller than a second preset threshold, determining that the mobile terminal is in a slow-speed traveling state.
Optionally, when it is determined that the mobile terminal is in the first preset state, controlling the GNSS module to enter a low power consumption operating mode includes:
when the mobile terminal is determined to be in the first preset state, judging whether a current scene is suitable for the GNSS module to work;
and if not, controlling the GNSS module to enter a low-power-consumption working mode.
Optionally, the controlling the GNSS module to enter the low power consumption operating mode includes:
turning off the GNSS module; or the like, or, alternatively,
controlling the GNSS module to enter a dormant state; or the like, or, alternatively,
and controlling the GNSS module to close the preset number of channels of the correlator, and controlling the correlation unit to stop processing the signals or data corresponding to the closed channels.
Optionally, the apparatus further comprises:
the type information acquisition module is used for acquiring the type information of the LBS application before the GNSS module is controlled to enter the low-power-consumption working mode;
the controlling the GNSS module to enter a low power consumption operating mode includes:
and determining a target mode for controlling the GNSS module to enter a low-power-consumption working mode according to the type information and the state of the mobile terminal, and controlling the GNSS module to enter the low-power-consumption working mode according to the target mode.
Optionally, the determining a target mode for controlling the GNSS module to enter the low power consumption operating mode according to the type information and the state of the mobile terminal includes:
when the type information is a first preset type and the mobile terminal is in a static state, determining that a target mode for controlling the GNSS module to enter a low-power-consumption working mode is to close the GNSS module;
when the type information is a second preset type and the mobile terminal is in a static state, determining that a target mode for controlling the GNSS module to enter a low-power-consumption working mode is to control the GNSS module to enter a dormant state;
when the type information is a first preset type and the mobile terminal is in a slow-speed traveling state, determining that a target mode for controlling the GNSS module to enter a low-power-consumption working mode is to control channels with a first preset number of closed correlators in the GNSS module and control a related unit to stop processing signals or data corresponding to the closed channels;
when the type information is a second preset type and the mobile terminal is in a slow-speed traveling state, determining that a target mode for controlling the GNSS module to enter a low-power-consumption working mode is to control channels with a second preset number for closing the correlators in the GNSS module and control the correlation units to stop processing signals or data corresponding to the closed channels;
the positioning accuracy required by the LBS application corresponding to the first preset type is smaller than the positioning accuracy required by the LBS application corresponding to the second preset type, and the first preset number is larger than the second preset number.
Optionally, the acceleration data obtaining module is further configured to: after the GNSS module is controlled to enter a low-power-consumption working mode, repeatedly acquiring the acceleration data in the horizontal direction generated by the acceleration sensor through the AP;
the positioning control module is further configured to: and when the mobile terminal is determined to be in a second preset state, controlling the GNSS module to enter a normal working mode, wherein the second preset state is a motion state except the first preset state.
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:
when a GNSS module in a mobile terminal is in a normal working mode due to being called by LBS application, acquiring acceleration data in the horizontal direction generated by an acceleration sensor through an AP, wherein the acceleration sensor does not contain arithmetic logic;
performing integral operation on the acceleration data acquired within a preset time length through the AP;
determining whether the mobile terminal is in a first preset state according to an operation result, wherein the first preset state comprises a static state and/or a slow-speed traveling state;
and when the mobile terminal is determined to be in the first preset state, controlling the GNSS module to enter a low-power-consumption working mode.
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 operations 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 positioning device 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 memory 601, the GNSS module 602, the application processor 603 and a computer program stored on the memory 601 and executable by the application processor 603, wherein the application processor 603 implements the positioning module-based control method according to the embodiment of the present application when executing the computer program.
The mobile terminal provided by the embodiment of the application can detect the motion state of the mobile terminal through the cooperation of the AP and the acceleration sensor without arithmetic logic under the condition of saving the manufacturing cost of the mobile terminal, reasonably adjust the working mode of the GNSS module according to the motion state, and control the GNSS module to enter the low-power-consumption working mode when the mobile terminal is in a static state or a slow-speed traveling state, so that the power consumption generated by the GNSS module is reduced, and the endurance time of the mobile terminal is prolonged.
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 housing (not shown), a memory 701, a GPS chip (not shown), an application processor AP702, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the AP702 and the memory 701 are disposed 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 AP702 runs a computer program corresponding to the executable program code by reading the executable program code stored in the memory 701 to implement the following steps:
when a GNSS module in a mobile terminal is in a normal working mode due to being called by LBS application, acquiring acceleration data in the horizontal direction generated by an acceleration sensor through an AP, wherein the acceleration sensor does not contain arithmetic logic;
performing integral operation on the acceleration data acquired within a preset time length through the AP;
determining whether the mobile terminal is in a first preset state according to an operation result, wherein the first preset state comprises a static state and/or a slow-speed traveling state;
and when the mobile terminal is determined to be in the first preset state, controlling the GNSS module to enter a low-power-consumption working mode.
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 controlling a positioning 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 AP702, 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 AP702 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 AP702, the I/O subsystem, and the hardware connected to the peripheral interface.
The positioning device, the storage medium and the mobile terminal provided in the above embodiments may 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 (7)

1. A control method based on a positioning module is characterized by comprising the following steps:
when a Global Navigation Satellite System (GNSS) module in a mobile terminal is in a normal working mode due to being called by a Location Based Service (LBS) application, acquiring acceleration data in the horizontal direction generated by an acceleration sensor through an Application Processor (AP), wherein the acceleration sensor does not contain arithmetic logic;
performing integral operation on the acceleration data acquired within a preset time length through the AP;
determining whether the mobile terminal is in a first preset state according to an operation result, wherein the first preset state comprises a static state and/or a slow-speed traveling state;
when the mobile terminal is determined to be in the first preset state, acquiring type information of the LBS application, determining a target mode for controlling the GNSS module to enter a low-power-consumption working mode according to the type information and the state of the mobile terminal, and controlling the GNSS module to enter the low-power-consumption working mode according to the target mode;
the type information of the LBS application is used for reflecting the requirement of an application program on the positioning precision;
the controlling the GNSS module to enter a low power consumption operating mode includes: turning off the GNSS module; or, controlling the GNSS module to enter a sleep state; or, controlling the GNSS module to close a preset number of channels of the correlator, and controlling the correlation unit to stop processing signals or data corresponding to the closed channels;
the determining a target mode for controlling the GNSS module to enter the low power consumption working mode according to the type information and the state of the mobile terminal comprises:
when the type information is a first preset type and the mobile terminal is in a static state, determining that a target mode for controlling the GNSS module to enter a low-power-consumption working mode is to close the GNSS module;
when the type information is a second preset type and the mobile terminal is in a static state, determining that a target mode for controlling the GNSS module to enter a low-power-consumption working mode is to control the GNSS module to enter a dormant state;
when the type information is a first preset type and the mobile terminal is in a slow-speed traveling state, determining that a target mode for controlling the GNSS module to enter a low-power-consumption working mode is to control the GNSS module to close channels with a first preset number of correlators and control a related unit to stop processing signals or data corresponding to the closed channels;
when the type information is a second preset type and the mobile terminal is in a slow-speed traveling state, determining that a target mode for controlling the GNSS module to enter a low-power-consumption working mode is to control the GNSS module to close channels with a second preset number of correlators, and controlling a relevant unit to stop processing signals or data corresponding to the closed channels;
the positioning accuracy required by the LBS application corresponding to the first preset type is smaller than the positioning accuracy required by the LBS application corresponding to the second preset type, and the first preset number is larger than the second preset number;
the method further comprises the following steps:
counting or learning historical habit data of different types of application programs used by a user according to a preset period, wherein the historical habit data comprises the times of calling a map picture, the frequency of refreshing the map picture, the times of manually correcting the position and the times of actively starting a GNSS positioning function;
and determining a first preset type and a second preset type according to the statistical result or the learning result.
2. The method according to claim 1, wherein the determining whether the mobile terminal is in a first preset state according to the operation result comprises:
when the operation result is smaller than a first preset threshold value, determining that the mobile terminal is in a static state;
and when the operation result is greater than or equal to the first preset threshold and smaller than a second preset threshold, determining that the mobile terminal is in a slow-speed traveling state.
3. The method according to claim 1, wherein the controlling the GNSS module to enter a low power operation mode when it is determined that the mobile terminal is in the first preset state comprises:
when the mobile terminal is determined to be in the first preset state, judging whether a current scene is suitable for the GNSS module to work;
and if not, controlling the GNSS module to enter a low-power-consumption working mode.
4. The method according to any of claims 1-3, further comprising, after controlling the GNSS module to enter the low power mode of operation:
repeating an operation of acquiring acceleration data in a horizontal direction generated by the acceleration sensor through the AP;
and when the mobile terminal is determined to be in a second preset state, controlling the GNSS module to enter a normal working mode, wherein the second preset state is a motion state except the first preset state.
5. A control device based on a positioning module, comprising:
the system comprises an acceleration data acquisition module, a position based service (LBS) application module and an Application Processor (AP), wherein the acceleration data acquisition module is used for acquiring acceleration data in the horizontal direction generated by an acceleration sensor when a Global Navigation Satellite System (GNSS) module in the mobile terminal is in a normal working mode due to the fact that the GNSS module is called by the LBS application, and the acceleration sensor does not contain arithmetic logic;
the operation module is used for carrying out integral operation on the acceleration data acquired within the preset duration through the AP;
the state determining module is used for determining whether the mobile terminal is in a first preset state according to an operation result, wherein the first preset state comprises a static state and/or a slow advancing state;
the positioning control module is used for acquiring type information of the LBS application when the mobile terminal is determined to be in the first preset state, determining a target mode for controlling the GNSS module to enter a low-power-consumption working mode according to the type information and the state of the mobile terminal, and controlling the GNSS module to enter the low-power-consumption working mode according to the target mode;
the type information of the LBS application is used for reflecting the requirement of an application program on the positioning precision;
the controlling the GNSS module to enter a low power consumption operating mode includes: turning off the GNSS module; or, controlling the GNSS module to enter a sleep state; or, controlling the GNSS module to close a preset number of channels of the correlator, and controlling the correlation unit to stop processing signals or data corresponding to the closed channels;
the determining a target mode for controlling the GNSS module to enter the low power consumption working mode according to the type information and the state of the mobile terminal comprises:
when the type information is a first preset type and the mobile terminal is in a static state, determining that a target mode for controlling the GNSS module to enter a low-power-consumption working mode is to close the GNSS module;
when the type information is a second preset type and the mobile terminal is in a static state, determining that a target mode for controlling the GNSS module to enter a low-power-consumption working mode is to control the GNSS module to enter a dormant state;
when the type information is a first preset type and the mobile terminal is in a slow-speed traveling state, determining that a target mode for controlling the GNSS module to enter a low-power-consumption working mode is to control the GNSS module to close channels with a first preset number of correlators and control a related unit to stop processing signals or data corresponding to the closed channels;
when the type information is a second preset type and the mobile terminal is in a slow-speed traveling state, determining that a target mode for controlling the GNSS module to enter a low-power-consumption working mode is to control the GNSS module to close channels with a second preset number of correlators, and controlling a relevant unit to stop processing signals or data corresponding to the closed channels;
the positioning accuracy required by the LBS application corresponding to the first preset type is smaller than the positioning accuracy required by the LBS application corresponding to the second preset type, and the first preset number is larger than the second preset number;
the first preset type and the second preset type are determined by the following method:
counting or learning historical habit data of different types of application programs used by a user according to a preset period, wherein the historical habit data comprises the times of calling a map picture, the frequency of refreshing the map picture, the times of manually correcting the position and the times of actively starting a GNSS positioning function;
and determining a first preset type and a second preset type according to the statistical result or the learning result.
6. 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-4.
7. A mobile terminal comprising a memory, a global navigation satellite system GNSS module, an application processor AP and a computer program stored on the memory and executable at the AP, the AP implementing a positioning module based control method according to any one of claims 1 to 4 when executing the computer program.
CN201711327829.2A 2017-12-13 2017-12-13 Control method and device based on positioning module, storage medium and mobile terminal Active CN108169775B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711327829.2A CN108169775B (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
CN201711327829.2A CN108169775B (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
CN108169775A CN108169775A (en) 2018-06-15
CN108169775B true CN108169775B (en) 2020-05-12

Family

ID=62525816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711327829.2A Active CN108169775B (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) CN108169775B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109239749A (en) * 2018-08-22 2019-01-18 深圳普创天信科技发展有限公司 Localization method, terminal and computer readable storage medium
CN109581437B (en) * 2018-12-07 2020-11-10 歌尔科技有限公司 Wearable device and positioning method and device thereof
CN111366954B (en) * 2018-12-26 2023-11-24 成都鼎桥通信技术有限公司 GPS star searching control method and device in Android system
CN111405479A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 Positioning tracking method and system
CN110505580A (en) * 2019-08-14 2019-11-26 合肥科维特电气科技有限公司 A method of passing through LBS service auxiliary positioning vehicle
CN110907963B (en) * 2019-12-06 2022-09-02 Oppo广东移动通信有限公司 Satellite positioning engine control method and device and electronic equipment
CN112637758B (en) * 2020-08-05 2022-09-09 华为技术有限公司 Equipment positioning method and related equipment thereof
CN114253385A (en) * 2020-09-25 2022-03-29 北京小米移动软件有限公司 Power consumption management method and device of mobile terminal and computer readable storage medium
CN114578396A (en) * 2020-12-02 2022-06-03 中兴通讯股份有限公司 Low-power-consumption positioning method and device and electronic equipment
CN112880686A (en) * 2021-01-20 2021-06-01 湖南赫兹信息技术有限公司 Object motion monitoring and positioning method, device and storage medium
CN114513752B (en) * 2021-12-30 2024-02-27 山东信通电子股份有限公司 Mobile terminal positioning control method, mobile terminal positioning control equipment and mobile terminal positioning control medium
CN114814268A (en) * 2022-04-13 2022-07-29 南京磁之汇电机有限公司 Motor rotating speed obtaining method, device and system and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101052861A (en) * 2004-11-05 2007-10-10 国际商业机器公司 Movement detection device and movement detection method
CN104066163A (en) * 2014-04-24 2014-09-24 深圳市研强通信技术有限公司 Power consumption saving device, mobile terminal and power consumption saving method
CN105223593A (en) * 2015-09-17 2016-01-06 北京奇虎科技有限公司 Terminal positioning frequency adjustment method, system and positioning interval control method, system
CN105682198A (en) * 2016-01-13 2016-06-15 广东欧珀移动通信有限公司 Positioning control method and device of mobile terminal and mobile terminal
CN106855627A (en) * 2016-12-29 2017-06-16 湖南国科微电子股份有限公司 A kind of method for reducing GNSS receiver power consumption, device and receiver

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106973150B (en) * 2017-03-16 2019-12-03 Oppo广东移动通信有限公司 Positioning accuracy level adjustment method, device and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101052861A (en) * 2004-11-05 2007-10-10 国际商业机器公司 Movement detection device and movement detection method
CN104066163A (en) * 2014-04-24 2014-09-24 深圳市研强通信技术有限公司 Power consumption saving device, mobile terminal and power consumption saving method
CN105223593A (en) * 2015-09-17 2016-01-06 北京奇虎科技有限公司 Terminal positioning frequency adjustment method, system and positioning interval control method, system
CN105682198A (en) * 2016-01-13 2016-06-15 广东欧珀移动通信有限公司 Positioning control method and device of mobile terminal and mobile terminal
CN106855627A (en) * 2016-12-29 2017-06-16 湖南国科微电子股份有限公司 A kind of method for reducing GNSS receiver power consumption, device and receiver

Also Published As

Publication number Publication date
CN108169775A (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN108169775B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108093368B (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
CN108008423B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108111971B (en) Positioning method, positioning device, storage medium and mobile terminal
US9258677B2 (en) Improving scalability and reliability of hardware geo-fencing with failover support
US9880604B2 (en) Energy efficient location detection
JP6955092B2 (en) Methods for reducing terminal power consumption, and terminals
US20140370909A1 (en) Reduced power location determinations for detecting geo-fences
CN108076507B (en) Positioning mode control method and device, storage medium and mobile terminal
US8521148B1 (en) Method of reducing power consumption within a portable communication device
CN108064024B (en) Control method and device based on positioning module, storage medium and mobile terminal
WO2012064860A1 (en) Beacon-based geofencing
CN108076429A (en) Localization method, device, storage medium and mobile terminal
CN108076428B (en) Control method and device based on positioning module, storage medium and mobile terminal
KR20130063452A (en) Gnss architecture
CN108064023B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108012237B (en) Positioning control method and device, storage medium and terminal equipment
CN111781619B (en) Positioning method, device, equipment and storage medium based on near field communication network
CN108055635B (en) Position information acquisition method and device, storage medium and terminal
WO2023072114A1 (en) Data processing method and apparatus
CN108024209B (en) Positioning control method and device, storage medium and terminal equipment
CN108020851B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108093373B (en) Positioning control method and device, storage medium and terminal equipment
CN108111580B (en) Area determination method, device, storage medium, mobile terminal and server

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