CN108521628A - A kind of localization method, device and mobile terminal - Google Patents

A kind of localization method, device and mobile terminal Download PDF

Info

Publication number
CN108521628A
CN108521628A CN201810274297.9A CN201810274297A CN108521628A CN 108521628 A CN108521628 A CN 108521628A CN 201810274297 A CN201810274297 A CN 201810274297A CN 108521628 A CN108521628 A CN 108521628A
Authority
CN
China
Prior art keywords
mobile terminal
network
location information
base station
information
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
CN201810274297.9A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810274297.9A priority Critical patent/CN108521628A/en
Publication of CN108521628A publication Critical patent/CN108521628A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • 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/025Services making use of location information using location based information parameters
    • 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)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

An embodiment of the present invention provides a kind of localization method, device and mobile terminals, wherein the method includes:If receiving Location Request, the remaining capacity of mobile terminal is obtained;If the remaining capacity of the mobile terminal is less than power threshold, and default positioning method is GPS positioning mode, then the location information of the mobile terminal is determined by network positions mode;Return to the location information of the mobile terminal.And then it is less than power threshold in the remaining capacity of mobile terminal, and when default positioning method is GPS positioning mode, positioned by way of network positions, realizes and reduce mobile terminal and be in the kwh loss positioned when low battery.

Description

