CN106535102A - Mobile terminal positioning method and mobile terminal - Google Patents

Mobile terminal positioning method and mobile terminal Download PDF

Info

Publication number
CN106535102A
CN106535102A CN201611117896.7A CN201611117896A CN106535102A CN 106535102 A CN106535102 A CN 106535102A CN 201611117896 A CN201611117896 A CN 201611117896A CN 106535102 A CN106535102 A CN 106535102A
Authority
CN
China
Prior art keywords
mobile terminal
lists
target
access
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.)
Granted
Application number
CN201611117896.7A
Other languages
Chinese (zh)
Other versions
CN106535102B (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 mobile terminal positioning method and a mobile terminal. The method comprises the steps of: when the mobile terminal initiates positioning, detecting a Wi-Fi connection state of the mobile terminal; when the mobile terminal is in the Wi-Fi connection state, acquiring a Wi-Fi list scanned last time; and according to the Wi-Fi list, determining a position of the mobile terminal. By the mobile terminal positioning method and the mobile terminal which are provided by the embodiment of the invention, power consumption of the mobile terminal can be reduced in the positioning process.

Description

A kind of mobile terminal locating method and mobile terminal
Technical field
The present invention relates to Internet technical field, and in particular to a kind of mobile terminal locating method and mobile terminal.
Background technology
With the fast development of information technology, mobile terminal (such as mobile phone, panel computer etc.) is used using increasingly popularizing Requirement of the family to mobile terminal also more and more higher, not only needs higher processing speed, the also continuation of the journey to mobile terminal to propose Require.
In prior art, carry out positioning have become daily life primary demand, Yong Huke using mobile terminal More easily to find the destination oneself thought using mobile terminal, but, during positioning, mobile terminal can be consumed More power consumption.
The content of the invention
A kind of mobile terminal locating method and mobile terminal are embodiments provided, to, in position fixing process, dropping The power consumption of low mobile terminal.
Embodiment of the present invention first aspect provides a kind of mobile terminal locating method, including:
When mobile terminal initiates to position, the Wi-Fi connection status of the mobile terminal are detected;
When the mobile terminal is in Wireless Fidelity Wi-Fi connection status, the Wi-Fi lists of last scan are obtained;
The position of the mobile terminal is determined according to the Wi-Fi lists.
Embodiment of the present invention second aspect provides a kind of mobile terminal, including:
Detector unit, for when mobile terminal initiates to position, detecting the Wi-Fi connection status of the mobile terminal;
Acquiring unit, for when the mobile terminal is in Wireless Fidelity Wi-Fi connection status, obtaining last scan Wi-Fi lists;
Positioning unit, for the position of the mobile terminal is determined according to the Wi-Fi lists.
The embodiment of the present invention third aspect provides a kind of mobile terminal, including:
Processor and memory;Wherein, the processor is by calling code in the memory or instruction to perform The some or all of step of the method described by first aspect.
Implement the embodiment of the present invention, have the advantages that:
By the embodiment of the present invention, when mobile terminal initiates to position, the Wi-Fi connection status of mobile terminal are detected, The Wi-Fi lists of last scan when mobile terminal is in Wireless Fidelity Wi-Fi connection status, are obtained, is determined according to Wi-Fi lists The position of mobile terminal.So as to the shifting can be determined according to the list of last time Wi-Fi in mobile terminal under Wi-Fi connection status The position of dynamic terminal, thus, the power consumption of mobile terminal in position fixing process, can be reduced.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to making needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for ability For the those of ordinary skill of domain, on the premise of not paying creative work, can be attached to obtain others according to these accompanying drawings Figure.
Fig. 1 is a kind of first embodiment schematic flow sheet of mobile terminal locating method provided in an embodiment of the present invention;
Fig. 1 a are that schematic diagram is demonstrated in a kind of Wi-Fi lists provided in an embodiment of the present invention;
Fig. 2 is a kind of second embodiment schematic flow sheet of mobile terminal locating method provided in an embodiment of the present invention;
Fig. 3 a are a kind of first embodiment structural representations of mobile terminal provided in an embodiment of the present invention;
Fig. 3 b are the another structural representations of the mobile terminal described by Fig. 3 a provided in an embodiment of the present invention;
Fig. 3 c are the structural representations of the positioning unit of the mobile terminal described by Fig. 3 a provided in an embodiment of the present invention;
Fig. 3 d are the another structural representations of the positioning unit of the mobile terminal described by Fig. 3 a provided in an embodiment of the present invention Figure;
Fig. 4 is a kind of second embodiment structural representation of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than the embodiment of whole.Based on this Embodiment in bright, the every other enforcement obtained under the premise of creative work is not made by those of ordinary skill in the art Example, belongs to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " in description and claims of this specification and the accompanying drawing and " Four " it is etc. for distinguishing different objects, rather than for describing particular order.Additionally, term " comprising " and " having " and it Any deformation, it is intended that cover and non-exclusive include.For example contain the process of series of steps or unit, method, be System, product or equipment are not limited to the step of listing or unit, but alternatively also include the step of not listing or list Unit, or alternatively also include other intrinsic for these processes, method, product or equipment step or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can be wrapped in conjunction with the embodiments It is contained at least one embodiment of the present invention.It is identical that each position in the description shows that the phrase might not each mean Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly it is understood by, embodiment described herein can be combined with other embodiments.
Mobile terminal described by the embodiment of the present invention can include smart mobile phone (as Android phone, iOS mobile phones, Windows Phone mobile phones etc.), panel computer, mobile unit, palm PC, notebook computer, mobile internet device (MID, Mobile Internet Devices) or Wearable etc., above-mentioned is only citing, and non exhaustive, comprising but do not limit In above-mentioned mobile terminal.
Fig. 1 is referred to, is that a kind of first embodiment flow process of mobile terminal locating method provided in an embodiment of the present invention is shown It is intended to.Mobile terminal locating method described in the present embodiment, comprises the following steps:
101st, when mobile terminal initiates to position, the Wi-Fi connection status of the mobile terminal are detected.
In actual use, user can produce a positioning instruction, the positioning instruction when applying using some, Positioning is initiated for triggering the position of the acquisition for mobile terminal mobile terminal, i.e. mobile terminal.It is above-mentioned some application may include but It is not limited only to:Map application is (such as:Baidu map, Google Maps), instant messaging application (wechat, QQ etc.), social networking application (such as Microblogging, Renren Network, Facebook etc.), purchase by group application (popular comment, U.S. group etc.) etc..
Alternatively, the Wi-Fi connection status of above-mentioned mobile terminal can be Wi-Fi connection status, or, Wi-Fi is not connected with State (i.e. mobile terminal does not connect Wi-Fi, and what is may connected is mobile communications network (such as 2G, 3G, 4G, 5G network etc.), or Person, does not access any network).
102nd, the Wi-Fi row of last scan when the mobile terminal is in Wireless Fidelity Wi-Fi connection status, are obtained Table.
Wherein, mobile terminal be in Wireless Fidelity Wi-Fi connection status when, then can direct access last scan Wi- Fi lists, such as Fig. 1 a, a kind of demonstration schematic diagrames of Fig. 1 a for Wi-Fi lists..
It should be noted that in mobile terminal before Wireless Fidelity Wi-Fi connection status, it is also desirable to carry out Wi-Fi Scanning, after which carries out Wi-Fi scannings, is obtained a Wi-Fi list, can preserve the Wi-Fi lists, it is generally the case that Include at least 1 access point, and the access-in point information of the access point in the Wi-Fi lists, access-in point information may include but not only It is limited to:APN, the MAC Address of access point, access point service set (Service Set Identifier, SSID), accessing user's number of access point, signal strength values of access point etc..Wherein, each access in Wi-Fi lists Point can correspond to a position.Mobile terminal can select an access point from the Wi-Fi lists, and access the access point, from And, realize accessing internet.So, when mobile terminal is in Wireless Fidelity Wi-Fi connection status, then can direct access last time The Wi-Fi lists of scanning.
103rd, the position of the mobile terminal is determined according to the Wi-Fi lists.
Alternatively, mobile terminal can select at least one access point from Wi-Fi lists, and according at least one access The position of point determines the position of mobile terminal.For example, three access points are selected from Wi-Fi lists, three access points can be A, B and C, then can using the position of the arbitrary access point in three access points as mobile terminal position, such as:Can be by this three Position of the position of the access point of the signal strength values maximum in access point as mobile terminal, or, can access from this three The position of the position as mobile terminal of an access point is randomly choosed in point.Certainly, if only one of which is accessed in Wi-Fi lists Point, then may only be using the position of the access point as the position of mobile terminal.
Alternatively, mobile terminal can be using the position of the maximum access point of signal strength values in Wi-Fi lists as the movement The position of terminal.For example, multiple access points can be included in Wi-Fi lists, the signal strength values of each access point differ, thus, Position of the position of the maximum access point of optional signal strength values as mobile terminal, because, often in the case of more, letter The maximum position of number intensity level is the position nearest with mobile terminal, thus, the precision of mobile terminal location is higher.
Alternatively, mobile terminal can be using the position of the access point being connected with the mobile terminal in Wi-Fi lists as the shifting The position of dynamic terminal.For example, multiple access points can be included in Wi-Fi lists, can includes in the access point and connect in the past and which Access point of the password for static password, it is also possible to the access point comprising dynamic password, it is of course also possible to include that fishing access Point (this access point security is relatively low).Under normal circumstances, mobile terminal can preferentially be connected in the past and its password for static state The access point connection of password, thus, such access point can be accessed quickly, thus, Wi-Fi connection can be comparatively fast realized, and then, Can using the position of the access point being connected with mobile terminal as mobile terminal position.
Alternatively, the access-in point information comprising M access point in the Wi-Fi lists, the M is the integer more than 1; In above-mentioned steps 103, the position of the mobile terminal is determined according to the Wi-Fi lists, it may include following steps:
31), each access point is carried out according to the access-in point information of each access point in the M access point stable Property evaluate, obtain the M estimation of stability value;
32), using the position of the corresponding access point of maximum in the M estimation of stability value as the mobile terminal Position.
Wherein, the estimation of stability value of each access point is can determine that in above-mentioned 31, the estimation of stability value can be used to evaluate The stability of each access point, the estimation of stability value of a certain access point are bigger, then can illustrate that the stability of the access point is better. Thus, the position of the position as mobile terminal of the best access point of stability may be selected.
Alternatively, the stability of access point can be evaluated using at least one estimation of stability index, obtains weight Value, wherein, estimation of stability index may include but be not limited only to:The accessible number of users of access point, the signal of access point are strong Angle value, the network rate of access point, the network bandwidth of access point, the security of access point are (mainly by pacifying in mobile terminal The fail-safe software of dress is monitored to access point) etc..
It should be noted that during due to being evaluated to the stability of access point using single stable evaluation index, tool There is certain limitation, therefore, the stability of access point can be evaluated using multiple estimation of stability indexs, 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 it is better also to may not be certain estimation of stability effect, therefore, will to estimation of stability In the case of asking higher, the stability of access point can be evaluated using 2~10 estimation of stability indexs.Specifically, select Take the number and which index of estimation of stability index, can be according to situation be implemented depending on.
Alternatively, in the case where the estimation of stability required precision to access point is higher, multiple stability can be adopted Evaluation index is evaluated to the stability of access point, is carried out stability to the stability of access point in estimation of stability index and is commented The weight of estimation of stability index in the plurality of estimation of stability index, during valency, can be set, multiple estimation of stability values are obtained, Final estimation of stability value is obtained according to the plurality of estimation of stability value and its corresponding weight, for example, three stability Evaluation index is respectively:A indexs, B indexs and C indexs, 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 to the stability of a certain access point with C, the corresponding estimation of stability values of A be b1, the corresponding estimation of stability values of B For b2, the corresponding estimation of stability values of C are b3, then, last estimation of stability value=a1b1+a2b2+a3b3.Normal conditions Under, estimation of stability value is bigger, illustrates that the stability of access point is better.
Alternatively, the above-mentioned position that the mobile terminal is determined according to the Wi-Fi lists, it may include following steps:
34), K target access of the signal strength values more than preset signal strength value is determined from the Wi-Fi lists Information, the K are the integer more than 1;
35) position of the mobile terminal, is determined according to the K target access information.
Wherein, multiple access points can be included in Wi-Fi lists, each access point can correspond to signal strength values.On State preset signal strength value can voluntarily be arranged by system default or user.Each access point can be determined from Wi-Fi lists Signal strength values, the signal strength values of each access point are compared with preset signal strength value respectively, thus, K is obtained Individual target access, and the access-in point information of the K access point, wherein, K is the integer more than or equal to 1, therefore, can be according to K Individual target access information determines the position of mobile terminal, for example, can connect the signal strength values in the K access point maximum Position of the position of access point as mobile terminal, or, the position that an access point can be randomly choosed from the K access point is made For the position of mobile terminal.Certainly, if only one of which access point in Wi-Fi lists, may only be made with the position of the access point For the position of mobile terminal.
Alternatively, above-mentioned K target location of K target access information correspondence, wherein, each target access correspondence one Individual target location;In above-mentioned steps 35, the position of the mobile terminal is determined according to the K target access information, including:
351) the K target location, the K target location, is marked to constitute target area indoors on map;
352), position of the position marked by the center of the target area as the mobile terminal.
Wherein, each one target location of target access information correspondence in above-mentioned K target access information, that , the target location can be marked on map indoors, then, K target location of K target access information correspondence, its K target location can be marked indoors on map, thus, K target location be connected in turn (for example when, K is 3, can A triangle is obtained, when K is 4, a quadrangle is obtained), thus, K target location may make up a target area, can Using the position marked on the center in the target area indoors map as mobile terminal position.
Alternatively, above-mentioned steps 352 can also be carried out as follows:
For example, position of the position that the center of gravity of target area can be marked as mobile terminal.
It should be noted that the calculation of above-mentioned center or center of gravity is prior art, can refer in geometry center or The computational methods of person's center of gravity.After center or center of gravity is obtained, indoor map can be mapped in, the center or center of gravity are marked The position of note can be used as the position of mobile terminal.
Alternatively, in mobile terminal under Wi-Fi connection status, if mobile terminal access is served as by terminal device Focus, then, can using the position of the terminal device as the mobile terminal position.For example, mobile terminal can be set to terminal Preparation send position acquisition to ask, and receives the position sent by mobile terminal.
By the embodiment of the present invention, when mobile terminal initiates to position, the Wi-Fi connection status of mobile terminal are detected, The Wi-Fi lists of last scan when mobile terminal is in Wireless Fidelity Wi-Fi connection status, are obtained, is determined according to Wi-Fi lists The position of mobile terminal.So as to the shifting can be determined according to the list of last time Wi-Fi in mobile terminal under Wi-Fi connection status The position of dynamic terminal, thus, can be scanned without mobile terminal again to obtain Wi-Fi lists in position fixing process, because And, it is possible to decrease the power consumption of mobile terminal.Further, since mobile terminal obtains Wi-Fi lists without being described again, can save Sweep time is saved, accelerates locating speed.
Consistent with the abovely, Fig. 2 is referred to, is the second of a kind of mobile terminal locating method provided in an embodiment of the present invention Embodiment schematic flow sheet.Mobile terminal locating method described in the present embodiment, comprises the following steps:
201st, when mobile terminal initiates to position, the Wi-Fi connection status of the mobile terminal are detected.
202nd, the Wi-Fi row of last scan when the mobile terminal is in Wireless Fidelity Wi-Fi connection status, are obtained Table.
203rd, the position of the mobile terminal is determined according to the Wi-Fi lists.
The step of specific descriptions of above-mentioned steps 201- step 203 can refer to the method for locating terminal described by Fig. 1 101- Step 103.
204th, when the mobile terminal is in Wi-Fi not-connected status, current Wi-Fi lists are obtained.
Wherein, Wi-Fi not-connected status are in mobile terminal, then the Wi-Fi chips of possible mobile terminal are in unlatching State, but which not yet accesses any one access point.Thus, after Wi-Fi chip scannings, current Wi-Fi can be obtained List.
205th, the list of target Wi-Fi is obtained according to the current Wi-Fi lists from history positioning record, wherein, institute Multiple Wi-Fi lists, every one position of Wi-Fi lists correspondence, the target Wi-Fi row are have recorded in stating history positioning record Table is a list in the plurality of Wi-Fi lists.
Wherein, carry out every time positioning after scanning completes in the Wi-Fi chips of mobile terminal, a Wi- can be obtained Fi lists, every time the Wi-Fi lists of scanning can be stored in history positioning record, thus, multiple Wi-Fi lists are obtained, often One Wi-Fi lists correspondence, one position.The list of target Wi-Fi is a list in the plurality of Wi-Fi lists.Mobile terminal can An access point in current Wi-Fi lists is chosen, is entered in history positioning record according to the access-in point information of the access point Line search, using the list comprising the access-in point information of search as the list of target Wi-Fi.For example, in current Wi-Fi lists 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 lists of the access-in point information of access point A are then as the list of target Wi-Fi.
206th, judge the similarity between the current Wi-Fi lists and the list of target Wi-Fi whether more than default threshold Value.
Wherein, above-mentioned predetermined threshold value can be voluntarily arranged by system default or user.Can be by current Wi-Fi lists and mesh Mark Wi-Fi lists are compared, and a similarity is obtained.Current Wi-Fi scanning results position the scanning of record with history As a result, when similarity is more than predetermined threshold value, illustrate that user, again in the position of last time positioning, can directly return the positioning of last time As a result, and renewable history scanning record, i.e., in history scanning record, target Wi-Fi row are substituted with current Wi-Fi lists Table.
Alternatively, above-mentioned similarity is not present in the access point of target Wi-Fi list in being set to current Wi-Fi lists Number, it is assumed that in the list of target Wi-Fi include access point a1, a2, a3 and a4, in current Wi-Fi lists include access point A1, a2 and a5, the then access for being not present in the list of target Wi-Fi count out as 2 (i.e. a3 and a4), then its similarity is 2.
Alternatively, above-mentioned similarity can be set to and be present in connecing for target Wi-Fi list with the access point of current Wi-Fi lists Enter the ratio counted out and between the total number of the access point of target Wi-Fi list, it is assumed that comprising access in the list of target Wi-Fi Point a1, a2, a3 and a4, include access point a1, a2 and a5, are then present in connecing for target Wi-Fi list in current Wi-Fi lists Enter to count out for 2 (i.e. a1 and a2), then its similarity is 50%.
207th, the similarity between the current Wi-Fi lists and the target Wi-Fi list is default more than described During threshold value, the corresponding position of the target Wi-Fi list is obtained as the position of the mobile terminal.
Wherein, when the similarity between current Wi-Fi lists and the list of target Wi-Fi is more than predetermined threshold value, can obtain The corresponding position of target Wi-Fi list is taken as the position of mobile terminal.
Alternatively, after above-mentioned steps 205, can also comprise the steps of:
Using the target Wi-Fi list corresponding position as the mobile terminal position.
Alternatively, the similarity between current Wi-Fi lists and the list of target Wi-Fi is less than or equal to predetermined threshold value When, global positioning system (Global Positioning System, GPS) can be adopted to determine the position of mobile terminal.
Alternatively, the similarity between current Wi-Fi lists and the list of target Wi-Fi is less than or equal to predetermined threshold value When, position acquisition request can be sent to wearable device by Bluetooth technology, the position sent by the wearable device is received as this The position of mobile terminal.
As can be seen that by the embodiment of the present invention, when mobile terminal initiates to position, detecting that the Wi-Fi of mobile terminal connects State is connect, when mobile terminal is in Wireless Fidelity Wi-Fi connection status, the Wi-Fi lists of last scan is obtained, according to Wi- Fi lists determine the position of mobile terminal, also, when mobile terminal is in Wi-Fi not-connected status, obtain current Wi-Fi List, obtains the list of target Wi-Fi according to current Wi-Fi lists from history positioning record, wherein, in history positioning record Have recorded multiple Wi-Fi lists, every one position of Wi-Fi lists correspondence, during the list of target Wi-Fi is multiple Wi-Fi lists A list, the similarity between current Wi-Fi lists and the list of target Wi-Fi be more than predetermined threshold value when, obtain mesh Position of the corresponding position of mark Wi-Fi lists as mobile terminal.So as to, can be under Wi-Fi connection status in mobile terminal, The position of the mobile terminal is determined according to the list of last time Wi-Fi, and in mobile terminal under Wi-Fi not-connected status, can root The position that record determines mobile terminal is positioned according to history, thus, being scanned without mobile terminal again in position fixing process To obtain Wi-Fi lists, thus, it is possible to decrease the power consumption of mobile terminal, it is possible to realize quick positioning.
Consistent with the abovely, it is below to implement the device of above-mentioned mobile terminal locating method, specific as follows:
Fig. 3 a are referred to, is a kind of first embodiment structural representation of mobile terminal provided in an embodiment of the present invention.This Mobile terminal described in embodiment, including:Detector unit 301, acquiring unit 302 and positioning unit 303, it is specific as follows:
Detector unit 301, for when mobile terminal initiates to position, detecting the Wi-Fi connection status of the mobile terminal;
Acquiring unit 302, sweeps for when the mobile terminal is in Wireless Fidelity Wi-Fi connection status, obtaining last time The Wi-Fi lists retouched;
Positioning unit 303, for the position of the mobile terminal is determined according to the Wi-Fi lists.
Alternatively, such as Fig. 3 b, Fig. 3 b are a kind of modification structures of the mobile terminal described by Fig. 3 a, its with 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, obtains and work as Front Wi-Fi lists;The list of target Wi-Fi is obtained according to the current Wi-Fi lists from history positioning record, wherein, Multiple Wi-Fi lists, every one position of Wi-Fi lists correspondence, target Wi-Fi are have recorded in the history positioning record List is a list in the plurality of Wi-Fi lists;
Judging unit 304, for judging that the similarity between the current Wi-Fi lists and the list of target Wi-Fi is It is no more than predetermined threshold value, be the current Wi-Fi lists and target Wi- in the judged result of the judging unit 304 When similarity between Fi lists is more than the predetermined threshold value, the target Wi-Fi list pair is obtained by the acquiring unit 302 Position of the position answered as the mobile terminal.
Alternatively, in the embodiment of the present invention, the access-in point information comprising M access point, the M in the Wi-Fi lists It is the integer more than 1, such as Fig. 3 c, Fig. 3 c are the concrete thin of the positioning unit 303 of the mobile terminal described in Fig. 3 a or Fig. 3 b Change structure, which includes:Evaluation module 3031 and the first determining module 3032, it is 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 in the M estimation of stability value Put the position as the mobile terminal.
Alternatively, such as Fig. 3 d, Fig. 3 d are the concrete thin of the positioning unit 303 of the mobile terminal described in Fig. 3 a or Fig. 3 b Change structure, which includes:Second determining module 3033 and the 3rd determining module 3034, it is specific as follows:
Second determining module 3033, for determining that signal strength values are more than preset signal strength from the Wi-Fi lists K target access information of value, the K is the integer more than 1;
3rd determining module 3034, for the position of the mobile terminal is determined according to the K target access information.
Alternatively, the K target access information correspondence K target location, wherein, each target is accessed One target location of point correspondence;Above-mentioned 3rd determining module 3034 may include:Mark module (not marking in figure) and the 4th Determining module (is not marked in figure), specific as follows:
Mark module, for marking the K target location, the K target location to constitute target on map indoors Region;
4th determining module, for position that the center of the target area is marked as the mobile terminal position Put.
As can be seen that by the mobile terminal described by the embodiment of the present invention, can be when mobile terminal initiates to position, detection The Wi-Fi connection status of mobile terminal, when mobile terminal is in Wireless Fidelity Wi-Fi connection status, obtain last scan Wi-Fi lists, determine the position of mobile terminal according to Wi-Fi lists.So as to 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, thus, can be in position fixing process, without mobile terminal again It is scanned to obtain Wi-Fi lists, thus, it is possible to decrease the power consumption of mobile terminal.
Consistent with the abovely, Fig. 4 is referred to, is a kind of second embodiment knot of mobile terminal provided in an embodiment of the present invention Structure schematic diagram.Mobile terminal described in the present embodiment, including:At least one input equipment 1000;At least one output sets 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 contact panel, physical button or mouse.
The concretely display screen of above-mentioned output equipment 2000.
Above-mentioned memory 4000 can be high-speed RAM memory, alternatively nonvolatile storage (non-volatile Memory), such as magnetic disc store.Above-mentioned memory 4000 is used to store batch processing code, above-mentioned input equipment 1000, defeated Go out the program code stored during equipment 2000 and processor 3000 are used to call memory 4000, perform following operation:
Above-mentioned processor 3000, is used for:
When mobile terminal initiates to position, the Wi-Fi connection status of the mobile terminal are detected;
When the mobile terminal is in Wireless Fidelity Wi-Fi connection status, the Wi-Fi lists of last scan are obtained;
The position of the mobile terminal is determined according to the Wi-Fi lists.
Alternatively, above-mentioned processor 3000 also particularly useful for:
When the mobile terminal is in Wi-Fi not-connected status, current Wi-Fi lists are obtained;
The list of target Wi-Fi is obtained according to the current Wi-Fi lists from history positioning record, wherein, it is described to go through Multiple Wi-Fi lists, every one position of Wi-Fi lists correspondence are have recorded in history positioning record, the target Wi-Fi list is A list in the plurality of Wi-Fi lists;
Judge the similarity between the current Wi-Fi lists and the list of target Wi-Fi whether more than predetermined threshold value;
Similarity between the current Wi-Fi lists and the target Wi-Fi list is more than the predetermined threshold value When, the corresponding position of the target Wi-Fi list is obtained as the position of the mobile terminal.
Alternatively, the access-in point information comprising M access point in the Wi-Fi lists, the M is the integer more than 1;On The position that processor 3000 determines the mobile terminal according to the Wi-Fi lists is stated, including:
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 Valency, obtains the M estimation of stability value;
Using the position of the corresponding access point of maximum in the M estimation of stability value as the mobile terminal position Put.
Alternatively, above-mentioned processor 3000 determines the position of the mobile terminal according to the Wi-Fi lists, including:
K target access information of the signal strength values more than preset signal strength value is determined from the Wi-Fi lists, The K is the integer more than 1;
The position of the mobile terminal is determined according to the K target access information.
Alternatively, the K target access information correspondence K target location, wherein, each target is accessed One target location of point correspondence;Above-mentioned processor 3000 determines described mobile whole according to the K target access information The position at end, including:
The K target location, the K target location is marked to constitute target area indoors on map;
Position of the position marked by the center of the target area as the mobile terminal.
The embodiment of the present invention also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium can be stored with journey Sequence, includes the part or all of of any mobile terminal locating method described in said method embodiment during the program performing Step.
Although here combines each embodiment, and invention has been described, however, implementing the present invention for required protection During, those skilled in the art are by checking the accompanying drawing, disclosure and appended claims, it will be appreciated that and it is real Other changes of the existing open embodiment.In the claims, " include " that (comprising) word is not excluded for other compositions Part or step, "a" or "an" are not excluded for multiple situations.Single processor or other units can realize claim In some functions enumerating.Mutually different has been recited in mutually different dependent some measures, it is not intended that these are arranged Apply to combine and produce good effect.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, device (equipment), or computer journey Sequence product.Therefore, the present invention can adopt complete hardware embodiment, complete software embodiment or with reference to software and hardware in terms of The form of embodiment.And, the present invention can be using the calculating for wherein including computer usable program code at one or more The computer program implemented in machine usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) The form of product.Computer program is stored/distributed in suitable medium, is provided or as the one of hardware together with other hardware Part, it would however also be possible to employ other distribution forms, such as passes through Internet or other wired or wireless telecommunication systems.
The present invention be with reference to the embodiment of the present invention method, device (equipment) and computer program flow chart with/ Or block diagram is describing.It should be understood that can by each flow process in computer program instructions flowchart and/or block diagram and/ Or the combination of square frame and flow chart and/or flow process and/or square frame in block diagram.These computer program instructions can be provided Processor to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is producing one Individual machine so that produced for realizing by the instruction of computer or the computing device of other programmable data processing devices The device of the function of specifying in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring to Make the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or The function of specifying in multiple square frames.
These computer program instructions can be also loaded in computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one The step of function of specifying in individual square frame or multiple square frames.
Although with reference to specific features and embodiment, invention has been described, it is clear that, without departing from this In the case of bright spirit and scope, various modifications and combinations can be carried out to which.Correspondingly, the specification and drawings are only institute The exemplary illustration of the present invention defined by attached claim, and be considered as cover in the scope of the invention any and all and repair Change, change, combining or equivalent.Obviously, those skilled in the art the present invention can be carried out it is various change and modification and not Depart from the spirit and scope of the present invention.So, if the present invention these modification and modification belong to the claims in the present invention and its Within the scope of equivalent technologies, then the present invention is also intended to comprising these changes and modification.

