CN107613552A - A kind of localization method and mobile terminal based on mobile terminal - Google Patents

A kind of localization method and mobile terminal based on mobile terminal Download PDF

Info

Publication number
CN107613552A
CN107613552A CN201711050440.8A CN201711050440A CN107613552A CN 107613552 A CN107613552 A CN 107613552A CN 201711050440 A CN201711050440 A CN 201711050440A CN 107613552 A CN107613552 A CN 107613552A
Authority
CN
China
Prior art keywords
mobile terminal
hotspot
step number
unit
user
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.)
Pending
Application number
CN201711050440.8A
Other languages
Chinese (zh)
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 Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co 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 Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201711050440.8A priority Critical patent/CN107613552A/en
Publication of CN107613552A publication Critical patent/CN107613552A/en
Pending legal-status Critical Current

Links

Classifications

    • 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

Abstract

The present invention relates to mobile internet technical field, discloses a kind of localization method and mobile terminal based on mobile terminal, including:Mobile terminal can obtain the first Wi Fi focus set scanned in present scanning cycle, and by the first Wi Fi focuses set compared with the 2nd Wi Fi focus set scanned in upper scan cycle, to obtain quantity of the first Wi Fi focuses set with the identical Wi Fi focuses in the 2nd Wi Fi focus set, then judge whether the quantity of identical Wi Fi focuses is less than default Second Threshold, if it is, perform positioning action.Implement the embodiment of the present invention, the power consumption of acquisition for mobile terminal positional information can be reduced.

Description

