CN108055642B - Control method and device of positioning module, storage medium and mobile terminal - Google Patents

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

Info

Publication number
CN108055642B
CN108055642B CN201711325795.3A CN201711325795A CN108055642B CN 108055642 B CN108055642 B CN 108055642B CN 201711325795 A CN201711325795 A CN 201711325795A CN 108055642 B CN108055642 B CN 108055642B
Authority
CN
China
Prior art keywords
mobile terminal
module
destination
positioning
position information
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
CN201711325795.3A
Other languages
Chinese (zh)
Other versions
CN108055642A (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 CN201711325795.3A priority Critical patent/CN108055642B/en
Publication of CN108055642A publication Critical patent/CN108055642A/en
Application granted granted Critical
Publication of CN108055642B publication Critical patent/CN108055642B/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
    • H04W4/025Services making use of location information using location based information parameters
    • 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/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • 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)
  • Navigation (AREA)

Abstract

The embodiment of the application discloses a control method and device of a positioning module, a storage medium and a mobile terminal. The method comprises the following steps: the method comprises the steps of obtaining a destination selected by a user through LBS application in a mobile terminal, obtaining boundary position information of a building where the destination belongs when the destination is identified to belong to an indoor environment, and controlling a Global Navigation Satellite System (GNSS) module in the mobile terminal to enter a low-power-consumption working mode when the current position of the mobile terminal is judged to be smaller than a preset distance threshold value from the building according to the boundary position information, wherein the current position is obtained through positioning of the GNSS module. By adopting the technical scheme, when the user is about to arrive at the destination belonging to the indoor environment, the GNSS module can be controlled to enter the low-power-consumption working mode in time, and the power consumption generated by the GNSS module is reduced.

Description

