CN106535102B - A kind of mobile terminal locating method and mobile terminal - Google Patents

A kind of mobile terminal locating method and mobile terminal Download PDF

Info

Publication number
CN106535102B
CN106535102B CN201611117896.7A CN201611117896A CN106535102B CN 106535102 B CN106535102 B CN 106535102B CN 201611117896 A CN201611117896 A CN 201611117896A CN 106535102 B CN106535102 B CN 106535102B
Authority
CN
China
Prior art keywords
mobile terminal
list
target
access point
access
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
CN201611117896.7A
Other languages
Chinese (zh)
Other versions
CN106535102A (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 CN201611117896.7A priority Critical patent/CN106535102B/en
Publication of CN106535102A publication Critical patent/CN106535102A/en
Application granted granted Critical
Publication of CN106535102B publication Critical patent/CN106535102B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • 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)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a kind of mobile terminal locating method and mobile terminals, which comprises when mobile terminal initiates to position, detects the Wi-Fi connection status of the mobile terminal;When the mobile terminal is in Wireless Fidelity Wi-Fi connection status, the Wi-Fi list of last scan is obtained;The position of the mobile terminal is determined according to the Wi-Fi list.Through the embodiment of the present invention the power consumption of mobile terminal can be reduced in position fixing process.

Description