Claims (11)

1. a kind of mobile terminal locating method, it is characterised in that include:
When mobile terminal initiates to position, the Wi-Fi connection status of the mobile terminal are detected;
When the mobile terminal is in Wireless Fidelity Wi-Fi connection status, the Wi-Fi lists of last scan are obtained;
The position of the mobile terminal is determined according to the Wi-Fi lists.
2. method according to claim 1, it is characterised in that methods described also includes:
When the mobile terminal is in Wi-Fi not-connected status, current Wi-Fi lists are obtained;
The list of target Wi-Fi is obtained according to the current Wi-Fi lists from history positioning record, wherein, the history is fixed Multiple Wi-Fi lists are have recorded in the record of position, every Wi-Fi lists correspond to a position, and the target Wi-Fi list is described A list in multiple Wi-Fi lists;
Judge the similarity between the current Wi-Fi lists and the list of target Wi-Fi whether more than predetermined threshold value;
When similarity between the current Wi-Fi lists and the target Wi-Fi list is more than the predetermined threshold value, obtain The corresponding position of the target Wi-Fi list is taken as the position of the mobile terminal.
3. the method according to claim 1 or 2 any one, it is characterised in that access comprising M in the Wi-Fi lists The access-in point information of point, the M is the integer more than 1;
The position that the mobile terminal is determined according to the Wi-Fi lists, including:
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 in the M estimation of stability value as the mobile terminal position.
4. the method according to claim 1 or 2 any one, it is characterised in that described that institute is determined according to the Wi-Fi lists The position of mobile terminal is stated, including:
K target access information of the signal strength values more than preset signal strength value is determined from the Wi-Fi lists, it is described K is the integer more than 1;
The position of the mobile terminal is determined according to the K target access information.
5. method according to claim 4, it is characterised in that the K target access information correspondence K target Position, wherein, each one target location of target access correspondence;
The position that the mobile terminal is determined according to the K target access information, including:
The K target location, the K target location is marked to constitute target area indoors on map;
Position of the position marked by the center of the target area as the mobile terminal.
6. a kind of mobile terminal, it is characterised in that include:
Detector unit, for when mobile terminal initiates to position, detecting the Wi-Fi connection status of the mobile terminal;
Acquiring unit, for when the mobile terminal is in Wireless Fidelity Wi-Fi connection status, obtaining the Wi- of last scan Fi lists;
Positioning unit, for the position of the mobile terminal is determined according to the Wi-Fi lists.
7. mobile terminal according to claim 6, it is characterised in that the acquiring unit also particularly useful for:In the shifting When dynamic terminal is in Wi-Fi not-connected status, current Wi-Fi lists are obtained;According to the current Wi-Fi lists from history The list of target Wi-Fi is obtained in positioning record, wherein, multiple Wi-Fi lists are have recorded in the history positioning record, it is each One position of Wi-Fi lists correspondence, the target Wi-Fi list is a list in the plurality of Wi-Fi lists;
The mobile terminal also includes:
Judging unit, for judging the similarity between the current Wi-Fi lists and the list of target Wi-Fi whether more than pre- If threshold value, it is between the current Wi-Fi lists and the target Wi-Fi list in the judged result of the judging unit When similarity is more than the predetermined threshold value, the corresponding position of the target Wi-Fi list is obtained as institute by the acquiring unit State the position of mobile terminal.
8. the mobile terminal according to claim 6 or 7 any one, it is characterised in that comprising M in the Wi-Fi lists The access-in point information of access point, the M are the integer more than 1;
The positioning unit includes:
Evaluation module, clicks through to each the access for the access-in point information according to each access point in the M access point 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 in the M estimation of stability value as institute State the position of mobile terminal.
9. the mobile terminal according to claim 6 or 7 any one, it is characterised in that the positioning unit includes:
Second determining module, for determining K mesh of the signal strength values more than preset signal strength value from the Wi-Fi lists Mark access-in point information, the K is the integer more than 1;
3rd determining module, for the position of the mobile terminal is determined according to the K target access information.
10. mobile terminal according to claim 9, it is characterised in that the K target access information correspondence K Individual target location, wherein, each one target location of target access correspondence;
3rd determining module includes:
Mark module, for marking the K target location, the K target location to constitute target area on map indoors;
4th determining module, for position that the center of the target area is marked as the mobile terminal position.
11. a kind of mobile terminals, it is characterised in that include:
Processor and memory;Wherein, the processor is by calling code in the memory or instruction to perform such as power Profit requires the method described in 1 to 5 any one.
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 true CN106535102A (en) 2017-03-22
CN106535102B 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)

Cited By (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
CN108111971A (en) * 2017-12-13 2018-06-01 广东欧珀移动通信有限公司 Localization method, device, storage medium and mobile terminal
CN111148216A (en) * 2019-03-27 2020-05-12 广东小天才科技有限公司 Electronic equipment positioning method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2416547A2 (en) * 2010-08-04 2012-02-08 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
CN104796984A (en) * 2015-04-29 2015-07-22 百度在线网络技术(北京)有限公司 Base station positioning method and device
CN105068046A (en) * 2015-08-26 2015-11-18 中国联合网络通信集团有限公司 Positioning method of intelligent equipment, and gateway
CN105611624A (en) * 2015-09-25 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Wi-Fi positioning method, Wi-Fi positioning system and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2416547A2 (en) * 2010-08-04 2012-02-08 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
CN104796984A (en) * 2015-04-29 2015-07-22 百度在线网络技术(北京)有限公司 Base station positioning method and device
CN105068046A (en) * 2015-08-26 2015-11-18 中国联合网络通信集团有限公司 Positioning method of intelligent equipment, and gateway
CN105611624A (en) * 2015-09-25 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Wi-Fi positioning method, Wi-Fi positioning system and terminal

Cited By (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
CN108111971A (en) * 2017-12-13 2018-06-01 广东欧珀移动通信有限公司 Localization method, device, storage medium and mobile terminal
CN111148216A (en) * 2019-03-27 2020-05-12 广东小天才科技有限公司 Electronic equipment positioning method and electronic equipment

Also Published As

Publication number Publication date
CN106535102B (en) 2019-06-28

Similar Documents

Publication Publication Date Title
CN106604362B (en) A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal
WO2017020654A1 (en) Wireless network access method and device
CN106973384B (en) A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal
US10873900B2 (en) Method for wireless fidelity connection and related products
TWI706332B (en) Graphic coding display method and device and computer equipment
CN106851779A (en) A kind of method and mobile terminal for recognizing access point and focus
CN104954340B (en) A kind of detection method and device of agent IP address
CN105989280A (en) Application program authority management system, device and method
CN109582844A (en) A kind of method, apparatus and system identifying crawler
CN106535102A (en) Mobile terminal positioning method and mobile terminal
CN106792699A (en) A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal
CN108600399A (en) Information-pushing method and Related product
CN107370685A (en) A kind of internet-of-things terminal cut-in method and device
CN106998336B (en) Method and device for detecting user in channel
CN108632823A (en) A kind of method for switching network, terminal and computer storage media
CN106658670B (en) A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal
CN107241312A (en) A kind of right management method and device
CN106793015A (en) A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal
CN106604363A (en) Wireless fidelity Wi-Fi scanning method and mobile terminal
CN106550423A (en) A kind of access point management method and terminal
CN106888496B (en) A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal
CN116094969A (en) Bandwidth adjustment method, device, equipment and storage medium
CN108419238A (en) A kind of method and device of detection rogue AP
WO2020233093A1 (en) Association graph generation method and apparatus, computer device, and storage medium
CN106535300A (en) Network access method and device

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