Control method and device of positioning module, storage medium and mobile terminal
Technical Field
The embodiment of the application relates to the technical field of positioning, in particular to a control method and device of a positioning module, a storage medium and a mobile terminal.
Background
Location Based Service (LBS) is a value-added Service that obtains Location information of a mobile terminal user through a Location technology and provides a corresponding Service for the user, and at present, many applications in a mobile terminal are developed Based on LBS, which already covers the fields of leisure entertainment, life Service, social application and the like, so the LBS technology plays an important role in various industries. The LBS application needs to call the location module to obtain the location information located by the location module when providing location-related services.
Currently, the positioning method of the mobile terminal mainly includes Global Navigation Satellite System (GNSS) positioning, network positioning, base station positioning, and the like. The GNSS positioning mode has the advantages of high positioning precision, no need of using a mobile data network and the like, but the power consumption in the positioning process is large, and the endurance time of the mobile terminal is influenced. There is still a need for improvements in existing solutions for controlling GNSS positioning modules.
Disclosure of Invention
The embodiment of the application provides a control method and device of a positioning module, a storage medium and a mobile terminal, which can optimize a control scheme of a GNSS positioning module in the mobile terminal.
In a first aspect, an embodiment of the present application provides a method for controlling a positioning module, including:
acquiring a destination selected by a user through a Location Based Service (LBS) application in a mobile terminal;
when the destination is identified to belong to an indoor environment, boundary position information of a building to which the destination belongs is obtained;
and when the current position of the mobile terminal is judged to be smaller than a preset distance threshold value from the travel of the building according to the boundary position information, controlling a Global Navigation Satellite System (GNSS) module in the mobile terminal to enter a low-power-consumption working mode, wherein the current position is obtained by positioning through the GNSS module.
In a second aspect, an embodiment of the present application provides a control apparatus for a positioning module, including:
a destination acquisition module for acquiring a destination selected by a user through a location based service LBS application in the mobile terminal;
the boundary position acquisition module is used for acquiring boundary position information of a building to which the destination belongs when the destination is identified to belong to an indoor environment;
and the positioning control module is used for controlling a Global Navigation Satellite System (GNSS) module in the mobile terminal to enter a low-power-consumption working mode when the current position of the mobile terminal is judged to be smaller than a preset distance threshold value from the travel of the building according to the boundary position information, wherein the current position is obtained by positioning through the GNSS module.
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 of a positioning module according to an embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, including a memory, a GNSS module, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements a control method of a positioning module according to an embodiment of the present application when executing the computer program.
According to the control scheme of the positioning module, the destination selected by the user through LBS application in the mobile terminal is obtained, when the destination is identified to belong to an indoor environment, boundary position information of a building to which the destination belongs is obtained, and when the current position is judged to be smaller than a preset distance threshold value from the travel of the current position to the building according to the boundary position information, the GNSS module in the mobile terminal is controlled to enter a low-power-consumption working mode. By adopting the technical scheme, when a user is about to arrive at a destination belonging to an indoor environment, the GNSS module can be controlled to enter a low-power-consumption working mode in time, and the power consumption generated by the GNSS module is reduced.
Drawings
Fig. 1 is a schematic flowchart of a control method of a positioning module according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another control method for a positioning module according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another control method for a positioning module according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of map information provided in an embodiment of the present application;
fig. 5 is a block diagram of a control device of a positioning module according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart illustrating a method for controlling a positioning module according to an embodiment of the present application, where the method may be performed by a control device of the positioning module, where the device 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, obtaining a destination selected by a user through an LBS application in a mobile terminal.
For example, the mobile terminal in the embodiment of the present application may include a mobile device such as a mobile phone and a tablet computer, which is provided with a GNSS positioning module (referred to as a GNSS module for short). The specific type of the GNSS module is not limited in the embodiments of the present application, and may include a Global Positioning System (GPS), a beidou satellite navigation System, a GALILEO satellite navigation System (GALILEO), and the like.
In the embodiment of the present application, specific types of the LBS application are not limited, and may include an electronic map application (such as a Baidu map), a takeaway application (such as a Mei Tuo takeaway), a social contact application (such as WeChat), an information service application (such as a popular comment), a travel application (such as a journey, etc.), and the like. During the process of using the LBS application, users often need to query places of interest, such as scenic spots, hotels, restaurants, gas stations, movie theaters, office buildings, shopping malls, and the like. The LBS application may recommend a place based on the current position of the user or the position input by the user, from which the user selects a place of interest, or the user may actively input a place of interest, and the place of interest selected or input by the user may be understood as a destination in the present application. Alternatively, the destination may be a unit located in a building, such as a fast food restaurant in a food square, a clothing store in a shopping mall, a company in a commercial building, and so forth.
In the embodiment of the application, when the user selects the destination through the LBS application, the GNSS module is in a normal operating mode. Generally, after the LBS application is started or when the LBS application enters a destination selection interface, it is considered that the user needs a location service, and a GNSS module is called, and if the GNSS module is in a closed state, the GNSS module is opened and enters a normal operation module, so as to acquire location information through the GNSS module.
And 102, when the destination is identified to belong to the indoor environment, acquiring boundary position information of a range where the destination is located.
For example, whether it belongs to an indoor environment may be determined according to the type of destination. The attractions and gas stations as exemplified above are typically in an outdoor environment, while hotels, restaurants, movie theaters, office buildings and shopping malls are typically in an indoor environment. In addition, whether the destination belongs to an indoor environment can also be identified through a map. Generally, if a destination belongs to an indoor environment, the destination has a corresponding house building, and a map includes an outline graph of the house building; if the destination belongs to the outdoor environment, the destination does not have a corresponding house building, and the map does not have an outline graph of the corresponding house building. Optionally, the environment attributes corresponding to the different locations may also be pre-stored in the server corresponding to the LBS application, where the environment attributes include an indoor environment or an outdoor environment, and in this step, whether the destination is in the indoor environment may be directly obtained according to the environment attribute data stored in the destination query server.
For example, when the destination belongs to an indoor environment, there may be a corresponding building, and the boundary range of the building to which the destination belongs may be understood as a range in which a vertical projection of the building to which the destination belongs to a road surface is located, and the boundary position information may include geographical position information of the boundary of the vertical projection, and the geographical position information may include longitude and latitude coordinates and the like.
Step 103, when the current position of the mobile terminal is judged to be less than a preset distance threshold value from the travel of the building according to the boundary position information, controlling a GNSS module in the mobile terminal to enter a low power consumption working mode, wherein the current position is obtained by positioning through the GNSS module.
For example, after the user selects the destination, the LBS application may provide the user with navigation information to the destination, where the navigation information may include voice prompt information or map indication information, etc., and the user may arrive at the destination via the navigation information. In the process that a user travels to a destination, in order to ensure the real-time performance and accuracy of navigation information, the current position of the mobile terminal can be positioned in real time through the GNSS module, and the navigation information is updated in real time by utilizing the current position.
For example, a length value of a shortest route from a current position to any one boundary of a building may be calculated in real time, the length value is taken as a travel distance from the current position to the building, and if the travel distance is smaller than a preset distance threshold, it indicates that a user is about to reach the building to which a destination belongs, that is, the mobile terminal is about to enter an indoor environment. The preset distance threshold value can be set by default of the system, and can also be set by a user, and different GNSS modules can correspond to different preset distance threshold values. For example, the preset distance threshold may be 10 meters, and may also be 1 meter or 0 meter, etc.
Optionally, the boundary location information includes boundary entry information, a length value of a shortest route from a current location to a nearest boundary entry may be calculated in real time, the length value is used as a travel distance from the current location to a building, and if the travel distance is smaller than a preset distance threshold, it indicates that the user is about to enter the building to which the destination belongs through the boundary entry, that is, the mobile terminal is about to enter an indoor environment. This has the advantage that it can be determined more accurately whether the user is about to enter the building to which the destination belongs.
When the mobile terminal enters an indoor environment, satellite signals which can be searched by the GNSS module are weakened or even cannot be searched, so that a positioning result is wrong or positioning cannot be realized.
According to the method and the device, when the distance between the current position of the mobile terminal and the building is judged to be smaller than the preset distance threshold according to the boundary position information, the GNSS module in the mobile terminal is controlled to enter the low-power-consumption working mode, and power consumption caused by the fact that the GNSS module cannot be positioned in an indoor environment can be saved. For example, there may be various specific implementation manners for controlling the GNSS module in the mobile terminal to enter the low power consumption operating mode, and the embodiment of the present application is not limited thereto. Optionally, the GNSS module in the mobile terminal may be turned off, for the GNSS module, the positioning function of the GNSS module is generally implemented based on the GNSS chip, and the turning off of the GNSS module may stop the power supply to the GNSS chip. Optionally, the GNSS module in the mobile terminal may be controlled to enter a sleep state, and for example, the GNSS module may be controlled to stop searching for satellite signals and other related operations.
The control method of the positioning module, provided by the embodiment of the application, comprises the steps of obtaining a destination selected by a user through LBS application in a mobile terminal, obtaining boundary position information of a building to which the destination belongs when the destination is identified to belong to an indoor environment, and controlling a GNSS module in the mobile terminal to enter a low-power-consumption working mode when the current position is judged to be smaller than a preset distance threshold value from the travel of the current position to the building according to the boundary position information. By adopting the technical scheme, when a user is about to arrive at a destination belonging to an indoor environment, the GNSS module can be controlled to enter a low-power-consumption working mode in time, and the power consumption generated by the GNSS module is reduced.
In some embodiments, the obtaining boundary position information of the range where the destination is located includes: searching a building corresponding to the destination in a map; and acquiring the geographical position information corresponding to the outline graph of the building in the map as boundary position information. The boundary position information of the house building corresponding to the destination is confirmed by the map, so that the accuracy of determining the boundary of the building can be improved. The map may be a map built in the LBS application in the present application, or a map in which the LBS application calls other map applications.
In some embodiments, while obtaining the destination selected by the user through the location based service LBS application in the mobile terminal, the method further comprises: and acquiring the initial position of the mobile terminal through a GNSS module. After the obtaining of the destination selected by the user through the location based service LBS application in the mobile terminal, the method further comprises: and obtaining map information in a preset range, wherein the preset range covers the navigation route from the initial position to the destination. When the distance between the current position of the mobile terminal and the destination is judged to be smaller than a preset distance threshold according to the boundary position information, controlling a GNSS module in the mobile terminal to enter a low-power-consumption working mode, including: selecting a target boundary from a plurality of boundaries corresponding to the boundary position information according to the navigation route, wherein the target boundary is intersected with the navigation route; and controlling a GNSS module in the mobile terminal to enter a low-power-consumption working mode when the shortest distance between the current position of the mobile terminal and the target boundary is judged to be smaller than a preset distance threshold according to the boundary position information corresponding to the target boundary. The advantage of this arrangement is that it can be determined from the navigation route from which boundary the user needs to enter the building, so as to determine the timing for controlling the GNSS module to enter the low power consumption operation mode more accurately. The shortest distance between the current position and the target boundary may be the shortest distance between the current position and any point on the target boundary, where the shortest distance may be a straight distance, or may be a travel distance (if an obstacle is encountered, the travel distance between two positions needs to be bypassed, so the travel distance between the two positions is generally greater than the straight distance between the two positions).
Optionally, the user may be prompted according to the navigation route, for example, a voice broadcast form or a screen display form is adopted, so that the user can conveniently arrive at the destination along the navigation route according to the prompt. When prompting in a screen display mode, the acquired map information can be displayed so as to instruct a user to travel to the destination according to the navigation route.
In some embodiments, after the controlling the GNSS module in the mobile terminal to enter the low power operation mode, the method further includes: and providing the position information by adopting a positioning mode other than a GNSS positioning mode. When the GNSS module is controlled to enter the low power consumption operating mode, a user is about to enter a building to which a destination belongs, but the user may not enter the building, and the user may need to update the location, for example, the user may find an entrance of the building smoothly; in addition, after entering the building, if the building is large, such as a large mall, and the destination selected by the user is only one restaurant, the location in the building needs to be updated, so that the user can find the destination conveniently. Therefore, the advantage of such an arrangement is that after the GNSS module enters the low power operation mode, the location service can still be provided with low power consumption. Positioning modes other than the GNSS positioning mode may include other positioning modes with lower power consumption, such as base station positioning or network positioning (e.g., WiFi positioning); the method can also comprise a mode of utilizing a sensor to assist positioning, such as acquiring motion data of the mobile terminal through a motion sensor, and providing position information according to the motion data. The motion sensor may include an acceleration sensor, a gravity sensor, a gyroscope, a geomagnetic sensor, and the like. The motion data acquired by the motion sensor can be used for calculating the motion speed, the moving distance, the rotating angle and the like of the mobile terminal, and then the motion data is combined with the position of the mobile terminal when the GNSS module enters the low-power-consumption working mode, so that the real-time position of the mobile terminal can be obtained, and further the position information can be continuously provided. The power consumption generated by the motion sensor is low, the usability of the positioning function can be ensured after the GNSS module stops working, the position service is continuously provided for the user, and the power consumption of the mobile terminal is reduced on the whole.
In some embodiments, after providing the position information by using a positioning method other than the GNSS positioning method, the method further includes: and when the mobile terminal is detected to leave the building, controlling the GNSS module to exit the low-power-consumption working mode. The advantage of such a configuration is that when the mobile terminal leaves the building to which the destination belongs, it indicates that the user leaves the indoor environment and returns to the outdoor environment, and at this time, the GNSS module can normally search for the satellite signal, that is, can acquire the location information based on the GNSS module, and then, in order to ensure the positioning accuracy and accuracy, the GNSS module can be controlled to exit the low-power-consumption operating mode and enter the normal operating mode. For example, if the current position of the mobile terminal is outside the building according to other positioning manners, it may be determined that the mobile terminal is detected to leave the building.
Fig. 2 is a schematic flowchart of another control method for a positioning module according to an embodiment of the present application, where the method includes the following steps:
step 201, detecting that the GNSS module is in a normal operating mode under the condition of being invoked by the LBS application.
Step 202, obtaining the initial position of the mobile terminal through the GNSS module, and obtaining the destination selected by the user through the LBS application.
Step 203, identifying whether the destination belongs to an indoor environment, if so, executing step 204; otherwise, the flow ends.
And step 204, searching a building corresponding to the destination in the map, and acquiring geographical position information corresponding to the outline graph of the building in the map as boundary position information.
And step 205, obtaining and displaying map information in a preset range, wherein the preset range covers the navigation route from the initial position to the destination.
And step 206, selecting a target boundary from a plurality of boundaries corresponding to the boundary position information according to the navigation route, wherein the target boundary is intersected with the navigation route.
And step 207, acquiring the current position of the mobile terminal through the GNSS module.
Step 208, judging whether the shortest distance between the current position and the target boundary is smaller than a preset distance threshold, if so, executing step 209; otherwise, return to execute step 207.
And step 209, closing the GNSS module, acquiring the motion data of the motion sensor, and continuously providing the position information for the LBS by combining the current position and the motion data.
Step 210, detecting whether the mobile terminal leaves a building, if so, executing step 211; otherwise, step 210 is repeated.
Step 211, start the GNSS module.
According to the control method of the positioning module, when the user is about to arrive at the destination belonging to the indoor environment, the GNSS module can be closed in time, power consumption generated by the GNSS module is reduced, the sensor is used for continuously providing the position information, and when the mobile terminal is detected to leave the building belonging to the destination, the GNSS module is opened in time, so that accurate position service is provided for the user.
Fig. 3 is a schematic flow chart of another control method of a location module according to an embodiment of the present application, which is illustrated by taking an information service-based LBS application as an example, and a GPS module is built in a mobile terminal, and it is assumed that a user searches for a restaurant with a higher nearby rating in the LBS application, and selects a restaurant a in an X shopping center, and needs to walk to the restaurant a according to a navigation service provided in the LBS application. Specifically, the method may comprise:
step 301, detecting a request of the target LBS application for calling the GPS module, responding to the request, starting the GPS module, and positioning the current initial position of the mobile terminal through the GPS module.
Step 302, restaurant A selected by the user in the restaurant recommendation list of the target LBS application is obtained.
Step 303, determining that restaurant A is located in the shopping center X and belongs to the indoor environment.
And 304, finding the X shopping center in the map, and acquiring the geographical position information corresponding to the outline graph of the X shopping center in the map as boundary position information.
And 305, acquiring and displaying map information in a preset range, wherein the preset range covers a navigation route from the initial position to restaurant A.
And step 306, selecting a target boundary from a plurality of boundaries corresponding to the boundary position information according to the navigation route, wherein the target boundary is intersected with the navigation route.
Fig. 4 is a schematic diagram of map information provided by an embodiment of the present application, as shown in fig. 4, an X shopping center 41 is located on a road side, a restaurant a that a user wants to reach is a destination 43, a C-shaped profile 42 on the map is a profile of the X shopping center 41, longitude and latitude coordinates of each point on the profile can be used as boundary position information, a navigation route 45 of the user from an initial position 44 to the destination 43 is also shown in fig. 4, the navigation route 43 intersects with a boundary 46, so the boundary 46 is a target boundary, that is, the navigation route 45 guides the user from an entrance corresponding to the boundary 46 to the X shopping center 41.
And 307, acquiring the current position of the mobile terminal through a GPS module.
Step 308, judging whether the shortest distance between the current position and the target boundary is smaller than a preset distance threshold, if so, executing step 309; otherwise, return to execute step 307.
For example, assuming that the preset distance threshold is 3 meters, the user will generally walk along the navigation route, and the distance from the current location 47 to the target boundary along the navigation route direction can be generally regarded as the shortest distance in this step, and if the distance is less than 3 meters, it indicates that the user is about to enter the X shopping center, and the GPS module can be turned off.
Step 309, the GPS module is turned off, and the motion data of the motion sensor is acquired, and the location information is continuously provided to the LBS application in combination with the current location and the motion data.
For example, after the GPS module is turned off, the direction, speed, distance, etc. of the user's travel can be calculated in combination with the motion data of the motion sensor, and the location 47 of the GPS module is turned off, so that the location of the user can be calculated in real time and provided to the LBS application, which can help the user to successfully find restaurant a, i.e., destination 43, by continuing to use the navigation function in the X shopping center.
Step 310, detecting whether the mobile terminal leaves an X shopping center, if so, executing step 311; otherwise, step 310 is repeated.
Step 311, start the GPS module.
According to the control method of the positioning module, when the destination is one unit in a building, the GPS module can be closed immediately before entering the building, useless work caused by the fact that the GPS module cannot be positioned in the building is avoided, waste of power consumption is avoided, then position information is continuously provided based on the position when the GPS module is closed and the motion data of the motion sensor, a user is helped to successfully find a final destination in the building, usability of position service is guaranteed, and power consumption of the mobile terminal is reduced integrally.
Fig. 5 is a block diagram of a control apparatus of a positioning module according to an embodiment of the present disclosure, where the apparatus may be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and the control apparatus may control the positioning module in the mobile terminal by executing a control method of the positioning module. As shown in fig. 5, the apparatus includes:
a destination acquisition module 501 for acquiring a destination selected by a user through a location based service LBS application in a mobile terminal;
a boundary position obtaining module 502, configured to, when it is identified that the destination belongs to an indoor environment, obtain boundary position information of a building to which the destination belongs;
and a positioning control module 503, configured to control a global navigation satellite system GNSS module in the mobile terminal to enter a low power consumption operating mode when it is determined that a travel distance between the current position of the mobile terminal and the building is smaller than a preset distance threshold according to the boundary position information, where the current position is obtained by positioning through the GNSS module.
The control device of the positioning module, provided in the embodiment of the application, acquires a destination selected by a user through LBS application in a mobile terminal, acquires boundary position information of a building to which the destination belongs when recognizing that the destination belongs to an indoor environment, and controls a GNSS module in the mobile terminal to enter a low-power-consumption working mode when judging that a travel of a current position from the building is smaller than a preset distance threshold according to the boundary position information. By adopting the technical scheme, when a user is about to arrive at a destination belonging to an indoor environment, the GNSS module can be controlled to enter a low-power-consumption working mode in time, and the power consumption generated by the GNSS module is reduced.
Optionally, the controlling the GNSS module in the mobile terminal to enter the low power consumption operating mode includes:
closing a GNSS module in the mobile terminal; or the like, or, alternatively,
and controlling a GNSS module in the mobile terminal to enter a dormant state.
Optionally, the obtaining boundary position information of the building to which the destination belongs includes:
searching a building corresponding to the destination in a map;
and acquiring the geographical position information corresponding to the outline graph of the building in the map as boundary position information.
Optionally, the apparatus further comprises:
an initial position acquisition module for acquiring an initial position of a mobile terminal through a GNSS module while the user acquires a destination selected through a location based service LBS application in the mobile terminal;
the map information acquisition module is used for acquiring map information of a preset range after the user acquires a destination selected by a Location Based Service (LBS) application in the mobile terminal, wherein the preset range covers a navigation route from the initial position to the destination;
the positioning control module is used for:
selecting a target boundary from a plurality of boundaries corresponding to the boundary position information according to the navigation route, wherein the target boundary is intersected with the navigation route;
and controlling a GNSS module in the mobile terminal to enter a low-power-consumption working mode when the shortest distance between the current position of the mobile terminal and the target boundary is judged to be smaller than a preset distance threshold according to the boundary position information corresponding to the target boundary.
Optionally, the device further includes a map information display module, configured to display the acquired map information after the map information in the preset range is acquired, so as to instruct the user to travel to the destination according to the navigation route.
Optionally, the apparatus may further include a location information providing module, configured to provide location information in a positioning manner other than the GNSS positioning manner after the GNSS module in the mobile terminal is controlled to enter the low power consumption operating mode.
Optionally, the positioning control module is further configured to: and after position information is provided by adopting a positioning mode except a GNSS positioning mode, controlling the GNSS module to exit the low-power-consumption working mode when the mobile terminal is detected to leave the building.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for controlling a positioning module, the method including:
acquiring a destination selected by a user through a Location Based Service (LBS) application in a mobile terminal;
when the destination is identified to belong to an indoor environment, boundary position information of a building to which the destination belongs is obtained;
and when the current position of the mobile terminal is judged to be smaller than a preset distance threshold value from the travel of the building according to the boundary position information, controlling a Global Navigation Satellite System (GNSS) module in the mobile terminal to enter a low-power-consumption working mode, wherein the current position is obtained by positioning through the GNSS module.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the control operation of the positioning module described above, and may also execute the relevant operations in the control method of the positioning module provided in any embodiments of the present application.
The embodiment of the application provides a mobile terminal, and a control device of a positioning module provided by the embodiment of the application can be integrated in the mobile terminal. Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. The mobile terminal 600 may include: the positioning module comprises a memory 601, a GNSS module 602, a processor 603 and a computer program stored on the memory 601 and executable by the processor 603, wherein the processor 603 implements a control method of the positioning module according to an embodiment of the present application when executing the computer program.
The mobile terminal provided by the embodiment of the application can timely control the GNSS module to enter the low-power-consumption working mode when a user is about to arrive at a destination belonging to an indoor environment, so that the power consumption generated by the GNSS module is reduced.
Fig. 7 is a schematic structural diagram of another mobile terminal provided in an embodiment of the present application, where the mobile terminal may include: a casing (not shown), a memory 701, a GPS chip (not shown), a Central Processing Unit (CPU) 702 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU702 and the memory 701 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory 701 is used for storing executable program codes; the CPU702 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 701 to implement the steps of:
acquiring a destination selected by a user through a Location Based Service (LBS) application in a mobile terminal;
when the destination is identified to belong to an indoor environment, boundary position information of a building to which the destination belongs is obtained;
and when the current position of the mobile terminal is judged to be smaller than a preset distance threshold value from the travel of the building according to the boundary position information, controlling a Global Navigation Satellite System (GNSS) module in the mobile terminal to enter a low-power-consumption working mode, wherein the current position is obtained by positioning through the GNSS module.
The mobile terminal further includes: peripheral interfaces 703, RF (Radio Frequency) circuitry 705, audio circuitry 706, speakers 711, power management chip 708, input/output (I/O) subsystems 709, other input/control devices 710, touch screen 712, other input/control devices 710, and external port 704, which communicate via one or more communication buses or signal lines 707.
It should be understood that the illustrated mobile terminal 700 is merely one example of a mobile terminal and that the mobile terminal 700 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail the mobile terminal for controlling the positioning module provided in this embodiment, and the mobile terminal is a mobile phone as an example.
A memory 701, the memory 701 being accessible by the CPU702, the peripheral interface 703, and the like, the memory 701 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 703, said peripheral interface 703 may connect input and output peripherals of the device to the CPU702 and the memory 701.
An I/O subsystem 709, which I/O subsystem 709 may connect input and output peripherals on the device, such as a touch screen 712 and other input/control devices 710, to the peripheral interface 703. The I/O subsystem 709 may include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710. Where one or more input controllers 7092 receive electrical signals from or transmit electrical signals to other input/control devices 710, the other input/control devices 710 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 7092 may be connected to any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 712, the touch screen 712 being an input interface and an output interface between the user's mobile terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 7091 in the I/O subsystem 709 receives electrical signals from the touch screen 712 or transmits electrical signals to the touch screen 712. The touch screen 712 detects a contact on the touch screen, and the display controller 7091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 712, i.e., implements a human-computer interaction, and the user interface object displayed on the touch screen 712 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 705 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 705 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 705 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 705 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 706 is mainly used to receive audio data from the peripheral interface 703, convert the audio data into an electric signal, and transmit the electric signal to the speaker 711.
The speaker 711 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 705 into sound and play the sound to the user.
And a power management chip 708 for supplying power and managing power to the hardware connected to the CPU702, the I/O subsystem, and the peripheral interface.
The control device, the storage medium, and the mobile terminal of the positioning module provided in the above embodiments may execute the control method of the positioning module provided in any embodiment of the present application, and have corresponding functional modules and beneficial 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 of a positioning module provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (10)

1. A method for controlling a positioning module, comprising:
acquiring a destination selected by a user through a Location Based Service (LBS) application in a mobile terminal;
when the destination is identified to belong to an indoor environment, boundary position information of a building to which the destination belongs is obtained;
and when judging that the travel of the current position of the mobile terminal from the building is smaller than a preset distance threshold according to the boundary position information, controlling a Global Navigation Satellite System (GNSS) module in the mobile terminal to enter a low-power-consumption working mode, wherein the current position is obtained by positioning through the GNSS module, and the travel comprises the length value of the shortest route of the current position of the mobile terminal to any one of a plurality of boundaries corresponding to the boundary position information.
2. The method of claim 1, wherein the controlling the GNSS module in the mobile terminal to enter the low power operation mode comprises:
closing a GNSS module in the mobile terminal; or the like, or, alternatively,
and controlling a GNSS module in the mobile terminal to enter a dormant state.
3. The method according to claim 1, wherein the obtaining boundary position information of the building to which the destination belongs comprises:
searching a building corresponding to the destination in a map;
and acquiring the geographical position information corresponding to the outline graph of the building in the map as boundary position information.
4. The method according to claim 1, wherein while said obtaining the destination selected by the user through the location based service LBS application in the mobile terminal, further comprising:
acquiring an initial position of the mobile terminal through a GNSS module;
after the obtaining of the destination selected by the user through the location based service LBS application in the mobile terminal, the method further comprises:
obtaining map information in a preset range, wherein the preset range covers a navigation route from the initial position to the destination;
when the distance between the current position of the mobile terminal and the building is judged to be smaller than a preset distance threshold according to the boundary position information, controlling a GNSS module in the mobile terminal to enter a low-power-consumption working mode, wherein the low-power-consumption working mode comprises the following steps:
selecting a target boundary from a plurality of boundaries corresponding to the boundary position information according to the navigation route, wherein the target boundary is intersected with the navigation route;
and controlling a GNSS module in the mobile terminal to enter a low-power-consumption working mode when the shortest distance between the current position of the mobile terminal and the target boundary is judged to be smaller than a preset distance threshold according to the boundary position information corresponding to the target boundary.
5. The method according to claim 4, further comprising, after the obtaining of the map information of the preset range:
displaying the acquired map information to instruct a user to travel to the destination according to the navigation route.
6. The method according to any of claims 1-5, further comprising, after said controlling the GNSS module in the mobile terminal to enter the low power mode of operation:
and providing the position information by adopting a positioning mode other than a GNSS positioning mode.
7. The method of claim 6, further comprising, after providing the position information using a positioning method other than a GNSS positioning method:
and when the mobile terminal is detected to leave the building, controlling the GNSS module to exit the low-power-consumption working mode.
8. A control device for a positioning module, comprising:
a destination acquisition module for acquiring a destination selected by a user through a location based service LBS application in the mobile terminal;
the boundary position acquisition module is used for acquiring boundary position information of a building to which the destination belongs when the destination is identified to belong to an indoor environment;
and the positioning control module is used for controlling a Global Navigation Satellite System (GNSS) module in the mobile terminal to enter a low-power-consumption working mode when judging that the travel of the current position of the mobile terminal from the building is smaller than a preset distance threshold according to the boundary position information, wherein the current position is obtained by positioning through the GNSS module, and the travel comprises the length value of the shortest route of the current position of the mobile terminal to any one of a plurality of boundaries corresponding to the boundary position information.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out a method of controlling a positioning module according to any one of claims 1-7.
10. A mobile terminal, characterized in that it comprises a memory, a global navigation satellite system GNSS module, a processor and a computer program stored on the memory and executable on the processor, said processor implementing, when executing said computer program, a method of controlling a positioning module according to any one of claims 1 to 7.
CN201711325795.3A 2017-12-13 2017-12-13 Control method and device of positioning module, storage medium and mobile terminal Active CN108055642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711325795.3A CN108055642B (en) 2017-12-13 2017-12-13 Control method and device of positioning module, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711325795.3A CN108055642B (en) 2017-12-13 2017-12-13 Control method and device of positioning module, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN108055642A CN108055642A (en) 2018-05-18
CN108055642B true CN108055642B (en) 2020-06-09