A kind of mobile terminal locating method and mobile terminal
Technical field
The present invention relates to Internet technical fields, and in particular to a kind of mobile terminal locating method and mobile terminal.
Background technique
With the fast development of information technology, mobile terminal (such as mobile phone, tablet computer) uses more more and more universal, use Requirement of the family to mobile terminal is also higher and higher, not only needs higher processing speed, also proposes to the continuation of the journey of mobile terminal It is required that.
In the prior art, the primary demand that positioning has become daily life, Yong Huke are carried out using mobile terminal More easily to find the destination oneself wanted to go to using mobile terminal, still, during positioning, mobile terminal can be consumed More power consumption.
Summary of the invention
The embodiment of the invention provides a kind of mobile terminal locating method and mobile terminals, to drop in position fixing process The power consumption of low mobile terminal.
First aspect of the embodiment of the present invention provides a kind of mobile terminal locating method, comprising:
When mobile terminal initiates to position, the Wi-Fi connection status of the mobile terminal is detected;
When the mobile terminal is in Wireless Fidelity Wi-Fi connection status, the Wi-Fi list of last scan is obtained;
The position of the mobile terminal is determined according to the Wi-Fi list.
Second aspect of the embodiment of the present invention provides a kind of mobile terminal, comprising:
Detection unit, for detecting the Wi-Fi connection status of the mobile terminal when mobile terminal initiates to position;
Acquiring unit, for obtaining last scan when the mobile terminal is in Wireless Fidelity Wi-Fi connection status Wi-Fi list;
Positioning unit, for determining the position of the mobile terminal according to the Wi-Fi list.
The third aspect of the embodiment of the present invention provides a kind of mobile terminal, comprising:
Processor and memory;Wherein, the processor is by calling the code in the memory or instructing to execute The some or all of step of method described in first aspect.
The implementation of the embodiments of the present invention has the following beneficial effects:
Through the embodiment of the present invention, when mobile terminal initiates to position, the Wi-Fi connection status of mobile terminal is detected, When mobile terminal is in Wireless Fidelity Wi-Fi connection status, the Wi-Fi list of last scan is obtained, is determined according to Wi-Fi list The position of mobile terminal.To determine the shifting according to the list of last time Wi-Fi in the case where mobile terminal is in Wi-Fi connection status The position of dynamic terminal, in this way, the power consumption of mobile terminal can be reduced in position fixing process.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of first embodiment flow diagram of mobile terminal locating method provided in an embodiment of the present invention;
Fig. 1 a is a kind of Wi-Fi list demonstration schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of second embodiment flow diagram of mobile terminal locating method provided in an embodiment of the present invention;
Fig. 3 a is a kind of schematic structural diagram of the first embodiment of mobile terminal provided in an embodiment of the present invention;
Fig. 3 b is the another structural schematic diagram of mobile terminal described in Fig. 3 a provided in an embodiment of the present invention;
Fig. 3 c is the structural schematic diagram of the positioning unit of mobile terminal described in Fig. 3 a provided in an embodiment of the present invention;
Fig. 3 d is the another structural representation of the positioning unit of mobile terminal described in Fig. 3 a provided in an embodiment of the present invention Figure;
Fig. 4 is a kind of schematic structural diagram of the second embodiment of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " and " in the attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments Containing at least one embodiment of the present invention.It is identical that each position in the description shows that the phrase might not be each meant Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Mobile terminal described by the embodiment of the present invention may include smart phone (such as Android phone, iOS mobile phone, Windows Phone mobile phone etc.), tablet computer, mobile unit, palm PC, laptop, mobile internet device (MID, Mobile Internet Devices) or wearable device etc., above-mentioned is only citing, and non exhaustive, includes but unlimited In above-mentioned mobile terminal.
Referring to Fig. 1, being that a kind of first embodiment process of mobile terminal locating method provided in an embodiment of the present invention is shown It is intended to.Mobile terminal locating method as described in this embodiment, comprising the following steps:
101, when mobile terminal initiates to position, the Wi-Fi connection status of the mobile terminal is detected.
In actual use, user can generate a positioning instruction, the positioning instruction when using certain applications For triggering the position of the acquisition for mobile terminal mobile terminal, i.e. mobile terminal initiates positioning.Above-mentioned certain applications may include but Be not limited only to: map application (such as: Baidu map, Google Maps), instant messaging application (wechat, QQ), social application are (such as Microblogging, Renren Network, Facebook etc.), purchase by group application (public comment, Meituan etc.) etc..
Optionally, the Wi-Fi connection status of above-mentioned mobile terminal can be Wi-Fi connection status, alternatively, Wi-Fi is not connected State (i.e. mobile terminal does not connect Wi-Fi, and what may be connected is mobile communications network (such as 2G, 3G, 4G, 5G network), or Person does not access any network).
102, when the mobile terminal is in Wireless Fidelity Wi-Fi connection status, the Wi-Fi column of last scan are obtained Table.
Wherein, when mobile terminal is in Wireless Fidelity Wi-Fi connection status, then the Wi- of last scan can be directly acquired Fi list, if Fig. 1 a, Fig. 1 a are a kind of demonstration schematic diagram of Wi-Fi list.
It should be noted that before mobile terminal is in Wireless Fidelity Wi-Fi connection status, it is also desirable to carry out Wi-Fi Scanning can be obtained a Wi-Fi list, can be reserved for the Wi-Fi list after it carries out Wi-Fi scanning, it is generally the case that Include at least the access-in point information of 1 access point and the access point in the Wi-Fi list, access-in point information may include but not only Be limited to: access point name, the MAC Address of access point, access point service set (Service Set Identifier, SSID), the accessing user's number, the signal strength indication of access point etc. of access point.Wherein, each access in Wi-Fi list Point can correspond to a position.Mobile terminal can select an access point from the Wi-Fi list, and access the access point, from And realize access internet.So, when mobile terminal is in Wireless Fidelity Wi-Fi connection status, then last time can be directly acquired The Wi-Fi list of scanning.
103, the position of the mobile terminal is determined according to the Wi-Fi list.
Optionally, mobile terminal can select at least one access point from Wi-Fi list, and at least one is accessed according to this The position of point determines the position of mobile terminal.For example, selecting three access points from Wi-Fi list, which can be A, B and C, then can be using the position of any access point in three access points as the position of mobile terminal, such as: can be three by this Position of the position of the maximum access point of signal strength indication in access point as mobile terminal, alternatively, can be accessed from this three Position of the position of an access point as mobile terminal is randomly choosed in point.Certainly, if only one in Wi-Fi list accesses Point, then may only be using the position of the access point as the position of mobile terminal.
Optionally, mobile terminal can be using the position of the maximum access point of signal strength indication in Wi-Fi list as the movement The position of terminal.For example, may include multiple access points in Wi-Fi list, the signal strength indication of each access point is different, thus, Position of the position of the maximum access point of signal strength indication as mobile terminal may be selected, because, often in more situation, letter Number maximum position of intensity value is the position nearest with mobile terminal, in this way, the precision of mobile terminal location is higher.
Optionally, mobile terminal can be using the position for the access point connecting in Wi-Fi list with the mobile terminal as the shifting The position of dynamic terminal.For example, may include multiple access points in Wi-Fi list, may include in the access point connected in the past and its Password is the access point of static password, also may include the access point of dynamic password, it is of course also possible to include that fishing access Point (this access point safety is lower).Under normal conditions, mobile terminal can preferentially with connect in the past and its password for static state The access point of password connects, in this way, such access point can be accessed quickly, in this way, can comparatively fast realize Wi-Fi connection, and in turn, It can be using the position for the access point being connect with mobile terminal as the position of mobile terminal.
It optionally, include the access-in point information of M access point in the Wi-Fi list, the M is the integer greater than 1; In above-mentioned steps 103, the position of the mobile terminal is determined according to the Wi-Fi list, it may include following steps:
31), each access point is stablized according to the access-in point information of each access point in the M access point Property evaluation, obtain the M estimation of stability value;
32), using the position of the corresponding access point of maximum value in the M estimation of stability value as the mobile terminal Position.
Wherein, it can determine that the estimation of stability value of each access point, the estimation of stability value can be used for evaluating in above-mentioned 31 The estimation of stability value of the stability of each access point, a certain access point is bigger, then can illustrate that the stability of the access point is better. Thus, position of the position of the best access point of stability as mobile terminal may be selected.
Optionally, at least one estimation of stability index can be used to evaluate the stability of access point, obtain weight Value, wherein estimation of stability index may include, but are not limited to: the accessible number of users of access point, the signal of access point are strong The safety of angle value, the network rate of access point, the network bandwidth of access point, access point is (mainly by pacifying in mobile terminal The security software of dress is monitored access point) etc..
It should be noted that when due to being evaluated using single stable evaluation index the stability of access point, tool There is certain limitation, therefore, multiple estimation of stability indexs can be used, the stability of access point is evaluated, it is certainly, right When the stability of access point is evaluated, not estimation of stability index is The more the better, because estimation of stability index is more, surely The computation complexity of qualitative evaluation process is higher, and also not necessarily estimation of stability effect is better, therefore, wants to estimation of stability It asks in higher situation, 2~10 estimation of stability indexs can be used, the stability of access point is evaluated.Specifically, it selects Take the number and which index of estimation of stability index, can according to specific implementation situation depending on.
Optionally, in the higher situation of estimation of stability required precision to access point, multiple stability can be used Evaluation index evaluates the stability of access point, carries out stability in stability of the estimation of stability index to access point and comments When valence, the weight of estimation of stability index, can be obtained multiple estimation of stability values in settable multiple estimation of stability index, Final estimation of stability value can be obtained according to multiple estimation of stability value and its corresponding weight, for example, three stability Evaluation index is respectively as follows: A index, B index and C index, and the weight of A is a1, and the weight of B is a2, and the weight of C is a3, using A, B When evaluating with stability of the C to a certain access point, the corresponding estimation of stability value of A is b1, the corresponding estimation of stability value of B For b2, the corresponding estimation of stability value of C is b3, then, last estimation of stability value=a1b1+a2b2+a3b3.Usual situation Under, estimation of stability value is bigger, illustrates that the stability of access point is better.
Optionally, the above-mentioned position that the mobile terminal is determined according to the Wi-Fi list, it may include following steps:
34), determine that signal strength indication is greater than K target access of preset signal strength value from the Wi-Fi list Information, the K are the integer greater than 1;
35) position of the mobile terminal, is determined according to the K target access information.
It wherein, may include multiple access points in Wi-Fi list, each access point can correspond to a signal strength indication.On Stating preset signal strength value can be by system default or user's self-setting.Each access point can be determined from Wi-Fi list The signal strength indication of each access point is compared with preset signal strength value by signal strength indication respectively, thus, K can be obtained The access-in point information of a target access and the K access point, wherein K is that the integer more than or equal to 1 therefore can be according to K A target access information determines the position of mobile terminal, for example, can connect the signal strength indication in the K access point is maximum Position of the position of access point as mobile terminal, alternatively, the position that can randomly choose an access point from the K access point is made For the position of mobile terminal.Certainly, if only one access point in Wi-Fi list, may only be made with the position of the access point For the position of mobile terminal.
Optionally, above-mentioned K target access information corresponds to K target position, wherein each target access corresponding one A target position;In above-mentioned steps 35, the position of the mobile terminal is determined according to the K target access information, comprising:
351) the K target position, is marked on map indoors, the K target position constitutes target area;
352), the position for being marked the center of the target area is as the position of the mobile terminal.
Wherein, the corresponding target position of each target access information in above-mentioned K target access information, that , which can be marked on map indoors, then, K target access information corresponds to K target position, K target position can be marked on map indoors, in this way, K target position be connected in turn (for example, K be 3 when, can A triangle is obtained, when K is 4, a quadrangle can be obtained), in this way, K target position may make up a target area, it can Using the position marked on the center in the target area indoors map as the position of mobile terminal.
Optionally, above-mentioned steps 352 can also be implemented as follows:
For example, the position that the center of gravity of target area can be marked is as the position of mobile terminal.
It should be noted that the calculation of above-mentioned center or center of gravity is the prior art, can refer in geometry center or The calculation method of person's center of gravity.After obtaining center or center of gravity, it can be mapped in indoor map, the center or center of gravity are marked The position of note can be used as the position of mobile terminal.
Optionally, in the case where mobile terminal is in Wi-Fi connection status, if mobile terminal access is served as by terminal device Hot spot, then, can be using the position of the terminal device as the position of the mobile terminal.For example, mobile terminal can be set to terminal Preparation send position acquisition to request, and receives the position sent by mobile terminal.
Through the embodiment of the present invention, when mobile terminal initiates to position, the Wi-Fi connection status of mobile terminal is detected, When mobile terminal is in Wireless Fidelity Wi-Fi connection status, the Wi-Fi list of last scan is obtained, is determined according to Wi-Fi list The position of mobile terminal.To determine the shifting according to the list of last time Wi-Fi in the case where mobile terminal is in Wi-Fi connection status The position of dynamic terminal, in this way, can be scanned again without mobile terminal in position fixing process to obtain Wi-Fi list, because And the power consumption of mobile terminal can be reduced.In addition, can be saved since mobile terminal does not have to be described again to obtain Wi-Fi list Sweep time is saved, locating speed is accelerated.
Consistent with the abovely, referring to Fig. 2, being the second of a kind of mobile terminal locating method provided in an embodiment of the present invention Embodiment flow diagram.Mobile terminal locating method as described in this embodiment, comprising the following steps:
201, when mobile terminal initiates to position, the Wi-Fi connection status of the mobile terminal is detected.
202, when the mobile terminal is in Wireless Fidelity Wi-Fi connection status, the Wi-Fi column of last scan are obtained Table.
203, the position of the mobile terminal is determined according to the Wi-Fi list.
The specific descriptions of above-mentioned steps 201- step 203 can refer to the step 101- of method of locating terminal described in Fig. 1 Step 103.
204, when the mobile terminal is in Wi-Fi not-connected status, current Wi-Fi list is obtained.
Wherein, it is in Wi-Fi not-connected status in mobile terminal, then the Wi-Fi chip of possible mobile terminal, which is in, opens State, but it not yet accesses any one access point.In this way, current Wi-Fi can be obtained after Wi-Fi chip scanning List.
205, target Wi-Fi list is obtained from history positioning record according to the current Wi-Fi list, wherein institute It states and has recorded multiple Wi-Fi lists in history positioning record, the corresponding position of every Wi-Fi list, the target Wi-Fi column Table is a list in the multiple Wi-Fi list.
Wherein, after the Wi-Fi chip of mobile terminal carries out positioning scanning completion every time, a Wi- can be obtained Fi list, the Wi-Fi list scanned every time can be stored in history positioning record, in this way, multiple Wi-Fi lists can be obtained, often One Wi-Fi list corresponds to a position.Target Wi-Fi list is a list in multiple Wi-Fi list.Mobile terminal can Choose an access point in current Wi-Fi list, according to the access-in point information of the access point history positioning record in into Row search, using the list comprising the access-in point information of search as target Wi-Fi list.For example, in current Wi-Fi list Access point A access-in point information, scanned for according to the access-in point information of access point A, if history positioning record in include The Wi-Fi list of the access-in point information of access point A is then used as target Wi-Fi list.
206, judge whether the similarity between the current Wi-Fi list and target Wi-Fi list is greater than default threshold Value.
Wherein, above-mentioned preset threshold can be by system default or user's self-setting.It can be by current Wi-Fi list and mesh Mark Wi-Fi list is compared, and a similarity can be obtained.The scanning of current Wi-Fi scanning result and history positioning record As a result, illustrating that user in the position of last time positioning, can directly return to the positioning of last time again when similarity is greater than preset threshold As a result, and renewable history scanning record, i.e., in history scanning record, with current Wi-Fi list substitution target Wi-Fi column Table.
Optionally, above-mentioned similarity can be set to the access point that target Wi-Fi list is not present in current Wi-Fi list Number, it is assumed that include access point a1, a2, a3 and a4 in target Wi-Fi list, include access point in current Wi-Fi list A1, a2 and a5, then the access point number for being not present in target Wi-Fi list is 2 (i.e. a3 and a4), then its similarity is 2.
Optionally, above-mentioned similarity, which can be set to, is present in connecing for target Wi-Fi list with the access point of current Wi-Fi list Ratio between access point number and the total number of the access point of target Wi-Fi list, it is assumed that include access in target Wi-Fi list Point a1, a2, a3 and a4 include access point a1, a2 and a5 in current Wi-Fi list, are then present in connecing for target Wi-Fi list Access point number is 2 (i.e. a1 and a2), then its similarity is 50%.
207, the similarity between the current Wi-Fi list and the target Wi-Fi list is greater than described default When threshold value, position of the corresponding position of the target Wi-Fi list as the mobile terminal is obtained.
Wherein, it when the similarity between current Wi-Fi list and target Wi-Fi list is greater than preset threshold, can obtain Take position of the corresponding position of target Wi-Fi list as mobile terminal.
Optionally, it after above-mentioned steps 205, can also comprise the following steps:
Using the corresponding position of the target Wi-Fi list as the position of the mobile terminal.
Optionally, the similarity between current Wi-Fi list and target Wi-Fi list is less than or equal to preset threshold When, the position that global positioning system (Global Positioning System, GPS) determines mobile terminal can be used.
Optionally, the similarity between current Wi-Fi list and target Wi-Fi list is less than or equal to preset threshold When, position acquisition request can be sent to wearable device by Bluetooth technology, receive to be used as by the position that the wearable device is sent and be somebody's turn to do The position of mobile terminal.
As can be seen that through the embodiment of the present invention, when mobile terminal initiates to position, the Wi-Fi for detecting mobile terminal connects State is connect, when mobile terminal is in Wireless Fidelity Wi-Fi connection status, the Wi-Fi list of last scan is obtained, according to Wi- Fi list determines the position of mobile terminal, also, when mobile terminal is in Wi-Fi not-connected status, obtains current Wi-Fi List obtains target Wi-Fi list from history positioning record according to current Wi-Fi list, wherein in history positioning record Multiple Wi-Fi lists are had recorded, the corresponding position of every Wi-Fi list, target Wi-Fi list is in multiple Wi-Fi lists A list, when similarity between current Wi-Fi list and target Wi-Fi list is greater than preset threshold, obtain mesh Mark position of the corresponding position of Wi-Fi list as mobile terminal.To, can in the case where mobile terminal is in Wi-Fi connection status, The position of the mobile terminal is determined according to the list of last time Wi-Fi, and in the case where mobile terminal is in Wi-Fi not-connected status, it can root It is positioned according to history and records the position for determining mobile terminal, in this way, can be scanned again in position fixing process without mobile terminal To obtain Wi-Fi list, thus, the power consumption of mobile terminal can be reduced, and may be implemented quickly to position.
Consistent with the abovely, specific as follows the following are the device for implementing above-mentioned mobile terminal locating method:
Fig. 3 a is please referred to, is a kind of schematic structural diagram of the first embodiment of mobile terminal provided in an embodiment of the present invention.This Mobile terminal described in embodiment, comprising: detection unit 301, acquiring unit 302 and positioning unit 303, specific as follows:
Detection unit 301, for detecting the Wi-Fi connection status of the mobile terminal when mobile terminal initiates to position;
Acquiring unit 302 is swept for when the mobile terminal is in Wireless Fidelity Wi-Fi connection status, obtaining last time The Wi-Fi list retouched;
Positioning unit 303, for determining the position of the mobile terminal according to the Wi-Fi list.
Optionally, such as Fig. 3 b, Fig. 3 b is a kind of modification structures of mobile terminal described in Fig. 3 a, and described by Fig. 3 a Mobile terminal compare, can also include: judging unit 304, it is specific as follows:
The acquiring unit 302 also particularly useful for: when the mobile terminal is in Wi-Fi not-connected status, acquisition is worked as Preceding Wi-Fi list;Target Wi-Fi list is obtained from history positioning record according to the current Wi-Fi list, wherein Multiple Wi-Fi lists, the corresponding position of every Wi-Fi list, the target Wi-Fi are had recorded in the history positioning record List is a list in the multiple Wi-Fi list;
Judging unit 304, for judging that the similarity between the current Wi-Fi list and target Wi-Fi list is It is no to be greater than preset threshold, it is the current Wi-Fi list and the target Wi- in the judging result of the judging unit 304 When similarity between Fi list is greater than the preset threshold, the target Wi-Fi list pair is obtained by the acquiring unit 302 Position of the position answered as the mobile terminal.
It optionally, include the access-in point information of M access point, the M in the embodiment of the present invention, in the Wi-Fi list It is the specific thin of the positioning unit 303 of mobile terminal described in Fig. 3 a or Fig. 3 b for the integer greater than 1, such as Fig. 3 c, Fig. 3 c Change structure comprising: evaluation module 3031 and the first determining module 3032, specific as follows:
Evaluation module 3031, for according to the access-in point information of each access point in the M access point to described each Access point carries out estimation of stability, obtains the M estimation of stability value;
First determining module 3032, for by the position of the corresponding access point of maximum value in the M estimation of stability value Set the position as the mobile terminal.
Optionally, if Fig. 3 d, Fig. 3 d are the specific thin of the positioning unit 303 of mobile terminal described in Fig. 3 a or Fig. 3 b Change structure comprising: the second determining module 3033 and third determining module 3034, specific as follows:
Second determining module 3033, for determining that signal strength indication is greater than preset signal strength from the Wi-Fi list K target access information of value, the K are the integer greater than 1;
Third determining module 3034, for determining the position of the mobile terminal according to the K target access information.
Optionally, the K target access information corresponds to the K target position, wherein each target access The corresponding target position of point;Above-mentioned third determining module 3034 can include: mark module (not marked in figure) and the 4th Determining module (does not mark) in figure, specific as follows:
Mark module, marks the K target position on map indoors, and the K target position constitutes target Region;
4th determining module, the position for being marked the center of the target area is as the position of the mobile terminal It sets.
As can be seen that mobile terminal described in through the embodiment of the present invention, it can be when mobile terminal initiates to position, detection The Wi-Fi connection status of mobile terminal obtains last scan when mobile terminal is in Wireless Fidelity Wi-Fi connection status Wi-Fi list determines the position of mobile terminal according to Wi-Fi list.To which Wi-Fi connection status can be in mobile terminal Under, the position of the mobile terminal is determined according to the list of last time Wi-Fi, in this way, mobile terminal can not be had to again in position fixing process It is scanned to obtain Wi-Fi list, thus, the power consumption of mobile terminal can be reduced.
Consistent with the abovely, referring to Fig. 4, being a kind of second embodiment knot of mobile terminal provided in an embodiment of the present invention Structure schematic diagram.Mobile terminal as described in this embodiment, comprising: at least one input equipment 1000;At least one output is set Standby 2000;At least one processor 3000, such as CPU;With memory 4000, above-mentioned input equipment 1000, output equipment 2000, Processor 3000 and memory 4000 are connected by bus 5000.
Wherein, above-mentioned input equipment 1000 concretely touch panel, physical button or mouse.
Above-mentioned output equipment 2000 concretely display screen.
Above-mentioned memory 4000 can be high speed RAM memory, can also be nonvolatile storage (non-volatile ), such as magnetic disk storage memory.Above-mentioned memory 4000 is used to store a set of program code, above-mentioned input equipment 1000, defeated Equipment 2000 and processor 3000 are used to call the program code stored in memory 4000 out, perform the following operations:
Above-mentioned processor 3000, is used for:
When mobile terminal initiates to position, the Wi-Fi connection status of the mobile terminal is detected;
When the mobile terminal is in Wireless Fidelity Wi-Fi connection status, the Wi-Fi list of last scan is obtained;
The position of the mobile terminal is determined according to the Wi-Fi list.
Optionally, above-mentioned processor 3000 also particularly useful for:
When the mobile terminal is in Wi-Fi not-connected status, current Wi-Fi list is obtained;
Target Wi-Fi list is obtained from history positioning record according to the current Wi-Fi list, wherein described to go through Multiple Wi-Fi lists, the corresponding position of every Wi-Fi list are had recorded in history positioning record, the target Wi-Fi list is A list in the multiple Wi-Fi list;
Judge whether the similarity between the current Wi-Fi list and target Wi-Fi list is greater than preset threshold;
Similarity between the current Wi-Fi list and the target Wi-Fi list is greater than the preset threshold When, obtain position of the corresponding position of the target Wi-Fi list as the mobile terminal.
It optionally, include the access-in point information of M access point in the Wi-Fi list, the M is the integer greater than 1;On State the position that processor 3000 determines the mobile terminal according to the Wi-Fi list, comprising:
Stability is carried out to each access point according to the access-in point information of each access point in the M access point to comment Valence obtains the M estimation of stability value;
Using the position of the corresponding access point of maximum value in the M estimation of stability value as the position of the mobile terminal It sets.
Optionally, above-mentioned processor 3000 determines the position of the mobile terminal according to the Wi-Fi list, comprising:
Determine that signal strength indication is greater than K target access information of preset signal strength value from the Wi-Fi list, The K is the integer greater than 1;
The position of the mobile terminal is determined according to the K target access information.
Optionally, the K target access information corresponds to the K target position, wherein each target access The corresponding target position of point;Above-mentioned processor 3000 determines described mobile whole according to the K target access information The position at end, comprising:
The K target position is marked on map indoors, the K target position constitutes target area;
The position that the center of the target area is marked is as the position of the mobile terminal.
The embodiment of the present invention also provides a kind of computer storage medium, wherein the computer storage medium can be stored with journey Sequence, the program include some or all of any mobile terminal locating method recorded in above method embodiment when executing Step.
Although combining each embodiment herein, invention has been described, however, implementing the claimed invention In the process, those skilled in the art are by checking the attached drawing, disclosure and the appended claims, it will be appreciated that and it is real Other variations of the existing open embodiment.In the claims, " comprising " (comprising) word is not excluded for other compositions Part or step, "a" or "an" are not excluded for multiple situations.Claim may be implemented in single processor or other units In several functions enumerating.Mutually different has been recited in mutually different dependent certain measures, it is not intended that these are arranged It applies to combine and generates good effect.
It will be understood by those skilled in the art that the embodiment of the present invention can provide as method, apparatus (equipment) or computer journey Sequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the present invention The form of embodiment.Moreover, it wherein includes the calculating of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.Computer program is stored/distributed in suitable medium, is provided together with other hardware or as the one of hardware Part can also use other distribution forms, such as pass through the wired or wireless telecommunication system of Internet or other.
The present invention be referring to the embodiment of the present invention method, apparatus (equipment) and computer program product flow chart with/ Or block diagram describes.It should be understood that each process that can be realized by computer program instructions in flowchart and/or the block diagram and/ Or the combination of the process and/or box in box and flowchart and/or the block diagram.It can provide these computer program instructions To general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor to generate one A machine so that by the instruction that the processor of computer or other programmable data processing devices executes generate for realizing The device for the function of being specified in one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although in conjunction with specific features and embodiment, invention has been described, it is clear that, do not departing from this hair In the case where bright spirit and scope, it can be carry out various modifications and is combined.Correspondingly, the specification and drawings are only institute The exemplary illustration of the invention that attached claim is defined, and be considered as covered in the scope of the invention any and all and repair Change, change, combining or equivalent.Obviously, those skilled in the art various changes and modifications can be made to the invention without It is detached from the spirit and scope of the present invention.If in this way, these modifications and changes of the present invention belong to the claims in the present invention and its Within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of mobile terminal locating method characterized by comprising
When mobile terminal initiates to position, the Wi-Fi connection status of the mobile terminal is detected;
When the mobile terminal is in Wireless Fidelity Wi-Fi connection status, the Wi-Fi list of last scan is obtained;
The position of the mobile terminal is determined according to the Wi-Fi list;
Wherein, the method also includes:
When the mobile terminal is in Wi-Fi not-connected status, current Wi-Fi list is obtained;
Target Wi-Fi list is obtained from history positioning record according to the current Wi-Fi list, wherein the history is fixed Multiple Wi-Fi lists are had recorded in the record of position, the corresponding position of every Wi-Fi list, the target Wi-Fi list is described A list in multiple Wi-Fi lists;
Judge whether the similarity between the current Wi-Fi list and target Wi-Fi list is greater than preset threshold;
When similarity between the current Wi-Fi list and the target Wi-Fi list is greater than the preset threshold, obtain Take position of the corresponding position of the target Wi-Fi list as the mobile terminal.
2. the method according to claim 1, wherein including the access point of M access point in the Wi-Fi list Information, the M are the integer greater than 1;
The position that the mobile terminal is determined according to the Wi-Fi list, comprising:
Estimation of stability is carried out to each access point according to the access-in point information of each access point in the M access point, Obtain the M estimation of stability value;
Using the position of the corresponding access point of maximum value in the M estimation of stability value as the position of the mobile terminal.
3. the method according to claim 1, wherein described determine the movement eventually according to the Wi-Fi list The position at end, comprising:
Determine that signal strength indication is greater than K target access information of preset signal strength value from the Wi-Fi list, it is described K is the integer greater than 1;
The position of the mobile terminal is determined according to the K target access information.
4. according to the method described in claim 3, it is characterized in that, the K target access information corresponds to the K target Position, wherein each corresponding target position of the target access;
The position that the mobile terminal is determined according to the K target access information, comprising:
The K target position is marked on map indoors, the K target position constitutes target area;
The position that the center of the target area is marked is as the position of the mobile terminal.
5. a kind of mobile terminal characterized by comprising
Detection unit, for detecting the Wi-Fi connection status of the mobile terminal when mobile terminal initiates to position;
Acquiring unit, for obtaining the Wi- of last scan when the mobile terminal is in Wireless Fidelity Wi-Fi connection status Fi list;
Positioning unit, for determining the position of the mobile terminal according to the Wi-Fi list;
Wherein, the acquiring unit also particularly useful for: when the mobile terminal is in Wi-Fi not-connected status, obtain current Wi-Fi list;Target Wi-Fi list is obtained from history positioning record according to the current Wi-Fi list, wherein institute It states and has recorded multiple Wi-Fi lists in history positioning record, the corresponding position of every Wi-Fi list, the target Wi-Fi column Table is a list in the multiple Wi-Fi list;
The mobile terminal further include:
Judging unit, for judging it is pre- whether the similarity between the current Wi-Fi list and target Wi-Fi list is greater than If threshold value, the judging unit judging result between the current Wi-Fi list and the target Wi-Fi list When similarity is greater than the preset threshold, the corresponding position of the target Wi-Fi list is obtained as institute by the acquiring unit State the position of mobile terminal.
6. mobile terminal according to claim 5, which is characterized in that include connecing for M access point in the Wi-Fi list Access point information, the M are the integer greater than 1;
The positioning unit includes:
Evaluation module, for being clicked through according to the access-in point information of each access point in the M access point to each access Row estimation of stability obtains the M estimation of stability value;
First determining module, for using the position of the corresponding access point of maximum value in the M estimation of stability value as institute State the position of mobile terminal.
7. mobile terminal according to claim 5, which is characterized in that the positioning unit includes:
Second determining module, for determining that signal strength indication is greater than K mesh of preset signal strength value from the Wi-Fi list Access-in point information is marked, the K is the integer greater than 1;
Third determining module, for determining the position of the mobile terminal according to the K target access information.
8. mobile terminal according to claim 7, which is characterized in that the K target access information corresponds to the K Target position, wherein each corresponding target position of the target access;
The third determining module includes:
Mark module, marks the K target position on map indoors, and the K target position constitutes target area;
4th determining module, the position for being marked the center of the target area is as the position of the mobile terminal.
9. a kind of mobile terminal characterized by comprising
Processor and memory;Wherein, the processor is by calling the code in the memory or instructing to execute such as power Benefit requires method described in 1 to 4 any one.
10. a kind of computer readable storage medium, which is characterized in that for storing computer program, wherein the computer journey Sequence makes computer execute method according to any of claims 1-4.
CN201611117896.7A 2016-12-07 2016-12-07 A kind of mobile terminal locating method and mobile terminal Expired - Fee Related CN106535102B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611117896.7A CN106535102B (en) 2016-12-07 2016-12-07 A kind of mobile terminal locating method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611117896.7A CN106535102B (en) 2016-12-07 2016-12-07 A kind of mobile terminal locating method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106535102A CN106535102A (en) 2017-03-22
CN106535102B true CN106535102B (en) 2019-06-28