A kind of localization method, device and mobile terminal
Technical field
The present invention relates to a kind of technical field of mobile terminals more particularly to localization method, device and mobile terminals.
Background technology
With the universal of intelligent terminal, the development of location technology, the various application programs based on location-based service also meet the tendency of and Life, such as the application program of map class, the application program for taking out class, the application program application program for class of doing shopping are required to obtain and move The location information of dynamic terminal, is then based on location information and is operated accordingly;Such as the application program of map class needs to obtain The location information of mobile terminal navigated, taken out class application program need the location information based on mobile terminal for user sieve Select Business Information etc..
But the positioning service of most of mobile terminal be all based on GPS (Global Positioning System, entirely Ball positioning system) positioning, since GPS positioning power consumption is larger, when the remaining capacity of mobile terminal is relatively low, if continuing to use GPS positioning can then accelerate the power consumption rate of mobile terminal, be easy to cause mobile terminal and be shut down due to not enough power supply.
Invention content
A kind of localization method of offer of the embodiment of the present invention, device and mobile terminal, to solve to be in low electricity in mobile terminal GPS positioning power consumption big problem is used when amount.
In order to solve the above-mentioned technical problem, the invention is realized in this way:
In a first aspect, an embodiment of the present invention provides a kind of localization methods, including:If receiving Location Request, obtain The remaining capacity of mobile terminal;If the remaining capacity of the mobile terminal is less than power threshold, and default positioning method is fixed for GPS Position mode, then determine the location information of the mobile terminal by network positions mode;Return to the position letter of the mobile terminal Breath.
Second aspect, an embodiment of the present invention provides a kind of positioning devices, including:Receiving module, if fixed for receiving Position request, then obtain the remaining capacity of mobile terminal;Network location module, if the remaining capacity for the mobile terminal is less than Power threshold, and default positioning method is GPS positioning mode, then the position of the mobile terminal is determined by network positions mode Information;Return to module, the location information for returning to the mobile terminal.
The embodiment of the present invention includes following advantages:
In embodiments of the present invention, after mobile terminal receives Location Request, the corresponding remaining capacity of mobile terminal is obtained; If the remaining capacity of the mobile terminal is less than power threshold, and default positioning method is GPS positioning mode, then fixed by network Position mode determines the location information of the mobile terminal, and then is less than power threshold in the remaining capacity of mobile terminal, and default It when positioning method is GPS positioning mode, is positioned by way of network positions, realizes reduction mobile terminal and be in low electricity The kwh loss positioned when amount.
Description of the drawings
Fig. 1 is a kind of step flow chart of localization method of the embodiment of the present invention;
Fig. 2 is the step flow chart of another localization method of the embodiment of the present invention;
Fig. 3 is a kind of structure diagram of positioning device of the embodiment of the present invention;
Fig. 4 is a kind of structure diagram of positioning device of the embodiment of the present invention;
Fig. 5 is a kind of hardware architecture diagram of mobile terminal of the embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Referring to Fig.1, show that a kind of step flow chart of localization method of the embodiment of the present invention, the method can be applied In mobile terminal, the mobile terminal can include but is not limited to mobile phone, tablet computer, laptop, palm PC, vehicle-mounted Terminal, wearable device and pedometer etc..
The embodiment of the present invention may include steps of:
If step 101 receives Location Request, the remaining capacity of mobile terminal is obtained.
In the embodiment of the present invention, the application program based on location-based service can be installed in mobile terminal, such as the application of map class Program, the application program for taking out class, the application program for class of doing shopping, the application program etc. for class of chatting;When user uses this kind of application When program, the location information of mobile terminal is if desired obtained, then this kind of application program is sent fixed to the positioning system of mobile terminal Position request, positioning system can obtain the location information of mobile terminal after receiving Location Request, and return to corresponding application Program.
Wherein, the embodiment of the present invention can not use GPS positioning mode to be positioned when mobile terminal is in low battery, with It reduces mobile terminal and is in the kwh loss positioned when low battery;Therefore mobile terminal can obtain after getting Location Request The remaining capacity of mobile terminal, according to the remaining capacity, to determine corresponding positioning method.It is specific as follows:
If the remaining capacity of step 102, the mobile terminal is less than default power threshold, and default positioning method is GPS Positioning method then determines the location information of the mobile terminal by network positions mode.
The remaining capacity of the mobile terminal can be compared with power threshold for the embodiment of the present invention, judge the residue Whether electricity is less than power threshold;If the remaining capacity is more than power threshold, it is determined that the remaining capacity of mobile terminal is opposite The location information that GPS positioning mode determines the mobile terminal can be used in abundance at this time;I.e. positioning system can call mobile terminal GPS module, it is calculated at a distance from each satellite by GPS module, so determine mobile terminal location information.
If the remaining capacity is less than power threshold, it is determined that the remaining capacity relative deficiency of mobile terminal can be sentenced at this time Whether the default positioning method of breaking is GPS positioning mode;If default positioning method is GPS positioning mode, since GPS positioning consumes Electricity is larger, and positioning method can be adjusted to network positions by the power consumption to save mobile terminal to keep mobile terminal online. Specifically, can determine whether the mobile terminal is connected to network;It, can be fixed by network if the mobile terminal has connected network Position mode determines the location information of the mobile terminal;Wherein, the network positions mode include wireless network positioning method and Running fix mode.If the mobile terminal is not connected with network, GPS positioning mode can be used and positioned, it is fixed also to can return to Position failure news, can specifically determine as desired.
Step 103, the location information for returning to the mobile terminal.
After the location information that positioning system obtains the mobile terminal, corresponding answer can be determined according to the Location Request With program, the location information of the mobile terminal is back to the application program;It certainly also can be by the position of the mobile terminal Confidence breath is uploaded to location-server, to update the location information of mobile terminal.
In conclusion in the embodiment of the present invention, after mobile terminal receives Location Request, if the residue of the mobile terminal Electricity is less than power threshold, and default positioning method is GPS positioning mode, then is determined by network positions mode described mobile whole The location information at end, and then it is less than power threshold in the remaining capacity of mobile terminal, and default positioning method is GPS positioning mode When, it is positioned by way of network positions, realizes reduction mobile terminal and be in the kwh loss positioned when low battery.
In an alternative embodiment of the invention, if the mobile terminal is connected to wireless network, can by wireless network into Row positioning, if the mobile terminal is connected to mobile network, can be positioned by mobile network, described mobile whole to obtain The location information at end, it is specific as follows:
With reference to Fig. 2, show the step flow chart of another localization method of the embodiment of the present invention, can specifically include as Lower step:
If step 201 receives Location Request, the remaining capacity of mobile terminal is obtained.
In the embodiment of the present invention, for user during application programs certain using mobile terminal, these application programs can It can need the location information for obtaining mobile terminal, if navigated using * * maps, for another example use * * take-aways to place an order, therefore answer Location Request can be transmitted with program.Since the location information of mobile terminal belongs to the privacy information of user, application program can at this time Pop up rights request message such as " * *, which take out, to be wanted to obtain user location ", after user executes agreement operation, positioning system is executable Positioning operation obtains location information and the return of mobile terminal according to the Location Request, if user, which executes, disagrees operation, Then positioning system is without executing positioning operation.Positioning system can obtain the remaining capacity of mobile terminal when executing positioning operation, To determine corresponding positioning method according to the remaining capacity, and determine that the position of mobile terminal is believed by corresponding positioning method Breath.
The remaining capacity of the mobile terminal can be compared with power threshold for the embodiment of the present invention, judge the residue Whether electricity is more than power threshold;If the remaining capacity is more than power threshold, it is determined that the remaining capacity of mobile terminal is opposite The location information that GPS positioning mode determines the mobile terminal can be used in abundance at this time;I.e. positioning system can call mobile terminal GPS module, by GPS module receive satellite launch information, calculate it at a distance from each satellite, (such as using set algorithm Unambiguous range) parameters such as longitude, latitude, height and the time complexity curve amount of mobile terminal are found out, and then according to the parameter of calculating Determine the location information of the mobile terminal.
If the small power threshold of remaining capacity, it can determine whether the default positioning method is GPS positioning mode;If Default positioning method is GPS positioning mode, then positioning method can be switched to network positions mode, that is, pass through network positions mode Determine that the location information of the mobile terminal, the network positions mode may include that wireless network positioning method and mobile network are fixed Position mode;Wherein, respectively by different network positions the step of it is specific as follows:
If step 202, the small power threshold of the remaining capacity, and default positioning method is GPS positioning mode, then obtains institute State the network type of mobile terminal connection.
In the embodiment of the present invention, to save the mobile data flow of mobile terminal, it can determine that mobile terminal connection is wireless When network, the location information of the mobile terminal is determined by wireless network positioning method;Determining that mobile terminal is not connected with nothing Gauze network, but when being connected to mobile network, the location information of the mobile terminal is determined by mobile network's positioning method.Cause Network type for that can obtain the mobile terminal connection determines positioning method with the network type according to mobile terminal connection, The network type that the mobile terminal as described in being determined by the parameter value of acquisition ConnectivityManager connects, if The parameter value of ConnectivityManager is TYPE_WIFI, then can determine that the network type is wireless network, then execute Step 203;If the parameter value of ConnectivityManager is TYPE_MOBILE, it can determine that the network type is movement Network thens follow the steps 204.
If step 203, the network type are wireless network, determined by wireless network positioning method described mobile whole The location information at end.
It, can be by wireless when determining that the network type of the mobile terminal connection is wireless network in the embodiment of the present invention Network positions mode determines the location information of the mobile terminal, wherein the location information is the media according to wireless routing What access control MAC addresses obtained;I.e. mobile terminal sends position requests and is sent to wireless location service device, wireless location service Device calculates the mobile terminal and each nothing according to the signal strength for the mobile terminal that each wireless routing uploads near mobile terminal Circuit by distance, and the MAC Address according to each wireless routing inquires the location information that each wireless routing records in the database, And then determine the location information of the mobile terminal, it is then sent to mobile terminal.
In the embodiment of the present invention, when determining that the network type of the mobile terminal connection is mobile network, movement can be passed through Network positions mode determines the location information of the mobile terminal, specific such as step 204- steps 205:
If step 204, the network type are mobile network, the first of multigroup mobile terminal of base station determination is obtained Level position information.
Step 205, the position mean for calculating the primary position information, the shifting is determined according to the position mean The location information of dynamic terminal.
It in the embodiment of the present invention, is positioned by mobile network's mode and is positioned according to base station, specifically, mobile Terminal can obtain the information of corresponding SIM (Subscriber Identification Module, subscriber identification card), and Position request information is sent to base station according to the SIM card information, base station can determine the primary position of mobile terminal, and return to institute State the primary position information of mobile terminal.Since the primary position information error that base station calculates is larger, mobile terminal can repeatedly be sent out Send position request information, you can obtain multigroup primary position information, P1 (X1, Y1, Z1), P2 (X2, Y2, Z2), P3 can be used (X3, Y3, Z3) ... Pn (Xn, Yn, Zn) indicates each group primary position information, wherein n is greater than 0 integer;Then it calculates The position mean of each group primary position information, the location information of the mobile terminal is determined according to the average value.Wherein, position Horizontalization mean value can use P (X, Y, Z) to indicate, wherein X, Y, Z can be determined according to following formula:
In the embodiment of the present invention, determine that the corresponding mode of the location information of the mobile terminal includes according to position mean It is a variety of, wherein it is a kind of to determine that the mode of the location information of the mobile terminal is according to the position mean, by the position Location information of the average value as the mobile terminal.
Another kind determines that the mode of the location information of the mobile terminal is according to the position mean, obtains setting model Enclose the base station position information of interior each base station;Calculate the difference of the position mean and each base station position information, determine with it is described N number of base station position information of position mean difference minimum;The center of gravity for calculating N number of base station position information, according to described heavy The heart determines the location information of mobile terminal, wherein N is greater than 2 integer.Wherein, can be used S1 (x1, y1, z1), S2 (x2, Y2, z2), S3 (x3, y3, z3) ... Sn (xm, ym, zm) indicates the base station position information of each base station, wherein m is greater than 0 Integer;Then the difference of calculating position average value and each base station position information, i.e. mobile terminal are following public at a distance from each base station Shown in formula:
Wherein, Lj refers to the difference of position mean and j-th of base station position information, and the j is no more than the just whole of m Number.
Then quicksort can be used, determine with N number of base station position information of position mean difference minimum (i.e. really It is fixed with the nearest top n base station of the distance of mobile terminal), respectively R1 (x1, y1, z1), R2 (x2, y2, z2), R3 (x3, Y3, z3) ..., RN (xN, yN, zN);Calculate the center of gravity Q (x, y, z) of this N number of base station;Then Q (x, y, z) is the mobile terminal Location information.
Wherein, be the accuracy for the location information for improving the mobile terminal, the embodiment of the present invention another according to described in Position mean determines that the mode of the location information of the mobile terminal is, to first way calculate location information P (X, Y, Z) and the second way calculate location information Q (x, y, z), be weighted, using the result of weighted calculation as the shifting The location information of dynamic terminal, following formula:
Wherein, User is the location information of the mobile terminal, and the w1 is the location information that first way calculates Weight, the w2 are the weights for the location information that the second way calculates, and the w1 and w2 can be arranged as desired;Due to second The accuracy of kind mode is more than the accuracy of first way, and w1 can be arranged<w2.
Step 206, the location information for returning to the mobile terminal.
Positioning system returns to corresponding application after the location information for determining the mobile terminal, by the location information Program.
In embodiments of the present invention, mobile terminal can obtain the remaining capacity of mobile terminal when getting Location Request, Positioning method is determined with the size according to remaining capacity and power threshold;The remaining capacity of the even described mobile terminal is less than electricity Threshold value, and default positioning method is GPS positioning mode, then determines that the position of the mobile terminal is believed by network positions mode Breath;And then it is less than power threshold in the remaining capacity of mobile terminal, and when default positioning method is GPS positioning mode, pass through net The mode of network positioning is positioned, and is realized reduction mobile terminal and is in the kwh loss positioned when low battery.
Secondly, the embodiment of the present invention is in the location information for determining the mobile terminal by mobile radio network positioning method When, the primary position information for multigroup mobile terminal that base station determines is obtained, the position for calculating the primary position information is flat Mean value determines the location information of the mobile terminal according to the position mean;The accuracy of mobile network's positioning is improved, And then improve the accuracy of the location information of mobile terminal.
Again, when determining the location information of the mobile terminal according to the average value, acquisition is set the embodiment of the present invention Determine the base station position information of each base station in range;Calculate the difference of the position mean and each base station position information, determine with N number of base station position information of the position mean difference minimum;The center of gravity for calculating N number of base station position information, according to described heavy The heart determines the location information of mobile terminal;Further improve the accuracy of the location information of mobile terminal.
It should be noted that for embodiment of the method, for simple description, therefore it is all expressed as a series of action group It closes, but those skilled in the art should understand that, the embodiment of the present invention is not limited by the described action sequence, because according to According to the embodiment of the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented Necessary to example.
With reference to Fig. 3, a kind of structure diagram of positioning device of the embodiment of the present invention is shown, be applied to mobile terminal, tool Body may include:Receiving module 301, network location module 302 and return module 303, wherein
If receiving module 301 obtains the remaining capacity of mobile terminal for receiving Location Request;
Network location module 302, if the remaining capacity for the mobile terminal is less than power threshold, and default positioning side Formula is GPS positioning mode, then the location information of the mobile terminal is determined by network positions mode;
Return to module 303, the location information for returning to the mobile terminal.
With reference to Fig. 4, the structure diagram of another positioning device of the embodiment of the present invention is shown, be applied to mobile terminal.
In an alternative embodiment of the invention, the network location module 302 includes:Type acquisition submodule 3021, nothing Gauze network positions submodule 3022 and mobile network positions submodule 3023, wherein
Type acquisition submodule 3021, the network type for obtaining the mobile terminal connection;
Wireless network positions submodule 3022, fixed by wireless network if being wireless network for the network type Position mode determines the location information of the mobile terminal;
Mobile network positions submodule 3023, fixed by mobile network if being mobile network for the network type Position mode determines the location information of the mobile terminal.
Wherein, mobile network's positioning submodule 3023 includes:Location information acquiring unit 30231 and location information are true Order member 30232, specifically:
Location information acquiring unit 30231, the primary position letter of multigroup mobile terminal for obtaining base station determination Breath;
Location information determination unit 30232, the position mean for calculating the primary position information, according to institute's rheme Horizontalization mean value determines the location information of the mobile terminal.
Wherein, the location information determination unit 30232 is specifically used for obtaining the base station location of each base station in setting range Information;The difference of the position mean and each base station position information is calculated, determines the N with the position mean difference minimum A base station position information, N are the integer more than 2;The center of gravity for calculating N number of base station position information is determined according to the center of gravity and is moved The location information of terminal.
In an alternative embodiment of the invention, the location information determined by wireless network positioning method, is foundation What the MAC address of wireless routing obtained.
In the embodiment of the present invention, after mobile terminal receives Location Request, the corresponding remaining capacity of mobile terminal is obtained;If The remaining capacity of the mobile terminal is less than power threshold, and default positioning method is GPS positioning mode, then passes through network positions Mode determines the location information of the mobile terminal, and then is less than power threshold in the remaining capacity of mobile terminal, and presetting It when position mode is GPS positioning mode, is positioned by way of network positions, realizes reduction mobile terminal and be in low battery The kwh loss of Shi Dingwei.
For device embodiments, since it is basically similar to the method embodiment, so fairly simple, the correlation of description Place illustrates referring to the part of embodiment of the method.
Device provided in an embodiment of the present invention can realize that mobile terminal is realized each in the embodiment of the method for Fig. 1 to Fig. 2 A process, to avoid repeating, which is not described herein again.
With reference to a kind of hardware architecture diagram of the mobile terminal of each embodiment to realize the present invention of figure 5.
The mobile terminal 500 includes but not limited to:It is radio frequency unit 501, network module 502, audio output unit 503, defeated Enter unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor The components such as 510 and power supply 511.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 5 is not constituted Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, either combine certain components or Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, if processor 510 obtain the remaining capacity of mobile terminal for receiving Location Request;If the shifting The remaining capacity of dynamic terminal is less than power threshold, and default positioning method is GPS positioning mode, then true by network positions mode The location information of the fixed mobile terminal;Return to the location information of the mobile terminal.
In the embodiment of the present invention, after mobile terminal receives Location Request, the remaining capacity of mobile terminal is obtained, if described The remaining capacity of mobile terminal is less than power threshold, and default positioning method is GPS positioning mode, then passes through network positions mode It determines the location information of the mobile terminal, and then is less than power threshold, and default positioning side in the remaining capacity of mobile terminal It when formula is GPS positioning mode, is positioned by way of network positions, realizes to reduce when mobile terminal is in low battery and determine The kwh loss of position.
It should be understood that the embodiment of the present invention in, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 510 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 501 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by radio communication system and network and other set Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 502 and has accessed, and such as user is helped to receive Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 503 can receive radio frequency unit 501 or network module 502 or in memory 509 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 503 can also be provided and be moved The relevant audio output of specific function that dynamic terminal 500 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 503 includes loud speaker, buzzer and receiver etc..
Input unit 504 is for receiving audio or video signal.Input unit 504 may include graphics processor (Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out Reason.Treated, and picture frame may be displayed on display unit 506.Through graphics processor 5041, treated that picture frame can be deposited Storage is sent in memory 509 (or other storage mediums) or via radio frequency unit 501 or network module 502.Mike Wind 5042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output of mobile communication base station can be sent to via radio frequency unit 501 by being converted in the case of telephone calling model.
Mobile terminal 500 further includes at least one sensor 505, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 5061, and proximity sensor can close when mobile terminal 500 is moved in one's ear Display panel 5061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 506 is for showing information input by user or being supplied to the information of user.Display unit 506 can wrap Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 5061.
User input unit 507 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family is arranged and the related key signals input of function control.Specifically, user input unit 507 include touch panel 5071 and Other input equipments 5072.Touch panel 5071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 5071 or in touch panel 5071 Neighbouring operation).Touch panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area It manages the order that device 510 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch panel 5071.In addition to touch panel 5071, user input unit 507 can also include other input equipments 5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 5071 can be covered on display panel 5061, when touch panel 5071 is detected at it On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touch The type for touching event provides corresponding visual output on display panel 5061.Although in Figure 5, touch panel 5071 and display Panel 5061 is to realize the function that outputs and inputs of mobile terminal as two independent components, but in some embodiments In, can be integrated by touch panel 5071 and display panel 5061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place does not limit.
Interface unit 508 is the interface that external device (ED) is connect with mobile terminal 500.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in mobile terminal 500 or can be used in 500 He of mobile terminal Transmission data between external device (ED).
Memory 509 can be used for storing software program and various data.Memory 509 can include mainly storing program area And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 509 may include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 509, and calls and is stored in storage Data in device 509 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Reason device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) powered to all parts, it is preferred that power supply 511 Can be logically contiguous by power-supply management system and processor 510, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, mobile terminal 500 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, and memory 509 is stored in On memory 509 and the computer program that can be run on the processor 510, the computer program are executed by processor 510 Each process of the above-mentioned localization method embodiments of Shi Shixian, and identical technique effect can be reached, to avoid repeating, here no longer It repeats.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned localization method embodiment when being executed by processor, and can reach Identical technique effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium is deposited Ru read-only Reservoir (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), Magnetic disc or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within the protection of the present invention.

