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

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

Info

Publication number
CN108064024B
CN108064024B CN201711325856.6A CN201711325856A CN108064024B CN 108064024 B CN108064024 B CN 108064024B CN 201711325856 A CN201711325856 A CN 201711325856A CN 108064024 B CN108064024 B CN 108064024B
Authority
CN
China
Prior art keywords
wifi hotspot
mobile terminal
preset
module
wifi
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
CN201711325856.6A
Other languages
Chinese (zh)
Other versions
CN108064024A (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 CN201711325856.6A priority Critical patent/CN108064024B/en
Publication of CN108064024A publication Critical patent/CN108064024A/en
Application granted granted Critical
Publication of CN108064024B publication Critical patent/CN108064024B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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
    • 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)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a control method and device based on a positioning module, a storage medium and a mobile terminal. The method comprises the following steps: detecting that a GNSS module in the mobile terminal is in a state called by LBS application; acquiring a current WiFi hotspot information list searched by the mobile terminal; judging whether a preset WiFi hotspot is contained in the current WiFi hotspot information list or not, wherein the preset WiFi hotspot comprises a WiFi hotspot in an indoor environment; if yes, determining that the mobile terminal enters an indoor environment, and controlling the GNSS module to stop positioning. By adopting the technical scheme, the power consumption caused by idle work of the GNSS module in an indoor environment can be reduced.

Description