A kind of localization method and mobile terminal based on mobile terminal
Technical field
The present invention relates to mobile internet technical field, and in particular to a kind of localization method and movement based on mobile terminal Terminal.
Background technology
At present, with the continuous development of development of Mobile Internet technology, the location-based service of mobile terminal is in daily life In gradually popularize.Location-based service is a kind of location Based service, is to obtain mobile terminal using location technology specifically Positional information, and the information service related to position is provided to the user of mobile terminal by communication network, for example, user can be with By the weather condition near the acquisition for mobile terminal user such as mobile phone, electronic watch position, traffic information etc., to user's Daily life brings many facilities.So user is in order to obtain location-based service, it will usually sets the positioning function of mobile terminal It is set to acquiescence starting state.But once the positioning function of mobile terminal is in acquiescence starting state, it will frequently obtain this The positional information of mobile terminal, so as to which the power consumption of mobile terminal can be aggravated.
The content of the invention
The embodiment of the present invention discloses a kind of localization method and mobile terminal based on mobile terminal, can reduce mobile terminal Power consumption.
First aspect of the embodiment of the present invention discloses a kind of localization method based on mobile terminal, and methods described includes:
The the first Wi-Fi Hotspot set scanned in acquisition for mobile terminal present scanning cycle;
The mobile terminal arrives the first Wi-Fi Hotspot set and the mobile scanning terminal in upper scan cycle The second Wi-Fi Hotspot set be compared, to obtain the first Wi-Fi Hotspot set and the second Wi-Fi Hotspot collection The quantity of identical Wi-Fi Hotspot in conjunction;
The mobile terminal judges that the first Wi-Fi Hotspot set is identical with the second Wi-Fi Hotspot set Whether the quantity of Wi-Fi Hotspot is less than default Second Threshold;
If the number of the first Wi-Fi Hotspot set and the identical Wi-Fi Hotspot in the second Wi-Fi Hotspot set Amount is less than the default Second Threshold, then the mobile terminal performs positioning action.
As an alternative embodiment, in first aspect of the embodiment of the present invention, methods described also includes:
The first meter step number of the user of the mobile terminal in the current meter step period of acquisition for mobile terminal;
The mobile terminal is by the of the user of the mobile terminal in the described first meter step number and upper meter step period Two meter step numbers are compared, and step number incrementss are counted to obtain the step number based on described second of step number in terms of described first;
The mobile terminal judges whether the meter step number incrementss of the user of the mobile terminal are more than default first threshold Value;
If the meter step number incrementss of the user of the mobile terminal are more than the preset first threshold value, the movement Terminal performs the first Wi-Fi Hotspot set scanned in described acquisition present scanning cycle.
As an alternative embodiment, in first aspect of the embodiment of the present invention, the mobile terminal performs positioning Operation, including:
The mobile terminal is currently located the base station information in region to the server transmission mobile terminal, so that the clothes Business device feeds back the body at least three target satellites that the base station information matches according to the base station information to the mobile terminal Part information;
The mobile terminal is established and described at least three respectively according to the identity information of at least three target satellite The communication connection of target satellite;
The ranging code signal that the mobile terminal is sent according at least three target satellite reaches the mobile terminal Transmission duration, calculate the pseudorange of the mobile terminal and at least three target satellite respectively;
The pseudorange of the mobile terminal and at least three target satellite is sent to the service by the mobile terminal Device, to trigger the server according to the mobile terminal and the pseudorange and described at least three of at least three target satellite The positional information calculation of individual target satellite goes out coordinate value of the mobile terminal in rectangular coordinate system in space as the movement The location information of terminal.
As an alternative embodiment, in first aspect of the embodiment of the present invention, the mobile terminal is to server Send the base station information that the mobile terminal is currently located region so that the server according to the base station information to the shifting Before dynamic terminal feeds back the identity information of at least three target satellites of the base station information matching, methods described also includes:
Whether the mobile terminal judges the dump energy of the mobile terminal higher than default power threshold, if it is, Perform the described base station information that region is currently located to the server transmission mobile terminal;
If it is not, then the Wi-Fi Hotspot set of acquisition for mobile terminal the 3rd, and to the 3rd Wi-Fi Hotspot set The most strong Wi-Fi Hotspot of middle signal intensity sends position sharing request;
The mobile terminal receives the positional information of the most strong Wi-Fi Hotspot of the signal intensity, and the positional information is The position sharing request feedback is responded by the most strong Wi-Fi Hotspot of the signal intensity;
The positional information of the most strong Wi-Fi Hotspot of the signal intensity is defined as the mobile terminal by the mobile terminal Location information.
As an alternative embodiment, in first aspect of the embodiment of the present invention, methods described also includes:
The mobile terminal, which detects, whether there is the application program in background operation state in the mobile terminal, if In the presence of then obtaining total running memory shared by all application programs in background operation state;
The mobile terminal judges whether total running memory is less than default running memory, if it is less, the shifting The first meter step number of the user of the mobile terminal in the current meter step period of acquisition that dynamic terminal performs.
Second aspect of the embodiment of the present invention discloses a kind of mobile terminal, and the mobile terminal includes:
First acquisition unit, for obtaining the first Wi-Fi Hotspot set scanned in present scanning cycle;
Comparing unit, for by the mobile scanning terminal in the first Wi-Fi Hotspot set and upper scan cycle To the second Wi-Fi Hotspot set be compared, to obtain the first Wi-Fi Hotspot set and second Wi-Fi Hotspot The quantity of identical Wi-Fi Hotspot in set;
First judging unit, for judging in the first Wi-Fi Hotspot set and the second Wi-Fi Hotspot set Whether the quantity of identical Wi-Fi Hotspot is less than default Second Threshold;
Positioning unit, for judging the first Wi-Fi Hotspot set and described second in first judging unit When the quantity of identical Wi-Fi Hotspot in Wi-Fi Hotspot set is less than the default Second Threshold, positioning action is performed.
As an alternative embodiment, in second aspect of the embodiment of the present invention, in the mobile terminal:
The first acquisition unit, it is additionally operable to the first Wi-Fi Hotspot set scanned in acquisition present scanning cycle Before, the first meter step number of the user of the mobile terminal in current meter step period is obtained;
The comparing unit, it is additionally operable to the use by the described first meter step number and the mobile terminal in a upper meter step period The second meter step number of person is compared, and is increased by obtaining step number step number of counting of step number based on described second in terms of described first Amount;
First judging unit, is additionally operable to judge whether the meter step number incrementss of the user of the mobile terminal are more than Preset first threshold value, and arrived in judged result when being, to trigger scanning in the first acquisition unit acquisition present scanning cycle The first Wi-Fi Hotspot set.
As an alternative embodiment, in second aspect of the embodiment of the present invention, the positioning unit includes:
First transmission sub-unit, walked based on the user that the mobile terminal is judged in first judging unit Number incrementss are more than the preset first threshold value, and the first Wi-Fi Hotspot set and the second Wi-Fi Hotspot set In the quantity of identical Wi-Fi Hotspot when being less than the default Second Threshold, send the current institute of mobile terminal to server Base station information in region, so that the server feeds back the base station information according to the base station information to the mobile terminal The identity information of at least three target satellites of matching;
Establish subelement, for the identity information according at least three target satellite, establish respectively with it is described at least The communication connection of three target satellites;
First computation subunit, for reaching institute by the ranging code signal of transmission according at least three target satellite The transmission duration of mobile terminal is stated, calculates the pseudorange of the mobile terminal and at least three target satellite respectively;
Second transmission sub-unit, for the pseudorange of the mobile terminal and at least three target satellite to be sent into institute Server is stated, to trigger the server according to the pseudorange of the mobile terminal and at least three target satellite and described The positional information calculation of at least three target satellites goes out coordinate value of the mobile terminal in rectangular coordinate system in space as institute State the location information of mobile terminal.
As an alternative embodiment, in second aspect of the embodiment of the present invention, the positioning unit also includes:
Judgment sub-unit, for judging whether the dump energy of the mobile terminal is higher than default power threshold, if it is, First transmission sub-unit is triggered to start;
First obtains subelement, for when the judged result of the judgment sub-unit is no, obtaining the 3rd Wi-Fi Hotspot Set, and the Wi-Fi Hotspot that signal intensity is most strong into the 3rd Wi-Fi Hotspot set sends position sharing request;
Receiving subelement, for receiving the positional information of the most strong Wi-Fi Hotspot of the signal intensity, the positional information It is to respond the position sharing request by the most strong Wi-Fi Hotspot of the signal intensity to feed back;
Determination subelement, for the positional information of the most strong Wi-Fi Hotspot of the signal intensity to be defined as into the movement The location information of terminal.
As an alternative embodiment, in second aspect of the embodiment of the present invention, the mobile terminal also includes:
Detection unit, it whether there is the application program in background operation state in the mobile terminal for detecting;
Second acquisition unit, running background shape is in for existing in detecting the mobile terminal in the detection unit During the application program of state, total running memory shared by all application programs in background operation state is obtained;
Second judging unit, for judging whether total running memory is less than default running memory;
The first acquisition unit, specifically for judging that total running memory is less than institute in second judging unit When stating default running memory, the first meter step number of the user of the mobile terminal in current meter step period is obtained.
The third aspect of the embodiment of the present invention discloses another mobile terminal, including:
It is stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, performs the embodiment of the present invention the A kind of localization method based on mobile terminal disclosed in one side.
Fourth aspect of the embodiment of the present invention discloses a kind of computer-readable recording medium, and it stores computer program, wherein, The computer program causes computer to perform a kind of positioning based on mobile terminal disclosed in first aspect of the embodiment of the present invention Method.
Compared with prior art, the embodiment of the present invention has the advantages that:
In the embodiment of the present invention, mobile terminal can obtain the first Wi-Fi Hotspot collection scanned in present scanning cycle Close, and by the first Wi-Fi Hotspot set compared with the second Wi-Fi Hotspot set scanned in upper scan cycle, with Quantity of the first Wi-Fi Hotspot set with the identical Wi-Fi Hotspot in the second Wi-Fi Hotspot set is obtained, is then judged identical Whether the quantity of Wi-Fi Hotspot is less than default Second Threshold, if it is, performing positioning action.It can be seen that the embodiment of the present invention, Can when the quantity for judging identical Wi-Fi Hotspot meets default Second Threshold just execution positioning action, and in the prior art The positional information that the positioning function of mobile terminal is constantly in acquiescence starting state, frequently obtains the mobile terminal is compared, this The whole process of inventive embodiments can reduce the power consumption of mobile terminal.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, it will use below required in embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ability For the those of ordinary skill of domain, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is a kind of schematic flow sheet of the localization method based on mobile terminal disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of localization method of the another kind disclosed in the embodiment of the present invention based on mobile terminal;
Fig. 3 is the schematic flow sheet of another localization method based on mobile terminal disclosed in the embodiment of the present invention;
Fig. 4 is a kind of structural representation of mobile terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of another mobile terminal disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of another mobile terminal disclosed in the embodiment of the present invention;
Fig. 7 is the structural representation of another mobile terminal disclosed in the embodiment of the present invention.
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 describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Based on this Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not made Example is applied, belongs to the scope of protection of the invention.
It should be noted that term " comprising " and " having " and their any changes in the embodiment of the present invention and accompanying drawing Shape, it is intended that cover non-exclusive include.Such as contain the process of series of steps or unit, method, system, product or The step of equipment is not limited to list or unit, but alternatively also include the step of not listing or unit, or it is optional Ground is also included for the intrinsic other steps of these processes, method, product or equipment or unit.
The embodiment of the present invention discloses a kind of localization method and mobile terminal based on mobile terminal, can reduce mobile terminal Power consumption.It is described in detail individually below.
Embodiment one
Referring to Fig. 1, Fig. 1 is a kind of flow signal of localization method based on mobile terminal disclosed in the embodiment of the present invention Figure.As shown in figure 1, following operation can be included by being somebody's turn to do the localization method based on mobile terminal:
101st, in the current meter step period of acquisition for mobile terminal the user of mobile terminal first meter step number.
In the embodiment of the present invention, the duration of meter step period can be modified setting according to being actually needed, for example, meter The duration of step period, which is set, actively to be triggered by the user of mobile terminal or mobile terminal enters every preset time Row adjust automatically.
As a kind of optional embodiment, the first of the user of mobile terminal in the current meter step period of acquisition for mobile terminal Meter step number can include:
Mobile terminal gathers the action data of the user of mobile terminal in current meter step period;
Mobile terminal filter actions data, obtain effective action data;
Mobile terminal calculates the first meter of the user of mobile terminal in current meter step period according to the effective action data Step number.
In the embodiment of the present invention, mobile terminal can trigger gravity sensitive module and gather mobile terminal in current meter step period User action data, wherein, the gravity sensitive module, which can be built in mobile terminal, can also be located at and mobile terminal Establish on the mobile device of communication connection as the hardware pedometer of low-power consumption, the present invention do not limit;Because mobile terminal can be with The action data of the user of continual triggering gravity sensitive module collection mobile terminal after start-up, what is collected is original Action data in may include the shake of mobile terminal itself, so mobile terminal collected by filtering it is original dynamic Make data, to obtain effective action data, wherein, the effective action data are that the user of mobile terminal produces in gait processes Raw continuous dynamic data;Mobile terminal in current meter step period can be calculated in mobile terminal according to effective action data The first meter step number of user.It can be seen that by the embodiment of the present invention, mobile terminal can be after original action data be filtered The calculating of the first meter step number is carried out according to effective action data, the shake for reducing mobile terminal itself is done to meter step number statistics Disturb, improve the accuracy for obtaining the first meter step number of the user of mobile terminal in current meter step period.
102nd, mobile terminal counts the above-mentioned first meter step number and second of the user of mobile terminal in a upper meter step period Step number is compared, and step number incrementss are counted to obtain the step number based on second of step number in terms of first.
In the embodiment of the present invention, mobile terminal can be by the got in current meter step period first meter step number storage to shifting In the database of dynamic terminal, then by the got in current meter step period first meter step number and mobile terminal in a upper meter step period The second meter step number of user be compared, wherein, the upper limit of the periodicity of storage is preset with the database of mobile terminal, Specifically, the meter step number in database is stored in units of obtaining cycle when this counts step number, when mobile terminal will First meter step number of the current period got is stored to before database, and mobile terminal can detect to be stored in now database Periodicity whether reach default storage periodicity the upper limit, if not up to, directly store this get it is current The first meter step number in cycle;If reached, the meter step number in the most long cycle of storage time in database is deleted, then will be above-mentioned First meter step number of current period is stored into database, and optionally, the upper limit that database is preset with the periodicity of storage can be with For 2, the present invention does not limit.It can be seen that by the embodiment of the present invention, the memory space of mobile terminal can rationally be divided Match somebody with somebody, reduce the occupancy that mobile terminal has used internal memory.
103rd, mobile terminal judges whether the meter step number incrementss of the user of mobile terminal are more than preset first threshold value, when Judged result, conversely, when judged result is no, terminates this flow when being, to perform step 104.
In the embodiment of the present invention, mobile terminal may determine that whether the meter step number incrementss of the user of mobile terminal are more than Preset first threshold value, it is more than preset first threshold value when counting step number incrementss, i.e., when judged result for when being, it may be said that bright mobile whole The user at end is now in nonstatic state (motion state), can now perform step 104.
104th, the first Wi-Fi Hotspot set scanned in acquisition for mobile terminal present scanning cycle.
In the embodiment of the present invention, mobile terminal can scan Wi-Fi Hotspot set according to the default scan period, wherein, The trip mode that the default scan period can select according to the user of mobile terminal is set, for example the default scan period can be with It is set as following several modes:Offline mode (5 minutes), Walking Mode (10 minutes) and bus pattern (30 minutes) etc.;In addition, The default scan period time how long can also be set by user oneself by the self-defined setting of user of mobile terminal Interval is used as a default scan period;In addition, as an alternative embodiment, the user of mobile terminal can also set The number that mobile terminal scans Wi-Fi Hotspot in preset time period is put, i.e., default scanning times, as mobile scanning terminal Wi- When the number of Fi focuses reaches default scanning times, step 101 can be triggered to reacquire the mobile terminal in new cycle The meter step number of user.
In the embodiment of the present invention, Wi-Fi Hotspot is also referred to as WAP (Access Point, AP), is one wireless The access point of network, each AP have a globally unique MAC Address, and in general wireless aps within a period of time It will not move, in the case where mobile terminal opens Wi-Fi Hotspot scanning, you can to scan and collect the AP of surrounding letters Number, regardless of whether encrypting, whether having connected, the MAC Address that AP is broadcast out can be got.
105th, mobile terminal mobile scanning terminal in above-mentioned first Wi-Fi Hotspot set and upper scan cycle is arrived the Two Wi-Fi Hotspot set are compared, to obtain the first Wi-Fi Hotspot set and the identical Wi- in the second Wi-Fi Hotspot set The quantity of Fi focuses.
In the embodiment of the present invention, mobile terminal can pass through more above-mentioned first Wi-Fi Hotspot set and the 2nd Wi-Fi heat The Wi-Fi Hotspot information of each self-contained all Wi-Fi Hotspots, obtains phase in above-mentioned two Wi-Fi Hotspot set in point set With the quantity of Wi-Fi Hotspot, wherein, Wi-Fi Hotspot information can include the title and physical address (Media of Wi-Fi Hotspot Access Control, MAC), title, physical address only when two Wi-Fi Hotspots (Media Access Control, MAC) during all same, it just can determine that two Wi-Fi Hotspots belong to identical Wi-Fi Hotspot.
106th, mobile terminal judges above-mentioned first Wi-Fi Hotspot set and the identical Wi-Fi in the second Wi-Fi Hotspot set Whether the quantity of focus is less than default Second Threshold, when judged result is to be, step 107 is performed, conversely, when judged result is When no, terminate this flow.
In the embodiment of the present invention, mobile terminal may determine that in the first Wi-Fi Hotspot set and the second Wi-Fi Hotspot set The quantity of identical Wi-Fi Hotspot whether be less than default Second Threshold, when the quantity of identical Wi-Fi Hotspot is less than default second threshold During value, it may be said that the first Wi-Fi Hotspot set of bright present scanning cycle and the second Wi-Fi Hotspot set of upper scan cycle In Wi-Fi Hotspot registration it is smaller, can now perform step 107.
In step 101~106, when the judged result for counting step number is to be, illustrate that the user of mobile terminal now locates In nonstatic state (motion state), the judged result for then judging the coincidence quantity of Wi-Fi hotspot again is when being, illustrates to work as The first Wi-Fi Hotspot set of preceding scan period and the Wi-Fi Hotspot in the second Wi-Fi Hotspot set of upper scan cycle Registration is smaller, it may be said that bright mobile terminal has occurred and that the movement of a segment distance, i.e. mobile terminal leaves scan cycle The position at place, it can now perform step 107.
107th, mobile terminal performs positioning action.
In the embodiment of the present invention, for example, above-mentioned mobile terminal can be the phone wrist-watch for having positioning function, the electricity Wrist-watch is talked about after positioning action is performed, the location information got is sent to server, by server according to phone wrist-watch The location information sent in different cycles forms the positioning track of the phone wrist-watch, and is sent to the user of the phone wrist-watch Cell phone application, with trigger cell phone application by the positioning track be converted into image export to mobile phone display screen for cellie join Examine.
As an alternative embodiment, the mode that mobile terminal performs positioning action is specially:Mobile terminal exports Prompt message, the user that the prompt message is used for prompting mobile terminal start the camera function of mobile terminal for shooting photograph Piece, wherein, the photo can be the image for including text information, it is preferred that the photo can be include guideboard, billboard or The image of billboard, wherein, it is radius that the guideboard, billboard or billboard, which are located at by the center of circle, pre-determined distance of mobile terminal, Within the scope of;In addition, the photo can also be the photo of the landmark building nearest apart from mobile terminal;Obtained in mobile terminal After taking the photo that mobile terminal user shoots, mobile terminal carries out OCR (Optical Character to the photo Recognition, optical character identification) identification, if identifying that the photo is the image for including text information, obtain picture In text information, and filter and extraction text information in keyword be sent to server so that server according to it is mobile eventually The keyword that end is sent is retrieved, and obtains the location information of the mobile terminal;Or if it can not identify that the photo is to include The image of text information, then mobile terminal triggering image capture function, for catching the landmark building in the photo, by obtaining The positional information of the landmark building is taken to be sent to as the location information of mobile terminal, and by the location information of the mobile terminal Server.It can be seen that by the embodiment of the present invention, the positioning of quick obtaining to mobile terminal can be believed by way of picture recognition Breath, improve the efficiency of positioning.
It can be seen that implementing the localization method based on mobile terminal described by Fig. 1, can judge to count step number increase successively Amount and the quantity of identical Wi-Fi Hotspot meet just to perform positioning action during predetermined threshold value, with mobile terminal in the prior art The positional information that positioning function is constantly in acquiescence starting state, frequently obtains the mobile terminal is compared, the embodiment of the present invention Whole process can reduce the power consumption of mobile terminal.
For example, the user (user) in mobile terminal goes to bus stop from family and automobile of taking pubic transport reaches mesh Ground during, the user (user) of mobile terminal needs first to walk to bus stop, and now mobile terminal can obtain And judge whether the meter step number incrementss of the user (user) of mobile terminal meet predetermined threshold value, if it is satisfied, then further Whether the quantity for the identical Wi-Fi Hotspot for judging to obtain in former and later two scan periods meets predetermined threshold value, if it is satisfied, mobile Terminal just performs positioning action.
From said process, the user (user) of mobile terminal can produce meter during bus stop is walked to The change of step number, and the incrementss of meter step number will not be produced when taking pubic transport automobile, can only be by judging former and later two scannings Whether the quantity of the identical Wi-Fi Hotspot got in the cycle meets predetermined threshold value to judge whether to perform positioning action, so, Determine whether the quantity of identical Wi-Fi Hotspot meets judging to count in the case that step number incrementss meet predetermined threshold value Predetermined threshold value, if it is satisfied, just performing positioning action, the user (user) of mobile terminal can be made also in riding process The positioning of position is realized, improves Consumer's Experience, while it also avoid starting power consumption caused by positioning function for a long time.
In addition, implementing the localization method based on mobile terminal described by Fig. 1, mobile terminal can filter original move Make the calculating that data carry out the first meter step number according to effective action data afterwards, the shake for reducing mobile terminal itself walks to meter The interference of number statistics, improve the accuracy for obtaining the first meter step number of the user of mobile terminal in current meter step period.
In addition, implementing the localization method based on mobile terminal described by Fig. 1, the memory space of mobile terminal can be entered Row reasonable distribution, reduce the occupancy that mobile terminal has used internal memory.
In addition, implement the localization method based on mobile terminal described by Fig. 1, can be quick by way of picture recognition The location information of mobile terminal is got, improves the efficiency of positioning.
Embodiment two
Referring to Fig. 2, the flow that Fig. 2 is localization method of the another kind disclosed in the embodiment of the present invention based on mobile terminal is shown It is intended to.It may comprise steps of as shown in Fig. 2 being somebody's turn to do the localization method based on mobile terminal:
201st, it whether there is the application program in background operation state in mobile terminal detection mobile terminal, if deposited Step 202 is being performed, whereas if being not present, is terminating this flow.
202nd, acquisition for mobile terminal is in total running memory shared by all application programs of background operation state.
In the embodiment of the present invention, the application program inside operating system that mobile terminal can be by calling mobile terminal connects Mouth (API) obtains the total running memory being currently at shared by all application programs of background operation state.
203rd, mobile terminal judges whether total running memory is less than default running memory, if it is lower, step 204 is performed, , whereas if being not less than, terminate this flow.
As an alternative embodiment, when above-mentioned judged result be not less than when, mobile terminal judges current time Whether preset corresponding to above-mentioned all application programs in background operation state in run time section, wherein, the default fortune The row period be mobile terminal the customized run time section of user, i.e., the user of mobile terminal can according to oneself Need, run time section is preset corresponding to the application program that setting needs to manage;Mobile terminal closing is above-mentioned to be in running background Run time section is preset in all application programs of state does not include the application program of current time, and optionally, mobile terminal can Include the application program of current time so that run time section will be preset in above-mentioned all application programs in background operation state Application icon display interface export, decide whether close above-mentioned application icon pair in its sole discretion to provide the user of mobile terminal The application program answered.
For example, After Hours 7 points -9 points of user every night of mobile terminal may move, then the user Set and preset run time section as " " at 19 points -21 points corresponding to certain motion APP (application program), then mobile terminal exists daily Period in addition to " 19 points -21 points " detects that motion APP (application program) in running background, can be closed directly Close;If detect that motion APP (application program) is in background operation state at 19 points -21 points in " ", it can not do Any processing, or when mobile terminal detects that the electricity of mobile terminal is less than default electricity, export motion APP application Icon and prompting message, decided whether to close motion APP by user.In the embodiment of the present invention, mobile terminal according to The default run time section of the customized application program of user of mobile terminal, after judging whether current time is included in and is in In the default run time section of the application program of platform running status, if do not included, the application program is directly closed, without User's manual-lock application program of mobile terminal, both improves Consumer's Experience, decreases unnecessary application program pair The occupancy of running of mobile terminal internal memory, further save the electric quantity consumption of mobile terminal.
In embodiments of the present invention, being somebody's turn to do the localization method based on mobile terminal also includes step 204~210, for step 204~210 description, refer to the detailed description that step 101~107 are directed in embodiment one, and the embodiment of the present invention is no longer superfluous State.
It can be seen that implementing the localization method based on mobile terminal described by Fig. 2, can judge to count step number increase successively Amount and the quantity of identical Wi-Fi Hotspot meet just to perform positioning action during predetermined threshold value, with mobile terminal in the prior art The positional information that positioning function is constantly in acquiescence starting state, frequently obtains the mobile terminal is compared, the embodiment of the present invention Whole process can reduce the power consumption of mobile terminal.
, can be by judging that mobile terminal is current in addition, implement the localization method based on mobile terminal described by Fig. 2 Whether total running memory is less than default running memory, and after current total running memory when presetting running memory less than just performing Continuous step, improve the speed of service of mobile terminal.
In addition, implementing the localization method based on mobile terminal described by Fig. 2, mobile terminal can be according to mobile terminal The default run time section of the customized application program of user, judges whether current time is included in background operation state Application program default run time section in, if do not included, the application program is directly closed, without mobile terminal User's manual-lock application program, both improves Consumer's Experience, decreases unnecessary application program and mobile terminal is transported The occupancy of row internal memory, further save the electric quantity consumption of mobile terminal.
Embodiment three
Referring to Fig. 3, the flow that Fig. 3 is another localization method based on mobile terminal disclosed in the embodiment of the present invention is shown It is intended to.It may comprise steps of as shown in figure 3, being somebody's turn to do the localization method based on mobile terminal:
In embodiments of the present invention, the localization method of the mobile terminal also includes step 301~308, for step 301~ 308 description, refer to the detailed description that step 201~208 are directed in embodiment two, and the embodiment of the present invention repeats no more.
309th, mobile terminal judges above-mentioned first Wi-Fi Hotspot set and the identical Wi-Fi in the second Wi-Fi Hotspot set Whether the quantity of focus is less than default Second Threshold, when judged result is to be, step 310 is performed, conversely, when judged result is When no, terminate this flow.
310th, mobile terminal judges whether the dump energy of mobile terminal is higher than default power threshold, if it is, performing step Rapid 311~step 314, whereas if it is no, perform step 315~step 317.
In the embodiment of the present invention, need to consume the electricity of mobile terminal because mobile terminal performs positioning action, so moving Dynamic terminal can first judge whether the dump energy of current mobile terminal is higher than default electricity threshold when performing positioning action Value, and select different positioning methods to obtain location information according to the result of judgement, such as when judged result is to be, illustrate this When mobile terminal dump energy it is sufficient, mobile terminal can perform positioning action by way of step 309~step 312; When judged result is no, illustrate the dump energy deficiency of now mobile terminal, and start the positioning function meeting of itself for a long time The substantial amounts of electricity of mobile terminal is consumed, so mobile terminal can perform positional operand by way of step 313~step 315 Make, i.e., the location information of mobile terminal is obtained being established with neighbouring Wi-Fi Hotspot by way of position is shared.It can be seen that this hair Bright embodiment, mobile terminal judge that the dump energy of mobile terminal whether higher than default power threshold, can pass through the knot of judgement Fruit selects different positioning methods to obtain the location information of mobile terminal, makes the mode of mobile terminal execution positioning action cleverer It is living.
311st, mobile terminal sends mobile terminal to server and is currently located the base station information in region so that server according to Base station information feeds back the identity information of at least three target satellites of base station information matching to mobile terminal.
In the embodiment of the present invention, mobile terminal can obtain the base station for being currently located region (subdistrict position being currently located) Information, and server is sent to, the base station information of the current region provided by server according to mobile terminal is inquired about the region and worked as Preceding available satellite information, what the base station information for determining to send with mobile terminal in the currently available satellite information in the region matched At least three target satellites, and the identity information of at least three target satellites is sent to mobile terminal, wherein, target satellite Identity information can include frequency range, orientation, the elevation angle of target satellite etc., and the present invention does not limit.Implement it can be seen that implementing the present invention Example, the base station information can that mobile terminal only needs to be currently located region to server offer get available satellite information (identity informations of at least three target satellites matched with mobile terminal feedback base station information), so as to avoid mobile terminal pair Satellite carries out full frequency band, on a large scale search, greatly improves the speed of the search of satellite of mobile terminal, while decrease shifting The electric quantity consumption of dynamic terminal.
312nd, mobile terminal is established and above-mentioned at least three respectively according to the identity information of above-mentioned at least three target satellite The communication connection of target satellite.
313rd, mobile terminal reaches mobile terminal according to above-mentioned at least three target satellite by the ranging code signal of transmission Transmission duration, calculate the pseudorange of mobile terminal and above-mentioned at least three target satellite respectively.
In the embodiment of the present invention, pseudorange refers to that the ranging code signal of target satellite transmitting reaches the propagation time of mobile terminal The measurement distance that the light velocity is drawn is multiplied by, pseudorange is due to the error and radio signal of satellite clock, mobile terminal clock By the delay in ionosphere and troposphere, the distance for causing actually to measure and the geometric distance of target satellite to mobile terminal have Certain difference.
314th, the pseudorange of mobile terminal and above-mentioned at least three target satellite is sent to server by mobile terminal, with triggering The server is according to mobile terminal and the pseudorange of above-mentioned at least three target satellite and the position of above-mentioned at least three target satellite Confidence breath calculates location information of coordinate value of the mobile terminal in rectangular coordinate system in space as mobile terminal.
In the embodiment of the present invention, server is receiving the mobile terminal of mobile terminal transmission and above-mentioned at least three target After the pseudorange of satellite, the pseudorange of mobile terminal and above-mentioned at least three target satellite and above-mentioned at least three mesh can be utilized The positional information of satellite is marked, three-dimensional coordinate of the mobile terminal in rectangular coordinate system in space is calculated by the method for Distance Intersection Location information as mobile terminal.
It should be noted that because pseudorange is not geometric distance of the target satellite to mobile terminal, so, in order to obtain More accurate location information, mobile terminal can be established with more than four target satellites and communicate to connect and obtain corresponding puppet Away from being calculated, especially, when the quantity of target satellite is more than four, mobile terminal can be according to the constellation of target satellite point Cloth is divided into some groups, every group of four target satellites, then filters out one group of minimum target satellite of error by default algorithm Location information of the result of calculation as mobile terminal, so as to improve positioning precision.
315th, the Wi-Fi Hotspot set of acquisition for mobile terminal the 3rd, and signal intensity is most into the 3rd Wi-Fi Hotspot set Strong Wi-Fi Hotspot sends position sharing request.
In the embodiment of the present invention, the signal intensity for the Wi-Fi Hotspot that mobile terminal receives and the Wi-Fi Hotspot to movement The distance of terminal is inversely proportional, i.e. the signal strength signal of Wi-Fi Hotspot is stronger, and the distance of the Wi-Fi Hotspot to mobile terminal is got over It is short.
316th, the positional information of the most strong Wi-Fi Hotspot of mobile terminal received signal strength, the positional information are by signal The most strong Wi-Fi Hotspot response position sharing request feedback of intensity.
317th, the positional information of the most strong Wi-Fi Hotspot of above-mentioned signal intensity is defined as determining for mobile terminal by mobile terminal Position information.
In the embodiment of the present invention, the signal intensity of the Wi-Fi Hotspot received due to mobile terminal is arrived with the Wi-Fi Hotspot The inverse relation of the distance of mobile terminal, it is known that in above-mentioned 3rd Wi-Fi Hotspot set the most strong Wi-Fi Hotspot of signal intensity away from It is closest from mobile terminal, so mobile terminal can be true by the positional information of the most strong Wi-Fi Hotspot of the signal intensity It is set to the location information of mobile terminal.
In the embodiment of the present invention, by 315~step 317 of implementation steps, can in the not enough power supply of mobile terminal, with The shared mode in position is carried out with closest Wi-Fi Hotspot and obtains the current location information of the mobile terminal, avoids shifting Dynamic terminal because open the positioning function of itself for a long time and caused by mobile terminal electricity loss.
It can be seen that the localization method based on mobile terminal described by implementing Fig. 3, the power consumption of mobile terminal can be reduced.
, can be by judging that mobile terminal is current in addition, the localization method based on mobile terminal described by implementing Fig. 3 Whether total running memory is less than default running memory, and after current total running memory when presetting running memory less than just performing Continuous step, improve the speed of service of mobile terminal.
In addition, the localization method based on mobile terminal described by implementing Fig. 3, can judge to count step number increase successively After amount and the quantity of identical Wi-Fi Hotspot meet predetermined threshold value, judge the dump energy of mobile terminal whether higher than default Power threshold, different positioning methods can be selected to obtain the location information of mobile terminal by the result of judgement, made mobile whole The mode that end performs positioning action is more flexible;It is possible to further be higher than default electricity threshold in the dump energy of mobile terminal When value, i.e. the electricity abundance of mobile terminal, mobile terminal and at least three target satellites are passed through using the positioning function of itself Pseudorange obtain location information, make the location information that gets more accurate;Can also mobile terminal dump energy it is not high When the not enough power supply of default power threshold, i.e. mobile terminal, use and shared with carrying out position with closest Wi-Fi Hotspot Mode obtain the current location information of the mobile terminal, avoid mobile terminal because for a long time open the positioning function of itself The loss of the electricity of mobile terminal caused by and.
Example IV
Referring to Fig. 4, Fig. 4 is a kind of structural representation of mobile terminal disclosed in the embodiment of the present invention.As shown in figure 4, The mobile terminal can include:
First acquisition unit 401, by obtaining the user of mobile terminal in current meter step period first based on step number, and It is supplied to comparing unit 402.
Comparing unit 402, step number and the second meter of the user of mobile terminal in a upper meter step period based on by first Step number is compared, and step number incrementss are counted to obtain the step number based on second of step number in terms of first.
First judging unit 403, whether step number incrementss are more than default the based on the user for judging mobile terminal One threshold value.
Above-mentioned first acquisition unit 401, it is additionally operable to judge in the first judging unit 403 meter of the user of mobile terminal When step number incrementss are more than preset first threshold value, the first Wi-Fi Hotspot set scanned in present scanning cycle is obtained, and carry Supply comparing unit 402.
Above-mentioned comparing unit 402, it is additionally operable to mobile scanning terminal in the first Wi-Fi Hotspot set and upper scan cycle To the second Wi-Fi Hotspot set be compared, to obtain in the first Wi-Fi Hotspot set and the second Wi-Fi Hotspot set The quantity of identical Wi-Fi Hotspot, and it is supplied to the first judging unit 403.
Above-mentioned first judging unit 403, it is additionally operable to judge in the first Wi-Fi Hotspot set and the second Wi-Fi Hotspot set The quantity of identical Wi-Fi Hotspot whether be less than default Second Threshold.
Positioning unit 404, for judging the first Wi-Fi Hotspot set and the 2nd Wi- in above-mentioned first judging unit 403 When the quantity of identical Wi-Fi Hotspot in Fi focus set is less than default Second Threshold, positioning action is performed.
As an alternative embodiment, positioning unit 404 can judge first in above-mentioned first judging unit 403 It is defeated when Wi-Fi Hotspot set is less than default Second Threshold with the quantity of the identical Wi-Fi Hotspot in the second Wi-Fi Hotspot set Go out prompt message, the user that the prompt message is used for prompting mobile terminal starts the camera function of mobile terminal for shooting photograph Piece, wherein, the photo can be the image for including text information, it is preferred that the photo can be include guideboard, billboard or The image of billboard, wherein, it is radius that the guideboard, billboard or billboard, which are located at by the center of circle, pre-determined distance of mobile terminal, Within the scope of;In addition, the photo can also be the photo of the landmark building nearest apart from mobile terminal;Obtained in mobile terminal After taking the photo that mobile terminal user shoots, positioning unit 404 carries out OCR (Optical Character to the photo Recognition, optical character identification) identification, if positioning unit 404 identifies that the photo is the figure for including text information Picture, then the text information in picture is obtained, and the keyword for filtering and extracting in text information is sent to server, so that service The keyword that device is sent according to mobile terminal is retrieved, and obtains the location information of the mobile terminal;Or if it can not identify The photo is the image for including text information, then positioning unit 404 triggers image capture function, for catching the mark in the photo Will is built, and the positional information by obtaining the landmark building is used as the location information of mobile terminal, and by the mobile terminal Location information be sent to server.It can be seen that by the embodiment of the present invention, positioning unit 404 can pass through the side of picture recognition Formula quick obtaining improves the efficiency of positioning to the location information of mobile terminal.
It can be seen that implementing the mobile terminal shown in Fig. 4, can judge to count step number incrementss and identical Wi-Fi successively The quantity of focus meets just to perform positioning action during predetermined threshold value, is constantly in the positioning function of mobile terminal in the prior art Acquiescence starting state, the positional information for frequently obtaining the mobile terminal are compared, and the whole process of the embodiment of the present invention can drop The power consumption of low mobile terminal.
In addition, implement the mobile terminal shown in Fig. 4, can by way of picture recognition quick obtaining to mobile terminal Location information, improve the efficiency of positioning.
Embodiment five
Referring to Fig. 5, Fig. 5 is the structural representation of another mobile terminal provided in an embodiment of the present invention, wherein, Fig. 5 Shown mobile terminal is that mobile terminal as shown in Figure 4 further optimizes what is obtained.With the mobile terminal phase shown in Fig. 4 Compare, the mobile terminal shown in Fig. 5 can also include:
Detection unit 405, it whether there is the application program in background operation state in mobile terminal for detecting.
Second acquisition unit 406, background operation state is in for existing in detecting mobile terminal in detection unit 405 Application program when, obtain total running memory shared by all application programs in background operation state, and will get Total running memory be supplied to the second judging unit 407.
Second judging unit 407, for judging whether above-mentioned total running memory is less than default running memory.
Above-mentioned first acquisition unit 401, specifically for judging that above-mentioned total running memory is less than in the second judging unit 407 During default running memory, the first meter step number of the user of mobile terminal in current meter step period is obtained, and is judged first When unit 403 judges that the meter step number incrementss of the user of mobile terminal are more than preset first threshold value, Current Scan week is obtained The the first Wi-Fi Hotspot set scanned in phase.
As an alternative embodiment, when the second judging unit 407 judges above-mentioned total running memory not less than pre- If during running memory, the second judging unit 407 can be also used for judging whether current time above-mentioned is in background operation state All application programs corresponding to preset in run time section, wherein, the default run time section is the user of mobile terminal Customized run time section, the i.e. user of mobile terminal can set the application journey for needing to manage according to the needs of oneself Run time section is preset corresponding to sequence;Above-mentioned first acquisition unit 401 can close above-mentioned in backstage fortune according to judged result Run time section is preset in all application programs of row state does not include the application program of current time, optionally, above-mentioned first Acquiring unit 401 can also will preset run time section in above-mentioned all application programs in background operation state included currently Whether the application icon of the application program of time exports in display interface, decided in its sole discretion with to provide the user of mobile terminal and closed Application program corresponding to above-mentioned application icon.
For example, After Hours 7 points -9 points of user every night of mobile terminal may move, then the user Set and preset run time section as " " at 19 points -21 points corresponding to certain motion APP (application program), then the second judging unit 407 Detect that motion APP (application program), can in running background at 19 points -21 points in the period in addition to " " daily Triggering first acquisition unit 401 directly closes motion APP (application program);If the second judging unit 407 is " 19 points -21 , then can be with without any processing when detecting that motion APP (application program) be in background operation state in point ", or ought the When two judging units 407 judge that the electricity of mobile terminal is less than default electricity, acquiring unit 401 exports answering for motion APP With icon and prompting message, decided whether to close motion APP by user.In the embodiment of the present invention, second judges list Member 407 judges whether current time wraps according to the default run time section of the customized application program of user of mobile terminal Include in the default run time section of the application program in background operation state, if do not included, triggering first obtains single Member 401 closes the application program, without user's manual-lock application program of mobile terminal, both improves Consumer's Experience, Occupancy of the unnecessary application program to running of mobile terminal internal memory is decreased, the electricity for further saving mobile terminal disappears Consumption.
It can be seen that implementing the mobile terminal shown in Fig. 5, can judge to count step number incrementss and identical Wi-Fi successively The quantity of focus meets just to perform positioning action during predetermined threshold value, is constantly in the positioning function of mobile terminal in the prior art Acquiescence starting state, the positional information for frequently obtaining the mobile terminal are compared, and the whole process of the embodiment of the present invention can drop The power consumption of low mobile terminal.
In addition, implement the mobile terminal shown in Fig. 5, can be by judging whether the current total running memory of mobile terminal is small In default running memory, and follow-up step is just performed when current total running memory is less than default running memory, improved The speed of service of mobile terminal.
In addition, implement the mobile terminal shown in Fig. 5, can be according to the customized application program of user of mobile terminal Default run time section, judges whether current time is included in the default run time of the application program in background operation state In section, if do not included, the application program is directly closed, without user's manual-lock application program of mobile terminal, Both Consumer's Experience is improved, decreases occupancy of the unnecessary application program to running of mobile terminal internal memory, is further saved The electric quantity consumption of mobile terminal.
Embodiment six
Referring to Fig. 6, Fig. 6 is the structural representation of another mobile terminal disclosed in the embodiment of the present invention.Wherein, Fig. 6 Shown mobile terminal is that mobile terminal as shown in Figure 5 optimizes what is obtained.Compared with the mobile terminal shown in Fig. 5, In mobile terminal shown in Fig. 6:
Above-mentioned positioning unit 404 can include:
Judgment sub-unit 4041, for judging whether the dump energy of mobile terminal is higher than default power threshold, if it is, The first transmission sub-unit 4042 is triggered to start.
First transmission sub-unit 4042, for judging the first Wi-Fi Hotspot set and second in the first judging unit 403 When the quantity of identical Wi-Fi Hotspot in Wi-Fi Hotspot set is less than default Second Threshold, sends mobile terminal to server and work as The base station information of preceding region, so that server matches at least according to base station information to mobile terminal feedback base station information The identity information of three target satellites.
Establish subelement 4043, for the identity information according to above-mentioned at least three target satellite, establish respectively with it is above-mentioned The communication connection of at least three target satellites;
First computation subunit 4044, for according to above-mentioned at least three target satellite by the ranging code signal of transmission to Up to the transmission duration of mobile terminal, the pseudorange of mobile terminal and at least three target satellites is calculated respectively.
Second transmission sub-unit 4045, for the pseudorange of mobile terminal and at least three target satellites to be sent into service Device, defended with triggering server according to mobile terminal and the pseudorange of above-mentioned at least three target satellite and above-mentioned at least three target The positional information calculation of star goes out location information of coordinate value of the mobile terminal in rectangular coordinate system in space as the mobile terminal.
First obtains subelement 4046, for when the judged result of judgment sub-unit 4041 is no, obtaining the 3rd Wi-Fi Focus set, and the Wi-Fi Hotspot that signal intensity is most strong into the 3rd Wi-Fi Hotspot set sends position sharing request, and Triggering starts receiving subelement 4047.
Receiving subelement 4047, the positional information of the Wi-Fi Hotspot most strong for received signal strength, the positional information are By the most strong Wi-Fi Hotspot response position sharing request feedback of signal intensity, and it is supplied to determination single the positional information Member 4048.
Determination subelement 4048, for the positional information of the most strong Wi-Fi Hotspot of above-mentioned signal intensity to be defined as moving The location information of terminal.
First acquisition unit 401 includes:
Subelement 4011 is gathered, for judging that total running memory is less than default running memory in the second judging unit 407 When, the action data of the user of mobile terminal in current period is gathered, and the action data is supplied to filtering subelement 4012。
Subelement 4012 is filtered, for filtering above-mentioned action data, obtains effective action data, the effective action data are The user of mobile terminal caused continuous dynamic data in gait processes.
Second computation subunit 4013, the effective action data for being provided according to above-mentioned filtering subelement 4012, which calculate, to be worked as The first meter step number of the user of mobile terminal in preceding meter step period.
Second obtains subelement 4014, for obtaining the first Wi-Fi Hotspot set scanned.
It can be seen that implementing the mobile terminal shown in Fig. 6, the power consumption of mobile terminal can be reduced.
In addition, implement the mobile terminal shown in Fig. 6, can be by judging whether the current total running memory of mobile terminal is small In default running memory, and follow-up step is just performed when current total running memory is less than default running memory, improved The speed of service of mobile terminal.
In addition, implement the mobile terminal shown in Fig. 6, can be after original action data be filtered according to effective action number According to the calculating for carrying out the first meter step number, reduce interference of the shake of mobile terminal itself to meter step number statistics, improve acquisition The accuracy of the first meter step number of the user of mobile terminal in current meter step period.
In addition, implementing the mobile terminal shown in Fig. 6, the number of meter step number incrementss and identical Wi-Fi Hotspot is being judged After amount meets predetermined threshold value, judge that the dump energy of mobile terminal whether higher than default power threshold, can pass through judgement As a result select different positioning methods to obtain the location information of mobile terminal, mobile terminal is performed the mode of positioning action more Flexibly;It is possible to further be higher than default power threshold in the dump energy of mobile terminal, i.e. the electricity of mobile terminal is sufficient When, it is that location information is obtained by the pseudorange of mobile terminal and at least three target satellites using the positioning function of itself, makes to obtain The location information got is more accurate;Default power threshold, i.e. mobile terminal can be not higher than in the dump energy of mobile terminal Not enough power supply when, use current to carry out obtaining the mobile terminal in a manner of position is shared with closest Wi-Fi Hotspot Location information, avoid mobile terminal because open the positioning function of itself for a long time and caused by mobile terminal electricity Loss.
Referring to Fig. 7, Fig. 7 is the structural representation of another mobile terminal disclosed in the embodiment of the present invention.Such as Fig. 7 institutes Show, the mobile terminal can include:
It is stored with the memory 701 of executable program code;
The processor 702 coupled with memory 701;
Wherein, processor 702 calls the executable program code stored in memory 701, and it is any one to perform Fig. 1~Fig. 5 Localization method of the kind based on mobile terminal.
The embodiment of the present invention discloses a kind of computer-readable recording medium, and it stores computer program, wherein, the computer Program causes computer to perform any one localization method based on mobile terminal of Fig. 1~Fig. 5.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable recording medium, storage Medium include read-only storage (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read only memory (Programmable Read-only Memory, PROM), erasable programmable is read-only deposits Reservoir (Erasable Programmable Read Only Memory, EPROM), disposable programmable read-only storage (One- Time Programmable Read-Only Memory, OTPROM), the electronics formula of erasing can make carbon copies read-only storage (Electrically-Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read-Only Memory, CD-ROM) or other disk storages, magnetic disk storage, magnetic tape storage or can For carrying or any other computer-readable medium of data storage.
A kind of localization method and mobile terminal based on mobile terminal disclosed in the embodiment of the present invention have been carried out in detail above Thin to introduce, specific case used herein is set forth to the principle and embodiment of the present invention, and above example is said It is bright to be only intended to help the method and its core concept for understanding the present invention;Meanwhile for those of ordinary skill in the art, foundation The thought of the present invention, there will be changes in specific embodiments and applications, in summary, this specification content is not It is interpreted as limitation of the present invention.

Claims (10)

1. a kind of localization method based on mobile terminal, it is characterised in that methods described includes:
The the first Wi-Fi Hotspot set scanned in acquisition for mobile terminal present scanning cycle;
The mobile terminal mobile scanning terminal in the first Wi-Fi Hotspot set and upper scan cycle is arrived the Two Wi-Fi Hotspot set are compared, to obtain in the first Wi-Fi Hotspot set and the second Wi-Fi Hotspot set Identical Wi-Fi Hotspot quantity;
The mobile terminal judges the first Wi-Fi Hotspot set and the identical Wi-Fi in the second Wi-Fi Hotspot set Whether the quantity of focus is less than default Second Threshold;
If the first Wi-Fi Hotspot set and the quantity of the identical Wi-Fi Hotspot in the second Wi-Fi Hotspot set are small In the default Second Threshold, then the mobile terminal performs positioning action.
2. according to the method for claim 1, it is characterised in that scanning is arrived in the acquisition for mobile terminal present scanning cycle The first Wi-Fi Hotspot set before, methods described also includes:
The first meter step number of the user of the mobile terminal in the current meter step period of acquisition for mobile terminal;
The mobile terminal counts the described first meter step number and second of the user of the mobile terminal in a upper meter step period Step number is compared, and step number incrementss are counted to obtain the step number based on described second of step number in terms of described first;
The mobile terminal judges whether the meter step number incrementss of the user of the mobile terminal are more than preset first threshold value;
If the meter step number incrementss of the user of the mobile terminal are more than the preset first threshold value, the mobile terminal Perform the first Wi-Fi Hotspot set scanned in described acquisition present scanning cycle.
3. method according to claim 1 or 2, it is characterised in that the mobile terminal performs positioning action, including:
The mobile terminal is currently located the base station information in region to the server transmission mobile terminal, so that the server The identity that at least three target satellites that the base station information matches are fed back to the mobile terminal according to the base station information is believed Breath;
The mobile terminal is established and at least three target respectively according to the identity information of at least three target satellite The communication connection of satellite;
The ranging code signal that the mobile terminal is sent according at least three target satellite reaches the biography of the mobile terminal Defeated duration, the pseudorange of the mobile terminal and at least three target satellite is calculated respectively;
The pseudorange of the mobile terminal and at least three target satellite is sent to the server by the mobile terminal, with Trigger pseudorange and at least three mesh of the server according to the mobile terminal and at least three target satellite The positional information calculation of mark satellite goes out coordinate value of the mobile terminal in rectangular coordinate system in space as the mobile terminal Location information.
4. according to the method for claim 3, it is characterised in that the mobile terminal sends the mobile terminal to server The base station information in region is currently located, so that the server feeds back the base according to the base station information to the mobile terminal Before the identity information of at least three target satellites of information matches of standing, methods described also includes:
Whether the mobile terminal judges the dump energy of the mobile terminal higher than default power threshold, if it is, performing The described base station information that region is currently located to the server transmission mobile terminal;
If it is not, then the Wi-Fi Hotspot set of acquisition for mobile terminal the 3rd, and believe into the 3rd Wi-Fi Hotspot set The most strong Wi-Fi Hotspot of number intensity sends position sharing request;
The mobile terminal receives the positional information of the most strong Wi-Fi Hotspot of the signal intensity, and the positional information is by institute State the most strong Wi-Fi Hotspot of signal intensity and respond the position sharing request feedback;
The positional information of the most strong Wi-Fi Hotspot of the signal intensity is defined as determining for the mobile terminal by the mobile terminal Position information.
5. according to the method for claim 2, it is characterised in that methods described also includes:
The mobile terminal, which detects, whether there is the application program in background operation state in the mobile terminal, if deposited Then obtaining total running memory shared by all application programs in background operation state;
The mobile terminal judges whether total running memory is less than default running memory, if it is less, described mobile whole The first meter step number of the user of the mobile terminal in the current meter step period of acquisition that end performs.
A kind of 6. mobile terminal, it is characterised in that including:
First acquisition unit, for obtaining the first Wi-Fi Hotspot set scanned in present scanning cycle;
Comparing unit, for arrive the mobile scanning terminal in the first Wi-Fi Hotspot set and upper scan cycle Second Wi-Fi Hotspot set is compared, to obtain the first Wi-Fi Hotspot set and the second Wi-Fi Hotspot set In identical Wi-Fi Hotspot quantity;
First judging unit, for judging that the first Wi-Fi Hotspot set is identical with the second Wi-Fi Hotspot set Whether the quantity of Wi-Fi Hotspot is less than default Second Threshold;
Positioning unit, for judging the first Wi-Fi Hotspot set and the 2nd Wi-Fi in first judging unit When the quantity of identical Wi-Fi Hotspot in focus set is less than the default Second Threshold, positioning action is performed.
7. mobile terminal according to claim 6, it is characterised in that in the mobile terminal:
The first acquisition unit, it is additionally operable to before the first Wi-Fi Hotspot set scanned in present scanning cycle is obtained, Obtain the first meter step number of the user of the mobile terminal in current meter step period;
The comparing unit, it is additionally operable to the described first meter step number and the user of the mobile terminal in a upper meter step period Second meter step number is compared, and step number incrementss are counted to obtain the step number based on described second of step number in terms of described first;
First judging unit, whether it is additionally operable to judge the meter step number incrementss of the user of the mobile terminal more than default First threshold, and obtain scanned in present scanning cycle the in judged result when being, to trigger the first acquisition unit One Wi-Fi Hotspot set.
8. the mobile terminal according to claim 6 or 7, it is characterised in that the positioning unit includes:
First transmission sub-unit, step number increases based on judging the user of the mobile terminal in first judging unit Dosage is more than in the preset first threshold value, and the first Wi-Fi Hotspot set and the second Wi-Fi Hotspot set When the quantity of identical Wi-Fi Hotspot is less than the default Second Threshold, sends the mobile terminal to server and be currently located area The base station information in domain, matched so that the server feeds back the base station information according to the base station information to the mobile terminal At least three target satellites identity information;
Subelement is established, for the identity information according at least three target satellite, is established and described at least three respectively The communication connection of target satellite;
First computation subunit, for reaching the shifting by the ranging code signal of transmission according at least three target satellite The transmission duration of dynamic terminal, the pseudorange of the mobile terminal and at least three target satellite is calculated respectively;
Second transmission sub-unit, for the pseudorange of the mobile terminal and at least three target satellite to be sent into the clothes Be engaged in device, with trigger the server according to the pseudorange of the mobile terminal and at least three target satellite and it is described at least The positional information calculation of three target satellites goes out coordinate value of the mobile terminal in rectangular coordinate system in space as the shifting The location information of dynamic terminal.
9. mobile terminal according to claim 8, it is characterised in that the positioning unit also includes:
Judgment sub-unit, for judging whether the dump energy of the mobile terminal is higher than default power threshold, if it is, triggering First transmission sub-unit starts;
First obtains subelement, for when the judged result of the judgment sub-unit is no, obtaining the 3rd Wi-Fi Hotspot collection Close, and the Wi-Fi Hotspot that signal intensity is most strong into the 3rd Wi-Fi Hotspot set sends position sharing request;
Receiving subelement, for receiving the positional information of the most strong Wi-Fi Hotspot of the signal intensity, the positional information be by The most strong Wi-Fi Hotspot of the signal intensity responds the position sharing request feedback;
Determination subelement, for the positional information of the most strong Wi-Fi Hotspot of the signal intensity to be defined as into the mobile terminal Location information.
10. mobile terminal according to claim 7, it is characterised in that the mobile terminal also includes:
Detection unit, it whether there is the application program in background operation state in the mobile terminal for detecting;
Second acquisition unit, for existing in detecting the mobile terminal in the detection unit in background operation state During application program, total running memory shared by all application programs in background operation state is obtained;
Second judging unit, for judging whether total running memory is less than default running memory;
The first acquisition unit, it is described pre- specifically for judging that total running memory is less than in second judging unit If during running memory, obtain the first meter step number of the user of the mobile terminal in current meter step period.
CN201711050440.8A 2017-10-31 2017-10-31 A kind of localization method and mobile terminal based on mobile terminal Pending CN107613552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711050440.8A CN107613552A (en) 2017-10-31 2017-10-31 A kind of localization method and mobile terminal based on mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711050440.8A CN107613552A (en) 2017-10-31 2017-10-31 A kind of localization method and mobile terminal based on mobile terminal

Publications (1)

Publication Number Publication Date
CN107613552A true CN107613552A (en) 2018-01-19

Family

ID=61085396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711050440.8A Pending CN107613552A (en) 2017-10-31 2017-10-31 A kind of localization method and mobile terminal based on mobile terminal

Country Status (1)

Country Link
CN (1) CN107613552A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093363A (en) * 2017-12-13 2018-05-29 广东欧珀移动通信有限公司 Control method, device, storage medium and the terminal of locating module
CN108650633A (en) * 2018-05-15 2018-10-12 深圳市沃特沃德股份有限公司 Equipment positioning method, device and system
CN108845334A (en) * 2018-04-26 2018-11-20 上海与德科技有限公司 A kind of barrier prompt method, apparatus, terminal and storage medium
CN110049189A (en) * 2019-04-04 2019-07-23 腾讯科技(深圳)有限公司 A kind of the determination method and relevant device of motion state of terminal
CN110167118A (en) * 2019-05-27 2019-08-23 广东乐芯智能科技有限公司 A kind of wearable device saves the method and system of network flow
CN110505572A (en) * 2019-06-27 2019-11-26 华为技术有限公司 A kind of indoor orientation method and electronic equipment
CN110719363A (en) * 2019-09-20 2020-01-21 奇酷互联网络科技(深圳)有限公司 Positioning reporting method and device, intelligent terminal and storage medium
CN110749908A (en) * 2019-09-27 2020-02-04 华为终端有限公司 Positioning method and related equipment
CN111148046A (en) * 2019-12-31 2020-05-12 广西信恒科技有限公司 Track recording method, device and system
CN111148216A (en) * 2019-03-27 2020-05-12 广东小天才科技有限公司 Electronic equipment positioning method and electronic equipment
CN111757439A (en) * 2019-08-08 2020-10-09 广东小天才科技有限公司 Power consumption control method of wearable device and wearable device
WO2021036576A1 (en) * 2019-08-27 2021-03-04 Zhejiang Dahua Technology Co., Ltd. Systems and methods for generating a target hotspot list
CN112817423A (en) * 2021-01-25 2021-05-18 惠州Tcl移动通信有限公司 Low-power-consumption positioning method, system, mobile terminal and computer-readable storage medium
CN113473568A (en) * 2020-03-31 2021-10-01 深圳市万普拉斯科技有限公司 Device position judging method and device, computer device and storage medium
CN114390643A (en) * 2020-10-20 2022-04-22 上海连尚网络科技有限公司 Method and equipment for determining hot spot fingerprint

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208215A (en) * 2015-10-22 2015-12-30 小米科技有限责任公司 Locating control method, device and terminal
CN105372687A (en) * 2015-09-29 2016-03-02 上海斐讯数据通信技术有限公司 A mobile device-based movement track drawing method and system
CN105959026A (en) * 2016-07-20 2016-09-21 广东小天才科技有限公司 Positioning strategy optimization method and device
CN106102005A (en) * 2016-06-16 2016-11-09 惠州Tcl移动通信有限公司 A kind of method and system reducing location mobile device power consumption
CN106528216A (en) * 2016-10-26 2017-03-22 深圳市金立通信设备有限公司 Method for starting application and terminal
CN107231678A (en) * 2017-06-07 2017-10-03 深圳天珑无线科技有限公司 A kind of method and device of positioning

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105372687A (en) * 2015-09-29 2016-03-02 上海斐讯数据通信技术有限公司 A mobile device-based movement track drawing method and system
CN105208215A (en) * 2015-10-22 2015-12-30 小米科技有限责任公司 Locating control method, device and terminal
CN106102005A (en) * 2016-06-16 2016-11-09 惠州Tcl移动通信有限公司 A kind of method and system reducing location mobile device power consumption
CN105959026A (en) * 2016-07-20 2016-09-21 广东小天才科技有限公司 Positioning strategy optimization method and device
CN106528216A (en) * 2016-10-26 2017-03-22 深圳市金立通信设备有限公司 Method for starting application and terminal
CN107231678A (en) * 2017-06-07 2017-10-03 深圳天珑无线科技有限公司 A kind of method and device of positioning

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093363A (en) * 2017-12-13 2018-05-29 广东欧珀移动通信有限公司 Control method, device, storage medium and the terminal of locating module
CN108845334A (en) * 2018-04-26 2018-11-20 上海与德科技有限公司 A kind of barrier prompt method, apparatus, terminal and storage medium
CN108650633A (en) * 2018-05-15 2018-10-12 深圳市沃特沃德股份有限公司 Equipment positioning method, device and system
CN108650633B (en) * 2018-05-15 2021-01-15 深圳市沃特沃德股份有限公司 Equipment positioning method, device and system
CN111148216A (en) * 2019-03-27 2020-05-12 广东小天才科技有限公司 Electronic equipment positioning method and electronic equipment
CN110049189A (en) * 2019-04-04 2019-07-23 腾讯科技(深圳)有限公司 A kind of the determination method and relevant device of motion state of terminal
CN110049189B (en) * 2019-04-04 2020-10-23 腾讯科技(深圳)有限公司 Terminal motion state determination method and related equipment
CN110167118A (en) * 2019-05-27 2019-08-23 广东乐芯智能科技有限公司 A kind of wearable device saves the method and system of network flow
CN110505572A (en) * 2019-06-27 2019-11-26 华为技术有限公司 A kind of indoor orientation method and electronic equipment
WO2020259529A1 (en) * 2019-06-27 2020-12-30 华为技术有限公司 Indoor location method and electronic device
CN111757439A (en) * 2019-08-08 2020-10-09 广东小天才科技有限公司 Power consumption control method of wearable device and wearable device
CN111757439B (en) * 2019-08-08 2023-06-27 广东小天才科技有限公司 Power consumption control method of wearable device and wearable device
WO2021036576A1 (en) * 2019-08-27 2021-03-04 Zhejiang Dahua Technology Co., Ltd. Systems and methods for generating a target hotspot list
CN110719363A (en) * 2019-09-20 2020-01-21 奇酷互联网络科技(深圳)有限公司 Positioning reporting method and device, intelligent terminal and storage medium
CN110749908A (en) * 2019-09-27 2020-02-04 华为终端有限公司 Positioning method and related equipment
CN110749908B (en) * 2019-09-27 2022-05-06 荣耀终端有限公司 Positioning method and related equipment
CN111148046A (en) * 2019-12-31 2020-05-12 广西信恒科技有限公司 Track recording method, device and system
CN111148046B (en) * 2019-12-31 2021-02-19 广西信恒科技有限公司 Track recording method, device and system
CN113473568A (en) * 2020-03-31 2021-10-01 深圳市万普拉斯科技有限公司 Device position judging method and device, computer device and storage medium
CN113473568B (en) * 2020-03-31 2022-11-15 深圳市万普拉斯科技有限公司 Device position judging method and device, computer device and storage medium
CN114390643A (en) * 2020-10-20 2022-04-22 上海连尚网络科技有限公司 Method and equipment for determining hot spot fingerprint
CN114390643B (en) * 2020-10-20 2023-09-15 上海连尚网络科技有限公司 Method and equipment for determining hot-spot fingerprints
CN112817423A (en) * 2021-01-25 2021-05-18 惠州Tcl移动通信有限公司 Low-power-consumption positioning method, system, mobile terminal and computer-readable storage medium

Similar Documents

Publication Publication Date Title
CN107613552A (en) A kind of localization method and mobile terminal based on mobile terminal
CN103597804B (en) Baseband board carries position monitoring
CN102667518B (en) Multisensor location and identification
US9165288B2 (en) Inferring relationships based on geo-temporal data other than telecommunications
US9775003B2 (en) Location and activity aware media content delivery system
CN101611650B (en) For the method and apparatus of the target page in multi-cell wireless communication system
CN102958114B (en) The method for accessing augmented reality user's context
CN106714102A (en) Method of using intelligent mobile phone to assist indoor positioning
CN104320751A (en) Article searching method based on Bluetooth signal strength
CN103189758A (en) Audio-based environment awareness
WO2009151925A2 (en) Methods and apparatus for generating user profile based on periodic location fixes
CN104685861B (en) Content acquisition unit, portable unit, server, information processing unit and storage medium
CN110366096A (en) A kind of indoor scene recognition methods and device
CN106403971A (en) Information interaction method and device
CN105282311A (en) Mobile terminal application starting method and mobile terminal thereof
US20170176213A1 (en) Sensor based context management
CN109579709A (en) A kind of Immovable Cultural Relics Crack Monitoring device and method
CN106470396A (en) The method of range information of acquisition and destination object, device and video camera
EP2426460A1 (en) Method and Apparatus for Generating and Using Location Information
JP4249018B2 (en) GPS receiver and method thereof
CN103632261B (en) The system that natural gas expense of being in pays
CN205318481U (en) Charging system for parking
CN105682021B (en) Information processing method and electronic equipment
US20170300970A1 (en) Systems and methods for tracking mobile points of interest
CN113573239B (en) Virtual card switching method, electronic equipment and wearable equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180119