Claims (11)

1. a kind of localization method, which is characterized in that it is applied to mobile terminal, the method includes:
If receiving Location Request, the remaining capacity of mobile terminal is obtained;
If the remaining capacity of the mobile terminal is less than default power threshold, and default positioning method is GPS positioning mode, then leads to Cross the location information that network positions mode determines the mobile terminal;
Return to the location information of the mobile terminal.
2. according to the method described in claim 1, it is characterized in that, described determine the mobile terminal by network positions mode Location information the step of, including:
Obtain the network type of the mobile terminal connection;
If the network type is wireless network, determine that the position of the mobile terminal is believed by wireless network positioning method Breath;
If the network type is mobile network, determine that the position of the mobile terminal is believed by mobile network's positioning method Breath.
3. according to the method described in claim 2, it is characterized in that, described determine the movement by mobile network's positioning method The step of location information of terminal, including:
Obtain the primary position information for multigroup mobile terminal that base station determines;
The position mean for calculating the primary position information, the position of the mobile terminal is determined according to the position mean Information.
4. according to the method described in claim 3, it is characterized in that, described determine the mobile terminal according to the average value The step of location information, including:
Obtain the base station position information of each base station in setting range;
The difference of the position mean and each base station position information is calculated, determines the N with the position mean difference minimum A base station position information, N are the integer more than 2;
The center of gravity for calculating N number of base station position information determines the location information of mobile terminal according to the center of gravity.
5. according to the method described in claim 2, it is characterized in that, the position letter determined by wireless network positioning method Breath is that the MAC address of foundation wireless routing obtains.
6. a kind of positioning device, which is characterized in that be applied to mobile terminal, described device includes:
If receiving module obtains the remaining capacity of mobile terminal for receiving Location Request;
Network location module, if the remaining capacity for the mobile terminal is less than power threshold, and default positioning method is GPS Positioning method then determines the location information of the mobile terminal by network positions mode;
Return to module, the location information for returning to the mobile terminal.
7. device according to claim 6, which is characterized in that the network location module includes:
Type acquisition submodule, the network type for obtaining the mobile terminal connection;
Wireless network positions submodule, true by wireless network positioning method if being wireless network for the network type The location information of the fixed mobile terminal;
Mobile network positions submodule, true by mobile network's positioning method if being mobile network for the network type The location information of the fixed mobile terminal.
8. device according to claim 7, which is characterized in that the mobile network positions submodule and includes:
Location information acquiring unit, the primary position information of multigroup mobile terminal for obtaining base station determination;
Location information determination unit, the position mean for calculating the primary position information, according to the position mean Determine the location information of the mobile terminal.
9. device according to claim 8, which is characterized in that
The location information determination unit is specifically used for obtaining the base station position information of each base station in setting range;Described in calculating The difference of position mean and each base station position information determines and believes with N number of base station location of position mean difference minimum Breath, N are the integer more than 2;The center of gravity for calculating N number of base station position information determines the position letter of mobile terminal according to the center of gravity Breath.
10. device according to claim 7, which is characterized in that the position determined by wireless network positioning method Information is that the MAC address of foundation wireless routing obtains.
11. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor Any one of described in localization method the step of.
CN201810274297.9A 2018-03-29 2018-03-29 A kind of localization method, device and mobile terminal Pending CN108521628A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810274297.9A CN108521628A (en) 2018-03-29 2018-03-29 A kind of localization method, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810274297.9A CN108521628A (en) 2018-03-29 2018-03-29 A kind of localization method, device and mobile terminal

Publications (1)

Publication Number Publication Date
CN108521628A true CN108521628A (en) 2018-09-11

Family

ID=63430864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810274297.9A Pending CN108521628A (en) 2018-03-29 2018-03-29 A kind of localization method, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN108521628A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468952A (en) * 2019-09-03 2021-03-09 Oppo广东移动通信有限公司 Positioning method, positioning device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209385A (en) * 2011-05-25 2011-10-05 厦门雅迅网络股份有限公司 Method for calculating position of base station based on spatial outlier data mining algorithm
CN103176192A (en) * 2011-12-23 2013-06-26 Lg电子株式会社 Mobile terminal and positioning satellites selecting method thereof
CN104199538A (en) * 2014-08-26 2014-12-10 深圳市中兴移动通信有限公司 Mobile terminal power saving method and system and mobile terminal
CN104768127A (en) * 2014-01-07 2015-07-08 中兴通讯股份有限公司 Positioning method, device and server
CN106131795A (en) * 2016-08-30 2016-11-16 维沃移动通信有限公司 A kind of localization method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209385A (en) * 2011-05-25 2011-10-05 厦门雅迅网络股份有限公司 Method for calculating position of base station based on spatial outlier data mining algorithm
CN103176192A (en) * 2011-12-23 2013-06-26 Lg电子株式会社 Mobile terminal and positioning satellites selecting method thereof
CN104768127A (en) * 2014-01-07 2015-07-08 中兴通讯股份有限公司 Positioning method, device and server
CN104199538A (en) * 2014-08-26 2014-12-10 深圳市中兴移动通信有限公司 Mobile terminal power saving method and system and mobile terminal
CN106131795A (en) * 2016-08-30 2016-11-16 维沃移动通信有限公司 A kind of localization method and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468952A (en) * 2019-09-03 2021-03-09 Oppo广东移动通信有限公司 Positioning method, positioning device, storage medium and electronic equipment
CN112468952B (en) * 2019-09-03 2023-06-02 Oppo广东移动通信有限公司 Positioning method, positioning device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN108347759A (en) A kind of anti-interference method and mobile terminal of flexible screen
CN108108007A (en) A kind of processing method and mobile terminal for reducing power consumption
CN108022446A (en) A kind of parking spot acquisition methods, mobile terminal
CN109996305A (en) A kind of communication means, mobile terminal and base station
CN108037966A (en) A kind of interface display method, device and mobile terminal
CN108541015A (en) A kind of signal strength reminding method and mobile terminal
CN109343788A (en) A kind of method of controlling operation thereof and mobile terminal of mobile terminal
CN108469968A (en) A kind of applied program processing method and mobile terminal
CN108984066A (en) A kind of application icon display methods and mobile terminal
CN108495349A (en) A kind of switching method and mobile terminal of carrier network
CN109379700A (en) Localization method and mobile terminal
CN107608855A (en) Based reminding method and mobile terminal
CN107835495A (en) A kind of message prompt method, device and mobile terminal
CN107786751A (en) A kind of method for broadcasting multimedia file and mobile terminal
CN108551525A (en) A kind of state of motion track determines method and mobile terminal
CN108429856A (en) A kind of location information acquisition methods and mobile terminal
CN107508361A (en) A kind of charge-discharge parameter method of adjustment, device, mobile terminal
CN111158624A (en) Application sharing method, electronic equipment and computer readable storage medium
CN110234068A (en) A kind of localization method and terminal device
CN109932685A (en) A kind of localization method, mobile terminal and indoor locating system
CN109005297A (en) A kind of display methods and mobile terminal of navigation application
CN108540951A (en) A kind of recharge method and mobile terminal
CN108419283A (en) A kind of method and mobile terminal of WIFI hot spot scanning
CN108259808A (en) A kind of video frame compression method and mobile terminal
CN108156328A (en) The switching method and device of contextual model

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