Control method and device based on positioning module, storage medium and mobile terminal
Technical Field
The embodiment of the application relates to the technical field of positioning, in particular to a control method and device based on a positioning module, a storage medium and a mobile terminal.
Background
At present, most mobile terminals have a positioning function, can provide a lot of location-based services for users, and bring convenience to the users.
The positioning method of the mobile terminal mainly includes Global Navigation Satellite System (GNSS) positioning, network positioning, base station positioning, and the like. The GNSS positioning mode has the advantages of high positioning precision, no need of using a mobile data network and the like, but the power consumption in the positioning process is large, and the endurance time of the mobile terminal is influenced. In addition, the GNSS positioning method needs to search for satellite signals, and when the mobile terminal is in a relatively closed environment or there are obstacles around the mobile terminal, the satellite signals may be unstable or have poor signal strength, and thus positioning cannot be achieved.
Disclosure of Invention
The embodiment of the application provides a control method and device based on a positioning module, a storage medium and a mobile terminal, which can optimize a control scheme based on the positioning module in the mobile terminal.
In a first aspect, an embodiment of the present application provides a control method based on a positioning module, including:
detecting that a Global Navigation Satellite System (GNSS) module in the mobile terminal is in a state of being called by a Location Based Service (LBS) application;
acquiring a current WiFi hotspot information list searched by the mobile terminal;
judging whether a current WiFi hotspot information list contains a preset WiFi hotspot, wherein the preset WiFi hotspot comprises a WiFi hotspot in an indoor environment;
and if so, determining that the mobile terminal enters an indoor environment, and controlling the GNSS module to stop positioning.
In a second aspect, an embodiment of the present application provides a control device based on a positioning module, including:
the calling state detection module is used for detecting whether a Global Navigation Satellite System (GNSS) module in the mobile terminal is in a state called by the Location Based Service (LBS) application;
the hotspot information list acquisition module is used for acquiring a current WiFi hotspot information list searched by the mobile terminal when detecting that the GNSS module is in a state called by LBS application;
the device comprises a preset hotspot judging module, a current WiFi hotspot information list and a current WiFi hotspot judging module, wherein the preset WiFi hotspot judging module is used for judging whether a preset WiFi hotspot is included in the current WiFi hotspot information list, and the preset WiFi hotspot comprises a WiFi hotspot in an indoor environment;
and the positioning processing module is used for determining that the mobile terminal enters an indoor environment and controlling the GNSS module to stop positioning when the current WiFi hotspot information list contains a preset WiFi hotspot.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a positioning module-based control method according to an embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, including a memory, a GNSS module, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the positioning module-based control method according to the embodiment of the present application.
According to the control scheme based on the positioning module, when a GNSS module in the mobile terminal is detected to be in a state called by LBS application, a current WiFi hotspot information list searched by the mobile terminal is obtained, and if the current WiFi hotspot information list is judged to contain a preset WiFi hotspot, the mobile terminal is determined to enter an indoor environment, and the GNSS module is controlled to stop positioning. By adopting the technical scheme, when the GNSS module is in a working state due to the LBS application calling, whether the mobile terminal can search the preset WiFi hotspot is judged, so that whether the mobile terminal enters the room is judged, if the mobile terminal enters the room, the mobile terminal is not suitable for the GNSS module to work, the GNSS module is controlled to stop positioning, and the power consumption caused by idle work of the GNSS module is reduced.
Drawings
Fig. 1 is a schematic flowchart of a control method based on a positioning module according to an embodiment of the present disclosure;
fig. 2 is a schematic view of a WiFi hotspot information list interface provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a WiFi hotspot detail interface provided in an embodiment of the present application;
fig. 4 is a schematic flowchart of another positioning module-based control method according to an embodiment of the present disclosure;
fig. 5 is a schematic flowchart of another positioning module-based control method according to an embodiment of the present disclosure;
fig. 6 is a schematic flowchart of another positioning module-based control method according to an embodiment of the present disclosure;
fig. 7 is a block diagram of a control device based on a positioning module according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart illustrating a positioning module-based control method according to an embodiment of the present application, where the method may be executed by a positioning module-based control apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a mobile terminal. As shown in fig. 1, the method includes:
step 101, detecting that a GNSS module in a mobile terminal is in a state called by LBS application.
For example, the mobile terminal in the embodiment of the present application may include a mobile device such as a mobile phone and a tablet computer, which is provided with a GNSS positioning module (referred to as a GNSS module for short). The specific type of the GNSS module is not limited in the embodiments of the present application, and may include a Global Positioning System (GPS), a beidou satellite navigation System, a GALILEO satellite navigation System (GALILEO), and the like.
In the embodiment of the present application, specific types of Location Based Service (LBS) applications are not limited, and may include an electronic map application (such as a hundred degree map), a takeaway application (such as a beauty group takeout), a social contact application (such as a Wechat), an information Service application (such as a popular comment), a travel application (such as a travel taking route), and the like. Generally, when the LBS application needs to use the positioning service, it sends a call request to the GNSS module (i.e., the LBS application initiates a positioning request of a GNSS positioning mode), and if the call request is granted (i.e., if the positioning request is granted), the GNSS module is in a state called by the LBS application, and in this state, it is in a normal working mode, searches for satellite signals and obtains other related data for positioning, and further calculates the location information of the mobile terminal, and provides the location information to the LBS application, and the LBS application provides a richer service to the user according to the location information. When the GNSS module is in a state of being invoked by the LBS application, the GNSS module provides the location information to the LBS application, and it can thus detect whether the GNSS module is in a state of being invoked by the LBS application. For example, it is detected whether the LBS application receives the location information provided by the GNSS module, and if so, the GNSS module is in a state called by the LBS application.
And 102, acquiring a current WiFi hotspot information list searched by the mobile terminal.
Currently, most mobile terminals have a wireless internet access function, and the most common one is a wireless fidelity (WiFi) mode. When a wireless local area network switch (also called a WiFi switch or a wireless network connection switch) in a mobile terminal is in an on state, the mobile terminal searches surrounding WiFi hotspots, adds the searched WiFi hotspots to a WiFi hotspot information list of the mobile terminal, and generally includes names of the WiFi hotspots in the list, where the names may be Service Set Identifiers (SSIDs), and may also include signal strengths corresponding to the WiFi hotspots, and a user may select a WiFi hotspot to be connected according to an icon corresponding to the name and the signal strength and input a corresponding password (for an unencrypted hotspot, the user does not need to input a password), that is, the mobile terminal may connect to the WiFi hotspot and successfully join a corresponding wireless local area network, thereby implementing a wireless internet access function. Fig. 2 is a schematic view of a WiFi hotspot information list interface provided in an embodiment of the present application, as shown in fig. 2, a wireless local area network function switch 201 is in an on state, and a user selects to connect with a WiFi e and successfully establishes a connection with the WiFi e after inputting a password.
In daily life, people can not leave the network more and more, mobile payment, chatting, listening to music, watching videos, browsing webpages and the like can be realized by accessing the internet, the internet is accessed in a WiFi mode, the cost is high, and even some of the internet is free, so that various WiFi hotspots exist for mobile terminal users to use in order to meet the internet surfing requirements of people. For example, a user generally sets a wireless router at home, and the wireless router can be used as a WiFi hotspot for the user to connect; in an office, a computer of an employee can usually access the internet through a broadband and other modes, and when a wireless network card is integrated or externally arranged in the computer, the computer can also be used as a WiFi hotspot for connecting mobile equipment; WiFi hotspots are also provided for people in many public places, such as malls, restaurants, hospitals and the like, so that users can connect the hotspots; in the outdoors, such as a street or a tourist attraction, the mobile terminal of the user can also search for some urban service WiFi, such as iTianjin, etc.; in addition, the mobile terminal can also establish a WiFi hotspot based on a cellular mobile network, which is also called as a personal WiFi hotspot or a carry-on WiFi hotspot, and the like, so as to be used for connecting mobile terminals of friends and relatives. It follows that different WiFi hotspots may correspond to different usage environments.
In the embodiment of the application, when the GNSS module is called by the LBS application function, the current WiFi hotspot information list searched by the mobile terminal at the time is acquired according to the first preset time interval, and subsequent determination is performed on the WiFi hotspots in the list, so as to determine whether the mobile terminal is in an indoor environment. The first preset time interval may be freely set, for example, the first preset time interval may be 1 minute.
Step 103, judging whether the current WiFi hotspot information list contains a preset WiFi hotspot.
In the embodiment of the present application, the preset WiFi hotspot may include a WiFi hotspot in an indoor environment. The preset WiFi hotspot can be set by a user in advance and stored in the mobile terminal; the mobile terminal can also obtain the information from other sources such as a server and the like; the mobile terminal can also count or learn historical habit data of the WiFi function used by the user, and then the preset WiFi hotspot is determined.
For example, when using the wireless network connection function of the mobile terminal, the user may add a tag to a currently connected WiFi hotspot or a WiFi hotspot in the WiFi hotspot information list, so as to indicate whether the WiFi hotspot is a WiFi hotspot in an indoor environment. For example, as shown in FIG. 2, each WiFi hotspot is provided with a detail icon 202 at the far right, which the user can click into a details interface. Fig. 3 is a schematic diagram of a WiFi hotspot detail interface provided by an embodiment of the present application, as shown in fig. 3, an indoor WiFi setting area 301 is added in the detail interface, and a check box 302 is included in the area, and when the check box 302 is checked, it can be described that a current WiFi hotspot is an indoor WiFi hotspot. The user can select to check or uncheck the check box 302 according to actual conditions. For example, WiFi is a WiFi hotspot in the user's home, and the user may check a checkbox to identify the WiFi as an indoor WiFi hotspot. The WiFi hotspots identified as indoor WiFi hotspots become preset WiFi hotspots. In this step, it may be determined whether a WiFi hotspot identified as indoor WiFi exists in the current WiFi hotspot information list, and if so, the current WiFi hotspot includes a preset WiFi hotspot.
Illustratively, indoor/outdoor attribute information of different WiFi hotspots can be collected through a designated server, and relevant information of WiFi hotspots with attributes being indoor is collected to obtain a preset WiFi hotspot set. In this step, information, such as a name, of each WiFi hotspot in the current WiFi hotspot information list may be sent to a designated server for querying, and if it is queried that there is a WiFi hotspot in the preset WiFi hotspot set, it may be determined that the current WiFi hotspot information list includes the preset WiFi hotspot.
And step 104, if yes, determining that the mobile terminal enters an indoor environment, and controlling the GNSS module to stop positioning.
The indoor environment is not suitable for the GNSS module to work, if the GNSS module continues to be positioned after entering the indoor environment, the GNSS module cannot be positioned because the GNSS module is in the environment which is not suitable for working, the GNSS module does useless work, a lot of unnecessary power consumption is generated, and the standby time of the mobile terminal is influenced. Therefore, in the embodiment of the application, the GNSS module is controlled to stop positioning, and power consumption caused by idle work of the GNSS module is reduced. The GNSS module is controlled to stop positioning, and the GNSS module can be turned off, for example, the GNSS chip can be stopped to be powered on, so that the GNSS positioning function can be completely turned off, and the power consumption generated by the GNSS module is avoided; the GNSS module can be controlled to stop positioning, for example, the GNSS module can be controlled to stop searching for satellite signals and other related operations, and thus the GNSS module stops working, power consumption of the GNSS module due to positioning can be reduced, and when positioning is needed, the GNSS module can be quickly restored to a normal working state.
Optionally, if the current WiFi hotspot information list does not enter the indoor environment, it may be determined that the mobile terminal does not enter the indoor environment, the working state of the GNSS module may not be changed, and the current WiFi hotspot information list searched may be obtained again, so as to continuously determine whether the mobile terminal enters the indoor environment.
According to the control method based on the positioning module, when a GNSS module in the mobile terminal is detected to be in a state called by LBS application, a current WiFi hotspot information list searched by the mobile terminal is obtained, and if the current WiFi hotspot information list is judged to contain a preset WiFi hotspot, the mobile terminal is determined to enter an indoor environment, and the GNSS module is controlled to stop positioning. By adopting the technical scheme, when the GNSS module is in a working state due to the LBS application calling, whether the mobile terminal can search the preset WiFi hotspot is judged, so that whether the mobile terminal enters the room is judged, if the mobile terminal enters the room, the mobile terminal is not suitable for the GNSS module to work, the GNSS module is controlled to stop positioning, and the power consumption caused by idle work of the GNSS module is reduced.
In some embodiments, before detecting that the GNSS module in the mobile terminal is in a state invoked by the LBS application, the method further includes: acquiring WiFi hotspot connection history in the mobile terminal; and determining a preset WiFi hotspot according to the WiFi hotspot connection history. The WiFi hotspot setting method has the advantages that the preset WiFi hotspot can be automatically determined according to the use habit of the user about the WiFi hotspot, the user does not need to manually set the WiFi hotspot, the daily behavior habit of the user is met, and the accuracy is high. It can be understood that, as the time for the user to use the mobile terminal is continuously longer, the WiFi hotspot connection history is also continuously updated, so the preset WiFi hotspot can also be dynamically increased or changed.
Further, the history of WiFi hotspot connections includes: the mobile terminal comprises at least one of time for establishing connection with the WiFi hotspot, duration for establishing connection with the WiFi hotspot in a connection state, times for establishing connection with the WiFi hotspot, a verification mode when establishing connection with the WiFi hotspot, and operation executed by the mobile terminal when establishing connection with the WiFi hotspot in a connection state.
Correspondingly, the determining of the preset WiFi hotspot according to the WiFi hotspot connection history includes at least one of:
1. and when the mobile terminal is determined to be connected with a first WiFi hotspot within a preset time period of a plurality of first preset statistical cycles according to the WiFi hotspot connection history, determining the first WiFi hotspot as a preset WiFi hotspot. Wherein the plurality of fingers may be larger than a preset number threshold, and the preset number threshold may be freely set, for example, 10. For example, the first preset statistical period may be one day or one week, etc. Taking a day as an example, the preset time period may include 6 to 10 pm, the user generally goes home from work in the time period, and when it is counted that the mobile terminal of the user establishes connection with the first WiFi hotspot in the preset time period for many days, it may be stated that the first WiFi hotspot is a WiFi hotspot in the home of the user, and is a WiFi hotspot in an indoor environment, and the preset WiFi hotspot may be automatically set.
2. And when the duration that the mobile terminal is in a connection state with a second WiFi hotspot in a second preset statistical period reaches a preset duration threshold value is determined according to the WiFi hotspot connection history, determining the second WiFi hotspot as a preset WiFi hotspot. For example, the second preset statistical period may be a day, a week, or the like, and the preset time threshold may be determined according to a time length of the second preset statistical period. Assuming that the time length of the second preset statistical period is T, the preset time length threshold is T, where T ═ kT may be provided, and k is a positive number less than 1, such as 0.5 or 0.3. Taking a day as an example, the preset duration threshold may be 6 hours, in a day, the stay time of the user at an office or at home may be relatively long, and most users may not turn off the mobile terminal when sleeping, so the mobile terminal is still generally in a connection state with the WiFi hotspot, when the duration that the mobile terminal of the user is in the connection state with the second WiFi hotspot in a day reaches 6 hours, it may be said that the mobile terminal is possibly in an office or at home, and the second WiFi hotspot should also be in the office or at home of the user, is a WiFi hotspot in an indoor environment, and may be automatically set as the preset WiFi hotspot.
3. And when determining that the number of times of connection establishment between the mobile terminal and a third WiFi hotspot in a third preset statistical period reaches a preset number threshold according to the WiFi hotspot connection history, determining the third WiFi hotspot as a preset WiFi hotspot. For example, the first preset statistical period may be one week or one month, and the preset number threshold may be freely set, for example, may be 5 times. Taking a week as an example, since many outdoor WiFi hotspots are located in public areas such as streets or tourist attractions, the user generally does not go many times in a week, and therefore, the corresponding WiFi hotspots are only occasionally connected; while a WiFi hotspot where a user connects many times a week should be a place where the user often goes, such as offices, homes, and restaurants. In addition, the WiFi hotspot connected for many times is generally a WiFi hotspot trusted by the user, because the mobile terminal is currently involved in more and more personal privacy and property information, the user is generally cautious when using the mobile terminal to access the internet, many outdoor WiFi hotspots are unknown, and the user does not select to connect for many times. In summary, when the number of times that the mobile terminal of the user establishes connection with the same WiFi hotspot in the third preset statistical period reaches a certain threshold, the WiFi hotspot may be considered to be a WiFi hotspot in an indoor environment, and may be automatically set as a preset WiFi hotspot.
4. And when the verification mode that the mobile terminal is automatically connected when the mobile terminal is recently connected with a fourth WiFi hotspot is determined according to the WiFi hotspot connection history, determining the fourth WiFi hotspot as a preset WiFi hotspot. As described above, many outdoor WiFi hotspots are located in public areas such as streets or tourist attractions, and for safety, an authentication process is generally set, for example, authentication is performed through a mobile phone number, so as to ensure that a user logs in with a real name, and when the user is reconnected after disconnection, authentication still needs to be performed. And the general indoor WiFi hotspot is a WiFi hotspot trusted by the user, and after the password is input, the password does not need to be input again in the next reconnection process, but the indoor WiFi hotspot is directly and automatically connected. Therefore, when the verification mode of the mobile terminal when the mobile terminal establishes connection with the fourth WiFi hotspot last time is automatic connection, it is indicated that the WiFi hotspot is a non-public WiFi hotspot that the user has verified once, and may be considered as a WiFi hotspot in an indoor environment, and may be automatically set as a preset WiFi hotspot.
5. And when the mobile terminal is determined to be in a connection state with a fifth WiFi hotspot according to the WiFi hotspot connection history, executing an operation with a security level higher than a preset operation security level, and determining the fifth WiFi hotspot as a preset WiFi hotspot. For example, operations performed by the user in a state of connecting to the WiFi hotspot may be ranked according to the level of the security requirement, for example, the operation security level of the payment operation is high, and the operation security level of the web browsing is low in the operation security level of the chat operation. As described above, because mobile terminals are currently involved in more and more personal privacy and property information, users are generally cautious when accessing the internet using mobile terminals, many outdoor WiFi hotspots are unknown, and users generally do not pay for the operations with higher security requirements when connecting outdoor WiFi hotspots. Therefore, when the mobile terminal executes an operation with a higher security level when being connected to a WiFi hotspot, the user can be considered to trust the WiFi hotspot, which is generally an indoor WiFi hotspot, and the preset WiFi hotspot can be automatically set.
It can be understood that, in the above 5 items, the preset WiFi hotspot is automatically set by the mobile terminal, and on the basis of any one or more items, the result automatically set by the mobile terminal may be modified by the user. For example, a preset WiFi hotspot list is added in the mobile terminal, the preset WiFi hotspots contained in the preset WiFi hotspot list are automatically set by the mobile terminal, the preset WiFi hotspot list can be displayed on a screen for a user to look up and edit, and the user can perform operations such as adding, deleting and modifying the preset WiFi hotspots in the preset WiFi hotspot list. The advantage of this arrangement is that the preset WiFi hotspot can be more accurately used to identify whether the mobile terminal is in an indoor environment.
In some embodiments, the predetermined WiFi hotspot does not include a WiFi hotspot established based on a cellular mobile network. Since the cellular mobile network is generally provided by a network operator, such as china mobile, and traffic charges need to be paid, when the WiFi mode can be selected for internet access, the user generally does not select to access the internet through the cellular mobile network. In many outdoor environments, many places do not have the WiFi internet access condition, and some users may start the personal hotspot function to establish a WiFi hotspot based on the cellular mobile network, so that other mobile devices of the users or mobile devices of friends can search and connect the WiFi hotspot to realize internet access. It can be seen that the benefit of excluding WiFi hotspots established based on cellular mobile networks here is to prevent such WiFi hotspots from being misidentified as indoor WiFi hotspots. For example, whether the WiFi hotspot is established based on the cellular mobile network may be identified according to whether the name of the WiFi hotspot contains a preset keyword, generally, the name of the WiFi hotspot contains words such as "phone", "handset", "pad", or "XX hotspot", and when one WiFi hotspot contains the words, the WiFi hotspot established based on the cellular mobile network may be considered.
In some embodiments, determining whether the current WiFi hotspot information list includes a preset WiFi hotspot includes: acquiring attribute information of each WiFi hotspot in a current WiFi hotspot information list, wherein the attribute information comprises a WiFi name and/or an additional identifier; for each WiFi hotspot in the current WiFi hotspot information list, analyzing whether the current WiFi hotspot belongs to a public WiFi hotspot in an indoor environment or not according to the attribute information of the current WiFi hotspot; and if at least one public WiFi hotspot of the indoor environment exists, determining that the current WiFi hotspot information list contains a preset WiFi hotspot. The advantage of setting up like this is that can successfully discern the public wiFi focus that is in indoor environment, judges more accurately whether mobile terminal is in indoor environment. Generally, many public places such as shopping malls, restaurants, airports, hospitals and the like provide WiFi hotspots for users to connect to, in order to distinguish from other WiFi hotspots, the hotspot name generally includes personalized characters, which may be chinese, english, pinyin or initials, and the like, such as "happy city", "joyity", "kendiry", "kfc", "airport" and "general hospital", and the WiFi name may be analyzed to determine whether it is a public WiFi hotspot in an indoor environment. In addition, some public WiFi hotspots may have additional identifiers to indicate the holder of the WiFi hotspot, and it may also be determined whether the public WiFi hotspot in the indoor environment is the public WiFi hotspot by analyzing the information in the additional identifiers.
In some embodiments, the determining that the mobile terminal enters an indoor environment and controlling the GNSS module to stop positioning if the mobile terminal enters the indoor environment includes: if yes, judging whether the signal intensity corresponding to the contained preset WiFi hotspot reaches a preset intensity threshold value; and if so, determining that the mobile terminal enters an indoor environment, and controlling the GNSS module to stop positioning. This has the advantage of avoiding misidentification as indoor of situations where some mobile terminals are in an outdoor environment. When the signal strength of the indoor WiFi hotspot is high, there are few situations, and an outdoor area close to the WiFi hotspot may also search for the WiFi hotspot, for example, outside a restaurant, and at this time, if it is determined that the indoor environment is an indoor environment because the indoor WiFi hotspot is included in the current WiFi hotspot information list, misjudgment may occur. Although an indoor WiFi hotspot may be searched outdoors, due to the isolation effect of a wall or a door, a signal is generally weak, so that when the current WiFi hotspot information list is judged to contain a preset WiFi hotspot, the signal intensity of the hotspot is further verified, and if the signal intensity reaches a preset intensity threshold value, the indoor environment can be determined to be in fact; conversely, if the signal strength does not reach the predetermined strength threshold, it may indicate that the device is not in an indoor environment but in an outdoor environment. The preset intensity threshold value can be set according to actual conditions.
In some embodiments, after controlling the GNSS module to stop positioning, the method further includes: and providing the position information to the LBS application by adopting a positioning mode except the GNSS positioning mode. Positioning manners other than the GNSS positioning manner may include positioning manners such as base station positioning or network positioning (e.g., WiFi positioning), and may also include a manner of assisting positioning using a sensor. For example, motion data of the mobile terminal is acquired by a motion sensor, and position information is provided according to the motion data. The motion sensor may include an acceleration sensor, a gravity sensor, a gyroscope, a geomagnetic sensor, and the like. For example, when the GNSS module is controlled to stop positioning, the current position is positioned in a WiFi positioning manner, the motion data acquired by the motion sensor can be used to calculate the motion speed, the moving distance, the rotation angle, and the like of the mobile terminal, and then the current position is combined with the positioned current position to obtain the real-time position of the mobile terminal, thereby continuously providing the position information. Wherein the current location may be a latitude and longitude coordinate. The power consumption generated by the motion sensor is low, the usability of the positioning function can be ensured when the GNSS module cannot be positioned, the position service is provided for the user, and the power consumption of the mobile terminal is reduced.
In some embodiments, after controlling the GNSS module to stop positioning, the method further includes: and re-acquiring the current WiFi hotspot information list searched by the mobile terminal, and if the current WiFi hotspot information list does not contain a preset WiFi hotspot, controlling the GNSS module to provide position information for the LBS application when the LBS application is determined to need to use positioning service. For example, if the WiFi hotspot information list obtained again does not include the preset WiFi hotspot after controlling the GNSS module to stop positioning, it may be indicated that the mobile terminal is likely to leave the indoor environment. The advantage of setting up like this is that, when the user leaves indoor environment, when arriving outdoor environment, the GNSS module can realize normal positioning, in order to guarantee the precision and the degree of accuracy of location result, can let the GNSS module resume normal work. And if the LBS application still needs to acquire the position information or the LBS application sends a call request for the GNSS module again, controlling the GNSS module to perform positioning related operation and providing the position information for the LBS application.
In some embodiments, in order to more accurately identify the indoor environment and avoid the situation that the GNSS module cannot normally provide the location information for the LBS application due to the occurrence of the false identification, the determination may be performed in combination with other determination conditions. For example, if the mobile terminal enters the indoor environment, the controlling the GNSS module to stop positioning may include: if the current position is located in a locating mode other than the GNSS locating mode, corresponding weather information is obtained according to the current position, weather related data is collected through a preset sensor in the mobile terminal, the collected weather related data is compared with the weather information, whether the mobile terminal enters the indoor environment or not is judged according to a comparison result, and if the mobile terminal enters the indoor environment, the GNSS module is controlled to stop locating. The advantage of this arrangement is that whether the mobile terminal enters the indoor environment can be further verified according to weather conditions, and misjudgment is prevented.
Further, the comparing the collected weather-related data with the weather information includes: acquiring sampling values of preset items in the collected weather related data; comparing the sampling value with a standard value corresponding to the preset item in the weather information; wherein the preset items comprise any one or more of air temperature, humidity, illumination intensity, ultraviolet intensity, wind power and air quality. Taking the preset items including air temperature as an example, the air temperature value contained in the weather information is a standard value of the outdoor temperature, and the mobile terminal can acquire the environmental temperature through a built-in temperature sensor as a sampling value of the air temperature. Optionally, the temperature sensor is located on the inner surface of the mobile terminal housing and is far away from a position prone to heat in the mobile terminal. The benefit of this arrangement is that the results of measurements on the inner surface of the housing are closer to the ambient temperature, and the remote location of the easily heatable position can avoid the heat generated by the mobile terminal itself from affecting the measurements. The heat-prone position may include a processing chip position, a charging chip position, a camera position, and the like. In addition, when the ambient temperature is collected through the temperature sensor, the application program running in the background can be closed, and the heat generated by the mobile terminal can be further reduced. Generally, because the existence of the isolation effect of wall for indoor outer temperature has the difference, especially in summer and winter, or outdoor weather is when comparatively bad (for example overcast and rainy day or wind is big etc.), indoor outer temperature difference is great, because weather is hot or when colder, usable air conditioner or heating equipment etc. adjust the temperature, can make indoor temperature be different from outdoor temperature, if the sampling value is great with the standard value difference, can explain that mobile terminal is in indoor environment. For example, the current positions of the positioning are tianjin city and the equal district, the temperature obtained from tianjin city and the equal district is 4 degrees celsius, the standard value is 4, and if the mobile terminal is indoors, the indoor environment is warmer, the sampling value may be 20, and it can be determined that the mobile terminal is indoors if the difference between the sampling value and the standard value is large.
Further, determining whether the mobile terminal enters an indoor environment according to the comparison result may include: when the number of preset items meeting preset indoor judgment conditions reaches a preset number threshold, determining that the mobile terminal enters an indoor environment; wherein the preset indoor determination condition includes: and the difference between the sampling value corresponding to the preset item and the standard value reaches a corresponding preset threshold value. This has the advantage that the accuracy of the indoor decision can be enhanced.
Further, the acquiring weather-related data by a preset sensor in the mobile terminal includes: determining preset items according to the numerical values of all items in the weather information; and collecting weather related data through a sensor corresponding to the preset item in the mobile terminal. The method has the advantages that the mobile terminal is pointed to acquire the weather related data, so that the data volume acquired by the mobile terminal can be reduced, the judging steps are reduced, and the judgment of indoor and outdoor environments is accelerated. For example, an item favorable for rapidly judging the indoor and outdoor environments can be estimated in advance according to the current numerical values of the items contained in the weather information, and the estimated item is used as a preset item, so that the purpose of screening the preset item is achieved. For example, if the temperature in the weather information is-10 degrees celsius, which indicates that the outdoor environment is very cold, the difference between the indoor temperature and the outdoor temperature is very large, the temperature can be determined as a preset item, the mobile terminal is instructed to acquire the temperature through the temperature sensor, and then the mobile terminal can be quickly judged to be in the indoor environment according to the temperature difference. For another example, the temperature in the weather information is 25 degrees celsius, which indicates that the outdoor temperature is moderate, and then the difference between the indoor temperature and the outdoor temperature may be small, which is not beneficial to the determination, and the item with unexpected temperature can be determined as the preset item.
Further, if entering the indoor environment, controlling the GNSS module to stop positioning includes: if the mobile terminal enters the indoor environment, judging whether the mobile terminal is in the automobile or not; and if the GNSS module is not positioned in the automobile, controlling the GNSS module to stop positioning. Optionally, the determining whether the mobile terminal is located inside the automobile includes: shooting an image through a camera of the mobile terminal; and when the image is identified to contain the road scene or the objects in the automobile, determining that the mobile terminal is positioned in the automobile. The advantage of this arrangement is that misjudgment can be avoided. When the user is in the car, the environment in the car is also relatively closed, and can also be adjusted through on-vehicle air conditioner, humidity control device or air purifier etc. to the environment in the car, be easily by the indoor environment of misidentification, and because the reason of the vehicle material, the influence to the satellite signal that the GNSS module searched is less, still can realize the location, so the GNSS module can continue normal work when in the car.
Fig. 4 is a schematic flowchart of another positioning module-based control method according to an embodiment of the present application, where the method includes the following steps:
step 401, obtaining a WiFi hotspot connection history in the mobile terminal, and determining a preset WiFi hotspot according to the WiFi hotspot connection history.
Wherein the WiFi hotspot connection history comprises: the method comprises the steps of establishing connection with a WiFi hotspot, the time length of the connection with the WiFi hotspot in a connection state, the connection times with the WiFi hotspot, a verification mode when the connection with the WiFi hotspot is established, and the operation executed by the mobile terminal when the connection with the WiFi hotspot is in a connection state.
Determining a preset WiFi hotspot according to the WiFi hotspot connection history, wherein the method comprises the following steps:
when the mobile terminal is determined to be connected with a first WiFi hotspot within a preset time period of a plurality of first preset statistical cycles according to the WiFi hotspot connection history, determining the first WiFi hotspot as a preset WiFi hotspot; when the duration that the mobile terminal is in a connection state with a second WiFi hotspot in a second preset statistical period reaches a preset duration threshold value is determined according to the WiFi hotspot connection history, determining the second WiFi hotspot as a preset WiFi hotspot; when the number of times of establishing connection between the mobile terminal and a third WiFi hotspot in a third preset statistical period reaches a preset number threshold is determined according to the WiFi hotspot connection history, determining the third WiFi hotspot as a preset WiFi hotspot; when the verification mode that the mobile terminal is automatically connected when the mobile terminal is recently connected with the fourth WiFi hotspot is determined according to the WiFi hotspot connection history, determining the fourth WiFi hotspot as a preset WiFi hotspot; and when the fact that the mobile terminal is in a connection state with the fifth WiFi hotspot according to the WiFi hotspot connection history is determined, the operation with the safety level higher than the preset operation safety level is executed, the fifth WiFi hotspot is determined as the preset WiFi hotspot.
Step 402, detecting that the GNSS module in the mobile terminal is in a state called by the LBS application.
And step 403, acquiring a current WiFi hotspot information list searched by the mobile terminal.
Step 404, judging whether the current WiFi hotspot information list contains a preset WiFi hotspot, if so, executing step 405; otherwise, return to execute step 403.
And 405, determining that the mobile terminal enters an indoor environment, and controlling the GNSS module to stop positioning.
Step 406, providing location information to the LBS application via WiFi positioning.
Step 407, the current WiFi hotspot information list searched by the mobile terminal is obtained again.
Step 408, judging whether the current WiFi hotspot information list obtained again contains a preset WiFi hotspot, if yes, returning to execute step 407; otherwise, step 409 is performed.
Step 409, controlling the GNSS module to provide location information to the LBS application when it is determined that the LBS application needs to use the location service.
According to the control method based on the positioning module, the preset WiFi hotspot is determined according to the use habit of a user, when the GNSS module is detected to be in the state called by the LBS application, the current WiFi hotspot information list searched by the mobile terminal is obtained, whether the mobile terminal enters the indoor environment or not is determined according to the fact that the preset WiFi hotspot is contained in the current WiFi hotspot information list, the GNSS module is controlled to stop positioning after entering the indoor environment, power consumption waste caused by idle work of the GNSS module in the indoor environment is avoided, position information is provided for the LBS application in a WiFi positioning mode, and normal work of the LBS application is guaranteed. And after the GNSS module is controlled to stop positioning, whether the mobile terminal can search a preset WiFi hotspot is continuously judged, and whether the mobile terminal leaves the indoor environment is further judged, so that the GNSS module is timely controlled to provide position information for LBS application, and positioning precision and accuracy are guaranteed.
Fig. 5 is a schematic flowchart of another positioning module-based control method according to an embodiment of the present application, where the method includes:
step 501, a WiFi hotspot connection history in the mobile terminal is obtained, and a first type of preset WiFi hotspot is determined according to the WiFi hotspot connection history.
Step 502, detecting that the GNSS module in the mobile terminal is in a state called by the LBS application.
Step 503, acquiring a current WiFi hotspot information list searched by the mobile terminal.
Step 504, judging whether the current WiFi hotspot information list contains a first-type preset WiFi hotspot, if so, executing step 507; otherwise, step 505 is performed.
Step 505, acquiring names of all WiFi hotspots in a current WiFi hotspot information list, analyzing whether a public WiFi hotspot of an indoor environment exists in the list according to the names, and if so, executing step 506; otherwise, return to execute step 503.
Step 506, determining that a second type of preset WiFi hotspot exists in the current WiFi hotspot information list.
And the second type of preset WiFi hotspot is a public WiFi hotspot in an indoor environment.
Step 507, judging whether the signal intensity corresponding to the contained preset WiFi hotspot reaches a preset intensity threshold, if so, executing step 508; otherwise, return to execute step 503.
The preset WiFi hotspots in this step may include the first type of preset WiFi hotspot and the second type of preset WiFi hotspot.
And step 508, determining that the mobile terminal enters an indoor environment, and controlling the GNSS module to stop positioning.
The control method based on the positioning module, provided by the embodiment of the application, determines a first-class preset WiFi hotspot according to the use habit of a user, acquires a current WiFi hotspot information list searched by the mobile terminal when detecting that the GNSS module is in a state called by LBS application, determines that the mobile terminal enters an indoor environment if the current WiFi hotspot information list includes the first-class preset WiFi hotspot, and continuously judges whether a second-class preset WiFi hotspot exists if the current WiFi hotspot information list does not include the first-class preset WiFi hotspot, so as to prevent missed judgment. In addition, in order to avoid misjudgment, judgment of the signal strength of the searched preset WiFi hotspot is added. Finally, the GNSS module is controlled to stop positioning when the mobile terminal is confirmed to enter the indoor environment, and power consumption waste caused by idle work of the GNSS module in the room is avoided.
Fig. 6 is a schematic flowchart of another positioning module-based control method according to an embodiment of the present application, where the method includes:
step 601, obtaining WiFi hotspot connection history in the mobile terminal, and determining a preset WiFi hotspot according to the WiFi hotspot connection history.
Step 602, it is detected that the GNSS module in the mobile terminal is in a state of being invoked by the LBS application.
Step 603, acquiring a current WiFi hotspot information list searched by the mobile terminal.
Step 604, judging whether the current WiFi hotspot information list contains a preset WiFi hotspot, if yes, executing step 605; otherwise, return to execute step 603.
And 605, positioning the current position in a WiFi positioning mode, and acquiring corresponding weather information according to the current position.
Step 606, collecting weather related data through a preset sensor in the mobile terminal.
Step 607, judging whether the mobile terminal enters the indoor environment according to the comparison result of the weather related data and the weather information, if so, executing step 608; otherwise, return to execute step 603.
Step 608, controlling the GNSS module to stop positioning.
According to the control method based on the positioning module, whether the mobile terminal enters the indoor environment or not can be judged more accurately by combining judgment of the preset WiFi hotspot in the indoor environment with weather condition judgment, and the LBS application is refused to call the GNSS module when the mobile terminal is determined to enter the indoor environment, so that power consumption waste caused by idle work of the GNSS module in the indoor environment is avoided.
Fig. 7 is a block diagram of a positioning module-based control apparatus according to an embodiment of the present disclosure, which may be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and may perform a positioning module-based control method to perform relevant control on a GNSS module in the mobile terminal. As shown in fig. 7, the apparatus includes:
a call state detection module 701 for detecting whether a global navigation satellite system GNSS module in the mobile terminal is in a state called by the location based service LBS application;
a hotspot information list obtaining module 702, configured to obtain a current WiFi hotspot information list searched by the mobile terminal when detecting that the GNSS module is in a state called by the LBS application;
a preset hotspot determining module 703, configured to determine whether a current WiFi hotspot information list includes a preset WiFi hotspot, where the preset WiFi hotspot includes a WiFi hotspot in an indoor environment;
and the positioning processing module 704 is configured to determine that the mobile terminal enters an indoor environment and control the GNSS module to stop positioning when it is determined that the current WiFi hotspot information list includes a preset WiFi hotspot.
According to the positioning module-based control device provided in the embodiment of the application, when a GNSS module in a mobile terminal is detected to be in a state called by LBS application, a current WiFi hotspot information list searched by the mobile terminal is obtained, and if the current WiFi hotspot information list is judged to contain a preset WiFi hotspot, the mobile terminal is determined to enter an indoor environment, and the GNSS module is controlled to stop positioning. By adopting the technical scheme, when the GNSS module is in a working state due to the LBS application calling, whether the mobile terminal can search the preset WiFi hotspot is judged, so that whether the mobile terminal enters the room is judged, if the mobile terminal enters the room, the mobile terminal is not suitable for the GNSS module to work, the GNSS module is controlled to stop positioning, and the power consumption caused by idle work of the GNSS module is reduced.
Optionally, the apparatus may further comprise:
the mobile terminal comprises a connection history acquisition module, a service module and a service module, wherein the connection history acquisition module is used for acquiring WiFi hotspot connection history in the mobile terminal before detecting that a GNSS module in the mobile terminal is in a state called by LBS application;
and the preset WiFi hotspot determining module is used for determining a preset WiFi hotspot according to the WiFi hotspot connection history.
Optionally, the WiFi hotspot connection history includes: at least one of time for establishing connection with the WiFi hotspot, duration for establishing connection with the WiFi hotspot in a connected state, times for establishing connection with the WiFi hotspot, a verification mode when establishing connection with the WiFi hotspot, and an operation executed by the mobile terminal when establishing connection with the WiFi hotspot in a connected state;
the determining of the preset WiFi hotspot according to the WiFi hotspot connection history comprises at least one of the following steps:
when the mobile terminal is determined to be connected with a first WiFi hotspot within a preset time period of a first preset statistical cycle according to the WiFi hotspot connection history, determining the first WiFi hotspot as a preset WiFi hotspot;
when the fact that the duration of the mobile terminal in a connection state with a second WiFi hotspot in a second preset statistical period reaches a preset duration threshold value is determined according to the WiFi hotspot connection history, determining the second WiFi hotspot as a preset WiFi hotspot;
when the number of times of establishing connection between the mobile terminal and a third WiFi hotspot in a third preset statistical period reaches a preset number threshold value is determined according to the WiFi hotspot connection history, determining the third WiFi hotspot as a preset WiFi hotspot;
when the verification mode that the mobile terminal is automatically connected when the mobile terminal is recently connected with a fourth WiFi hotspot is determined according to the WiFi hotspot connection history, determining the fourth WiFi hotspot as a preset WiFi hotspot;
and when the mobile terminal is determined to be in a connection state with a fifth WiFi hotspot according to the WiFi hotspot connection history, executing an operation with a security level higher than a preset operation security level, and determining the fifth WiFi hotspot as a preset WiFi hotspot.
Optionally, the preset WiFi hotspot does not include a WiFi hotspot established based on a cellular mobile network.
Optionally, the determining whether the current WiFi hotspot information list includes a preset WiFi hotspot includes:
acquiring attribute information of each WiFi hotspot in a current WiFi hotspot information list, wherein the attribute information comprises a WiFi name and/or an Internet Protocol (IP) address;
for each WiFi hotspot in the current WiFi hotspot information list, analyzing whether the current WiFi hotspot belongs to a public WiFi hotspot in an indoor environment or not according to the attribute information of the current WiFi hotspot;
and if at least one public WiFi hotspot of the indoor environment exists, determining that the current WiFi hotspot information list contains a preset WiFi hotspot.
Optionally, when it is determined that the current WiFi hotspot information list includes a preset WiFi hotspot, determining that the mobile terminal enters an indoor environment, and controlling the GNSS module to stop positioning includes:
when the current WiFi hotspot information list is judged to contain the preset WiFi hotspot, whether the signal intensity corresponding to the contained preset WiFi hotspot reaches a preset intensity threshold value is judged;
and if so, determining that the mobile terminal enters an indoor environment, and controlling the GNSS module to stop positioning.
Optionally, the apparatus further comprises: and the position information providing control module is used for reacquiring the current WiFi hotspot information list searched by the mobile terminal after controlling the GNSS module to stop positioning, and controlling the GNSS module to provide position information for the LBS application when determining that the LBS application needs to use positioning service if the current WiFi hotspot information list does not contain a preset WiFi hotspot.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for location-based module control, the method including:
detecting that a Global Navigation Satellite System (GNSS) module in the mobile terminal is in a state of being called by a Location Based Service (LBS) application;
acquiring a current WiFi hotspot information list searched by the mobile terminal;
judging whether a current WiFi hotspot information list contains a preset WiFi hotspot, wherein the preset WiFi hotspot comprises a WiFi hotspot in an indoor environment;
and if so, determining that the mobile terminal enters an indoor environment, and controlling the GNSS module to stop positioning.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the positioning module-based control operation described above, and may also perform related operations in the positioning module-based control method provided in any embodiment of the present application.
The embodiment of the application provides a mobile terminal, and the control device based on the positioning module provided by the embodiment of the application can be integrated in the mobile terminal. Fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. The mobile terminal 800 may include: the positioning module-based control method includes a memory 801, a processor 802, a GNSS module 803 and a computer program stored on the memory 801 and executable by the processor 802, wherein the processor 802 implements the positioning module-based control method according to the embodiment of the present application when executing the computer program.
According to the mobile terminal provided by the embodiment of the application, when the GNSS module is in a working state due to the LBS application calling, whether the mobile terminal can search the preset WiFi hotspot is judged, so that whether the mobile terminal enters the room or not is judged, if the mobile terminal enters the room, the mobile terminal is not suitable for the GNSS module to work, the GNSS module is controlled to stop positioning, and the power consumption caused by useless work of the GNSS module is reduced.
Fig. 9 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application, where the mobile terminal may include: a casing (not shown), a memory 901, a GPS chip (not shown), a Central Processing Unit (CPU) 902 (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 CPU902 and the memory 901 are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory 901 is used for storing executable program codes; the CPU902 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 901, so as to implement the following steps:
detecting that a Global Navigation Satellite System (GNSS) module in the mobile terminal is in a state of being called by a Location Based Service (LBS) application;
acquiring a current WiFi hotspot information list searched by the mobile terminal;
judging whether a current WiFi hotspot information list contains a preset WiFi hotspot, wherein the preset WiFi hotspot comprises a WiFi hotspot in an indoor environment;
and if so, determining that the mobile terminal enters an indoor environment, and controlling the GNSS module to stop positioning.
The mobile terminal further includes: peripheral interface 903, RF (Radio Frequency) circuitry 905, audio circuitry 906, speakers 911, power management chip 908, input/output (I/O) subsystems 909, other input/control devices 910, touch screen 912, other input/control devices 910, and external port 904, which communicate through one or more communication buses or signal lines 907.
It should be understood that the illustrated mobile terminal 900 is merely one example of a mobile terminal and that the mobile terminal 900 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a mobile terminal for performing relevant control on a GNSS module according to this embodiment, where the mobile terminal is a mobile phone as an example.
Memory 901, the memory 901 being accessible by the CPU902, the peripheral interface 903, etc., the memory 901 may comprise high speed random access memory, and may also comprise 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 903, the peripheral interface 903 may connect input and output peripherals of the device to the CPU902 and the memory 901.
An I/O subsystem 909, which I/O subsystem 909 may connect input and output peripherals on the device, such as a touch screen 912 and other input/control devices 910, to the peripheral interface 903. The I/O subsystem 909 may include a display controller 9091 and one or more input controllers 9092 for controlling other input/control devices 910. Where one or more input controllers 9092 receive electrical signals from or send electrical signals to other input/control devices 910, the other input/control devices 910 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 9092 may be connected with any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 912, which is 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 9091 in the I/O subsystem 909 receives electrical signals from the touch screen 912 or transmits electrical signals to the touch screen 912. The touch screen 912 detects a contact on the touch screen, and the display controller 9091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 912, that is, to implement a human-computer interaction, where the user interface object displayed on the touch screen 912 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 905 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 905 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 905 converts electrical signals to or from electromagnetic signals and communicates with a communication network and other devices. The RF circuitry 905 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 906 is mainly used to receive audio data from the peripheral interface 903, convert the audio data into an electric signal, and transmit the electric signal to the speaker 911.
The speaker 911 is used to convert the voice signal received by the mobile phone from the wireless network through the RF circuit 905 into sound and play the sound to the user.
And the power management chip 908 is used for supplying power and managing power to the hardware connected with the CPU902, the I/O subsystem and the peripheral interfaces.
The control device, the storage medium and the mobile terminal based on the positioning module provided in the above embodiments can execute the control method based on the positioning module provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. Technical details that are not described in detail in the above embodiments may be referred to a control method based on a positioning module provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (9)

1. A control method based on a positioning module is characterized by comprising the following steps:
detecting that a Global Navigation Satellite System (GNSS) module in the mobile terminal is in a state of being called by a Location Based Service (LBS) application;
acquiring a current wireless fidelity WiFi hotspot information list searched by the mobile terminal;
judging whether a current WiFi hotspot information list contains a preset WiFi hotspot, wherein the preset WiFi hotspot comprises a WiFi hotspot in an indoor environment;
if yes, determining that the mobile terminal enters an indoor environment, and controlling the GNSS module to stop positioning;
before detecting that the GNSS module in the mobile terminal is in a state called by the LBS application, the method further comprises the following steps:
acquiring WiFi hotspot connection history in the mobile terminal;
and determining a preset WiFi hotspot according to the WiFi hotspot connection history.
2. The method of claim 1, wherein the WiFi hotspot connection history comprises: at least one of time for establishing connection with the WiFi hotspot, duration for establishing connection with the WiFi hotspot in a connected state, times for establishing connection with the WiFi hotspot, a verification mode when establishing connection with the WiFi hotspot, and an operation executed by the mobile terminal when establishing connection with the WiFi hotspot in a connected state;
the determining of the preset WiFi hotspot according to the WiFi hotspot connection history comprises at least one of the following steps:
when the mobile terminal is determined to be connected with a first WiFi hotspot within a preset time period of a first preset statistical cycle according to the WiFi hotspot connection history, determining the first WiFi hotspot as a preset WiFi hotspot;
when the fact that the duration of the mobile terminal in a connection state with a second WiFi hotspot in a second preset statistical period reaches a preset duration threshold value is determined according to the WiFi hotspot connection history, determining the second WiFi hotspot as a preset WiFi hotspot;
when the number of times of establishing connection between the mobile terminal and a third WiFi hotspot in a third preset statistical period reaches a preset number threshold value is determined according to the WiFi hotspot connection history, determining the third WiFi hotspot as a preset WiFi hotspot;
when the verification mode that the mobile terminal is automatically connected when the mobile terminal is recently connected with a fourth WiFi hotspot is determined according to the WiFi hotspot connection history, determining the fourth WiFi hotspot as a preset WiFi hotspot;
and when the mobile terminal is determined to be in a connection state with a fifth WiFi hotspot according to the WiFi hotspot connection history, executing an operation with a security level higher than a preset operation security level, and determining the fifth WiFi hotspot as a preset WiFi hotspot.
3. The method of any of claims 1-2, wherein the predefined WiFi hotspots do not include WiFi hotspots established based on cellular mobile networks.
4. The method of claim 1, wherein a predefined WiFi hotspot determined according to the WiFi hotspot connection history is noted as a first class of predefined WiFi hotspot;
judging whether the current WiFi hotspot information list contains a preset WiFi hotspot or not, including:
judging whether the current WiFi hotspot information list contains a first-type preset WiFi hotspot or not;
if not, acquiring attribute information of each WiFi hotspot in a current WiFi hotspot information list, wherein the attribute information comprises a WiFi name and/or an Internet protocol IP address;
for each WiFi hotspot in the current WiFi hotspot information list, analyzing whether the current WiFi hotspot belongs to a public WiFi hotspot in an indoor environment or not according to the attribute information of the current WiFi hotspot;
if at least one public WiFi hotspot of the indoor environment exists, determining that a second type of preset WiFi hotspot is contained in the current WiFi hotspot information list;
if yes, determining that the mobile terminal enters an indoor environment, and the method comprises the following steps:
and if the mobile terminal comprises the second type of preset WiFi hotspot, determining that the mobile terminal is in the indoor environment.
5. The method according to claim 1, wherein the determining that the mobile terminal enters an indoor environment and controlling the GNSS module to stop positioning if included comprises:
if yes, judging whether the signal intensity corresponding to the contained preset WiFi hotspot reaches a preset intensity threshold value;
and if so, determining that the mobile terminal enters an indoor environment, and controlling the GNSS module to stop positioning.
6. The method of claim 1, further comprising, after controlling the GNSS module to stop positioning:
and re-acquiring the current WiFi hotspot information list searched by the mobile terminal, and if the current WiFi hotspot information list does not contain a preset WiFi hotspot, controlling the GNSS module to provide position information for the LBS application when the LBS application is determined to need to use positioning service.
7. A control device based on a positioning module, comprising:
the calling state detection module is used for detecting whether a Global Navigation Satellite System (GNSS) module in the mobile terminal is in a state called by the Location Based Service (LBS) application;
the hot spot information list acquisition module is used for acquiring a current wireless fidelity WiFi hot spot information list searched by the mobile terminal when detecting that the GNSS module is in a state called by LBS application;
the device comprises a preset hotspot judging module, a current WiFi hotspot information list and a current WiFi hotspot judging module, wherein the preset WiFi hotspot judging module is used for judging whether a preset WiFi hotspot is included in the current WiFi hotspot information list, and the preset WiFi hotspot comprises a WiFi hotspot in an indoor environment;
the positioning processing module is used for determining that the mobile terminal enters an indoor environment and controlling the GNSS module to stop positioning when the current WiFi hotspot information list contains a preset WiFi hotspot;
the mobile terminal comprises a connection history acquisition module, a service module and a service module, wherein the connection history acquisition module is used for acquiring WiFi hotspot connection history in the mobile terminal before detecting that a GNSS module in the mobile terminal is in a state called by LBS application;
and the preset WiFi hotspot determining module is used for determining a preset WiFi hotspot according to the WiFi hotspot connection history.
8. 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 positioning module-based control method according to any one of claims 1-6.
9. A mobile terminal comprising a memory, a global navigation satellite system, GNSS, module, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the positioning module based control method according to any of claims 1-6 when executing the computer program.
CN201711325856.6A 2017-12-13 2017-12-13 Control method and device based on positioning module, storage medium and mobile terminal Active CN108064024B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711325856.6A CN108064024B (en) 2017-12-13 2017-12-13 Control method and device based on positioning module, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711325856.6A CN108064024B (en) 2017-12-13 2017-12-13 Control method and device based on positioning module, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN108064024A CN108064024A (en) 2018-05-22
CN108064024B true CN108064024B (en) 2020-01-14

Family

ID=62138379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711325856.6A Active CN108064024B (en) 2017-12-13 2017-12-13 Control method and device based on positioning module, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN108064024B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257700B (en) * 2018-11-19 2020-11-06 广东小天才科技有限公司 Positioning method, server and system based on positioning deviation rectification
CN110167118A (en) * 2019-05-27 2019-08-23 广东乐芯智能科技有限公司 A kind of wearable device saves the method and system of network flow
WO2021088065A1 (en) * 2019-11-08 2021-05-14 华为技术有限公司 Wireless positioning method and device
CN111103611B (en) * 2020-01-16 2021-09-07 合肥四相至新科技有限公司 UWB and GPS integrated positioning method and system
CN112135260B (en) * 2020-08-26 2023-03-10 宇龙计算机通信科技(深圳)有限公司 Control method of main control unit, reporting method of position information and tracker
CN116202514A (en) * 2021-11-30 2023-06-02 华为技术有限公司 Method for detecting vehicle entering indoor environment, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856989A (en) * 2012-11-28 2014-06-11 中国电信股份有限公司 Method and system for positioning switching between indoor and outdoor, terminal and positioning application platform
CN104539782A (en) * 2014-12-19 2015-04-22 广东欧珀移动通信有限公司 Event promoting method and device
CN105407497A (en) * 2015-12-08 2016-03-16 北京百度网讯科技有限公司 Indoor and outdoor position judging method and device
CN106550446A (en) * 2015-09-18 2017-03-29 北京奇宝科技有限公司 Localization method and geographical position monitoring device
CN107172205A (en) * 2017-06-29 2017-09-15 腾讯科技(深圳)有限公司 Pushed information processing method, mobile terminal and computer-readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130260790A1 (en) * 2012-04-02 2013-10-03 Storewards Ltd. Method and system for providing location identification

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856989A (en) * 2012-11-28 2014-06-11 中国电信股份有限公司 Method and system for positioning switching between indoor and outdoor, terminal and positioning application platform
CN104539782A (en) * 2014-12-19 2015-04-22 广东欧珀移动通信有限公司 Event promoting method and device
CN106550446A (en) * 2015-09-18 2017-03-29 北京奇宝科技有限公司 Localization method and geographical position monitoring device
CN105407497A (en) * 2015-12-08 2016-03-16 北京百度网讯科技有限公司 Indoor and outdoor position judging method and device
CN107172205A (en) * 2017-06-29 2017-09-15 腾讯科技(深圳)有限公司 Pushed information processing method, mobile terminal and computer-readable storage medium

Also Published As

Publication number Publication date
CN108064024A (en) 2018-05-22

Similar Documents

Publication Publication Date Title
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
CN109891934B (en) Positioning method and device
CN108111971B (en) Positioning method, positioning device, storage medium and mobile terminal
CN108055642B (en) Control method and device of positioning module, storage medium and mobile terminal
US11012807B2 (en) Location service management
CN108169775B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN103563406B (en) Monitoring geofence exit
CN108076428B (en) Control method and device based on positioning module, storage medium and mobile terminal
US20110034129A1 (en) Portable terminal providing environment adapted to present situation and method for operating the same
CN108093368B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108008423B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN106201448B (en) Information processing method and user terminal
WO2020077485A1 (en) Geo-fence updating method, and communication device
CN108076507B (en) Positioning mode control method and device, storage medium and mobile terminal
JP2016515198A (en) User-in-the-loop architecture for indoor positioning
TW201814644A (en) Systems, methods and devices for virtual fencing
US11102644B2 (en) Network configuration method and apparatus
CN108020851B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN110622528B (en) Information recommendation method and device
CN108093362A (en) Control method, device, storage medium and the terminal of locating module
CN108040320B (en) GNSS positioning control method and device, storage medium and mobile terminal
CN107835304B (en) Method and device for controlling mobile terminal, mobile terminal and storage medium
US20160212592A1 (en) Positioning method and device
CN105530332B (en) The processing method and processing device of location information

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: OPPO Guangdong Mobile Communications Co., Ltd.

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

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant