CN108064023B - 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
CN108064023B
CN108064023B CN201711325844.3A CN201711325844A CN108064023B CN 108064023 B CN108064023 B CN 108064023B CN 201711325844 A CN201711325844 A CN 201711325844A CN 108064023 B CN108064023 B CN 108064023B
Authority
CN
China
Prior art keywords
wifi hotspot
mobile terminal
preset
wifi
hotspot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201711325844.3A
Other languages
Chinese (zh)
Other versions
CN108064023A (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 CN201711325844.3A priority Critical patent/CN108064023B/en
Publication of CN108064023A publication Critical patent/CN108064023A/en
Application granted granted Critical
Publication of CN108064023B publication Critical patent/CN108064023B/en
Expired - Fee Related 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)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a control method and device based on a positioning module, a storage medium and a mobile terminal. The method comprises the following steps: when a call request of an LBS application to a GNSS module in a mobile terminal is received, 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; and if so, determining that the mobile terminal is in the indoor environment and not agreeing with the calling request. 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:
the method comprises the steps that when a call request of a Global Navigation Satellite System (GNSS) module in a mobile terminal based on a Location Based Service (LBS) application is received, a current wireless fidelity (WiFi) hotspot information list searched by the mobile terminal is obtained;
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 is in the indoor environment and not agreeing with the calling request.
In a second aspect, an embodiment of the present application provides a control device based on a positioning module, including:
the mobile terminal comprises a hotspot information list acquisition module, a positioning service LBS application module and a wireless fidelity WiFi hotspot information list acquisition module, wherein the hotspot information list acquisition module is used for acquiring a current WiFi hotspot information list searched by the mobile terminal when receiving a call request of the position service LBS application to a GNSS module in the mobile terminal;
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 calling request processing module is used for determining that the mobile terminal is in the indoor environment and does not agree with the calling request when the current WiFi hotspot information list contains the 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 call request of an LBS application to a GNSS module in a mobile terminal is received, a current WiFi hot spot information list searched by the mobile terminal is obtained, and if the current WiFi hot spot information list contains a preset WiFi hot spot, the mobile terminal is determined to be in an indoor environment and does not agree with the call request. By adopting the technical scheme, when the LBS application needs to call the GNSS module to acquire the position information, whether the mobile terminal can search the preset WiFi hotspot is judged first, so that whether the mobile terminal is indoors or not is judged, if the mobile terminal is indoors, the mobile terminal is not suitable for the GNSS module to work, calling is not agreed, and 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, when receiving a request for invoking a GNSS module in a mobile terminal by an LBS application, obtaining a current WiFi hotspot information list searched by the 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 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 GNSS positioning mode), and if the call request is granted (i.e., if the positioning request is granted), the GNSS module will be in a normal working mode, search satellite signals and obtain other related data for positioning, and further calculate the location information (also called positioning information) of the mobile terminal, provide the location information to the LBS application, and the LBS application provides a richer service to the user according to the location information.
In the embodiment of the application, when a call request of the LBS application to the GNSS module is received, first, whether the GNSS module is in an indoor environment is determined, and then, whether the call request is granted is determined. Before determining whether the GNSS module is suitable for working, a current Wireless Fidelity (WiFi) hotspot information list searched by the mobile terminal is obtained.
At present, most mobile terminals have a wireless internet access function, and the most common one is through a WiFi mode. When a wireless local area network switch (also called a WiFi switch or a wireless network connection switch) in the mobile terminal is in an on state, the mobile terminal searches surrounding WiFi hotspots, and adds the searched WiFi hotspots to a WiFi hotspot information list of the mobile terminal, where the list generally includes names of the WiFi hotspots, where the names may be, for example, 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 may not need to input a password), that is, 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 a request for calling the GNSS module by the LBS application is received, a current WiFi hotspot information list searched by the mobile terminal at this time is acquired, and subsequent determination is performed on WiFi hotspots in the list to determine whether the mobile terminal is in an indoor environment.
And 102, 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 103, if the mobile terminal is in the indoor environment, determining that the mobile terminal is not in the indoor environment and not agreeing with the call request.
When a call request of LBS application to the GNSS module is received, the GNSS module starts to work if the call request is received, but the GNSS module cannot realize positioning because the GNSS module is in an environment unsuitable for working, so that the GNSS module does useless work, generates much unnecessary power consumption and affects the standby time of the mobile terminal. In the embodiment of the application, when the mobile terminal is determined to be in an indoor environment, the LBS application is not granted to the GNSS module, and power consumption caused by idle work of the GNSS module is reduced. The disagreeable manner may be to temporarily not respond to the invocation request, or may be to directly reject the invocation request, which is not limited in the embodiment of the present application.
Optionally, if the mobile terminal is not in the indoor environment, the GNSS module may be controlled to provide the location information for the LBS application in accordance with the call request.
According to the control method based on the positioning module, when a call request of an LBS application to a GNSS module in a mobile terminal is received, a current WiFi hot spot information list searched by the mobile terminal is obtained, and if the current WiFi hot spot information list is judged to contain a preset WiFi hot spot, the mobile terminal is determined to be in an indoor environment and does not agree with the call request. By adopting the technical scheme, when the LBS application needs to call the GNSS module to acquire the position information, whether the mobile terminal can search the preset WiFi hotspot is judged first, so that whether the mobile terminal is indoors or not is judged, if the mobile terminal is indoors, the mobile terminal is not suitable for the GNSS module to work, calling is not agreed, and power consumption caused by idle work of the GNSS module is reduced.
In some embodiments, before receiving a request for invoking the GNSS module in the mobile terminal 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 is in an indoor environment and does not agree with the invocation request if the determination is included 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 is in the indoor environment and does not agree with the calling request. 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 said disagreeing said call request, further comprising: 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 call request is not approved, the current position is positioned by using a WiFi positioning mode, the motion speed, the moving distance, the rotating angle and the like of the mobile terminal can be calculated by using the motion data collected by the motion sensor, and then the real-time position of the mobile terminal can be obtained by combining the current position with the positioning mode, so that the position information can be continuously provided. 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 said disagreeing said call request, further comprising: 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 preset WiFi hotspot is not included in the reacquired WiFi hotspot information list after the invocation request is not approved, 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 normally invoked. 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, the LBS application is agreed to call the GNSS module, the GNSS module is controlled to perform positioning related operation, and the position information is provided 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 determination is made that the mobile terminal is in an indoor environment and the invocation request is not approved, the method may include: if the mobile terminal is in the indoor environment, the calling request is not agreed. The advantage of this arrangement is that whether the mobile terminal is in an 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 is in 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 is in 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 the mobile terminal is in an indoor environment, not agreeing to the call request includes: if the mobile terminal is in the indoor environment, judging whether the mobile terminal is in the automobile or not; and if the mobile terminal is not in the automobile, the calling request is not approved. 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 vehicle, the environment in the vehicle is also relatively closed, and can be adjusted through a vehicle-mounted air conditioner, a humidity adjusting device or an air purifier and the like, the environment in the vehicle is easily identified as an indoor environment by mistake, and due to the material of the vehicle, the influence on satellite signals searched by the GNSS module is small, the positioning can still be realized, and the user can agree to the calling request when in the vehicle.
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, receiving a request for invoking the LBS application to the GNSS module in the mobile terminal.
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, step 410 is performed.
Step 405, determining that the mobile terminal is in an indoor environment, and rejecting the call request.
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.
And step 410, agreeing to the call request, and controlling the GNSS module to provide the position information to the LBS application.
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 a call request of the LBS application to the GNSS module is received, the current WiFi hotspot information list searched by the mobile terminal is obtained, whether the mobile terminal is in an 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 call is refused when the mobile terminal is in the indoor environment, the problem that the GNSS module wastes power consumption due to idle work in the indoor environment is avoided, position information is provided for the LBS application through a WiFi positioning mode, and the normal work of the LBS application is guaranteed. And after the calling is refused, 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 the positioning precision and accuracy are ensured.
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, when receiving a request for invoking a GNSS module in a mobile terminal by an LBS application, obtaining a current WiFi hotspot information list searched by the mobile terminal.
Step 503, judging whether the current WiFi hotspot information list includes a first-type preset WiFi hotspot, if yes, executing step 506; otherwise, step 504 is performed.
Step 504, acquiring names of all WiFi hotspots in a current WiFi hotspot information list, analyzing whether public WiFi hotspots of indoor environment exist in the list according to the names, and if yes, executing step 505; otherwise, step 508 is performed.
And 505, 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 506, judging whether the signal intensity corresponding to the contained preset WiFi hotspot reaches a preset intensity threshold, if so, executing step 507; otherwise, step 508 is performed.
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 507, determining that the mobile terminal is in an indoor environment, and rejecting the call request.
Step 508, agreeing to the call request, and controlling the GNSS module to provide location information to the LBS application.
According to the control method based on the positioning module, the first type of preset WiFi hot spots are determined according to the use habits of users, when a call request of LBS application to the GNSS module is received, a current WiFi hot spot information list searched by the mobile terminal is obtained, if the first type of preset WiFi hot spots are included, the mobile terminal is determined to be in an indoor environment, if the first type of preset WiFi hot spots are not included, whether the second type of preset WiFi hot spots exist is continuously judged, and the omission judgment is prevented. In addition, in order to avoid misjudgment, judgment of the signal strength of the searched preset WiFi hotspot is added. And finally, the mobile terminal is refused to be called when the mobile terminal is confirmed to be in an indoor environment, so that power consumption waste caused by idle work of the GNSS module in a 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, when receiving a request for invoking a GNSS module in a mobile terminal by an LBS application, obtaining a current WiFi hotspot information list searched by the mobile terminal.
Step 603, judging whether the current WiFi hotspot information list contains a preset WiFi hotspot, if so, executing step 604; otherwise, step 608 is performed.
And step 604, positioning the current position in a WiFi positioning mode, and acquiring corresponding weather information according to the current position.
Step 605, collecting weather related data through a preset sensor in the mobile terminal.
Step 606, judging whether the mobile terminal is in an indoor environment or not according to the comparison result of the weather related data and the weather information, and if so, executing step 607; otherwise, step 608 is performed.
Step 607, rejecting the invocation request.
And step 608, agreeing to the call request, and controlling the GNSS module to provide the location information to the LBS application.
According to the control method based on the positioning module, whether the mobile terminal is in the indoor environment 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 be in 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 hotspot information list obtaining module 701, configured to obtain a current WiFi hotspot information list searched by a mobile terminal when receiving a call request of a location based service LBS application to a global navigation satellite system GNSS module in the mobile terminal;
a preset hotspot determining module 702, 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;
the call request processing module 703 is configured to determine that the mobile terminal is in an indoor environment and does not agree with the call request when it is determined that the current WiFi hotspot information list includes a preset WiFi hotspot.
The control device based on the positioning module, provided in the embodiment of the application, acquires a current WiFi hotspot information list searched by the mobile terminal when receiving a call request of an LBS application to a GNSS module in the mobile terminal, and determines that the mobile terminal is in an indoor environment and does not agree with the call request if the current WiFi hotspot information list contains a preset WiFi hotspot. By adopting the technical scheme, when the LBS application needs to call the GNSS module to acquire the position information, whether the mobile terminal can search the preset WiFi hotspot is judged first, so that whether the mobile terminal is indoors or not is judged, if the mobile terminal is indoors, the mobile terminal is not suitable for the GNSS module to work, calling is not agreed, and 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 receiving a call request of an LBS application to a GNSS module in the mobile terminal;
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 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 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 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.
Optionally, when it is determined that the current WiFi hotspot information list includes a preset WiFi hotspot, determining that the mobile terminal is in an indoor environment, and disapproving the call request includes:
when the current WiFi hotspot information list is judged to contain the preset WiFi hotspot, judging whether the signal intensity corresponding to the contained preset WiFi hotspot reaches a preset intensity threshold value or not;
and if so, determining that the mobile terminal is in the indoor environment and does not agree with the calling request.
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 the calling request is not approved, and controlling the GNSS module to provide position information for the LBS application when the LBS application is determined to need 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:
the method comprises the steps that when a call request of a Global Navigation Satellite System (GNSS) module in a mobile terminal based on a Location Based Service (LBS) application is received, a current wireless fidelity (WiFi) hotspot information list searched by the mobile terminal is obtained;
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 is in the indoor environment and not agreeing with the calling request.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium 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 LBS application needs to call the GNSS module to acquire the position information, whether the mobile terminal can search the preset WiFi hotspot is judged first, so that whether the mobile terminal is indoors or not is judged, if the mobile terminal is indoors, the mobile terminal is not suitable for the work of the GNSS module, the mobile terminal does not agree with the calling, 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:
the method comprises the steps that when a call request of a Global Navigation Satellite System (GNSS) module in a mobile terminal based on a Location Based Service (LBS) application is received, a current wireless fidelity (WiFi) hotspot information list searched by the mobile terminal is obtained;
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 is in the indoor environment and not agreeing with the calling request.
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:
the method comprises the steps that when a call request of a Global Navigation Satellite System (GNSS) module in a mobile terminal based on a Location Based Service (LBS) application is received, a current wireless fidelity (WiFi) hotspot information list searched by the mobile terminal is obtained;
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 is in an indoor environment and does not agree with the calling request;
before receiving a request for invoking the GNSS module in the mobile terminal 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 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 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 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;
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 is in an indoor environment, including:
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 of claim 1, wherein the determining that the mobile terminal is in an indoor environment and does not agree with the invocation request 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 is in the indoor environment and does not agree with the calling request.
6. The method of claim 1, further comprising, after said disagreeing with said invocation request:
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 mobile terminal comprises a hotspot information list acquisition module, a positioning service LBS application module and a wireless fidelity WiFi hotspot information list acquisition module, wherein the hotspot information list acquisition module is used for acquiring a current WiFi hotspot information list searched by the mobile terminal when receiving a call request of the position service LBS application to a GNSS module in the mobile terminal;
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 call request processing module is used for determining that the mobile terminal is in an indoor environment and does not agree with the call request when the current WiFi hotspot information list is judged to contain 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 receiving a call request of an LBS application to a GNSS module in the mobile terminal;
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.
CN201711325844.3A 2017-12-13 2017-12-13 Control method and device based on positioning module, storage medium and mobile terminal Expired - Fee Related CN108064023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711325844.3A CN108064023B (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
CN201711325844.3A CN108064023B (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
CN108064023A CN108064023A (en) 2018-05-22
CN108064023B true CN108064023B (en) 2020-01-14

Family

ID=62138378

Family Applications (1)

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

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110691324B (en) * 2018-07-06 2024-06-21 朱海威 Method for positioning terminal by utilizing WLAN signal
CN109557570B (en) * 2018-09-05 2023-06-20 南京小脚印网络科技有限公司 Self-learning-based safe positioning method and device
CN109211259B (en) * 2018-09-28 2021-08-10 Oppo广东移动通信有限公司 Display method, device, terminal and storage medium of track route
CN114630263A (en) * 2020-11-27 2022-06-14 广州视源电子科技股份有限公司 Method and device for identifying position change of electronic equipment and computer equipment
CN114339957B (en) * 2022-02-28 2024-05-10 深圳市元征科技股份有限公司 Wi-Fi hot spot connection method and device and terminal equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8836580B2 (en) * 2005-05-09 2014-09-16 Ehud Mendelson RF proximity tags providing indoor and outdoor navigation and method of use
US20130260790A1 (en) * 2012-04-02 2013-10-03 Storewards Ltd. Method and system for providing location identification
CN103856989B (en) * 2012-11-28 2017-12-15 中国电信股份有限公司 Method and system, terminal and the positioning application platform of indoor and outdoor positioning switching
CN104539782B (en) * 2014-12-19 2017-11-24 广东欧珀移动通信有限公司 A kind of event-prompting method and its device
CN105163373B (en) * 2015-07-13 2019-02-01 Oppo广东移动通信有限公司 A kind of localization method and mobile terminal
CN106550446B (en) * 2015-09-18 2020-07-28 北京奇宝科技有限公司 Positioning method and geographical position monitoring equipment
CN105407497B (en) * 2015-12-08 2019-05-31 北京百度网讯科技有限公司 Indoor and outdoor judgment method and device
CN107172205B (en) * 2017-06-29 2018-11-09 腾讯科技(深圳)有限公司 Pushed information processing method, mobile terminal and computer storage media

Also Published As

Publication number Publication date
CN108064023A (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
CN108111971B (en) Positioning method, positioning device, storage medium and mobile terminal
CN109891934B (en) Positioning method and device
US11706584B2 (en) Location service management
CN107508883B (en) Information pushing method and device, storage medium and mobile terminal
CN108169775B (en) Control method and device based on positioning module, storage medium and mobile terminal
US9717065B2 (en) Indoor remote triggered location scanning
CN108055642B (en) Control method and device of positioning module, storage medium and mobile terminal
CN103563406B (en) Monitoring geofence exit
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
WO2018195708A1 (en) Image sharing method and electronic device
WO2020077485A1 (en) Geo-fence updating method, and communication device
CN108008423B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108076428B (en) Control method and device based on positioning module, storage medium and mobile terminal
KR101898101B1 (en) IOT interaction system
CN103563415A (en) Over-the-air device configuration
US11102644B2 (en) Network configuration method and apparatus
CN108020851B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN107402937B (en) Searching method and device and electronic equipment
CN110622528B (en) Information recommendation method and device
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
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

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

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

Granted publication date: 20200114

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