CN106131777B - Mobile terminal location device and method - Google Patents

Mobile terminal location device and method Download PDF

Info

Publication number
CN106131777B
CN106131777B CN201610388473.2A CN201610388473A CN106131777B CN 106131777 B CN106131777 B CN 106131777B CN 201610388473 A CN201610388473 A CN 201610388473A CN 106131777 B CN106131777 B CN 106131777B
Authority
CN
China
Prior art keywords
mobile terminal
location information
base station
information
mobile
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610388473.2A
Other languages
Chinese (zh)
Other versions
CN106131777A (en
Inventor
马子平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610388473.2A priority Critical patent/CN106131777B/en
Publication of CN106131777A publication Critical patent/CN106131777A/en
Application granted granted Critical
Publication of CN106131777B publication Critical patent/CN106131777B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • 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
    • 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 invention discloses a kind of mobile terminal location device and methods, its device includes: acquisition module, the corresponding one group of first location information of mobile terminal is obtained for obtaining several base station informations near mobile terminal by mobile network, and by several described base station informations;Second position computing module, for one group of first location information being calculated using average algorithm the second location information of mobile terminal;The third place computing module, for mobile terminal being calculated at a distance from each base station, based on the location information apart from the smallest at least three base station according to several described base station informations, and the second location information of mobile terminal, the third place information of mobile terminal is calculated.The invention avoids users to close the problem of GPS function can not obtain location information, improves the practicability based on location-based service application, and this programme ensure that the user location of acquisition is precisely and effective.

Description

Mobile terminal location device and method
Technical field
The present invention relates to mobile terminal positioning technology field more particularly to a kind of mobile terminal location device and methods.
Background technique
Currently, in mobile internet era, with the promotion and popularization of intelligent terminal, Various Functions based on location-based service Application come into being.But these applications require that (Global Positioning System, the whole world are fixed by means of GPS Position system) it obtains accurate location information and can not obtain the location information of user if user is not turned on GPS positioning function.
In addition, user is indoors using intelligent terminal the most of the time, satellite positioning signal is in skyscraper and underground It not can guarantee in facility and cover every nook and cranny, thereby result in the missing or inaccuracy of customer position information, and compare power consumption.
Summary of the invention
It is a primary object of the present invention to propose a kind of mobile terminal locating method and device, it is intended to which real-time and precise, which obtains, to be used Family location information.
To achieve the above object, a kind of mobile terminal location device provided by the invention, comprising:
It obtains module and passes through institute for obtaining several base station informations near the mobile terminal by mobile network It states several base station informations and obtains the corresponding one group of first location information of the mobile terminal;
Second position computing module, for the shifting to be calculated using average algorithm to one group of first location information The second location information of dynamic terminal;
The third place computing module, for calculating the mobile terminal and each base according to several described base station informations The distance stood, based on the second location information of location information and the mobile terminal apart from the smallest at least three base station, The third place information of the mobile terminal is calculated.
Optionally, the base station information includes base coded and location information;
The third place computing module is also used to obtain the position of several base stations according to each base coded information Confidence breath, according to the location information of several base stations, calculates the mobile terminal at a distance from each base station;Obtain away from Location information from the smallest three base stations;Obtain the barycenter oftriangle constituted using the position of three base stations as vertex; The midpoint between the barycenter oftriangle and the second position of the mobile terminal is obtained, the mobile terminal is obtained The third place information.
Optionally, the third place computing module is also used to obtain several described bases according to each base coded information The location information stood calculates the mobile terminal at a distance from each base station according to the location information of several base stations;It obtains Take the location information apart from the smallest four base stations;Obtain the weight of the quadrangle constituted using the position of four base stations as vertex The heart;The midpoint between the center of gravity of the quadrangle and the second position of the mobile terminal is obtained, is obtained described mobile whole The third place information at end.
Optionally, described device further include:
Whether monitoring modular, the GPS function for monitoring mobile terminal open;If monitoring the GPS function of mobile terminal It does not open, then prompts whether to open GPS function;If not receiving the instruction for opening the GPS function of mobile terminal yet by prompt, Or monitor that the GPS function of mobile terminal has turned on but the signal quality of GPS is not up to preset condition, then monitor mobile terminal Whether inserted with SIM card and access to mobile network, to obtain the location information of the mobile terminal by mobile network;
The third place computing module, if being also used to monitor, the GPS function of mobile terminal is had turned on, and the letter of GPS Number quality reaches preset condition, then the location information of the mobile terminal is obtained by GPS.
Optionally, the monitoring modular is supervised if being also used to not receive the instruction for opening the GPS function of mobile terminal Survey whether mobile terminal is connected to WIFI network;If the mobile terminal is not attached to WIFI network, monitoring mobile terminal is It is no inserted with SIM card and access to mobile network, to obtain the location information of the mobile terminal by mobile network;
The third place computing module passes through WIFI if being also used to the mobile terminal is already connected to WIFI network MAC Address searches the location information of the mobile terminal.
The embodiment of the present invention also proposes a kind of mobile terminal locating method, comprising:
Several base station informations near the mobile terminal are obtained by mobile network, and pass through several described base stations Information obtains the corresponding one group of first location information of the mobile terminal;
One group of first location information is calculated using average algorithm the second location information of the mobile terminal;
According to several described base station informations, the mobile terminal is calculated at a distance from each base station, it is minimum based on distance At least three base stations location information and the mobile terminal second location information, the mobile terminal is calculated The third place information.
Optionally, the base station information includes base coded and location information, described several base station informations according to, The mobile terminal is calculated at a distance from each base station, based on the location information apart from the smallest at least three base station, Yi Jisuo The second location information for stating mobile terminal, the step of the third place information of the mobile terminal is calculated include:
According to each base coded information, the location information of several base stations is obtained, according to several base stations Location information calculates the mobile terminal at a distance from each base station;
Obtain the location information apart from the smallest three base stations;
Obtain the barycenter oftriangle constituted using the position of three base stations as vertex;
The midpoint between the barycenter oftriangle and the second position of the mobile terminal is obtained, the shifting is obtained The third place information of dynamic terminal.
Optionally, the base station information includes base coded and location information, described according to several base station informations, is calculated The mobile terminal at a distance from each base station, based on apart from the smallest at least three base station location information and the shifting The second location information of dynamic terminal, the step of the third place information of the mobile terminal is calculated include:
According to each base coded information, the location information of several base stations is obtained, according to several base stations Location information calculates the mobile terminal at a distance from each base station;
Obtain the location information apart from the smallest four base stations;
Obtain the center of gravity of the quadrangle constituted using the position of four base stations as vertex;
The midpoint between the center of gravity of the quadrangle and the second position of the mobile terminal is obtained, the shifting is obtained The third place information of dynamic terminal.
Optionally, before monitoring mobile terminal inserted with SIM card and access to mobile network, further includes:
Whether the GPS function of monitoring mobile terminal opens;
If monitoring, the GPS function of mobile terminal is not opened, prompts whether to open GPS function;
If monitoring, the GPS function of mobile terminal is had turned on, and the signal quality of GPS reaches preset condition, then passes through GPS Obtain the location information of the mobile terminal;
If not receiving the instruction for opening the GPS function of mobile terminal yet by prompt, or monitor mobile terminal GPS function has turned on but the signal quality of GPS is not up to preset condition, then monitors whether mobile terminal inserted with SIM card and connects Enter mobile network, to obtain the location information of the mobile terminal by mobile network.
Optionally, after the step of whether prompt opens GPS function further include:
If not receiving the instruction for opening the GPS function of mobile terminal, monitor whether mobile terminal is connected to WIFI net Network;
If the mobile terminal is already connected to WIFI network, the position of the mobile terminal is searched by WIFI MAC Address Confidence breath;
If the mobile terminal is not attached to WIFI network, monitor whether mobile terminal inserted with SIM card and accesses shifting Dynamic network, to obtain the location information of the mobile terminal by mobile network.
A kind of mobile terminal locating method and device proposed by the present invention are obtained near mobile terminal by mobile network Several base station informations, and the corresponding one group of first location information of mobile terminal is obtained by several described base station informations;Root According to the position of one group of first location information estimation mobile terminal, the second location information of mobile terminal is obtained;According to several bases The second location information of the location information and mobile terminal stood is calculated the third place information of mobile terminal, thus keeps away Exempt from user and closed the problem of GPS function can not obtain location information, improves the practicability based on location-based service application, and This programme uses the strategy of adaptive polo placement customer position information, ensure that the user location of acquisition is precisely and effective.In addition, phase Than GPS positioning, faster using network positions speed, and electricity is saved, the user experience is improved.
Detailed description of the invention
Fig. 1 is the hardware structural diagram for realizing an optional mobile terminal of each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the module diagram of mobile terminal location device first embodiment of the present invention;
Fig. 4 is the module diagram of mobile terminal location device second embodiment of the present invention;
Fig. 5 is the module diagram of mobile terminal location device 3rd embodiment of the present invention;
Fig. 6 is the refinement flow diagram of the embodiment of the present invention;
Fig. 7 is the flow diagram of mobile terminal locating method first embodiment of the present invention;
Fig. 8 is the flow diagram of mobile terminal locating method second embodiment of the present invention;
Fig. 9 is the flow diagram of mobile terminal locating method 3rd embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Terminal device involved in the embodiment of the present invention refers mainly to mobile terminal.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving Except the element of purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
The hardware structural diagram of Fig. 1 optional mobile terminal of each embodiment to realize the present invention.
Mobile terminal 100 may include wireless communication unit 110, user input unit 130, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190 etc..Fig. 1 shows the mobile terminal with various assemblies, but It is that should be understood that, it is not required that implement all components shown.More or fewer components can alternatively be implemented.It will be under The element of face detailed description mobile terminal.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication system Or the radio communication between network.For example, wireless communication unit may include mobile communication module 112, wireless Internet mould At least one of block 113 and location information module 115.
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Location information module 115 is the module for checking or obtaining the location information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module is calculated from three or more satellites Range information and correct time information and Information application triangulation for calculating, thus according to longitude, latitude and Highly accurately calculate three-dimensional current location information.Currently, three satellites are used for the method for calculating position and temporal information And the error of calculated position and temporal information is corrected by using an other satellite.In addition, GPS module can lead to Carry out calculating speed information after Continuous plus current location information in real time.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch Plate (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), idler wheel, rocking bar etc. Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be storage and use each of mobile terminal 100 for verifying user It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) Etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, know Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated Signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) out.
Output unit 150 may include display unit 151 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode Or when image capture mode, display unit 151 can show captured image and/or received image, show video or figure Picture and the UI or GUI of correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit 151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detecting touch Input pressure and touch input position and touch input area.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers The multi-media module 1810 of volume data, multi-media module 1810 can construct in controller 180, or can be structured as with Controller 180 separates.Controller 180 can with execution pattern identifying processing, by the handwriting input executed on the touchscreen or Picture draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai Implement, software code can store in memory 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.In the following, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Referring now to Fig. 2 description communication system that wherein mobile terminal according to the present invention can operate.
Different air interface and/or physical layer can be used in such communication system.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (particularly, long term evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such introduction is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system may include multiple mobile terminals 100, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. Back haul link can be constructed according to any in several known interfaces, and the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system may include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction Each subregion of line covering is radially far from BS270.Alternatively, each subregion can be by two or more for diversity reception Antenna covering.Each BS270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals 100 At least one of.
In Fig. 2, multiple satellites 300 are depicted, it is understood that, it is useful to can use any number of satellite acquisition Location information.As a typical operation of wireless communication system, BS270 is received from the reversed of various mobile terminals 100 Link signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 is received every A reverse link signal is handled in specific BS270.The data of acquisition are forwarded to relevant BSC275.BSC is provided The mobile management function for the resource allocation and the coordination including the soft switching process between BS270 conversed.BSC275 will also be received Data be routed to MSC280, the additional route service for forming interface with PSTN290 is provided.Similarly, PSTN290 Interface is formed with MSC280, MSC and BSC275 form interface, and BSC275 controls BS270 correspondingly to believe forward link Number it is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the present invention is proposed.
Due to, needing to obtain accurate location information by means of GPS in the prior art, if user is not turned on GPS positioning Function can not then obtain the location information of user, and positioning signal not can guarantee covering in skyscraper and underground installation To every nook and cranny, the missing or inaccuracy of customer position information are thereby resulted in, is caused inconvenience to the user.
For this purpose, the present invention proposes a solution, customer position information can be obtained with real-time and precise, improve and be based on position The practicability being served by, and then promote user experience.
Specifically, as shown in figure 3, first embodiment of the invention proposes a kind of mobile terminal location device, comprising: obtain mould Block 201, second position computing module 202 and the third place computing module 203, in which:
Module 201 is obtained, for obtaining several base station informations near the mobile terminal by mobile network, and is led to It crosses several described base station informations and obtains the corresponding one group of first location information of the mobile terminal, which is to move One group of rough location information of dynamic terminal;
Second position computing module 202, for institute to be calculated using average algorithm to one group of first location information The second location information of mobile terminal is stated, which is the estimated position information of mobile terminal;
The third place computing module 203, for according to several described base station informations, calculating the mobile terminal and each The distance of base station, the second confidence based on location information and the mobile terminal apart from the smallest at least three base station Breath, is calculated the third place information of the mobile terminal, which is the precise position information of mobile terminal.
Specifically, by taking three base stations as an example, the third place computing module 203 is also used to according to several described bases It stands information, calculates the mobile terminal at a distance from each base station;Obtain the location information apart from the smallest three base stations;It obtains The barycenter oftriangle constituted using the position of three base stations as vertex;Obtain the barycenter oftriangle and the movement eventually Midpoint between the estimated position at end, the exact position as the mobile terminal.
By taking four base stations as an example, the third place computing module 203 is also used to be obtained according to each base coded information The location information of several base stations calculates the mobile terminal and each according to the location information of several base stations The distance of base station;Obtain the location information apart from the smallest four base stations;It obtains using the position of four base stations as vertex structure At quadrangle center of gravity;The midpoint between the center of gravity of the quadrangle and the second position of the mobile terminal is obtained, Obtain the third place information of the mobile terminal.
More specifically, the mobile terminal of this embodiment positioning device can be built in mobile terminal, can also be independently of It is arranged except mobile terminal.
Application scenarios are the situation that user is not turned on GPS positioning function in the present embodiment.In order to obtain the position of user Information, the present embodiment are realized based on the base station of the SIM card of mobile terminal and carrying mobile network.
Specifically, firstly, whether monitoring in mobile terminal after mobile terminal starting inserted with effective SIM (Subscriber Identity Module, user identity identification) card, if SIM card is not inserted into terminal by user, Effective operation trader network information can not be obtained, so that the base station information of carrying mobile network can not be obtained.If user is inserted into SIM card can then pass through the terminal base station information that operator provides near user, accurately calculate the location information of user.
When in judging mobile terminal whether inserted with effective SIM card, following scheme can be used:
Whether the state for monitoring the telephone supervisor (TelephonyManager) on mobile terminal is network available status, If the state of the telephone supervisor (TelephonyManager) on mobile terminal be SIM_STATE_PIN_REQUIRED, The network available status such as SIM_STATE_PUK_REQUIRED, SIM_STATE_READY then illustrate to have in mobile terminal effective SIM card.
After monitoring mobile terminal inserted with effective SIM card and access to mobile network, backstage can be started automatically and taken Being engaged in device under normal circumstances, can at regular intervals (such as 5 points for safeguarding, updating, recording the location information of mobile terminal Clock) monitoring users position.
More specifically, after monitoring mobile terminal inserted with SIM card and access to mobile network, whether monitoring user is opened Open data connection, wherein when whether turn-on data connects monitoring user, ConnectivityManager (networking can be passed through Manager) type networked is obtained, if the type of networking is TYPE_MOBILE, judge that user is joined by mobile data Net.
Then, the location information of several base stations near mobile terminal is obtained, and searches movement by several base stations The first location information of terminal obtains the corresponding one group of first location information of mobile terminal.
Specifically, the base station information of mobile terminal can be obtained by operator near mobile terminal, which can , specifically can be by each base coded information to include the information such as base coded, position, corresponding search obtains the position of each base station Confidence breath.
As an implementation, base station information can be sent to carrier server by the client of mobile terminal to obtain Request is taken, carrier server is each near mobile terminal client terminal feedback mobile terminal according to the base station information acquisition request Base station relevant information.
As another embodiment, the letter of associated base stations can also be obtained by way of mobile terminal and base station communication Breath.
It is obtaining near mobile terminal after each base station relevant information, one group of movement is searched eventually by mobile terminal base station information The first location information at end: P1 (X1, Y1, Z1), P2 (X2, Y2, Z2), P3 (X3, Y3, Z3) ... Pn (Xn, Yn, Zn), simultaneously Record nearby several base stations location information: S1 (x1, y1, z1), S2 (x2, y2, z2), S3 (x3, y3, z3) ... Sn (xm, Ym, zm).
Wherein, Xn, Yn, Zn respectively indicate three shaft position coordinates of mobile terminal, and xm, ym, zm respectively indicate the three of base station Shaft position coordinate.
Then, according to the position of obtained one group of first location information estimation mobile terminal, the second of mobile terminal is obtained Location information;
Wherein, estimate the first location information P (X, Y, Z) of mobile terminal can take each point P1 using average algorithm (X1, Y1, Z1), P2 (X2, Y2, Z2), P3 (X3, Y3, Z3) ... Pn (Xn, Yn, Zn) corresponding X, Y, Z coordinate value are averaged With:
Finally, calculating the mobile terminal at a distance from each base station, base according to the location information of several base stations In the second location information of location information and the mobile terminal apart from the smallest at least three base station, institute is calculated State the third place information of mobile terminal.
Specifically, firstly, according to the location information of several base stations, mobile terminal is calculated at a distance from each base station, meter It is as follows to calculate formula:
Wherein, X, Y, Z respectively indicate three shaft position coordinates of mobile terminal, and xj, yj, zj respectively indicate three axle positions of base station Set coordinate.
Then, the above results are based on, using quicksort mode, obtain the position letter apart from the smallest at least three base station Then breath obtains the center of gravity of the polygon constituted using the position of the base station of above-mentioned quantity as vertex, finally, obtaining polygon Midpoint between center of gravity and the estimated position P (X, Y, Z) of mobile terminal, the exact position as the mobile terminal.
By taking three base stations as an example (calculating process of the base station of other quantity is similar), obtain apart from the smallest three bases The location information stood: S1 (x1, y1, z1), S2 (x2, y2, z2), S3 (x3, y3, z3).
Later, the barycenter oftriangle Q (x, y, z) constituted using the position of above three base station as vertex is obtained, is calculated public Formula is as follows:
Finally, obtaining the middle point between barycenter oftriangle Q (x, y, z) and the estimated position P (X, Y, Z) of mobile terminal It sets, as the exact position of the mobile terminal, calculation formula is as follows:
User (l, m, n)=1/2 (P (X, Y, Z)+Q (x, y, z))=1/2 (X+x, Y+y, Z+z).
Wherein, User (l, m, n) indicates the exact position of mobile terminal.
The present embodiment through the above scheme, obtains several base stations near mobile terminal especially by mobile network and believes Breath, and the corresponding one group of first location information of mobile terminal is obtained by several described base station informations;According to one group first The position for setting data-evaluation mobile terminal obtains the second location information of mobile terminal;According to several base station informations, Yi Jiyi The second location information of dynamic terminal, is calculated the third place information of mobile terminal, thus avoids user and closes GPS function The problem of location information can not be obtained, improves the practicability based on location-based service application, and this programme uses adaptometer The strategy for calculating customer position information ensure that the user location of acquisition is precisely and effective.In addition, comparing GPS positioning, network is used Locating speed faster, and saves electricity, and the user experience is improved.
As shown in figure 4, second embodiment of the invention proposes a kind of mobile terminal location device, the second embodiment with it is above-mentioned The difference of first embodiment shown in Fig. 3 is that the second embodiment can also be by the third position for the mobile terminal being calculated Confidence breath is updated to server.
Therefore, above-mentioned first embodiment shown in Fig. 3, the present embodiment device are compared further include:
Update module 204, for by the third place information update for the mobile terminal being calculated to server.
Through this embodiment, the third that mobile terminal can obtain the third place information being currently calculated and last time Location information compares, if there is transformation in the position of mobile terminal, extremely by the third place information update being currently calculated Server to ensure the accuracy of data, while storing terminal positional information using server, can save terminal storage data Space.
As shown in figure 5, third embodiment of the invention proposes a kind of mobile terminal location device, the 3rd embodiment with it is above-mentioned The difference of second embodiment shown in Fig. 4 is, the 3rd embodiment be also an option that through the GPS function of mobile terminal or The location information of WIFI network acquisition mobile terminal.
Therefore, which compares above-mentioned second embodiment shown in Fig. 4, described device further include:
Whether monitoring modular 200, the GPS function for monitoring mobile terminal open;If monitoring the GPS function of mobile terminal It can not open, then prompt whether to open GPS function;If user is not turned on the GPS function of mobile terminal, monitoring mobile terminal is It is no inserted with SIM card and access to mobile network, to obtain the location information of the mobile terminal by mobile network;
The third place computing module 203 is obtained if being also used to the GPS function that user opens mobile terminal by GPS Take the location information of the mobile terminal.
It is still further contemplated that the signal quality situation of GPS, if monitoring, the GPS function of mobile terminal is had turned on but GPS Signal quality be not up to preset condition, then whether monitor mobile terminal inserted with SIM card and access to mobile network, moved with passing through Dynamic network obtains the location information of the mobile terminal;If monitoring, the GPS function of mobile terminal is had turned on, and the signal of GPS Quality reaches preset condition, then the location information of the mobile terminal is obtained by GPS, thus avoids indoors using intelligence When terminal, satellite positioning signal not can guarantee in skyscraper and underground installation and cover every nook and cranny, cause GPS signal matter Measure the problem of the bad missing for leading to customer position information or inaccuracy.
Further, the monitoring modular 200 monitors shifting if being also used to the GPS function that user is not turned on mobile terminal Whether dynamic terminal is connected to WIFI network;If the mobile terminal is not attached to WIFI network, monitor whether mobile terminal is inserted Enter to have SIM card and access to mobile network, to obtain the location information of the mobile terminal by mobile network;
The third place computing module 203 passes through if being also used to the mobile terminal is already connected to WIFI network WIFI MAC Address searches the location information of the mobile terminal.
Specifically, after mobile terminal-opening starting, whether the GPS function of monitoring mobile terminal is opened;If monitoring to move The GPS function of dynamic terminal has turned on, then the location information of the mobile terminal is obtained by GPS.The position obtained by GPS function Confidence breath is accurate and easy to operate, if closed, can not obtain position normal through GPS.
If monitoring, the GPS function of mobile terminal is not opened, prompts whether to open GPS function.
If user opens the GPS function of mobile terminal according to prompt, believed by the position that GPS obtains the mobile terminal Breath;
If user is not turned on the GPS function of mobile terminal according to prompt, monitor whether mobile terminal is connected to WIFI net Network.
If mobile terminal is already connected to WIFI network, the location information of mobile terminal is searched by WIFI MAC Address.
If the mobile terminal is not attached to WIFI network, monitor whether mobile terminal inserted with SIM card and accesses shifting Dynamic network.After monitoring mobile terminal inserted with SIM card and access to mobile network, according to example scheme base shown in Fig. 3 The location information of mobile terminal is obtained in base station information.
The specific refinement process of the present embodiment is referred to shown in Fig. 6.
The present embodiment through the above scheme, after monitoring mobile terminal inserted with SIM card and access to mobile network, obtains Several base station informations near mobile terminal, and believed by the first position that several described base stations search the mobile terminal Breath, obtains the corresponding one group of first location information of mobile terminal;The position of mobile terminal is estimated according to one group of first location information, Obtain the second location information of mobile terminal;According to the second confidence of the location information of several base stations and mobile terminal Breath, is calculated the third place information of mobile terminal, and location information can not be obtained by thus avoiding user's closing GPS function Problem improves the practicability based on location-based service application, additionally can lead to user location to avoid GPS signal quality is bad The missing of information or the problem of inaccuracy.And this programme uses the strategy of adaptive polo placement customer position information, ensure that and obtains The user location taken is precisely and effective.In addition, comparing GPS positioning, faster using network positions speed, and electricity is saved, The user experience is improved.It further, can also be by the third place information update being currently calculated to server, to ensure The accuracy of data, while terminal positional information is stored using server, the space of terminal storage data can be saved;In addition, It can also be selected to obtain the location information of mobile terminal by GPS function and WIFI network by user, to improve mobile whole The flexibility that end position obtains.
Accordingly, mobile terminal locating method embodiment of the present invention is proposed.
As shown in fig. 7, method first embodiment of the invention proposes a kind of mobile terminal locating method, corresponding above-mentioned Fig. 3 Shown in device first embodiment, this method comprises:
Step S101 obtains several base station informations near the mobile terminal by mobile network, and by described Several base station informations obtain the corresponding one group of first location information of the mobile terminal;
The executing subject of the present embodiment method can be mobile terminal, be also possible to a kind of mobile terminal location device, should Mobile terminal location device can be built in mobile terminal, can also be independently of being arranged except mobile terminal.
Application scenarios are the situation that user is not turned on GPS positioning function in the present embodiment.In order to obtain the position of user Information, the present embodiment are realized based on the base station of the SIM card of mobile terminal and carrying mobile network.
Specifically, firstly, whether monitoring in mobile terminal after mobile terminal starting inserted with effective SIM card, if SIM card is not inserted into terminal by user, then can not obtain effective operation trader network information, so that carrying movement can not be obtained The base station information of network.If user inserts SIM card, the terminal base station that can be provided by operator near user is believed Breath accurately calculates the location information of user.
When in judging mobile terminal whether inserted with effective SIM card, following scheme can be used:
Whether the state for monitoring the telephone supervisor (TelephonyManager) on mobile terminal is network available status, If the state of the telephone supervisor (TelephonyManager) on mobile terminal be SIM_STATE_PIN_REQUIRED, The network available status such as SIM_STATE_PUK_REQUIRED, SIM_STATE_READY then illustrate to have in mobile terminal effective SIM card.
After monitoring mobile terminal inserted with effective SIM card and access to mobile network, backstage can be started automatically and taken Being engaged in device under normal circumstances, can at regular intervals (such as 5 points for safeguarding, updating, recording the location information of mobile terminal Clock) monitoring users position.
More specifically, after monitoring mobile terminal inserted with SIM card and access to mobile network, whether monitoring user is opened Open data connection, wherein when whether turn-on data connects monitoring user, ConnectivityManager (networking can be passed through Manager) type networked is obtained, if the type of networking is TYPE_MOBILE, judge that user is joined by mobile data Net.
Then, the location information of several base stations near mobile terminal is obtained, and searches movement by several base stations The first location information of terminal obtains the corresponding one group of first location information of mobile terminal.
Specifically, can by near mobile terminal operator obtain mobile terminal base station information, including base coded, The information such as position, specifically can be by each base coded information, and corresponding search obtains the location information of each base station.
As an implementation, base station information can be sent to carrier server by the client of mobile terminal to obtain Request is taken, carrier server is each near mobile terminal client terminal feedback mobile terminal according to the base station information acquisition request Base station relevant information.
As another embodiment, the letter of associated base stations can also be obtained by way of mobile terminal and base station communication Breath.
It is obtaining near mobile terminal after each base station relevant information, one group of movement is searched eventually by mobile terminal base station information The first location information at end: P1 (X1, Y1, Z1), P2 (X2, Y2, Z2), P3 (X3, Y3, Z3) ... Pn (Xn, Yn, Zn), simultaneously Record nearby several base stations location information: S1 (x1, y1, z1), S2 (x2, y2, z2), S3 (x3, y3, z3) ... Sn (xm, Ym, zm).
Wherein, Xn, Yn, Zn respectively indicate three shaft position coordinates of mobile terminal, and xm, ym, zm respectively indicate the three of base station Shaft position coordinate.
Step S102 is calculated the second of the mobile terminal using average algorithm to one group of first location information Location information;
Wherein, the location information P (X, Y, Z) for estimating mobile terminal, that is, take each point P1 (X1, Y1, Z1), P2 (X2, Y2, Z2), P3 (X3, Y3, Z3) ... Pn (Xn, Yn, Zn) corresponding X, Y, Z coordinate value average and, formula is as follows:
Step S103 calculates the mobile terminal at a distance from each base station, is based on according to several described base station informations The second location information of location information and the mobile terminal apart from the smallest at least three base station is calculated described The third place information of mobile terminal.
Specifically, firstly, according to the location information of several base stations, mobile terminal is calculated at a distance from each base station, it is public Formula is as follows:
Wherein, X, Y, Z respectively indicate three shaft position coordinates of mobile terminal, and xj, yj, zj respectively indicate three axle positions of base station Set coordinate.
Then, the above results are based on, using quicksort mode, obtain the position letter apart from the smallest at least three base station Then breath obtains the center of gravity of the polygon constituted using the position of the base station of above-mentioned quantity as vertex, finally, obtaining polygon Midpoint between center of gravity and the estimated position P (X, Y, Z) of mobile terminal, the exact position as the mobile terminal.
Specifically, by taking three base stations as an example (calculating process of the base station of other quantity is similar), it is minimum to obtain distance Three base stations location information: S1 (x1, y1, z1), S 2 (x2, y2, z2), S3 (x3, y3, z3).
Later, the barycenter oftriangle Q (x, y, z) constituted using the position of above three base station as vertex is obtained, is calculated public Formula is as follows:
Finally, obtaining the middle point between barycenter oftriangle Q (x, y, z) and the estimated position P (X, Y, Z) of mobile terminal It sets, as the exact position of the mobile terminal, calculation formula is as follows:
User (l, m, n)=1/2 (P (X, Y, Z)+Q (x, y, z))=1/2 (X+x, Y+y, Z+z).
Wherein, User (l, m, n) indicates the exact position of mobile terminal.
The present embodiment through the above scheme, obtains several base stations near mobile terminal especially by mobile network and believes Breath, and the corresponding one group of first location information of mobile terminal is obtained by several described base station informations;According to one group first The position for setting data-evaluation mobile terminal obtains the second location information of mobile terminal;According to the location information of several base stations, And the second location information of mobile terminal, the third place information of mobile terminal is calculated, thus avoids user's closing GPS function can not obtain the problem of location information, improve the practicability based on location-based service application, and this programme uses certainly The strategy for adapting to computed user locations information ensure that the user location of acquisition is precisely and effective.In addition, comparing GPS positioning, make Faster with network positions speed, and electricity is saved, the user experience is improved.
As shown in figure 8, method second embodiment of the invention proposes a kind of mobile terminal locating method, corresponding above-mentioned Fig. 4 Shown in device second embodiment, the difference of the second embodiment and above-mentioned first embodiment shown in Fig. 7 is, this is second real Applying example can also be by the third place information update for the mobile terminal being calculated to server.
Therefore, above-mentioned embodiment shown in Fig. 7, the second embodiment method are compared further include:
Step S104, by the third place information update for the mobile terminal being calculated to server.
Through this embodiment, the third that mobile terminal can obtain the third place information being currently calculated and last time Location information compares, if there is transformation in the position of mobile terminal, extremely by the third place information update being currently calculated Server to ensure the accuracy of data, while storing terminal positional information using server, can save terminal storage data Space.
As shown in figure 9, method 3rd embodiment of the invention proposes a kind of mobile terminal locating method, corresponding above-mentioned Fig. 5 Shown in device 3rd embodiment;This method 3rd embodiment and the difference of above-mentioned second embodiment shown in Fig. 7 be, the party Method 3rd embodiment is also an option that the location information that mobile terminal is obtained by the GPS function or WIFI network of mobile terminal.
Therefore, be based on above-mentioned embodiment shown in Fig. 7, this method 3rd embodiment monitor mobile terminal inserted with Before SIM card and access to mobile network, can also include:
Whether step S70, the GPS function of monitoring mobile terminal open;If so, S80 is entered step, otherwise, into step Rapid S90;
Step S80 obtains the location information of the mobile terminal by GPS;
Step S90 prompts whether open GPS function;If user opens the GPS function of mobile terminal, enter step S80;If user is not turned on the GPS function of mobile terminal, S100 is entered step;
Whether step S100, monitoring mobile terminal are connected to WIFI network;If the mobile terminal is already connected to WIFI net Network then enters step S1001;If the mobile terminal is not attached to WIFI network, S1002 is entered step;
Step S1001 searches the location information of the mobile terminal by WIFI MAC Address;
Whether step S1002, monitoring mobile terminal enter step S101 inserted with SIM card and access to mobile network.
The present embodiment and the difference of above-mentioned method second embodiment shown in Fig. 7 are that the present embodiment is in addition to that can pass through Base station obtains outside location information of mobile terminal, can also be selected to obtain mobile terminal by GPS function and WIFI network by user Location information.
Specifically, after mobile terminal-opening starting, whether the GPS function of monitoring mobile terminal is opened;If monitoring to move The GPS function of dynamic terminal has turned on, then the location information of the mobile terminal is obtained by GPS.The position obtained by GPS function Confidence breath is accurate and easy to operate, if closed, can not obtain position normal through GPS.
If monitoring, the GPS function of mobile terminal is not opened, prompts the user whether to open GPS function.
If user opens the GPS function of mobile terminal according to prompt, believed by the position that GPS obtains the mobile terminal Breath;
It is still further contemplated that the signal quality situation of GPS, if monitoring, the GPS function of mobile terminal is had turned on but GPS Signal quality be not up to preset condition, then whether monitor mobile terminal inserted with SIM card and access to mobile network, moved with passing through Dynamic network obtains the location information of the mobile terminal;If monitoring, the GPS function of mobile terminal is had turned on, and the signal of GPS Quality reaches preset condition, then the location information of the mobile terminal is obtained by GPS, thus avoids indoors using intelligence When terminal, satellite positioning signal not can guarantee in skyscraper and underground installation and cover every nook and cranny, cause GPS signal matter Measure the problem of the bad missing for leading to customer position information or inaccuracy.
Further, if user is not turned on the GPS function of mobile terminal according to prompt, monitor whether mobile terminal connects To WIFI network.
If mobile terminal is already connected to WIFI network, the location information of mobile terminal is searched by WIFI MAC Address.
If the mobile terminal is not attached to WIFI network, monitor whether mobile terminal inserted with SIM card and accesses shifting Dynamic network.After monitoring mobile terminal inserted with SIM card and access to mobile network, according to example scheme base shown in Fig. 7 The location information of mobile terminal is obtained in base station information.
The specific refinement process of the present embodiment is referred to shown in Fig. 6.
The present embodiment through the above scheme, after monitoring mobile terminal inserted with SIM card and access to mobile network, obtains The location information of several base stations near mobile terminal, and the first of the mobile terminal is searched by several described base stations Location information obtains the corresponding one group of first location information of mobile terminal;Mobile terminal is estimated according to one group of first location information Position, obtain the second location information of mobile terminal;According to the second of the location information of several base stations and mobile terminal The third place information of mobile terminal is calculated in location information, and position can not be obtained by thus avoiding user's closing GPS function The problem of information, improves the practicability based on location-based service application, additionally can cause to use to avoid GPS signal quality is bad The missing of family location information or the problem of inaccuracy.And this programme uses the strategy of adaptive polo placement customer position information, protects It is precisely and effective the user location obtained has been demonstrate,proved.In addition, comparing GPS positioning, faster using network positions speed, and save Electricity, the user experience is improved.Further, can also by the third place information update being currently calculated to server, To ensure the accuracy of data, while terminal positional information is stored using server, the space of terminal storage data can be saved; Furthermore it is also possible to the location information of mobile terminal be obtained by GPS function and WIFI network by user's selection, to improve shifting The flexibility that dynamic terminal location obtains.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include 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 being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (6)

1. a kind of mobile terminal location device characterized by comprising
Module is obtained, for obtaining several base station informations near the mobile terminal by mobile network, if by described A dry base station information obtains the corresponding one group of first location information of the mobile terminal;
Second position computing module, it is described mobile whole for one group of first location information to be calculated using average algorithm The second location information at end;
The third place computing module, for calculating the mobile terminal and each base station according to several described base station informations Distance is calculated based on the second location information of location information and the mobile terminal apart from the smallest at least three base station Obtain the third place information of the mobile terminal;
The base station information includes base coded and location information;The third place computing module, is also used to according to each base station Encoded information, the location information for obtaining several base stations calculate the shifting according to the location information of several base stations Dynamic terminal is at a distance from each base station;Obtain the location information apart from the smallest three base stations;It obtains with three base stations Position is the barycenter oftriangle that vertex is constituted;It obtains between the barycenter oftriangle and the second position of the mobile terminal Midpoint, obtain the third place information of the mobile terminal;
Alternatively, the third place computing module, is also used to obtain the position of several base stations according to each base coded information Confidence breath, according to the location information of several base stations, calculates the mobile terminal at a distance from each base station;Obtain distance The location information of the smallest four base stations;Obtain the center of gravity of the quadrangle constituted using the position of four base stations as vertex;It obtains The midpoint between the center of gravity of the quadrangle and the second position of the mobile terminal is taken, the of the mobile terminal is obtained Three location informations.
2. the apparatus according to claim 1, which is characterized in that described device further include:
Whether monitoring modular, the GPS function for monitoring mobile terminal open;If monitoring, the GPS function of mobile terminal is not opened It opens, then prompts whether to open GPS function;If do not receive the instruction for opening the GPS function of mobile terminal yet by prompt, or It monitors that the GPS function of mobile terminal has turned on but the signal quality of GPS is not up to preset condition, then whether monitors mobile terminal Inserted with SIM card and access to mobile network, to obtain the location information of the mobile terminal by mobile network;
The third place computing module, if being also used to monitor, the GPS function of mobile terminal is had turned on, and the signal matter of GPS Amount reaches preset condition, then the location information of the mobile terminal is obtained by GPS.
3. the apparatus of claim 2, which is characterized in that
The monitoring modular, if being also used to not receive the instruction for opening the GPS function of mobile terminal, monitoring mobile terminal is It is no to be connected to WIFI network;If the mobile terminal is not attached to WIFI network, whether mobile terminal is monitored inserted with SIM card And access to mobile network, to obtain the location information of the mobile terminal by mobile network;
The third place computing module, if being also used to the mobile terminal is already connected to WIFI network, by WIFIMAC Location searches the location information of the mobile terminal.
4. a kind of mobile terminal locating method characterized by comprising
Several base station informations near the mobile terminal are obtained by mobile network, and pass through several described base station informations Obtain the corresponding one group of first location information of the mobile terminal;
One group of first location information is calculated using average algorithm the second location information of the mobile terminal;
According to several described base station informations, the mobile terminal is calculated at a distance from each base station, based on apart from the smallest extremely The of the mobile terminal is calculated in the location information of few three base stations and the second location information of the mobile terminal Three location informations;
The base station information includes base coded and location information, and described several base station informations according to calculate the shifting Dynamic terminal is at a distance from each base station, based on the location information and the mobile terminal apart from the smallest at least three base station Second location information, the step of the third place information of the mobile terminal is calculated includes:
According to each base coded information, the location information of several base stations is obtained, according to the position of several base stations Information calculates the mobile terminal at a distance from each base station;
Obtain the location information apart from the smallest three base stations;
Obtain the barycenter oftriangle constituted using the position of three base stations as vertex;
The midpoint between the barycenter oftriangle and the second position of the mobile terminal is obtained, is obtained described mobile whole The third place information at end;
Alternatively, described calculate the mobile terminal at a distance from each base station according to several base station informations, it is minimum based on distance At least three base stations location information and the mobile terminal second location information, the mobile terminal is calculated The third place information the step of further include:
According to each base coded information, the location information of several base stations is obtained, according to the position of several base stations Information calculates the mobile terminal at a distance from each base station;
Obtain the location information apart from the smallest four base stations;
Obtain the center of gravity of the quadrangle constituted using the position of four base stations as vertex;
The midpoint between the center of gravity of the quadrangle and the second position of the mobile terminal is obtained, is obtained described mobile whole The third place information at end.
5. according to the method described in claim 4, it is characterized in that, monitoring mobile terminal inserted with SIM card and accessing shifting Before dynamic network, further includes:
Whether the GPS function of monitoring mobile terminal opens;
If monitoring, the GPS function of mobile terminal is not opened, prompts whether to open GPS function;
If monitoring, the GPS function of mobile terminal is had turned on, and the signal quality of GPS reaches preset condition, then is obtained by GPS The location information of the mobile terminal;
If not receiving the instruction for opening the GPS function of mobile terminal yet by prompt, or monitor the GPS function of mobile terminal It can have turned on but the signal quality of GPS is not up to preset condition, then monitor whether mobile terminal inserted with SIM card and accesses movement Network, to obtain the location information of the mobile terminal by mobile network.
6. according to the method described in claim 5, it is characterized in that, after the step of whether prompt opens GPS function also Include:
If not receiving the instruction for opening the GPS function of mobile terminal, monitor whether mobile terminal is connected to WIFI network;
If the mobile terminal is already connected to WIFI network, believed by the position that the address WIFIMAC searches the mobile terminal Breath;
If the mobile terminal is not attached to WIFI network, monitor whether mobile terminal inserted with SIM card and accesses mobile network Network, to obtain the location information of the mobile terminal by mobile network.
CN201610388473.2A 2016-06-02 2016-06-02 Mobile terminal location device and method Active CN106131777B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610388473.2A CN106131777B (en) 2016-06-02 2016-06-02 Mobile terminal location device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610388473.2A CN106131777B (en) 2016-06-02 2016-06-02 Mobile terminal location device and method

Publications (2)

Publication Number Publication Date
CN106131777A CN106131777A (en) 2016-11-16
CN106131777B true CN106131777B (en) 2019-08-16

Family

ID=57270876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610388473.2A Active CN106131777B (en) 2016-06-02 2016-06-02 Mobile terminal location device and method

Country Status (1)

Country Link
CN (1) CN106131777B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106646573A (en) * 2016-12-23 2017-05-10 烟台中飞海装科技有限公司 Method of positioning person in urban area and location sending device
CN110636441B (en) * 2019-09-29 2021-04-13 联想(北京)有限公司 Information processing method and mobile terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103298109A (en) * 2013-06-21 2013-09-11 北京恒远创智信息技术有限公司 Method for improving base station location success rate
CN105050180A (en) * 2015-05-21 2015-11-11 深圳市赛格导航科技股份有限公司 Terminal positioning method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10222140A1 (en) * 2002-05-17 2003-11-27 Siemens Ag Determination of the position of a mobile telephone uses time sequence transmissions to a group of units within a defined are that defines position

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103298109A (en) * 2013-06-21 2013-09-11 北京恒远创智信息技术有限公司 Method for improving base station location success rate
CN105050180A (en) * 2015-05-21 2015-11-11 深圳市赛格导航科技股份有限公司 Terminal positioning method and system

Also Published As

Publication number Publication date
CN106131777A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
CN105718027B (en) The management method and mobile terminal of background application
CN105306457B (en) Data buffer storage device and method
CN104793929B (en) Application interface shows the customizing method and device of information
CN105357593B (en) A kind of methods, devices and systems of uploaded videos
CN105099870B (en) A kind of information push method and device
CN106534591B (en) A kind of mobile terminal and footmark display methods
CN106951291A (en) Application program accelerates to start method and device
CN104754516B (en) Client password method for retrieving, device and system based on LBS
CN104850443B (en) A kind of method and mobile terminal for closing error starting application program
CN104881346B (en) The detection method and device of a kind of mobile terminal and its application program power consumption
CN105373405B (en) The device and method of dynamically load application program
CN106304037A (en) The management method of virtual SIM card and device
CN106033570A (en) Mobile payment device and method
CN105978788A (en) Message pushing device and method thereof
CN106844029A (en) The device and method that a kind of Android processes of Self management are freezed and thawed
CN106506858B (en) Star orbital prediction technique and device
CN105843478B (en) The icon display control method and device of rapid switch
CN106850976B (en) Using update method and terminal
CN105120054B (en) Information processing method and mobile terminal
CN104735254B (en) terminal screen locking method and system
CN106028382A (en) NV (Nonvolatile Random Access Memory) parameter reading-writing device and method
CN106131777B (en) Mobile terminal location device and method
CN106021292B (en) A kind of device and method for searching picture
CN106507460A (en) A kind of intelligent power saving method, terminal
CN106528236A (en) Memory acceleration white list configuration method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant