CN108111971B - Positioning method, positioning device, storage medium and mobile terminal - Google Patents

Positioning method, positioning device, storage medium and mobile terminal Download PDF

Info

Publication number
CN108111971B
CN108111971B CN201711326706.7A CN201711326706A CN108111971B CN 108111971 B CN108111971 B CN 108111971B CN 201711326706 A CN201711326706 A CN 201711326706A CN 108111971 B CN108111971 B CN 108111971B
Authority
CN
China
Prior art keywords
emission source
signal emission
source information
information list
list
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
CN201711326706.7A
Other languages
Chinese (zh)
Other versions
CN108111971A (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 CN201711326706.7A priority Critical patent/CN108111971B/en
Publication of CN108111971A publication Critical patent/CN108111971A/en
Application granted granted Critical
Publication of CN108111971B publication Critical patent/CN108111971B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a positioning method, a positioning device, 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 first signal emission source information list searched by the mobile terminal at present, wherein the signal emission source comprises a WiFi hotspot or a base station; matching the first signal emission source information list with each signal emission source information list in a historical signal emission source information list set recorded in the mobile terminal; if the successfully matched target signal emission source information list exists, the calling request is not agreed; the target location information corresponding to the list of target signal transmission source information is provided to the LBS application. By adopting the technical scheme, the embodiment of the application can reduce the power consumption of the GNSS module caused by executing positioning operations such as satellite searching and the like under the condition of ensuring that the LBS application can quickly obtain the position information.

Description

Positioning method, positioning device, storage medium and mobile terminal
Technical Field
The embodiment of the application relates to the technical field of positioning, in particular to a positioning method, a positioning device, 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.
Disclosure of Invention
The embodiment of the application provides a positioning method, a positioning device, a storage medium and a mobile terminal, which can optimize a positioning scheme in the mobile terminal.
In a first aspect, an embodiment of the present application provides a positioning method, including:
when a call request of a Global Navigation Satellite System (GNSS) module in a mobile terminal based on a Location Based Service (LBS) application is received, acquiring a first signal emission source information list currently searched by the mobile terminal, wherein the signal emission source comprises a wireless fidelity (WiFi) hotspot or a base station;
matching the first signal emission source information list with each signal emission source information list in a historical signal emission source information list set recorded in the mobile terminal;
if the successfully matched target signal emission source information list exists, the calling request is not agreed;
and providing the target position information corresponding to the target signal transmission source information list to the LBS application.
In a second aspect, an embodiment of the present application provides a positioning apparatus, including:
the mobile terminal comprises a first list information acquisition module, a second list information acquisition module and a third list information acquisition module, wherein the first list information acquisition module is used for acquiring a first signal emission source information list searched by the mobile terminal currently when receiving a call request of a Global Navigation Satellite System (GNSS) module in the mobile terminal based on a Location Based Service (LBS) application, and the signal emission source comprises a wireless fidelity (WiFi) hotspot or a base station;
a list information matching module, configured to match the first signal emission source information list with each signal emission source information list in a historical signal emission source information list set recorded in the mobile terminal;
the calling request processing module is used for not agreeing with the calling request when the successfully matched target signal emission source information list exists;
and the position information providing module is used for providing the target position information corresponding to the target signal transmission source information list to the LBS application.
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 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 method according to the embodiment of the present application.
According to the positioning scheme provided by the embodiment of the application, when a call request of an LBS application to a GNSS module in a mobile terminal is received, a first signal emission source information list searched by the mobile terminal at present is obtained, the first signal emission source information list is matched with each signal emission source information list in a historical signal emission source information list set recorded in the mobile terminal, and if a target signal emission source information list which is matched successfully exists, the call request is not agreed; the location information corresponding to the list of target signal transmission source information is provided to the LBS application. By adopting the technical scheme, when the LBS application needs to call the GNSS module to acquire the position information, whether the user has ever arrived at the current position is determined according to the comparison result of the signal emission source information list and the historical signal emission source information list, if so, the GNSS module is not enabled to carry out the positioning operation, and the ever recorded position is provided for the LBS application, so that the power consumption of the GNSS module caused by executing the positioning operation such as satellite searching and the like is reduced under the condition that the LBS application is ensured to be capable of acquiring the position information quickly.
Drawings
Fig. 1 is a schematic flowchart of a positioning method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a WiFi hotspot list interface provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of another positioning method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another positioning method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another positioning method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another positioning method according to an embodiment of the present application;
fig. 7 is a block diagram of a positioning apparatus 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 of a positioning method provided in an embodiment of the present application, where the method may be executed by a positioning 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 global navigation satellite system GNSS module in a mobile terminal based on a location based service LBS application, acquiring a first wireless fidelity signal transmission source information list currently searched by the mobile terminal.
Wherein the signal transmission source comprises a wireless fidelity (WiFi) hotspot or a base station.
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, whether a user has come to a current place is judged, and then whether the call request is agreed is determined. The position where the user has passed by is recorded through the mobile terminal, the position information is recorded, the position information can be directly provided for LBS application, a GNSS module is not needed to perform satellite searching and other positioning related operations again, power consumption is saved, and positioning speed is improved. Before the fact that whether the current position of the user comes is not determined, a current Wireless Fidelity (WiFi) hotspot information list or a base station information list searched by the mobile terminal is obtained, and whether the current position of the user comes is judged according to the WiFi hotspot information list or the base station information list.
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 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 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.
A base station is a form of radio station and refers to a radio transceiver station that communicates information with mobile terminals through a mobile switching center in a certain radio coverage area. The mobile terminal generally has a mobile communication function, searches for a base station in the operation process, and performs cell switching according to the identity, signal strength and the like of the searched base station, thereby ensuring good communication quality. When the signal transmission source includes a base station, the list of information of the signal transmission source may include an identity (such as a name or a code number) of the base station, and may further include a signal strength corresponding to the base station.
And 102, matching the first signal emission source information list with each signal emission source information list in a historical signal emission source information list set recorded in the mobile terminal.
For example, when the mobile terminal starts to be used or the positioning function corresponding to the positioning scheme of the present application is first turned on, the place where the user has been going to may be recorded for a certain period of time (e.g., one month). For example, taking a signal transmission source as a WiFi hotspot as an example, when a user comes to a location a, an LBS application in a mobile terminal initiates a GNSS positioning request, positions to location information loc1 of a current location through a GNSS module, obtains a WiFi hotspot information list wlist1 currently searched by the mobile terminal, records the WiFi hotspot information list wlist1 in a historical WiFi hotspot information list set LocList, and records a corresponding relationship between the WiFi hotspot information list wlist1 and loc 1. Therefore, each time the LBS application initiates a GNSS positioning request at a place, the position information of the position and the corresponding WiFi hotspot information list are recorded, so that the places where the user has arrived are recorded, and after a certain period of time, a plurality of WiFi hotspot information lists and the corresponding position information thereof are contained in the historical WiFi hotspot information list set.
In this step, the first signal emission source information list searched currently is matched with each signal emission source information list in the historical signal emission source information list set, and whether the user has arrived at the current location is determined according to the matching result. For example, when performing matching, the name of a signal emission source in the signal emission source information list may be matched, the signal intensity of the signal emission source may also be matched, and the rank of the signal emission source in the list may also be matched, which is not limited in the embodiment of the present application.
And 103, if the successfully matched target signal emission source information list exists, not agreeing the calling request.
For example, if the target signal emission source information list successfully matched is found after the matching operation, it may be indicated that the user has come from the current location, and the mobile terminal stores the location information corresponding to the target signal emission source information list, and does not need to perform positioning through the GNSS module, so that the mobile terminal may not agree with the invocation request, and power consumption of the GNSS module due to execution of positioning operations such as satellite search may be 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 there is no successfully matched signal transmission source information list, the invoking request may be agreed, positioning may be performed in a GNSS positioning manner, and the positioning information may be provided to the LBS application.
And step 104, providing the target position information corresponding to the target signal emission source information list to the LBS application.
For example, after the GNSS module is not approved to be called, in order to ensure that the LBS application can acquire the location information and provide a richer service to the user based on the location information, the LBS application may be provided with the target location information corresponding to the target signal transmission source information list stored in the mobile terminal in advance.
According to the positioning method provided by the embodiment of the application, when a call request of an LBS application to a GNSS module in a mobile terminal is received, a first signal emission source information list searched by the mobile terminal at present is obtained, the first signal emission source information list is matched with each signal emission source information list in a historical signal emission source information list set recorded in the mobile terminal, and if a target signal emission source information list which is matched successfully exists, the call request is not agreed; the location information corresponding to the list of target signal transmission source information is provided to the LBS application. By adopting the technical scheme, when the LBS application needs to call the GNSS module to acquire the position information, whether the user has ever arrived at the current position is determined according to the comparison result of the signal emission source information list and the historical signal emission source information list, if so, the GNSS module is not enabled to carry out the positioning operation, and the ever recorded position is provided for the LBS application, so that the power consumption of the GNSS module caused by executing the positioning operation such as satellite searching and the like is reduced under the condition that the LBS application is ensured to be capable of acquiring the position information quickly.
In some embodiments, said matching said first list of signal transmission source information with each list of signal transmission source information in a set of historical lists of signal transmission source information recorded in said mobile terminal further comprises: if the target signal emission source information list which is successfully matched does not exist, the calling request is agreed; positioning the current position based on a GNSS module to obtain current position information; and recording the first signal emission source information list into the historical signal emission source information list set, and establishing a corresponding relation between the first signal emission source information list and the current position information. The advantage of such an arrangement is that when it is determined that the user has not yet arrived at the current location, it is indicated that the mobile terminal has not recorded corresponding location information, and the location information is provided to the LBS application through the GNSS module, so that it can be ensured that the LBS application provides more accurate service to the user based on accurate location information, and in addition, the first signal transmission source information list and the location information of the GNSS module location at that time are stored, so that the historical signal transmission source information list set can be updated in time. If the target signal emission source information list matched with the first signal emission source information list does not exist in the historical signal emission source information list set, the user does not come at the current position, the historical signal emission source information list set needs to be updated, so that the user can realize quick positioning when coming at the position next time, and the power consumption of the mobile terminal is saved.
In some embodiments, if there is a list of successfully matched target signal transmission source information, the call request is not granted, including: if a successfully matched target signal emission source information list exists, target position information corresponding to the target signal emission source information list is acquired; and judging whether the recorded accumulated times of the target position information reach a preset time threshold value or not, and if so, not agreeing with the calling request. Wherein the preset number threshold can be freely set, for example, 5 times. The method has the advantages that whether the user frequently arrives at the target position can be known according to the accumulated times of the target position information, the familiarity degree of the user to the surrounding environment of the target position is further known, whether the calling request is agreed is finally determined, the judgment dimensionality for determining whether the calling request is agreed can be improved, and the judgment result is more reasonable. If the number of times is more, the user may be familiar with the surrounding environment, if the target position information is not accurate enough, the user can timely find and take measures, such as manually starting the GNSS module, and the like, and in addition, if the user needs to move in the LBS application process, the user can also know when the GNSS module can be started, so that the GNSS module can provide accurate position information for the LBS application; on the contrary, if the number of times is small, the user may not be familiar with the surrounding environment, and if the target location information is not accurate enough, the user cannot find the target location information, and furthermore, if the user needs to move during the LBS application process, the user does not know when the GNSS module should be turned on, which may cause the service provided by the LBS application to be inaccurate. For example, after a user takes a subway, the user goes out of the X subway station from the C port, calls a vehicle by using a dripping row, the dripping row sends a calling request for a GNSS module, and if a matching list exists through comparison of WiFi hot spot information lists, the corresponding target position information is provided for the dripping row. Assuming that the number of times of recording the target position information is 1, and during the last recording, a user uses a drip to go out at the D port, so that the target position information is actually the D port position, and the C port and the D port are separated by a road, at this time, because the user is not familiar with the surrounding environment, the position of the positioning may not be found to be deviated, and the driver cannot accurately find the position of the user; supposing that the number of times that the target position information is recorded is 5, the target position information is actually the position of the D port, but because a user frequently leaves the station from the D port, the user can perceive that the surrounding environment is different at the moment, the deviation of positioning can be found in time, the GNSS module can be manually started to carry out repositioning, and the driver can be ensured to find the user smoothly.
In some embodiments, after determining whether the accumulated number of times that the target position information is recorded reaches a preset number threshold, the method further includes: and if the target position information does not reach the preset target position information, adding 1 to the accumulated number of recorded target position information and storing the accumulated number. For example, if the user has only come once but the number of times is not large enough, the current situation of coming to the target position is accumulated, the accumulated number of times of recording the target position information is added by 1 and stored, and when the accumulated number of times reaches a preset number threshold, the GNSS module is not started, but the target position information is directly provided to the LBS application. Optionally, if the number of times of the call is reached, the number of times of the call is not accumulated, and the number of times of the call is not accumulated.
In some embodiments, said matching said first list of signal transmission source information with each list of signal transmission source information in a set of historical lists of signal transmission source information recorded in said mobile terminal comprises: comparing the signal emission source name contained in the current signal emission source information list with the signal emission source name contained in the first signal emission source information list for each signal emission source information list in the historical signal emission source information list set recorded in the mobile terminal, and determining that the current signal emission source information list and the first signal emission source information list are successfully matched if the number of signal emission sources with the same name exceeds a preset number threshold, wherein the preset number threshold is less than or equal to the total number of the signal emission sources contained in the current signal emission source information list. The advantage of this arrangement is that during the recording process of the historical signal emission source information list, personal hotspots may be included in the list, and these hotspots are generally mobile, and it cannot be guaranteed that the personal hotspots can still be searched next time the same location is reached, so that the number of signal emission sources with the same name can be determined, and the occurrence of misjudgment can be reduced. The preset number threshold may be a product of a total number of signal emission sources included in the current signal emission source information list in the historical signal emission source information list set and a preset coefficient, for example, the preset number threshold is N, the preset coefficient is k, the total number of signal emission sources included in the current signal emission source information list is M, then N ═ kM, and k is a positive number less than 1, such as 0.6. For example, taking WiFi hotspots as an example, if the first WiFi hotspot information list a contains "WiFi 1", "WiFi 2", "WiFi 3", "WiFi 4", and "a phone", which are 5 WiFi hotspots in total, and there is one list ListB in the historical WiFi hotspot information list set that contains "WiFi 1", "WiFi 2", "WiFi 3", "WiFi 4", and "b phone", which are also 5 WiFi hotspots, the number of the same WiFi hotspots in the two lists is 4, and the preset number threshold is 3, then the list a and the list b can be considered to be successfully matched.
Further, if the number of signal emission sources with the same name exceeds a preset number threshold, determining that the current signal emission source information list is successfully matched with the first signal emission source information list, including: if the number of the signal emission sources with the same name exceeds a preset number threshold, judging whether the signal intensity difference value corresponding to each pair of the same signal emission sources is within a preset difference value range; and if the signal intensity difference value corresponding to each pair of the same signal emission sources is within the preset difference value range, determining that the current signal emission source information list is successfully matched with the first signal emission source information list. The advantage of setting up like this is, because of the signal strength intensification list matching condition, can improve the matching degree of difficulty to improve the degree of accuracy of positional information. It is understood that the signal intensity of different signal emission sources may be calculated in different manners, and the corresponding preset difference ranges may also be different. Taking the WiFi hotspot as an example, the signal strength value of the WiFi hotspot is generally in a range of-100 to 0, and the preset difference range may be set according to actual requirements, and may be, for example, -10 to 10. Taking the above example as an example, the number of the "WiFi 1", "WiFi 2", "WiFi 3" and "WiFi 4" is 4, and if the signal strength corresponding to the "WiFi 1" in ListA is-80, the signal strength corresponding to the "WiFi 1" in ListB is-78, and the difference between the two is-2 (assuming that the signal strength of the "WiFi 1" in ListA is a decrement number), the difference is within a preset difference range. If there is a pair of WiFi hotspots, for example, the signal strength difference of the pair "WiFi 3 corresponds" is not within the preset difference range, the deviation between the current location of the user and the location information corresponding to the ListB may be large, and the ListA and the ListB may not be matched.
In some embodiments, said obtaining a list of information of a first signal transmission source currently searched by said mobile terminal comprises: acquiring type information of the LBS application; judging whether the LBS application belongs to a preset application type set or not according to the type information; and when the LBS application belongs to a preset application type set, acquiring a first signal transmission source information list searched by the mobile terminal currently. The advantage of this setting is that whether to adopt the positioning mode in this application can be determined according to the specific type of LBS application, enriching the positioning strategy of LBS application.
The type information of the LBS application may include an electronic map application (such as a Baidu map, etc.), a traffic application (such as a drip trip, a Mobai bicycle, etc.), a takeout application (such as a beauty group takeout, etc.), a social application (such as a WeChat, etc.), an information service application (such as a popular comment, etc.), a travel application (such as a travel, etc.), a video application (such as an Archie art), a game application (such as a Royal of a King worker), a text application (such as an office), etc., and may be classified according to different classification policies, where different classification policies may correspond to different classification results. The type information of the LBS application may reflect the level of the positioning accuracy requirement of the application program. For example, the navigation application program has higher requirement on positioning accuracy, and the traffic application programs such as the Mobai bicycle and the automobile have higher requirement on positioning accuracy. These applications need to accurately obtain not only the city in which the user is located, the various areas in the city, street information in the areas, but also latitude and longitude information. And the information service application program, the game application program, the camera application program and other application programs have lower requirements on positioning accuracy. The application programs with low requirements on positioning accuracy only acquire the city where the user is located or each area in the city, and can provide better service for the user.
For example, the preset application type set may be set by default by the system or may be set autonomously by the user. When the system is set by default, the mobile terminal can also count or learn the historical use habits of the user sample and the corresponding scene information to generate and formulate the historical use habits. For example, before receiving a request for invoking the GNSS module in the mobile terminal by the LBS application, the method may include: counting or learning historical habit data of different types of application programs used by a user according to a preset period; and determining a preset application type set according to the statistical result or the learning result. As described above, LBS applications of different classes have different requirements on positioning accuracy, and LBS applications with low requirements on positioning accuracy may be added to the preset application type set.
Specifically, the historical habit data includes at least one of the number of times of calling a map screen, the frequency of refreshing the map screen, the number of times of manually correcting the position, and the number of times of actively starting the GNSS positioning function. When the user performs the operation, the requirement of the user on the positioning precision of the application program can be higher, and then the requirement of the application program on the positioning precision is higher. It can be understood that the more times the application calls the map screen, the more the user needs to know the detailed location information of the mobile terminal by calling the map, and the higher the requirement of the application on the positioning accuracy is; the higher the frequency of the application program refreshing the map picture is, the higher the frequency is, the more accurate the map picture is, the more accurate the application program requires for positioning accuracy is; when the application program is positioned, a user often corrects the position positioned by the application program manually, or the more times the user corrects the position manually, the more the position information obtained by the application program is incorrect, or the less the precision of the position information obtained by the application program is, even the application program can not meet the requirement of the user by calling a map picture for many times, or frequently refreshing the map picture, at this time, the user actively corrects the position information manually, and the more the position precision requirement of the application program is further described; when the application program performs positioning, the user often manually starts the GNSS positioning function, or the number of times of starting the GNSS positioning function is more, which indicates that the user expects the application program to be directly positioned in a GNSS positioning mode with higher positioning accuracy, but does not wish to perform positioning in a positioning mode with lower positioning accuracy such as network positioning, base station positioning, or bluetooth positioning, and further indicates that the application program has higher requirement for positioning accuracy. And respectively carrying out statistical learning on the times of calling the map picture, the frequency of refreshing the map picture, the times of manually correcting the position and the times of actively starting the GNSS positioning function by each application program in the user sample, and determining LBS application with higher requirement on positioning accuracy and LBS application with lower requirement on positioning accuracy.
In some embodiments, matching the first list of signal transmission source information with each list of signal transmission source information in a set of historical lists of signal transmission source information recorded in the mobile terminal may also include: and acquiring a first signal emission source currently connected with the mobile terminal in the first signal emission source information list, judging whether the first signal emission source appears in the signal emission source information list in the historical signal emission source information list set, and if so, determining the signal emission source information list of the first signal emission source as a target signal emission source information list which is successfully matched. The advantage of this setting is that can promote the matching speed, and then promote the location efficiency. Further, in each signal emission source information list in the historical signal emission source information list set, the signal emission source information is arranged according to the sequence from strong to weak of the corresponding signal intensity when being recorded, and if a first signal emission source appears in the plurality of signal emission source information lists, the signal emission source information list with the first signal emission source ranked in the top is determined as the target signal emission source information list with successful matching. This has the advantage that the list of target signal transmission source information can be determined more accurately, so that its corresponding target location information is closer to the current location of the user.
In some embodiments, after providing the LBS application with the target location information corresponding to the list of target signal transmission source information, further comprising: and acquiring a second signal emission source information list searched by the mobile terminal currently, and controlling the GNSS module to provide position information for the LBS application if the second signal emission source information list is judged to be changed relative to the first signal emission source information list. The advantage of setting up like this lies in, can accurately judge whether the user takes place the position and removes, if take place the position and remove, can awaken up GNSS module in time to provide accurate positioning information. The second signal emission source information list is changed relative to the first signal emission source information list, and may be a change of a name of a signal emission source included in the second signal emission source information list, or a change of signal intensity of the signal emission source.
Fig. 3 is a schematic flowchart of another positioning method provided in the embodiment of the present application, which is described by taking a signal transmission source as a WiFi hotspot as an example, and includes:
step 301, receiving a request for invoking the GNSS module in the mobile terminal by the LBS application.
Step 302, a first WiFi hotspot information list searched by the mobile terminal currently is obtained.
Step 303, matching the first WiFi hotspot information list with each WiFi hotspot information list in the historical WiFi hotspot information list set recorded in the mobile terminal.
Step 304, judging whether a target WiFi hotspot information list successfully matched exists, if so, executing step 305; otherwise, step 309 is performed.
And 305, not agreeing to the call request, and providing the target position information corresponding to the target WiFi hotspot information list to the LBS application.
And step 306, acquiring a second WiFi hotspot information list searched by the mobile terminal currently.
307, judging whether the second WiFi hotspot information list changes relative to the first WiFi hotspot information list, if so, executing step 308; otherwise, return to execute step 306.
And step 308, controlling the GNSS module to provide the location information to the LBS application.
Step 309, agreeing to the call request, and positioning the current position based on the GNSS module to obtain the current position information.
Step 310, recording the first WiFi hotspot information list into a historical WiFi hotspot information list set, and establishing a corresponding relationship between the first WiFi hotspot information list and the current location information.
According to the positioning method provided by the embodiment of the application, when the LBS application needs to call the GNSS module to acquire the position information, whether the user has ever arrived at the current position is determined according to the matching result of the WiFi hot spot information list searched currently and the historical WiFi hot spot information list recorded in advance, if so, the GNSS module is not enabled to perform positioning operation, and the position recorded ever is provided for the LBS application, so that the power consumption of the GNSS module caused by executing positioning operation such as satellite searching is reduced under the condition that the LBS application is ensured to be capable of acquiring the position information quickly. And when the matched WiFi hotspot information list does not exist, the historical WiFi hotspot information list set is updated in time, so that the next time the user arrives at the position again, the rapid positioning can be realized.
Fig. 4 is a schematic flowchart of another positioning method provided in the embodiment of the present application, which is described by taking a signal transmission source as a base station as an example, and includes the following steps:
step 401, receiving a request for invoking the GNSS module in the mobile terminal by the LBS application.
Step 402, obtaining a first base station information list searched by the mobile terminal currently.
Step 403, comparing the base station name included in the current base station information list with the base station name included in the first base station information list for each base station information list in the base station information list set recorded in the mobile terminal.
Step 404, judging whether a base station information list with the same name and the number of base stations exceeding a preset number threshold exists, if so, executing step 405; otherwise, step 410 is performed.
Wherein the preset number threshold is less than or equal to the total number of signal emission sources included in the current signal emission source information list.
Step 405, judging whether the signal strength difference value corresponding to each pair of identical base stations is within a preset difference value range, if so, executing step 406; otherwise, step 410 is performed.
And step 406, determining that the successfully matched target base station information list exists, not agreeing with the call request, and providing the target position information corresponding to the target base station information list to the LBS application.
Step 407, acquiring the second base station information list searched by the mobile terminal currently.
Step 408, judging whether the second base station information list changes relative to the first base station information list, if so, executing step 409; otherwise, return to execute step 407.
And step 409, controlling the GNSS module to provide the position information to the LBS application.
Step 410, agreeing to the call request, and positioning the current position based on the GNSS module to obtain the current position information.
Step 411, recording the first base station information list into the historical base station information list set, and establishing a corresponding relationship between the first base station information list and the current position information.
According to the positioning method provided by the embodiment of the application, when the LBS application needs to call the GNSS module to acquire the position information, the currently searched base station information list is matched with the pre-recorded historical base station information list according to the number of the same base stations and the corresponding signal intensity difference, whether the user has the current position can be more accurately judged, whether the call request of the GNSS module is agreed or not is determined according to the matching result, the work of the GNSS module is reasonably controlled, and the power consumption of the system is reduced.
Fig. 5 is a schematic flowchart of another positioning method provided in the embodiment of the present application, which is described by taking a signal transmission source as a WiFi hotspot as an example, and includes the following steps:
step 501, receiving a request for invoking the LBS application to the GNSS module in the mobile terminal.
Step 502, acquiring a first WiFi hotspot information list searched by the mobile terminal currently.
Step 503, matching the first WiFi hotspot information list with each WiFi hotspot information list in the historical WiFi hotspot information list set recorded in the mobile terminal.
Step 504, judging whether a target WiFi hotspot information list successfully matched exists, if so, executing step 505; otherwise, step 509 is performed.
And 505, acquiring target position information corresponding to the target WiFi hotspot information list.
Step 506, judging whether the accumulated times of the target position information record reaches a preset time threshold, if so, executing step 507; otherwise, step 508 is performed.
And 507, rejecting the calling request, and providing the target position information corresponding to the target WiFi hotspot information list to the LBS application.
And step 508, adding 1 to the accumulated number of recorded target position information and storing.
Step 509, agreeing to the call request, and positioning the current position based on the GNSS module to obtain the current position information.
Step 510, recording the first WiFi hotspot information list to a historical WiFi hotspot information list set, and establishing a corresponding relationship between the first WiFi hotspot information list and the current location information.
According to the positioning method provided by the embodiment of the application, whether the user frequently arrives at the target position can be known according to the accumulated times of the target position information, so that the familiarity degree of the user to the surrounding environment of the target position is known, whether the calling request is agreed is finally determined, the judgment dimensionality for determining whether the calling request is agreed can be improved, and the judgment result is more reasonable.
Fig. 6 is a schematic flowchart of another positioning method provided in the embodiment of the present application, which is described by taking a signal transmission source as a WiFi hotspot as an example, and the method includes:
step 601, when receiving a request for calling a GNSS module in a mobile terminal by an LBS application, obtaining type information of the LBS application, and when the LBS application belongs to a preset application type set, obtaining a first WiFi hotspot information list currently searched by the mobile terminal.
Step 602, comparing, for each WiFi hotspot information list in the WiFi hotspot information list set recorded in the mobile terminal, a WiFi hotspot name included in the current WiFi hotspot information list with a WiFi hotspot name included in the first WiFi hotspot information list.
Step 603, judging whether a WiFi hotspot information list with the same name and the number of WiFi hotspots exceeding a preset number threshold exists, if so, executing step 604; otherwise, step 609 is performed.
Wherein the preset number threshold is less than or equal to the total number of signal emission sources included in the current signal emission source information list.
Step 604, judging whether the signal strength difference value corresponding to each pair of identical WiFi hotspots is within a preset difference value range, if yes, executing step 605; otherwise, step 609 is performed.
Step 605, determining that a target WiFi hotspot information list exists, and acquiring target location information corresponding to the target WiFi hotspot information list.
Step 606, judging whether the accumulated times of the target position information record reaches a preset time threshold, if so, executing step 607; otherwise, step 608 is performed.
Step 607, rejecting the invoking request, and providing the target location information corresponding to the target WiFi hotspot information list to the LBS application.
And step 608, adding 1 to the accumulated number of recorded target position information and storing.
Step 609, agreeing to the calling request, and positioning the current position based on the GNSS module to obtain the current position information.
Step 610, recording the first WiFi hotspot information list to a historical WiFi hotspot information list set, and establishing a corresponding relationship between the first WiFi hotspot information list and the current location information.
According to the positioning method provided by the embodiment of the application, when the specified type of LBS application needs to call the GNSS module to acquire the position information, the currently searched WiFi hotspot information list is matched with the pre-recorded historical WiFi hotspot information list on the basis of the number of the same WiFi hotspots and the corresponding signal intensity difference, if the matching is successful, the number of times of position recording is continuously judged, whether the call request of the GNSS module is rejected is finally determined, the work of the GNSS module can be controlled more reasonably, and the power consumption of the system is reduced.
Fig. 7 is a block diagram of a positioning apparatus provided in an embodiment of the present application, where the positioning apparatus may be implemented by software and/or hardware, and is generally integrated in a mobile terminal, and may perform positioning by executing a positioning method. As shown in fig. 7, the apparatus includes:
a first list information obtaining module 701, configured to obtain a first signal emission source information list currently searched by a mobile terminal when a request for invoking a Global Navigation Satellite System (GNSS) module in the mobile terminal is received based on a Location Based Service (LBS) application, where the signal emission source includes a WiFi hotspot or a base station;
a list information matching module 702, configured to match the first signal emission source information list with each signal emission source information list in a historical signal emission source information list set recorded in the mobile terminal;
a calling request processing module 703, configured to not agree with the calling request when there is a successfully matched target signal transmission source information list;
a location information providing module 704, configured to provide the LBS application with target location information corresponding to the target signal transmission source information list.
According to the positioning method provided by the embodiment of the application, when a call request of an LBS application to a GNSS module in a mobile terminal is received, a first signal emission source information list searched by the mobile terminal at present is obtained, the first signal emission source information list is matched with each signal emission source information list in a historical signal emission source information list set recorded in the mobile terminal, and if a target signal emission source information list which is matched successfully exists, the call request is not agreed; the location information corresponding to the list of target signal transmission source information is provided to the LBS application. By adopting the technical scheme, when the LBS application needs to call the GNSS module to acquire the position information, whether the user has ever arrived at the current position is determined according to the comparison result of the signal emission source information list and the historical signal emission source information list, if so, the GNSS module is not enabled to carry out the positioning operation, and the ever recorded position is provided for the LBS application, so that the power consumption of the GNSS module caused by executing the positioning operation such as satellite searching and the like is reduced under the condition that the LBS application is ensured to be capable of acquiring the position information quickly.
Optionally, the call request processing module is further configured to: after the first signal emission source information list is matched with each signal emission source information list in a historical signal emission source information list set recorded in the mobile terminal, if a target signal emission source information list which is successfully matched does not exist, the calling request is agreed;
the device also includes:
the current position information acquisition module is used for positioning the current position based on the GNSS module to obtain current position information;
and the recording module is used for recording the first signal emission source information list into the historical signal emission source information list set and establishing the corresponding relation between the first signal emission source information list and the current position information.
Optionally, if there is a list of target signal transmission source information that is successfully matched, the invoking request is not agreed, including:
if a successfully matched target signal emission source information list exists, target position information corresponding to the target signal emission source information list is acquired;
and judging whether the recorded accumulated times of the target position information reach a preset time threshold value or not, and if so, not agreeing with the calling request.
Optionally, the matching the first signal emission source information list with each signal emission source information list in a historical signal emission source information list set recorded in the mobile terminal includes:
comparing the signal emission source name contained in the current signal emission source information list with the signal emission source name contained in the first signal emission source information list for each signal emission source information list in the historical signal emission source information list set recorded in the mobile terminal, and determining that the current signal emission source information list and the first signal emission source information list are successfully matched if the number of signal emission sources with the same name exceeds a preset number threshold, wherein the preset number threshold is less than or equal to the total number of the signal emission sources contained in the current signal emission source information list.
Optionally, if the number of signal emission sources with the same name exceeds a preset number threshold, determining that the current signal emission source information list is successfully matched with the first signal emission source information list, including:
if the number of the signal emission sources with the same name exceeds a preset number threshold, judging whether the signal intensity difference value corresponding to each pair of the same signal emission sources is within a preset difference value range;
and if the signal intensity difference value corresponding to each pair of the same signal emission sources is within the preset difference value range, determining that the current signal emission source information list is successfully matched with the first signal emission source information list.
Optionally, the obtaining a list of information of a first signal transmission source currently searched by the mobile terminal includes:
acquiring type information of the LBS application;
judging whether the LBS application belongs to a preset application type set or not according to the type information;
and when the LBS application belongs to a preset application type set, acquiring a first signal transmission source information list searched by the mobile terminal currently.
Optionally, the apparatus further comprises:
a second list information obtaining module, configured to obtain a second signal transmission source information list currently searched by the mobile terminal after providing the target location information corresponding to the target signal transmission source information list to the LBS application;
and the change judging module is used for controlling the GNSS module to provide the position information for the LBS application when the second signal transmitting source information list is judged to be changed relative to the first signal transmitting source information list.
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 positioning method, the method including:
when a call request of a Global Navigation Satellite System (GNSS) module in a mobile terminal based on a Location Based Service (LBS) application is received, acquiring a first signal emission source information list currently searched by the mobile terminal, wherein the signal emission source comprises a wireless fidelity (WiFi) hotspot or a base station;
matching the first signal emission source information list with each signal emission source information list in a historical signal emission source information list set recorded in the mobile terminal;
if the successfully matched target signal emission source information list exists, the calling request is not agreed;
and providing the target position information corresponding to the target signal transmission source information list to the LBS application.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the positioning operations described above, and may also perform related operations in the positioning method provided in any embodiment of the present application.
The embodiment of the application provides a mobile terminal, and the positioning device provided by the embodiment of the application can be integrated in the mobile terminal. Fig. 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 apparatus comprises 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 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 user has ever arrived at the current position is determined according to the comparison result of the signal emission source information list and the historical signal emission source information list, if so, the GNSS module is not allowed to perform the positioning operation, and the ever recorded position is provided for the LBS application, so that the power consumption of the GNSS module caused by executing the positioning operation such as satellite searching and the like is reduced under the condition that the LBS application is ensured to be capable of acquiring the position information quickly.
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:
when a call request of a Global Navigation Satellite System (GNSS) module in a mobile terminal based on a Location Based Service (LBS) application is received, acquiring a first signal emission source information list currently searched by the mobile terminal, wherein the signal emission source comprises a wireless fidelity (WiFi) hotspot or a base station;
matching the first signal emission source information list with each signal emission source information list in a historical signal emission source information list set recorded in the mobile terminal;
if the successfully matched target signal emission source information list exists, the calling request is not agreed;
and providing the target position information corresponding to the target signal transmission source information list to the LBS application.
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 the mobile terminal for positioning provided in this embodiment, which takes 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 positioning device, the storage medium and the mobile terminal provided in the above embodiments can execute the positioning method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to the positioning method provided in any of the embodiments of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (7)

1. A method of positioning, comprising:
counting or learning historical habit data of different types of application programs used by a user according to a preset period;
determining a preset application type set according to the statistical result or the learning result;
the method comprises the steps that when a call request of a position based service (LBS) application to a Global Navigation Satellite System (GNSS) module in a mobile terminal is received, the type information of the LBS application is obtained;
judging whether the LBS application belongs to a preset application type set or not according to the type information;
when the LBS application belongs to a preset application type set, acquiring a first signal emission source information list currently searched by the mobile terminal, wherein the signal emission source comprises a wireless fidelity (WiFi) hotspot or a base station;
matching the first signal emission source information list with each signal emission source information list in a historical signal emission source information list set recorded in the mobile terminal;
if the successfully matched target signal emission source information list exists, the calling request is not agreed;
providing the LBS application with target position information corresponding to the target signal emission source information list;
in each signal emission source information list in the historical signal emission source information list set, the signal emission source information is arranged according to the sequence from strong to weak of the corresponding signal intensity when being recorded;
the matching the first signal emission source information list with each signal emission source information list in a historical signal emission source information list set recorded in the mobile terminal includes:
and acquiring a first signal emission source currently connected with the mobile terminal in the first signal emission source information list, judging whether the first signal emission source appears in the plurality of signal emission source information lists, and if so, determining a signal emission source information list with the first signal emission source ranked most front as a target signal emission source information list matched successfully.
2. The method of claim 1, wherein after matching said first list of signal transmission source information with each list of signal transmission source information in a set of historical lists of signal transmission source information recorded in said mobile terminal, further comprising:
if the target signal emission source information list which is successfully matched does not exist, the calling request is agreed;
positioning the current position based on a GNSS module to obtain current position information;
and recording the first signal emission source information list into the historical signal emission source information list set, and establishing a corresponding relation between the first signal emission source information list and the current position information.
3. The method of claim 1, wherein not granting the call request if there is a list of successfully matched target signal transmission source information, comprises:
if a successfully matched target signal emission source information list exists, target position information corresponding to the target signal emission source information list is acquired;
and judging whether the recorded accumulated times of the target position information reach a preset time threshold value or not, and if so, not agreeing with the calling request.
4. The method of claim 1, after providing target location information corresponding to said list of target signal transmission source information to said LBS application, further comprising:
and acquiring a second signal emission source information list searched by the mobile terminal currently, and controlling the GNSS module to provide position information for the LBS application if the second signal emission source information list is judged to be changed relative to the first signal emission source information list.
5. A positioning device, comprising:
the preset application type set determining module is used for counting or learning the historical habit data of different types of application programs used by the user according to a preset period and determining a preset application type set according to a counting result or a learning result;
the system comprises a first list information acquisition module, a second list information acquisition module and a third list information acquisition module, wherein the first list information acquisition module is used for acquiring type information of Location Based Service (LBS) application when receiving a call request of the LBS application to a Global Navigation Satellite System (GNSS) module in a mobile terminal, judging whether the LBS application belongs to a preset application type set or not according to the type information, and acquiring a first signal emission source information list searched by the mobile terminal currently when the LBS application belongs to the preset application type set, wherein the signal emission source comprises a wireless fidelity (WiFi) hotspot or a base station;
a list information matching module, configured to match the first signal emission source information list with each signal emission source information list in a historical signal emission source information list set recorded in the mobile terminal;
the calling request processing module is used for not agreeing with the calling request when the successfully matched target signal emission source information list exists;
a position information providing module, configured to provide target position information corresponding to the target signal transmission source information list to the LBS application;
in each signal emission source information list in the historical signal emission source information list set, the signal emission source information is arranged according to the sequence from strong to weak of the corresponding signal intensity when being recorded;
the matching the first signal emission source information list with each signal emission source information list in a historical signal emission source information list set recorded in the mobile terminal includes:
and acquiring a first signal emission source currently connected with the mobile terminal in the first signal emission source information list, judging whether the first signal emission source appears in the plurality of signal emission source information lists, and if so, determining a signal emission source information list with the first signal emission source ranked most front as a target signal emission source information list matched successfully.
6. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the positioning method according to any one of claims 1-4.
7. A mobile terminal, characterized in that it comprises a memory, a global navigation satellite system GNSS module, a processor and a computer program stored on the memory and executable on the processor, said processor implementing the positioning method according to any one of claims 1 to 4 when executing said computer program.
CN201711326706.7A 2017-12-13 2017-12-13 Positioning method, positioning device, storage medium and mobile terminal Active CN108111971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711326706.7A CN108111971B (en) 2017-12-13 2017-12-13 Positioning method, positioning device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711326706.7A CN108111971B (en) 2017-12-13 2017-12-13 Positioning method, positioning device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN108111971A CN108111971A (en) 2018-06-01
CN108111971B true CN108111971B (en) 2021-02-23

Family

ID=62215745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711326706.7A Active CN108111971B (en) 2017-12-13 2017-12-13 Positioning method, positioning device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN108111971B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110858985B (en) * 2018-08-24 2022-12-09 中国移动通信集团山东有限公司 OTT-based MR positioning method and system
CN109061617A (en) * 2018-10-31 2018-12-21 上海与德科技有限公司 A kind of wireless location method, device, terminal and storage medium
CN109257700B (en) * 2018-11-19 2020-11-06 广东小天才科技有限公司 Positioning method, server and system based on positioning deviation rectification
CN110139217B (en) * 2019-05-30 2021-03-19 中国农业科学院农业环境与可持续发展研究所 Farmland robot positioning method and device and storage medium
CN110636590B (en) * 2019-08-27 2021-07-06 浙江大华技术股份有限公司 Hotspot list generation method and device, computer equipment and storage medium
CN113759405B (en) * 2020-06-04 2024-06-25 深圳市万普拉斯科技有限公司 GPS positioning acceleration system, method, device, computer equipment and storage medium
CN112817423A (en) * 2021-01-25 2021-05-18 惠州Tcl移动通信有限公司 Low-power-consumption positioning method, system, mobile terminal and computer-readable storage medium
CN113099378B (en) * 2021-03-23 2023-05-16 北京三快在线科技有限公司 Positioning method, device, equipment and storage medium
CN113203376B (en) * 2021-04-19 2022-11-11 深圳市安全守护科技有限公司 Position deviation rectifying method, device, equipment and computer readable storage medium
CN115708387A (en) * 2021-08-18 2023-02-21 杭州萤石软件有限公司 Method and device for identifying indoor and outdoor scenes and mobile terminal
CN114241612B (en) * 2021-12-15 2024-05-24 青岛海尔科技有限公司 Verification method and system for mobile attendance position
CN114679736B (en) * 2022-04-12 2024-04-16 中国联合网络通信集团有限公司 Base station control method, device, system and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8244241B2 (en) * 2006-10-24 2012-08-14 Research In Motion Limited WLAN network information caching
US9973884B2 (en) * 2012-03-07 2018-05-15 Intel Corporation Device, system and method of controlling access to location sources
CN104349455A (en) * 2013-08-05 2015-02-11 中兴通讯股份有限公司 WIFI (wireless fidelity) hotspot location method and system
CN105007621B (en) * 2015-05-27 2019-03-15 上海宇尚信息科技有限公司 A kind of indoor and outdoor Precise Synthesis localization method suitable for mobile terminal
CN106550446B (en) * 2015-09-18 2020-07-28 北京奇宝科技有限公司 Positioning method and geographical position monitoring equipment
CN106535102B (en) * 2016-12-07 2019-06-28 Oppo广东移动通信有限公司 A kind of mobile terminal locating method and mobile terminal
CN106973150B (en) * 2017-03-16 2019-12-03 Oppo广东移动通信有限公司 Positioning accuracy level adjustment method, device and mobile terminal
CN106851583A (en) * 2017-04-07 2017-06-13 广东欧珀移动通信有限公司 The location information acquisition method of mobile terminal, device and mobile terminal

Also Published As

Publication number Publication date
CN108111971A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
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
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
RU2640027C2 (en) Detection of geofence events by variable confidence levels
CN107688638B (en) Recommendation method and device for application list, storage medium and mobile terminal
US11451924B2 (en) Ranging measurements for spatially-aware user interface of a mobile device
US7962152B2 (en) Location determination for wireless mobile devices
CN103222319B (en) A kind of method for mobile computing device and mobile computing device
US20140370909A1 (en) Reduced power location determinations for detecting geo-fences
US9619532B2 (en) Collaborative location-based search results
CN108064023B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108064024B (en) Control method and device based on positioning module, storage medium and mobile terminal
KR101895455B1 (en) Method and apparatus for providing semantic location in electronic device
CN108008423B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108093368B (en) Control method and device based on positioning module, storage medium and mobile terminal
KR102092057B1 (en) Method and apparatus for sharing location information of electronic device
CN103763768A (en) Locating method and user equipment
US20180310129A1 (en) Positioning Information Processing Method and Apparatus
CN108093367B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108055644B (en) Positioning control method and device, storage medium and terminal equipment
CN108040320B (en) GNSS positioning control method and device, storage medium and mobile terminal
CN108093373B (en) Positioning control method and device, storage medium and terminal equipment
CN112752214B (en) Positioning method, positioning device, storage medium and wireless communication system
CN108156313B (en) Positioning control method and device, storage medium and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

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

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

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

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

GR01 Patent grant
GR01 Patent grant