Family

ID=62132342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711325795.3A Active CN108055642B (en) 2017-12-13 2017-12-13 Control method and device of positioning module, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN108055642B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032322B (en) * 2018-06-08 2020-07-21 Oppo(重庆)智能科技有限公司 Navigation control method, navigation control device, terminal equipment and storage medium
CN109688539B (en) * 2018-12-26 2023-05-16 河北能瑞科技有限公司 Terminal positioning method and device, mobile terminal and readable storage medium
JP7192550B2 (en) * 2019-02-12 2022-12-20 セイコーエプソン株式会社 electronic clock
CN109883424A (en) * 2019-03-01 2019-06-14 肖一然 A kind of navigation system, navigation terminal
CN111750848B (en) * 2019-07-24 2024-03-19 广东小天才科技有限公司 Building positioning method and electronic equipment
CN111174778B (en) * 2019-11-26 2022-03-01 广东小天才科技有限公司 Building entrance determining method and device based on pedestrian dead reckoning
CN111038337B (en) * 2019-12-30 2021-08-20 潍柴动力股份有限公司 Control system and control method of fuel cell vehicle
CN112562757A (en) * 2019-12-31 2021-03-26 泰斗微电子科技有限公司 Circuit control method and device of positioning receiving equipment and positioning receiving equipment
CN112729313B (en) * 2020-12-28 2023-10-20 江苏伟岸纵横科技股份有限公司 Indoor navigation positioning method, terminal and computer storage medium
CN114111834A (en) * 2021-12-07 2022-03-01 甄十信息科技(上海)有限公司 Method and device for determining wearable device to leave specific area
CN115014337A (en) * 2022-05-27 2022-09-06 Oppo广东移动通信有限公司 Positioning method, device, chip, user equipment and storage medium
CN115379542A (en) * 2022-08-11 2022-11-22 湖北星纪时代科技有限公司 Power consumption control method for mobile terminal, mobile terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103247144A (en) * 2012-02-07 2013-08-14 宇龙计算机通信科技(深圳)有限公司 Traffic safety prompting method and mobile terminal
CN103791898A (en) * 2012-10-30 2014-05-14 联想(北京)有限公司 Method and electronic equipment for navigation in building
CN104822133A (en) * 2015-04-22 2015-08-05 广东欧珀移动通信有限公司 Method and device for controlling positioning mode of intelligent terminal
CN105682032A (en) * 2016-01-13 2016-06-15 广东欧珀移动通信有限公司 Positioning mode control method, positioning mode control device and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016028184A1 (en) * 2014-08-19 2016-02-25 Motorola Solutions, Inc. Method of and system for determining route speed of a mobile navigation unit movable along a route segment of a route having a plurality of intersections

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103247144A (en) * 2012-02-07 2013-08-14 宇龙计算机通信科技(深圳)有限公司 Traffic safety prompting method and mobile terminal
CN103791898A (en) * 2012-10-30 2014-05-14 联想(北京)有限公司 Method and electronic equipment for navigation in building
CN104822133A (en) * 2015-04-22 2015-08-05 广东欧珀移动通信有限公司 Method and device for controlling positioning mode of intelligent terminal
CN105682032A (en) * 2016-01-13 2016-06-15 广东欧珀移动通信有限公司 Positioning mode control method, positioning mode control device and mobile terminal

