Summary of the invention
The present invention aims to provide a kind of mobile terminal and localization method thereof, the problem that can not locate fast when search location star condition is not good to solve above-mentioned mobile terminal.
In an embodiment of the present invention, provide a kind of localization method of mobile terminal, comprised the following steps: mobile terminal to search satellite data; Mobile terminal connects surrounding devices, and makes surrounding devices search of satellite data; The satellite data that mobile terminal searches in conjunction with both positions.
Preferably, mobile terminal connection surrounding devices specifically comprises: mobile terminal connects surrounding devices by bluetooth approach, and wherein, mobile terminal is as client, and surrounding devices is as service end.
Preferably, surrounding devices search of satellite data are specifically comprised: surrounding devices is by the mode search of satellite data of background work; Send the satellite data of search to mobile terminal.
Preferably, surrounding devices search of satellite data are specifically comprised: surrounding devices searches after satellite data, initiatively finishes the work of search of satellite data.
Preferably, the satellite data that mobile terminal searches in conjunction with both positions specifically and comprises: mobile terminal judges whether the satellite data searching in conjunction with both enough positions calculating; If enough, position calculating; If not, continue to connect surrounding devices, and make surrounding devices search of satellite data.
In an embodiment of the present invention, also provide a kind of mobile terminal, having comprised: location star antenna, for search of satellite data; Networking module, for connecting surrounding devices, and makes surrounding devices search of satellite data; Locating module, positions for the satellite data searching in conjunction with both.
Preferably, networking module is bluetooth module, and for connecting surrounding devices by bluetooth approach, wherein, mobile terminal is as client, and surrounding devices is as service end.
Preferably, surrounding devices is used for by the mode search of satellite data of background work, and sends the satellite data of search to mobile terminal.
Preferably, surrounding devices searches after satellite data, initiatively finishes the work of search of satellite data.
Preferably, locating module specifically comprises: judge module, and mobile terminal judges whether the satellite data searching in conjunction with both enough positions calculating; Computing module, if for enough, position calculating; Module repeatedly, if for not, continue to connect surrounding devices, and make surrounding devices search of satellite data.
The mobile terminal of above-described embodiment and localization method thereof, because utilized the common search of satellite data of surrounding devices to position, so overcome the problem that existing mobile terminal can not be located fast when search location star condition is not good, and then quick location of having realized mobile terminal.
Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
Fig. 1 shows according to the flow chart of the mobile terminal locating method of the embodiment of the present invention, comprises the following steps:
Step S10, mobile terminal to search satellite data;
Step S20, mobile terminal connects surrounding devices, and makes surrounding devices search of satellite data;
Step S30, the satellite data that mobile terminal searches in conjunction with both positions.
Can find out, this mobile terminal locating method positions because mobile terminal has utilized the common search of satellite data of surrounding devices, so overcome the problem that existing mobile terminal can not be located fast when search location star condition is not good, and then quick location of having realized mobile terminal.
Preferably, step S20 specifically comprises: mobile terminal connects surrounding devices by bluetooth approach, and wherein, mobile terminal is as client, and surrounding devices is as service end.
Bluetooth is the open standard technology of wireless data and Tone Via, is mainly used in solving short-range wireless connections, is generally the scope of 10 centimetres to 10 meters.Bluetooth is operated in ISM (Industrial, the Scientific and Medical of 2.4GHz, industry, science and medical treatment) frequency range, adopt Gaussian Frequency Shift Keying (Gaussian frequency shift keying, be abbreviated as GFSK) frequency hopping and time division duplex (TDD) technology, when transmitter frequency is 1MHz, the effective communication distance of bluetooth is 10 meters of left and right, and the valid data transmission rate of bluetooth reaches 721Kb/s.
Bluetooth technology can be simplified the connection between the mobile communication terminal devices such as palmtop PC, notebook computer and mobile phone effectively, and can successfully simplify communicating by letter between above these equipment and internet, thereby making the transfer of data between these modern communications equipments and internet become efficient more rapidly, is radio communication widening road.Bluetooth technology makes more modern light portative mobile communication equipment and computer equipments, needn't just can network by cable, and can realize wireless connections internet.Its practical ranges can also be extended to the information household appliances such as various household appliances, consumption electronic product and automobile, forms a huge cordless communication network.
Therefore, the preferred embodiment adopts increasingly mature Bluetooth technology to connect surrounding devices, both easily realized, and effect is fine.
Preferably, step S20 specifically comprises: surrounding devices is by the mode search of satellite data of background work; Send the satellite data of search to mobile terminal.Comparatively speaking, background mode is transparent to the user of surrounding devices.Therefore, use background mode work, can make the less impact that is subject to mobile terminal of user of surrounding devices.
Preferably, step S20 specifically comprises: surrounding devices searches after satellite data, initiatively finishes the work of search of satellite data.Can reduce like this impact of the user on surrounding devices as far as possible.
Preferably, step S30 specifically comprises: mobile terminal judges whether the satellite data searching in conjunction with both enough positions calculating; If enough, position calculating; If not, continue to connect surrounding devices, and make surrounding devices search of satellite data.Like this, when location condition is poor, can make surrounding devices maintenance work, until obtain enough data.Like this, mobile terminal just can be realized quick location.
Fig. 2 shows the flow chart of mobile terminal locating method according to the preferred embodiment of the invention, comprises the following steps:
Step 101: user's launch position Location Request, open the GPS search module of oneself;
When mobile terminal need to position acquisition of information, the mobile terminal with bluetooth and GPS function starts the GPS search engine of oneself;
Step 102: start GPS search usable satellite, and start search bluetooth GPS equipment around;
Mobile terminal starts GPS search usable satellite, and starts to survey the equipment that whether has bluetooth and GPS function around;
Step 103: if the bluetooth connection that has the equipment with bluetooth and GPS, mobile terminal to start to set up a kind of backstage safety between bluetooth GPS equipment around detected around;
Step 104: mobile terminal send out invitation signal around bluetooth GPS equipment start GPS and determine satellite acquisition process;
Step 105: bluetooth GPS equipment around searches after satellite information as server end, is connected to mobile terminal and is sent the satellite assistance data searching separately by the bluetooth of safety;
Step 106: mobile terminal receives the information of coming from bluetooth GPS equipment transmission around, and the information of searching in conjunction with oneself judges whether locating information has met the information content of positioning requirements, can locate, if enter step 107, otherwise return, step 105 is proceeded and supplementary is obtained in the contact of bluetooth GPS equipment around;
Step 107: locating information is enough, mobile terminal carries out position calculation, sends afterwards and disconnects signal that bluetooth security connects to bluetooth GPS equipment around;
Step 108: around bluetooth GPS equipment is received the opening square that disconnects the own GPS search of judgement after the signal that safety connects, and whether oneself is to be invited to open GPS search for;
Step 109: if bluetooth GPS equipment is subject to invite and opens, stop GPS search procedure around, close and being connected of mobile terminal; If oneself open, continue search procedure, do not need to consider to close and being connected of mobile terminal;
At mobile terminal side, it calculates corresponding position according to the locating information obtaining.
From above preferred embodiment, can find out, mobile terminal and surrounding devices are set up communication channel, by this channel, obtain the relevant information of location star, mobile terminal according to these information compensations oneself use gps satellite search or and base station between carry out the deficiency of information interaction, thereby quick obtaining relevant information, and through calculating corresponding positional information, thereby realized the quick location of mobile device.
Fig. 3 shows according to the block diagram of the mobile terminal of the embodiment of the present invention, comprising:
Location star antenna 10, for search of satellite data;
Networking module 20, for connecting surrounding devices, and makes surrounding devices search of satellite data;
Locating module 30, positions for the satellite data searching in conjunction with both.
Preferably, networking module 20 is bluetooth modules, and for connecting surrounding devices by bluetooth approach, wherein, mobile terminal is as client, and surrounding devices is as service end.
This embodiment adopts bluetooth module, by Bluetooth technology, connects surrounding devices, both easily realized, and effect is fine.
Preferably, surrounding devices is used for by the mode search of satellite data of background work, and sends the satellite data of search to mobile terminal.Like this, use background mode work, can make the less impact that is subject to mobile terminal of user of surrounding devices.
Preferably, surrounding devices searches after satellite data, initiatively finishes the work of search of satellite data.Can reduce like this impact of the user on surrounding devices as far as possible.
Preferably, locating module 30 specifically comprises: judge module, and mobile terminal judges whether the satellite data searching in conjunction with both enough positions calculating; Computing module, if for enough, position calculating; Module repeatedly, if for not, continue to connect surrounding devices, and make surrounding devices search of satellite data.Like this, mobile terminal just can be realized quick location.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that multiple calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or the multiple modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.