Family

ID=58341981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611117896.7A Expired - Fee Related CN106535102B (en) 2016-12-07 2016-12-07 A kind of mobile terminal locating method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106535102B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682926A (en) * 2017-10-12 2018-02-09 珠海市魅族科技有限公司 Offline localization method and offline positioner
CN108111971B (en) * 2017-12-13 2021-02-23 Oppo广东移动通信有限公司 Positioning method, positioning device, storage medium and mobile terminal
CN111148216B (en) * 2019-03-27 2021-07-23 广东小天才科技有限公司 Electronic equipment positioning method and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2416547A3 (en) * 2010-08-04 2012-02-29 Cellco Partnership D/B/A Verizon Wireless Wireless mobile communication device with autonomous WI-FI control
CN103533635A (en) * 2012-07-03 2014-01-22 希姆通信息技术(上海)有限公司 Mobile terminal positioning method and mobile terminal
CN104796984B (en) * 2015-04-29 2018-07-13 百度在线网络技术(北京)有限公司 Base station positioning method and device
CN105068046A (en) * 2015-08-26 2015-11-18 中国联合网络通信集团有限公司 Positioning method of intelligent equipment, and gateway
CN105611624B (en) * 2015-09-25 2020-02-18 宇龙计算机通信科技(深圳)有限公司 Wi-Fi positioning method, Wi-Fi positioning system and terminal