Also Published As

Publication number Publication date
CN108055642A (en) 2018-05-18

Similar Documents

Publication Publication Date Title
CN108055642B (en) Control method and device of positioning module, storage medium and mobile terminal
CN109891934B (en) Positioning method and device
CN108169775B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108111971B (en) Positioning method, positioning device, storage medium and mobile terminal
US9198004B2 (en) User-in-the-loop architecture for indoor positioning
US9191781B2 (en) Use of wireless access point ID for position determination
CN102006550B (en) Power saving system and method for mobile computing device
EP2248120B1 (en) Position source selection
US9097544B2 (en) Location tracking for mobile computing device
US20140370909A1 (en) Reduced power location determinations for detecting geo-fences
CN108008423B (en) Control method and device based on positioning module, storage medium and mobile terminal
US20110054780A1 (en) Location tracking for mobile computing device
US10194273B2 (en) Positioning information processing method and apparatus
CN108064024B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108055635B (en) Position information acquisition method and device, storage medium and terminal
CN108024209B (en) Positioning control method and device, storage medium and terminal equipment
CN108064023B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108093367B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108093362B (en) Control method and device of positioning module, storage medium and terminal
CN108111580B (en) Area determination method, device, storage medium, mobile terminal and server
CN108093373B (en) Positioning control method and device, storage medium and terminal equipment
CN108151730A (en) Position control method, device, storage medium and terminal device
CN108112061A (en) Position control method, device, storage medium and terminal device
CN108156313B (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