CN108040320B - GNSS positioning control method and device, storage medium and mobile terminal - Google Patents

GNSS positioning control method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN108040320B
CN108040320B CN201711326696.7A CN201711326696A CN108040320B CN 108040320 B CN108040320 B CN 108040320B CN 201711326696 A CN201711326696 A CN 201711326696A CN 108040320 B CN108040320 B CN 108040320B
Authority
CN
China
Prior art keywords
application
mobile terminal
information
preset threshold
preset
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
CN201711326696.7A
Other languages
Chinese (zh)
Other versions
CN108040320A (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 CN201711326696.7A priority Critical patent/CN108040320B/en
Publication of CN108040320A publication Critical patent/CN108040320A/en
Application granted granted Critical
Publication of CN108040320B publication Critical patent/CN108040320B/en
Active 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/10Details of telephonic subscriber devices including a GPS signal receiver
    • 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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a GNSS positioning control method, a GNSS positioning control device, a GNSS positioning storage medium and a mobile terminal. The method comprises the following steps: when a call request of a Global Navigation Satellite System (GNSS) module in a mobile terminal based on a Location Based Service (LBS) application is received, acquiring the current residual electric quantity of the mobile terminal; comparing the residual electric quantity with a first preset threshold value; and when the residual electric quantity is smaller than the first preset threshold value, rejecting the calling request. By adopting the technical scheme, the GNSS positioning mode applied by the LBS can be effectively controlled, the power consumption of the mobile terminal is reduced, and the standby time of the mobile terminal is prolonged.

Description

GNSS positioning control method and device, storage medium and mobile terminal
Technical Field
The embodiment of the application relates to the technical field of mobile terminals, in particular to a GNSS positioning control method, a GNSS positioning control device, a GNSS positioning storage medium and a mobile terminal.
Background
With the rapid development of electronic technology and the increasing living standard of people, mobile terminals such as smart phones and tablet computers have become an essential part of the life of people. In order to meet different requirements of users, the users may install various Applications (APPs) in the mobile terminals, such as a weather Application, a news Application, a navigation Application, and the like. Generally, these applications need to acquire the current location information of the user to provide better service for the user.
Generally, Location Based Service (LBS) applications (hereinafter referred to as LBS applications) are located by a hybrid Location method of Global Navigation Satellite System (GNSS), WIFI, base station and bluetooth. Different positioning modes have different power consumption, and different positioning modes have different positioning accuracy. In general, GNSS positioning is preferred, and when positioning cannot be achieved by a GNSS method, Wireless Fidelity (WiFi) network positioning is adopted, and finally, base station positioning and bluetooth positioning are selected.
However, in the process of searching satellites through the GNSS positioning method, the power consumption is considerable, and the endurance time of the mobile terminal is affected.
Disclosure of Invention
The embodiment of the application provides a GNSS positioning control method, a GNSS positioning control device, a storage medium and a mobile terminal, which can effectively control the GNSS positioning mode applied by LBS and reduce the power consumption of the mobile terminal.
In a first aspect, an embodiment of the present application provides a GNSS positioning control method, including:
when a call request of a Global Navigation Satellite System (GNSS) module in a mobile terminal based on a Location Based Service (LBS) application is received, acquiring the current residual electric quantity of the mobile terminal;
comparing the residual electric quantity with a first preset threshold value;
and when the residual electric quantity is smaller than the first preset threshold value, rejecting the calling request.
In a second aspect, an embodiment of the present application provides a GNSS positioning control apparatus, including:
the system comprises a residual electric quantity obtaining module, a residual electric quantity obtaining module and a residual electric quantity obtaining module, wherein the residual electric quantity obtaining module is used for obtaining the current residual electric quantity of the mobile terminal when receiving a calling request of a Global Navigation Satellite System (GNSS) module in the mobile terminal based on a Location Based Service (LBS) application;
the first comparison module is used for comparing the residual electric quantity with a first preset threshold value;
and the calling request rejecting module is used for rejecting the calling request when the residual electric quantity is smaller than the first preset threshold value.
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 control method for GNSS positioning according to the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor, when executing the computer program, implements the method for controlling GNSS positioning according to the first aspect of the embodiment of the present application.
According to the GNSS positioning control scheme provided in the embodiment of the application, when a call request of an LBS application to a GNSS module in a mobile terminal is received, the current residual capacity of the mobile terminal is obtained, the residual capacity is compared with a first preset threshold value, and when the residual capacity is smaller than the first preset threshold value, the call request is rejected. By adopting the technical scheme, the GNSS positioning mode applied by the LBS can be effectively controlled, the power consumption of the mobile terminal is reduced, and the standby time of the mobile terminal is prolonged.
Drawings
Fig. 1 is a flowchart illustrating a GNSS positioning control method according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating another GNSS positioning control method according to an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating a GNSS positioning control method according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating a GNSS positioning control method according to another embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a GNSS positioning control apparatus 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 a 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.
At present, an intelligent system is used as an operating system platform of an intelligent terminal with the largest user group, and can be compatible with various third-party applications so as to meet various use requirements of users in life and entertainment. These third-party applications include a large number of LBS applications, which provide better services to the user by acquiring the user's location information.
Different LBS applications are located by different positioning manners, and are usually preferentially located by a GNSS positioning module, wherein the GNSS positioning module (for short, GNSS) may be a Global Positioning System (GPS) positioning module, or other positioning modules based on satellite positioning manners, such as a beidou satellite navigation system module and a GALILEO satellite navigation system (GALILEO) module. When the GNSS (such as GPS) can not realize positioning, the positioning is carried out by a WiFi network positioning module, a base station positioning module, a Bluetooth positioning module and the like. However, when the LBS application calls the GNSS, a large amount of power is easily consumed, and especially, when the power of the mobile terminal is low, the mobile terminal is easily powered off immediately by calling the GNSS, which affects normal use of the user. For the above reasons, the embodiments of the present application provide the following GNSS positioning control method.
Fig. 1 is a flowchart illustrating a GNSS positioning control method according to an embodiment of the present invention, which may be executed by a GNSS positioning control apparatus, wherein 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 receiving a request for invoking a GNSS module in a mobile terminal by an LBS application, obtaining a current remaining power of the mobile terminal.
In the embodiment of the present application, the LBS application is application software that needs to provide a service by acquiring the current location information of the user, and provides a better service for the user by acquiring the location information of the user. For example, in weather application, when a user needs to obtain weather information of a region where the user is located through the weather application, the weather application needs to locate position information of the region where the user is located through positioning the position information of the region where the user is located because weather conditions of various regions are different, so that accurate weather information is provided for the user more accurately. When a request for calling a GNSS module in the mobile terminal by LBS application is received, the current residual power of the mobile terminal is obtained. The remaining capacity of the mobile terminal can be understood as the current remaining capacity of the mobile terminal. The more the residual electric quantity of the mobile terminal is, the longer the time that the mobile terminal can be used by a user is, and the longer the cruising time is; conversely, the smaller the remaining power of the mobile terminal is, the shorter the time that the mobile terminal can be used by the user is, the shorter the cruising time is.
Step 102, comparing the remaining power with a first preset threshold.
In the embodiment of the present application, when the remaining power is compared with the first preset threshold, the full power of the mobile terminal may be used as a reference. It is understood that the remaining power may refer to a percentage of a current power of the mobile terminal to a full power of the mobile terminal, and the first preset threshold may be set as a proportional value of the full power of the mobile terminal, for example, the first preset threshold is set to 30% of the full power of the mobile terminal. And comparing the residual electric quantity with a first preset threshold value to obtain a comparison result. The comparison result of the remaining power and the first preset threshold includes three conditions: if the first preset threshold is set to be 30% of the full capacity of the mobile terminal, the residual capacity is greater than the first preset threshold, and if the residual capacity is 70%; the residual capacity is less than a first preset threshold, for example, the residual capacity is 20%; the remaining capacity is equal to a first preset threshold, for example, the remaining capacity is 30%.
And 103, rejecting the calling request when the residual electric quantity is smaller than a first preset threshold value.
In the embodiment of the present application, when the remaining power is determined to be less than the first preset threshold according to the comparison result between the remaining power and the first preset threshold in step 102, the LBS application is rejected from invoking the GNSS module in the mobile terminal.
It can be understood that when the LBS application is received to initiate a call request to the GNSS module in the mobile terminal, it indicates that the LBS application wants to perform positioning based on the GNSS module, and the power consumption of the mobile terminal is large when the positioning is performed through the GNSS module. When the remaining power is less than the first preset threshold, that is, the remaining power of the mobile terminal is insufficient, if the positioning is continued through the GNSS module, the battery life of the mobile terminal is easily shortened greatly, and even the mobile terminal may be directly powered off, which not only fails to realize the positioning of the LBS application, but also affects the normal use of the user after the mobile terminal is powered off. Illustratively, when the user a meets the customer C in an emergency by means of the drip line application program to the appointed place B, the remaining power of the mobile terminal (e.g., a mobile phone) of the user a is low in the process of waiting for the vehicle appointed by the drip line application program, for example, the remaining power is less than the first preset threshold. If the user a drops out of the application program to perform positioning through the GNSS module, the mobile terminal is easily directly powered off. This not only prevents the owner of the vehicle to which the drip delivery application is assigned from contacting user a and reaching the departure location where user a is located in time, but also prevents user a from contacting customer C. Therefore, when the remaining power of the mobile terminal is less than the first preset threshold, the request for calling the GNSS module in the mobile terminal by the LBS application can be directly rejected, so as to prolong the battery life of the mobile terminal.
Optionally, after the invocation request is rejected, in order to ensure that the LBS application can obtain the location information, the location information may be provided to the LBS application in any one or more of a network location manner, a base station location manner, and a bluetooth location manner.
According to the GNSS positioning control method provided by the embodiment of the application, when a call request of an LBS application to a GNSS module in a mobile terminal is received, the current residual capacity of the mobile terminal is obtained, the residual capacity is compared with a first preset threshold value, and when the residual capacity is smaller than the first preset threshold value, the call request is rejected. By adopting the technical scheme, the GNSS positioning mode applied by the LBS can be effectively controlled, the power consumption of the mobile terminal is reduced, and the standby time of the mobile terminal is prolonged.
In some embodiments, after rejecting the invocation request, further comprising: comparing the residual electric quantity with a second preset threshold value, wherein the second preset threshold value is smaller than the first preset threshold value; and when the residual capacity is smaller than a second preset threshold value, prompting a user to input position information, wherein the position information comprises building information and/or road information. Further, when the remaining power is greater than the second preset threshold, the location information is provided to the LBS application in any one or more of a network location mode, a base station location mode, and a bluetooth location mode. The setting has the advantages that on the premise of ensuring the normal positioning requirement of the LBS application in the mobile terminal, the power consumption of the mobile terminal is reduced as much as possible, and the standby time of the mobile terminal is prolonged.
Illustratively, when the remaining power of the mobile terminal is judged to be smaller than a first preset threshold, the size relationship between the remaining power and a second preset threshold is further judged, wherein the second preset threshold is smaller than the first preset threshold. It can be understood that, when the remaining power of the mobile terminal is less than the first preset threshold and greater than the second preset threshold, if the LBS application continues to call the GNSS module, the mobile terminal is easily directly powered off, and if the location mode with less power consumption is used for location in the network location mode, the base station location mode or the bluetooth location mode, the power consumption of the mobile terminal is not very large, and the mobile terminal is not easily powered off directly. Therefore, when the remaining power is less than the first preset threshold and greater than the second preset threshold, the location information is provided to the LBS application through any one or more of a network location mode, a base station location mode and a bluetooth location mode. If the remaining power of the mobile terminal is less than the second preset threshold, the mobile terminal is easily turned off directly when the positioning mode with less power consumption is used for positioning, even if the GNSS module is not called, the network positioning mode, the base station positioning mode or the bluetooth positioning mode is only used. Obviously, these positioning methods all tend to turn off the mobile terminal. It can be understood that, when the remaining power of the mobile terminal is less than the second preset threshold, in order to prevent the mobile terminal from being directly powered off, the LBS application initiating the positioning request may not perform positioning in a positioning manner (GNSS positioning manner, network positioning manner, base station positioning manner, or bluetooth positioning manner). However, if the LBS application cannot acquire the location information where the user is located, the user cannot be provided with a service. Therefore, when the remaining power is less than the second preset threshold, prompting the user to manually input location information, wherein the location information manually input by the user comprises building and/or road information. When the user is familiar with the position, the user can accurately input the position information of the user, so that the LBS application can provide good service for the user. And if the user is not familiar with the position, the building and/or road information can be input into the human-computer interaction interface of the LBS application by observing the identification information and/or road signs of the landmark building, so that the LBS application can provide services for the user.
For example, a first preset threshold is set to 30% of the full charge of the mobile terminal, and a second preset threshold is set to 10% of the full charge of the mobile terminal, when the user a arrives at the appointed place B through the drip-out application, and meets the customer C in an emergency, the remaining charge of the mobile terminal (such as a mobile phone) of the user a is only 8% while waiting for the vehicle appointed by the drip-out application, if the drip-out application of the user a is positioned through a GNSS module, or positioned through any one of a network positioning mode, a base station positioning mode or a bluetooth positioning mode, the mobile terminal is likely to be turned off directly, so that not only the owner of the vehicle appointed by the drip-out application cannot contact the user a to reach the departure place of the user a in time, but also the user a cannot contact the customer C, and if the drip-out application cannot obtain the departure place of the user a currently, the user a service cannot be provided for the user a, "××× is able to manually input the building location information, such as" the building location information, the user a can be provided for the user a more accurate intersection 3632, so that the user a drip-out application can obtain the information of course, the user a "can obtain the information of course, the drip-out information of the intersection ×××.
In some embodiments, rejecting the invocation request when the remaining power is less than the first preset threshold includes: when the residual electric quantity is smaller than a first preset threshold value, acquiring current application scene information of the mobile terminal; matching the application scene information with a preset scene set; and when the application scene information is matched with the preset scene set, rejecting the calling request. The setting method has the advantages that when the residual electric quantity of the mobile terminal is small, whether the LBS application is positioned through the GNSS module or not is reasonably controlled according to the scene information of the mobile terminal, the electric quantity consumption of the mobile terminal is reduced, and the endurance time of the mobile terminal is further prolonged.
In the embodiment of the application, when a request for calling a GNSS module in a mobile terminal by LBS application is received, if the remaining power of the mobile terminal is less than a first preset threshold, the current application scenario information of the mobile terminal is obtained. In different application scenarios, the LBS application has different ways of acquiring the user location information, or in different application scenarios, the LBS application has different ways of positioning. The application scenario information may include: at least one of time information, environment information, network connection information, and whether to charge.
Optionally, the time class when the LBS application issues the request for invoking the GNSS module is determined according to the time information of the mobile terminal, where the time class may include a first time class and a second time class. Optionally, the first time category is obtained according to a date of the LBS application invoking the GNSS determined by the time information of the mobile terminal, where the first time category may include: working days and holidays; acquiring a second time category according to a time period for which the LBS application invokes the GNSS, which is determined by the time information of the mobile terminal, wherein the second time category may include: morning peak, noon, evening peak, work hours, and rest hours; and taking the combination of the first time category and the second time category as the time category when the LBS application sends out a call request for the GNSS module. Optionally, the second time category may also include day, evening, and rest hours. Of course, the second time category may also be divided equally into 0:00-24:00 hours 24 hours a day, for example, into 6 time periods, each time period being 4 hours. Wherein the second time category may be recorded in the form of a timestamp.
The environment information in the application scenario information may include an indoor environment and an outdoor environment, and the indoor environment may include a home, an office, a mall building, and the like. For example, the current environment information of the mobile terminal may be obtained through GNSS, that is, whether the mobile terminal is currently in an indoor environment or an outdoor environment is determined through GNSS. The mobile terminal inputs satellite information of a plurality of satellites to the GNSS, judges whether the satellite information changes or not, and determines that the mobile terminal is currently in an indoor environment if the satellite information does not change. If the satellite information of at least one satellite is changed in the satellite information of the plurality of satellites, whether the signal intensity of the changed satellite information is smaller than a preset intensity threshold value is further judged. And when the signal intensity is smaller than a preset intensity threshold value, further judging whether the number of satellites corresponding to the changed satellite information is smaller than a preset satellite threshold value, and if the number of satellites is smaller than the preset satellite threshold value, determining that the mobile terminal is currently in an indoor environment. If at least one of the signal strengths of the changed satellite information is greater than a preset strength threshold, it may be determined that the mobile terminal is currently located in an outdoor environment. Or, the signal intensity of the changed satellite information is smaller than the preset intensity threshold, but the number of satellites corresponding to the changed satellite information is larger than the preset satellite threshold, and it may also be determined that the mobile terminal is currently located in an outdoor environment.
The method comprises the steps of acquiring image information of an environment where the mobile terminal is located through a front camera or a rear camera of the mobile terminal, and judging whether the mobile terminal is located in an indoor environment or an outdoor environment according to the acquired image information of the environment. For example, if the image information of the environment acquired by the mobile terminal is image information of an office or a home, it may be determined that the mobile terminal is currently located in an indoor environment. The image information of the environment acquired by the mobile terminal is building information and/or road information, and then it can be determined that the mobile terminal is currently located in an outdoor environment. The distance between the mobile terminal and each edge (such as a wall surface and the ground) of the space where the terminal is located can be measured by utilizing the ranging sensor. And judging whether the mobile terminal is in an indoor environment or an outdoor environment according to the measured distance. For example, if the measured distances from the mobile terminal to the edge of the terminal are both smaller than the preset distance threshold, it may be determined that the mobile terminal is in an indoor environment. When at least one distance in the distances from the edge of the mobile terminal to the terminal is greater than a preset distance threshold, it can be determined that the mobile terminal is in an outdoor environment. It should be noted that, in the embodiment of the present application, a specific method for determining whether the mobile terminal is in an indoor environment or an outdoor environment is not specifically limited.
The network connection information may include whether the mobile terminal is connected to a network, and when the mobile terminal is connected to a network, the type of the network, such as a WiFi network or a mobile communication network. The mobile terminal has different LBS application positioning modes under different network connection states, or the LBS application has different requirements on whether to call the GNSS module. For example, in the case of network connection, the LBS application may directly acquire location information through a network positioning manner. Of course, when the mobile terminal is connected to the WiFi network, it may also be said that the mobile terminal is in an indoor environment, and the LBS application directly obtains the location information through a network location method, and when the mobile terminal is connected to the mobile communication network, it may also be said that the mobile terminal is in an outdoor environment, and the LBS application calls the GNSS module to perform location, or, in order to save the traffic of the mobile terminal, the LBS application calls the GNSS module.
Whether to charge may include whether the mobile terminal is in a charging mode, wherein when the mobile terminal is in the charging mode, a charging mode type may also be included. The charging mode types may include a fast charging mode in which charging is performed through a fast charging power adapter (e.g., a mobile power supply) and a normal charging mode in which charging is performed through a normal power adapter (e.g., an original charger of a mobile terminal). The mobile terminal has different LBS application positioning modes in different charging modes, or the LBS application has different requirements on whether to call the GNSS module. For example, when the mobile terminal is not being charged, the LBS application may not use the GNSS module for positioning in order to reduce power consumption of the mobile terminal. For another example, when the mobile terminal is in the fast charging mode, it may be said that the mobile terminal is in an outdoor environment, and the LBS application directly calls the GNSS module to perform positioning; when the mobile terminal is in the normal charging mode, it may be said that the mobile terminal is in an indoor environment, and the LBS application performs positioning through other positioning manners other than the GNSS positioning manner, that is, the LBS application does not use the GNSS module for positioning.
And matching the acquired current application scene information of the mobile terminal with a preset scene set, and controlling the LBS application to reject the call request of the GNSS module when the application scene information is matched with the preset application scene set. It can be understood that the preset scene set may be a list, each application scene is stored in the list, and in each application scene in the list, the LBS application cannot perform positioning in a GNSS manner, or the LBS application is controlled to reject a request for invoking the GNSS module. Therefore, when the current application scene information of the mobile terminal is matched with the preset application scene set, the LBS application is controlled to refuse to call the GNSS module.
The preset application scene set may be generated and formulated by counting or learning historical habit data of different types of application programs used by a user and corresponding scene information. Illustratively, the historical usage record of the LBS application and the corresponding scene information by the user are acquired according to a set period. When the historical use record and the corresponding scene information of the LBS application in the preset time interval are obtained, the historical use record and the corresponding scene information are learned in a machine learning mode, and a preset application scene set for controlling the LBS application to refuse to call the GNSS module is generated. And when the set period is reached, acquiring the historical use record and the corresponding scene information of the LBS application of the user in the preset time interval again, and updating the preset application scene set by adopting a machine learning mode according to the historical use record and the corresponding scene information. It can be understood that a preset application scene set can also be generated according to the historical usage record and the corresponding scene information in a data statistics manner.
In some embodiments, rejecting the invocation request when the remaining power is less than the first preset threshold includes: when the residual electric quantity is smaller than a first preset threshold value, acquiring type information of the LBS application; judging whether the LBS application belongs to a preset application type set or not according to the type information; and when the LBS application belongs to the preset application type set, rejecting the call request. The method has the advantages that when the residual electric quantity of the mobile terminal is small, whether the LBS application is positioned through the GNSS module or not is reasonably controlled according to the type information of the LBS application initiating the GNSS module calling request, and the endurance time of the mobile terminal is further prolonged.
In the embodiment of the application, when a request for calling a GNSS module in a mobile terminal by an LBS application is received and the remaining power of the mobile terminal is less than a first preset threshold, the type information of the LBS application is obtained. Because, different types of LBS applications have different ways of acquiring the user location information when the remaining power is low, or different types of LBS applications have different ways of positioning. The type information of the LBS application may include a video type application, a game type application, a text type application, a navigation type application, etc., among others. The type information of the LBS application may not only reflect the amount of power consumption, the amount of occupied system memory and the CPU occupancy rate of the application program, but also reflect the requirement of the application program on the positioning accuracy. 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 even the buildings in which the user is located. And the weather application program and the camera application program 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. For example, the type information of the LBS application may be determined by obtaining packet name information of the LBS application initiating the GNSS module invocation request, or may be determined by obtaining other identification information of the LBS application initiating the GNSS module invocation request, such as a process identification of the LBS application.
And matching the acquired type information of the LBS application initiating the GNSS module calling request with a preset application type set, and controlling the LBS application to reject the calling request of the GNSS module when the type information is matched with the preset application type set. It is understood that the preset application type set may be a list, in which type information of each LBS application is stored, such as a packet name of each LBS application, a process identifier of the LBS application, and identification information capable of uniquely identifying the LBS application. When the remaining power of the mobile terminal is low, for example, the remaining power is less than a first preset threshold, each LBS application in the list may not be able to perform positioning in a GNSS manner, or each LBS application in the list is controlled to reject a call request to the GNSS module. Therefore, when the type information of the LBS application initiating the GNSS module invocation request matches the preset application type set, the LBS application is controlled to refuse to invoke the GNSS module.
The preset application type set can be generated and formulated by counting or learning historical habit data of different types of application programs used by users. Illustratively, the historical usage record of the LBS application by the user is acquired according to a set period. When the historical use record of the LBS application in the preset time interval is obtained, the historical use record is learned in a machine learning mode, and a preset application type set which refuses to call the GNSS module is generated. And when the set period is reached, acquiring the historical use record of the LBS application of the user in the preset time interval again, and updating the preset application type set by adopting a machine learning mode according to the historical use record. It is understood that the preset application type set can also be generated according to the historical usage record in a data statistical manner.
In some embodiments, rejecting the invocation request when the remaining power is less than the first preset threshold includes: acquiring the current application scene information of the mobile terminal and the type information of the LBS application, and refusing the call request when the following conditions are met simultaneously: the residual electric quantity is smaller than a first preset threshold value; matching the application scene information with a preset scene set; the LBS application belongs to a preset set of application types. The method has the advantages that whether the LBS application is positioned through the GNSS module or not is reasonably controlled according to the residual capacity of the mobile terminal, the type information of the LBS application initiating the GNSS module calling request and the application scene information of the mobile terminal, and the endurance time of the mobile terminal is further increased.
In the embodiment of the application, when a request for calling a GNSS module in a mobile terminal by LBS application is received and the remaining power of the mobile terminal is less than a first preset threshold value, the current application scene information of the mobile terminal and the type information of the LBS application are obtained. Because, in different application scenarios, different types of LBS applications have different positioning modes for positioning. The application scenario information may include: at least one of time information, environment information, network connection information, and whether to charge. The type information of the LBS application may include a video type application, a game type application, a text type application, a navigation type application, and the like.
It can be understood that, when a request for invoking the GNSS module in the mobile terminal by the LBS application is received, it is determined whether the remaining power of the mobile terminal is less than a first preset threshold. And when the residual electric quantity is smaller than a first preset threshold value, further judging whether the current application scene information of the mobile terminal is matched with a preset application scene set. And when the application scene information is matched with the preset application scene set, further judging whether the type information of the LBS application is matched with the preset application type set. When the type information is also matched with the preset application type set, the LBS application can be directly controlled to reject the call request of the GNSS module.
Optionally, the LBS application may be allowed to call the GNSS module when any one of the following conditions is satisfied: the residual electric quantity of the mobile terminal is larger than a first preset threshold value; the application scene information of the mobile terminal is not matched with the preset application scene set; the type information of the LBS application does not match a preset set of application types. It can be understood that, when the remaining power of the mobile terminal is greater than the first preset threshold, it indicates that the remaining power of the mobile terminal is greater, and the mobile terminal can be used by the user for a longer time, so that the LBS application is allowed to invoke the GNSS module. When the application scene information of the mobile terminal is not matched with the preset application scene set, that is, the application scene information does not belong to the preset application scene set, it is indicated that the mobile terminal allows the LBS application to call the GNSS module under the application scene information. When the type information of the LBS application initiating the GNSS module invoking request is not matched with the preset application type set and the type information does not belong to the preset application type set, it is indicated that the LBS application can be positioned through the GNSS module, and the LBS application is allowed to invoke the GNSS module.
It should be noted that, in the embodiment of the present application, the execution order of determining the remaining power of the mobile terminal, the application scenario information, and the type information of the LBS application is not unique, and the execution order may be changed.
In some embodiments, before obtaining the type information of the LBS application and obtaining the current application scenario information of the mobile terminal, further comprising: counting or learning historical habit data of different types of application programs used by a user and application scenes corresponding to the different types of application programs used by the user according to a preset period; and determining a preset scene set and a preset application type set according to the statistical result or the learning result. The historical habit data comprises at least one of 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 and/or closing the GNSS positioning function. The application scenario may include: at least one of time information, environment information, network connection information, whether to charge. The method has the advantages that historical habit data of the application program capable of truly reflecting requirements of the user on the positioning accuracy of different LBS applications and requirements of the user on different LBS applications in different positioning modes in different application scenes can be fully utilized, the preset application scene set and the preset application type set are determined, the power consumption can be reduced on the premise that the positioning requirements of the LBS applications are guaranteed to the greatest extent, and the standby time of the mobile terminal is prolonged.
For example, historical habit data of users using different types of applications and corresponding application scenarios can be understood as a user sample. The selection of the user sample may be historical usage data and corresponding application scenarios of different types of application programs in a set time interval by a local user, or historical usage data and corresponding application scenarios of different types of application programs in a set time interval by a set number of user groups meeting a preset condition. For example, historical habit data of a local user for different types of application programs and corresponding application scenes within one month are obtained and used as user samples, a machine learning model is adopted to learn the user samples, and a preset application scene set for controlling LBS application to reject a call request for a GNSS module and a preset application type set for controlling LBS application to reject a call request for the GNSS module are generated, or the preset application type set with low positioning accuracy for the LBS application is generated. As another example, historical habit data of 1 ten thousand users between the ages of 16-26 for different types of application programs in one month and corresponding application scenes are obtained as a user sample. According to the user sample, the application scene that the LBS application of the user group usually needs to be controlled by the mobile terminal to reject the request for calling the GNSS module is counted, and a preset application scene set is generated according to the application scene. Meanwhile, LBS applications (which can also be understood as LBS applications with low requirements on positioning accuracy) which often require the mobile terminal to refuse to call the request to the GNSS module are counted, and a preset application type set is generated according to the applications.
The historical habit data of the different types of application programs included in the user sample may include at least one of the number of times of calling the 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 above operation, the positioning accuracy requirement of the user on the application program can be higher, and then the positioning accuracy requirement of the application program is higher, if so, the positioning can be performed through the GNSS module. Of course, when the user does not perform the above operation, or the above operations are performed less frequently, it is indicated that the application program has a lower requirement on the positioning accuracy, for example, the positioning by the GNSS module is not required.
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. Conversely, the smaller the number of times the application calls the map screen, the lower the requirement of the application on the positioning accuracy, and the positioning by the GNSS module is not required. The higher the frequency of the application program refreshing the map picture is, the higher the frequency is, the more accurate the application program requires for the positioning accuracy, the more accurate the application program is, the more accurate the application program needs for the positioning accuracy is. Conversely, the lower the frequency of refreshing the map screen by the application program is, the lower the requirement of the application program on the positioning accuracy is, and the positioning by the GNSS module is not required. 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, the more the application program calls a map picture for many times, or refreshes the map picture frequently, the more the application program is, the more the position information is corrected manually by the user actively, and the more the application program is required to the positioning accuracy. Obviously, when the user is not required to correct the position located by the application frequently, or the number of times of correcting the position manually by the user is small, it indicates that the application has lower requirement on the positioning accuracy, and the positioning by the GNSS module is not required. 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. Similarly, when the user often manually turns off the GNSS positioning function, or turns off the GNSS positioning function more times, it is described that other positioning modes except the GNSS positioning mode can meet the user demand, and it is described that the lower the requirement of the application program on the positioning accuracy is, the more the positioning is not required by the GNSS module. And 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 and/or closing the GNSS positioning function by each application program in the user sample, and determining LBS application with lower requirement on positioning accuracy.
Similarly, the application scenario information corresponding to the historical habit data of the different types of applications included in the user sample may include at least one of time information, environment information, network connection information, and whether to charge. In the process of using the application program, the positioning mode of the application program is different under different application scenes, or the positioning accuracy required by the application program is different under different application scenes. For example, in an outdoor environment, a user has a high requirement on positioning accuracy of an application program and needs to perform positioning through the GNSS module, and in an indoor environment, a request for calling the GNSS module by the application program may be rejected. For another example, at the peak of morning and evening on a working day, the user has a high requirement on the positioning accuracy of the application program and needs to perform positioning through the GNSS module, and at the leisure time of saturday, the user has a low requirement on the positioning accuracy of the application program and expects that the mobile terminal can have a longer endurance time, and at this time, the application program can be rejected from calling the GNSS module. Similarly, in the case that the mobile terminal has a network connection, especially when the mobile terminal is connected to a WiFi network, the GNSS module may be determined by rejecting a request for calling the GNSS module from the application program, and performing positioning in a network positioning manner. When the mobile terminal enters the normal charging mode, the mobile terminal may reject the request for invoking the GNSS module by the application program. Of course, comprehensive statistics and learning can be performed on different types of application scenes in the scene information corresponding to the mobile terminal, and a preset application scene set is determined.
The preset application scene set and the preset application type set can be generated by statistical learning of the mobile terminal or by statistical learning of a server. And after the preset application scene set and the preset application type set are generated by the server, pushing the preset application scene set and the preset application type set to the mobile terminal by the server. It should be noted that the preset application scene set and the preset application type set may also be selected by a user, for example, the user may perform setting according to the user's own requirements, for example, the user may manually classify all LBS applications of the mobile terminal, add an application scene that the user considers that the LBS application needs to reject the request for invoking the GNSS module into the preset application scene set, and add an LBS application that the user considers that the positioning accuracy is low into the preset application type set. In addition, the preset application scene set and the preset application type set can be determined by default by the mobile terminal system. The preset application scene set and the preset application type set can be stored in a mobile terminal local or cloud server in a file mode, and can also be stored in the mobile terminal local or cloud server in a database mode.
Fig. 2 is a flowchart illustrating a GNSS positioning control method according to an embodiment of the present disclosure. As shown in fig. 2, the method includes:
step 201, when receiving a request for invoking a GNSS module in a mobile terminal by an LBS application, obtaining a current remaining power of the mobile terminal.
Step 202, comparing the remaining power with a first preset threshold, and determining whether the remaining power is smaller than the first preset threshold, if so, performing step 203, otherwise, performing step 206.
Step 203, rejecting the call request.
Step 204, comparing the remaining power with a second preset threshold, and determining whether the remaining power is smaller than the second preset threshold, if so, performing step 205, otherwise, performing step 207.
And the second preset threshold is smaller than the first preset threshold.
Step 205, prompting the user to input location information.
Step 206, allowing the call request.
Step 207, providing location information to the LBS application through any one or more of a network location mode, a base station location mode, and a bluetooth location mode.
According to the technical scheme provided by the embodiment of the application, when the request for calling the GNSS module in the mobile terminal by the LBS application is received, obtaining the current residual capacity of the mobile terminal, comparing the residual capacity with a first preset threshold value, refusing the calling request when the residual electric quantity is smaller than a first preset threshold value, further judging whether the residual electric quantity is smaller than a second preset threshold value, wherein the second preset threshold is smaller than the first preset threshold, when the remaining power is smaller than the second preset threshold, the user is prompted to manually input the position information, and when the remaining power is greater than a second preset threshold, providing location information to the LBS application in any one or more of a network location mode, a base station location mode and a Bluetooth location mode, on the premise of ensuring the normal positioning requirement of LBS application in the mobile terminal, the power consumption of the mobile terminal is reduced as much as possible, and the standby time of the mobile terminal is prolonged.
Fig. 3 is a flowchart illustrating a GNSS positioning control method according to an embodiment of the present disclosure. As shown in fig. 3, the method includes:
step 301, when receiving a request for invoking a GNSS module in a mobile terminal by an LBS application, obtaining a current remaining power of the mobile terminal.
Step 302, comparing the remaining power with a first preset threshold, and determining whether the remaining power is smaller than the first preset threshold, if yes, performing step 303, otherwise, performing step 306.
And step 303, acquiring the current application scene information of the mobile terminal.
The application scenario information may include: at least one of time information, environment information, network connection information, and whether to charge.
Step 304, determining whether the application scene information matches the preset scene set, if yes, executing step 305, otherwise, executing step 306.
Step 305, rejecting the invocation request.
Step 306, allowing the call request.
It should be noted that, the remaining power is compared with the first preset threshold, and when it is determined that the remaining power is smaller than the first preset threshold, the following operations may also be performed: obtaining type information of the LBS application, judging whether the LBS application belongs to a preset application type set or not according to the type information, rejecting the call request when judging that the LBS application belongs to the preset application type set, and allowing the call request if not (the operation is not reflected in the figure). The type information of the LBS application may not only reflect the amount of power consumption, the amount of occupied system memory and the CPU occupancy rate of the application program, but also reflect the requirement of the application program on the positioning accuracy. 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. And the weather application program and the camera application program have lower requirements on positioning accuracy.
The type information of the LBS application may be determined by obtaining packet name information of the LBS application initiating the GNSS module invocation request, or may be determined by obtaining other identification information of the LBS application initiating the GNSS module invocation request, such as a process identification of the LBS application.
It should be noted that, in steps 303 to 304, the operations related to obtaining the type information of the LBS application may be respectively considered as two different overall execution schemes, and may alternatively be executed, that is, only steps 303 to 304 are executed without executing the operations related to obtaining the type information of the LBS application, or only the operations related to obtaining the type information of the LBS application are executed without executing steps 303 to 304.
According to the GNSS positioning control method, when the residual electric quantity of the mobile terminal is small, whether the LBS application is positioned through the GNSS module or not is reasonably controlled according to the scene information of the mobile terminal or the type information of the LBS application initiating the GNSS module calling request, the electric quantity consumption of the mobile terminal is reduced, and the endurance time of the mobile terminal is further prolonged.
Fig. 4 is a flowchart illustrating a GNSS positioning control method according to an embodiment of the present disclosure. As shown in fig. 4, the method includes:
step 401, according to a preset period, counting or learning historical habit data of the user using the different types of application programs and application scenes corresponding to the user using the different types of application programs.
The historical habit data comprises at least one of 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 and/or closing the GNSS positioning function. The application scenario may include: at least one of time information, environment information, network connection information, whether to charge.
And step 402, determining a preset scene set and a preset application type set according to the statistical result or the learning result.
And step 403, when a request for calling the GNSS module in the mobile terminal by the LBS application is received, acquiring the current remaining power of the mobile terminal.
Step 404, comparing the remaining power with a first preset threshold, and determining whether the remaining power is smaller than the first preset threshold, if so, executing step 405, otherwise, executing step 410.
And step 405, acquiring current application scene information of the mobile terminal.
The application scenario information may include: at least one of time information, environment information, network connection information, and whether to charge.
Step 406, determining whether the application scene information is matched with the preset scene set, if so, executing step 407, otherwise, executing step 410.
Step 407, obtaining the type information of the LBS application.
And step 408, judging whether the LBS application belongs to a preset application type set or not according to the type information, if so, executing step 409, otherwise, executing step 410.
Step 409, rejecting the invocation request.
Step 410, allowing the invocation request.
It should be noted that the execution sequence of the steps 404 to 408 is not fixed and may be interchanged.
According to the GNSS positioning control method, whether the LBS application is positioned through the GNSS module or not is reasonably controlled according to the residual electric quantity of the mobile terminal, the type information of the LBS application initiating the GNSS module calling request and the application scene information of the mobile terminal, and the endurance time of the mobile terminal is further prolonged. Meanwhile, historical habit data of an application program capable of truly reflecting requirements of a user on different LBS application positioning accuracy and requirements of the user on different LBS applications on different positioning modes in different application scenes are fully utilized, a preset application scene set and a preset application type set are determined, power consumption can be reduced on the premise that the LBS application positioning requirements are guaranteed to the greatest extent, and the standby time of the mobile terminal is prolonged.
Fig. 5 is a schematic structural diagram of a GNSS positioning control apparatus according to an embodiment of the present disclosure, where the apparatus may be implemented by software and/or hardware, and is generally integrated on a mobile terminal, and may control, by executing a GNSS positioning control method, that when a remaining power of the mobile terminal is low, a request for invoking a GNSS module by an LBS application is rejected. As shown in fig. 5, the apparatus includes:
a remaining power obtaining module 501, configured to obtain a current remaining power of a mobile terminal when a request for calling a Global Navigation Satellite System (GNSS) module in the mobile terminal is received based on a Location Based Service (LBS) application;
a first comparing module 502, configured to compare the remaining power with a first preset threshold;
a call request rejecting module 503, configured to reject the call request when the remaining power is less than the first preset threshold.
According to the GNSS positioning control device provided by the embodiment of the application, when a call request of an LBS application to a GNSS module in a mobile terminal is received, the current residual capacity of the mobile terminal is obtained, the residual capacity is compared with a first preset threshold value, and when the residual capacity is smaller than the first preset threshold value, the call request is rejected. By adopting the technical scheme, the GNSS positioning mode applied by the LBS can be effectively controlled, the power consumption of the mobile terminal is reduced, and the standby time of the mobile terminal is prolonged.
Optionally, the apparatus further comprises:
the second comparison module is used for comparing the residual electric quantity with a second preset threshold value after the calling request is rejected, wherein the second preset threshold value is smaller than the first preset threshold value;
and the prompting module is used for prompting a user to input position information when the residual electric quantity is smaller than a second preset threshold value, wherein the position information comprises building information and/or road information.
Optionally, the apparatus further comprises:
and the positioning information providing module is used for providing positioning information for the LBS application in any one or more of a network positioning mode, a base station positioning mode and a Bluetooth positioning mode when the residual electric quantity is greater than the second preset threshold value.
Optionally, the call request rejection module is configured to:
when the residual electric quantity is smaller than the first preset threshold value, acquiring current application scene information of the mobile terminal;
matching the application scene information with a preset scene set;
and when the application scene information is matched with the preset scene set, rejecting the calling request.
Optionally, the call request rejection module is configured to:
when the residual electric quantity is smaller than the first preset threshold value, acquiring the type information of the LBS application;
judging whether the LBS application belongs to a preset application type set or not according to the type information;
and when the LBS application belongs to the preset application type set, rejecting the call request.
Optionally, the call request rejection module is configured to:
rejecting the call request when the following conditions are simultaneously satisfied:
the residual electric quantity is smaller than the first preset threshold value;
the application scene information is matched with the preset scene set;
the LBS application belongs to the preset application type set.
Optionally, the apparatus further comprises:
the statistical learning module is used for counting or learning historical habit data of different types of application programs used by a user and application scenes corresponding to the different types of application programs used by the user according to a preset period before acquiring the type information of the LBS application and acquiring the current application scene information of the mobile terminal;
and the set determining module is used for determining the preset scene set and the preset application type set according to a statistical result or a learning result.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used for a control method of GNSS positioning, the method including:
when a call request of a Global Navigation Satellite System (GNSS) module in a mobile terminal based on a Location Based Service (LBS) application is received, acquiring the current residual electric quantity of the mobile terminal;
comparing the residual electric quantity with a first preset threshold value;
and when the residual electric quantity is smaller than the first preset threshold value, rejecting the calling request.
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 containing the computer-executable instructions provided in the embodiments of the present application is not limited to the above-described control operations of GNSS positioning, and may also perform related operations in the control method of GNSS positioning provided in any embodiment of the present application.
The embodiment of the application provides a mobile terminal, and the control device for GNSS positioning 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. As shown in fig. 6, the mobile terminal 600 may include: the GNSS positioning control method according to the embodiment of the present application is implemented by a memory 601, a processor 602, and a computer program stored on the memory and executable by the processor 602.
According to the mobile terminal provided by the embodiment of the application, when a call request of an LBS application to a GNSS module in the mobile terminal is received, the current residual capacity of the mobile terminal is obtained, the residual capacity is compared with a first preset threshold value, and when the residual capacity is smaller than the first preset threshold value, the call request is refused. By adopting the technical scheme, the GNSS positioning mode applied by the LBS can be effectively controlled, the power consumption of the mobile terminal is reduced, and the standby 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, and as shown in fig. 7, the mobile terminal may include: a housing (not shown), a memory 701, 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:
when a call request of a Global Navigation Satellite System (GNSS) module in a mobile terminal based on a Location Based Service (LBS) application is received, acquiring the current residual electric quantity of the mobile terminal;
comparing the residual electric quantity with a first preset threshold value;
and when the residual electric quantity is smaller than the first preset threshold value, rejecting the calling request.
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 the mobile terminal for GNSS positioning control provided in this embodiment in detail, 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 GNSS positioning control apparatus, the storage medium, and the mobile terminal provided in the above embodiments may execute the corresponding GNSS positioning control method provided in the embodiments of the present application, and have corresponding functional modules and advantageous effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to a control method for GNSS positioning provided in any of the embodiments 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 (9)

1. A method for controlling GNSS positioning, comprising:
when a call request of a Global Navigation Satellite System (GNSS) module in a mobile terminal based on a Location Based Service (LBS) application is received, acquiring the current residual electric quantity of the mobile terminal;
comparing the residual electric quantity with a first preset threshold value;
when the residual electric quantity is smaller than the first preset threshold value, rejecting the calling request;
after rejecting the call request, further comprising:
comparing the residual electric quantity with a second preset threshold value, wherein the second preset threshold value is smaller than the first preset threshold value;
and when the residual capacity is smaller than a second preset threshold value, prompting a user to input position information, wherein the position information comprises building information and/or road information, the building information comprises identification information of a building, and the road information comprises a road sign.
2. The method of claim 1, further comprising:
and when the residual capacity is greater than the second preset threshold value, providing positioning information to the LBS application in any one or more of a network positioning mode, a base station positioning mode and a Bluetooth positioning mode.
3. The method according to claim 1, wherein rejecting the invocation request when the remaining capacity is less than the first preset threshold value comprises:
when the residual electric quantity is smaller than the first preset threshold value, acquiring current application scene information of the mobile terminal;
matching the application scene information with a preset scene set;
and when the application scene information is matched with the preset scene set, rejecting the calling request.
4. The method according to claim 3, wherein rejecting the invocation request when the remaining capacity is less than the first preset threshold value comprises:
when the residual electric quantity is smaller than the first preset threshold value, acquiring the type information of the LBS application;
judging whether the LBS application belongs to a preset application type set or not according to the type information;
and when the LBS application belongs to the preset application type set, rejecting the call request.
5. The method according to claim 4, wherein rejecting the invocation request when the remaining capacity is less than the first preset threshold value comprises:
rejecting the call request when the following conditions are simultaneously satisfied:
the residual electric quantity is smaller than the first preset threshold value;
the application scene information is matched with the preset scene set;
the LBS application belongs to the preset application type set.
6. The method according to claim 5, further comprising, before obtaining the type information of the LBS application and obtaining the current application scenario information of the mobile terminal:
counting or learning historical habit data of different types of application programs used by a user and application scenes corresponding to the different types of application programs used by the user according to a preset period;
and determining the preset scene set and the preset application type set according to a statistical result or a learning result.
7. A GNSS positioning control apparatus, comprising:
the system comprises a residual electric quantity obtaining module, a residual electric quantity obtaining module and a residual electric quantity obtaining module, wherein the residual electric quantity obtaining module is used for obtaining the current residual electric quantity of the mobile terminal when receiving a calling request of a Global Navigation Satellite System (GNSS) module in the mobile terminal based on a Location Based Service (LBS) application;
the first comparison module is used for comparing the residual electric quantity with a first preset threshold value;
a calling request rejecting module, configured to reject the calling request when the remaining power is less than the first preset threshold;
the second comparison module is used for comparing the residual electric quantity with a second preset threshold value after the calling request is rejected, wherein the second preset threshold value is smaller than the first preset threshold value;
and the prompting module is used for prompting a user to input position information when the residual electric quantity is smaller than a second preset threshold value, wherein the position information comprises building information and/or road information, the building information comprises identification information of a building, and the road information comprises a road sign.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a method of controlling a GNSS positioning according to any of claims 1 to 6.
9. A mobile terminal, characterized in that it comprises a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements a method of controlling a GNSS positioning according to any of claims 1-6.
CN201711326696.7A 2017-12-13 2017-12-13 GNSS positioning control method and device, storage medium and mobile terminal Active CN108040320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711326696.7A CN108040320B (en) 2017-12-13 2017-12-13 GNSS positioning control method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711326696.7A CN108040320B (en) 2017-12-13 2017-12-13 GNSS positioning control method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN108040320A CN108040320A (en) 2018-05-15
CN108040320B true CN108040320B (en) 2020-06-26

Family

ID=62102407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711326696.7A Active CN108040320B (en) 2017-12-13 2017-12-13 GNSS positioning control method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN108040320B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110139348B (en) * 2019-05-21 2022-10-28 广东几米星联通讯有限公司 RDSS communication method and terminal thereof
CN111770434B (en) * 2019-07-19 2022-12-27 广东小天才科技有限公司 Positioning method of electronic equipment, service equipment and system
CN111866735B (en) * 2019-12-31 2023-03-24 北京骑胜科技有限公司 Positioning method, first terminal device and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873385A (en) * 2010-06-04 2010-10-27 北京播思软件技术有限公司 Device and method for entering power-saving mode of hand-held terminal rapidly
CN102036165A (en) * 2010-12-16 2011-04-27 中兴通讯股份有限公司 Positioning method and user terminal supporting multiple positioning modes
CN103200660A (en) * 2013-03-11 2013-07-10 苏州海客科技有限公司 Adjustment method for positioning modes of mobile terminal
CN106131795A (en) * 2016-08-30 2016-11-16 维沃移动通信有限公司 A kind of localization method and mobile terminal
CN106371123A (en) * 2016-11-04 2017-02-01 广东小天才科技有限公司 Positioning method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060223593A1 (en) * 2005-04-01 2006-10-05 Ixi Mobile (R&D) Ltd. Content delivery system and method for a mobile communication device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873385A (en) * 2010-06-04 2010-10-27 北京播思软件技术有限公司 Device and method for entering power-saving mode of hand-held terminal rapidly
CN102036165A (en) * 2010-12-16 2011-04-27 中兴通讯股份有限公司 Positioning method and user terminal supporting multiple positioning modes
CN103200660A (en) * 2013-03-11 2013-07-10 苏州海客科技有限公司 Adjustment method for positioning modes of mobile terminal
CN106131795A (en) * 2016-08-30 2016-11-16 维沃移动通信有限公司 A kind of localization method and mobile terminal
CN106371123A (en) * 2016-11-04 2017-02-01 广东小天才科技有限公司 Positioning method and device

Also Published As

Publication number Publication date
CN108040320A (en) 2018-05-15

Similar Documents

Publication Publication Date Title
CN108076507B (en) Positioning mode control method and device, storage medium and mobile terminal
CN108111971B (en) Positioning method, positioning device, storage medium and mobile terminal
CN109947498B (en) Application program preloading method and device, storage medium and mobile terminal
CN107688638B (en) Recommendation method and device for application list, storage medium and mobile terminal
CN109891934B (en) Positioning method and device
US20190260851A1 (en) End-to-end user experiences with a digital assistant
CN109947496B (en) Application program preloading method and device, storage medium and mobile terminal
CN108055642B (en) Control method and device of positioning module, storage medium and mobile terminal
CN108169775B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN107508883B (en) Information pushing method and device, storage medium and mobile terminal
KR101430300B1 (en) Space and time based device customization
CN110168483B (en) Shortcut menu for displaying different applications on different screens
CN108076429A (en) Localization method, device, storage medium and mobile terminal
CN108008423B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108040320B (en) GNSS positioning control method and device, storage medium and mobile terminal
CN108064024B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108064023B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108171965B (en) Arrival reminding method and device, storage medium and mobile terminal
CN114466102B (en) Method for displaying application interface, related device and traffic information display system
CN111052040A (en) Method for reducing power consumption of terminal and terminal
EP3355596A1 (en) Positioning information processing method and apparatus
CN108168569A (en) Air navigation aid, device, storage medium, mobile terminal and onboard system
WO2021175198A1 (en) Method for invoking nfc applications, electronic device, and nfc apparatus
CN107995367B (en) Arrival reminding method and device, storage medium and mobile terminal
CN108055644B (en) Positioning control method and device, storage medium and terminal equipment

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