Also Published As

Publication number Publication date
CN106535102A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN106604362B (en) A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal
US10299197B2 (en) Wireless fidelity connection method, mobile terminal and storage medium
CN106445312A (en) Notification message display method and display apparatus, and terminal
CN106528791B (en) A kind of method and device of sending out notice message
CN106973384B (en) A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal
CN106535102B (en) A kind of mobile terminal locating method and mobile terminal
WO2018149137A1 (en) Wireless fidelity (wi-fi) connection method and related product
CN105117475B (en) Recommend method and user terminal in a kind of shop
TWI706332B (en) Graphic coding display method and device and computer equipment
US10728223B2 (en) WI-FI connection method, mobile terminal and storage medium
CN108156384A (en) Image processing method, device, electronic equipment and medium
WO2019019356A1 (en) Application program test method and apparatus, computer device and storage medium
CN106257448A (en) The methods of exhibiting of a kind of key word and device
WO2020238965A1 (en) Production environment performance evaluation method and apparatus, and storage medium
CN106658670B (en) A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal
WO2020233093A1 (en) Association graph generation method and apparatus, computer device, and storage medium
CN106888496B (en) A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal
CN113282804B (en) Method, device and storage medium for adjusting relationship diagram
CN109818851A (en) A kind of information persistence method, device and electronic equipment
CN105138950A (en) Photographing method and user terminal
CN112765033B (en) Speed testing method, device, equipment and storage medium
CN108874633A (en) WiFI tag attributes methods of exhibiting, equipment and medium
CN113900562A (en) Excel-based testing method and device and storage medium
CN106970869A (en) The method of pressure test, apparatus and system
CN104836891B (en) A kind of method for managing contact person information

Legal Events

Date Code Title Description
C06 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: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

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

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

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: 20190628

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