Summary of the invention
The present invention aims to provide a kind of portable terminal and localization method thereof, to solve the problem that above-mentioned portable terminal can not be located fast when search location star condition is not good.
In an embodiment of the present invention, provide a kind of mobile terminal positioning method, may further comprise the steps: the mobile terminal to search satellite data; Portable terminal connects surrounding devices, and makes surrounding devices search of satellite data; Portable terminal positions in conjunction with the satellite data that both search.
Preferably, portable terminal connection surrounding devices specifically comprises: portable terminal connects surrounding devices by bluetooth approach, and wherein, portable 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 portable terminal.
Preferably, surrounding devices search of satellite data are specifically comprised: after surrounding devices searches satellite data, initiatively to finish the work of search of satellite data.
Preferably, the satellite data that searches in conjunction with both of portable terminal positions specifically and comprises: portable terminal judges whether the satellite data that searches in conjunction with both enough positions calculating; If enough, then position calculating; If not enough, then 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 portable terminal, having comprised: location star antenna is used for the search of satellite data; Networking module is used to connect surrounding devices, and makes surrounding devices search of satellite data; Locating module is used for positioning in conjunction with the satellite data that both search.
Preferably, networking module is a bluetooth module, is used for connecting surrounding devices by bluetooth approach, and wherein, portable terminal is as client, and surrounding devices is as service end.
Preferably, surrounding devices is used for the mode search of satellite data by background work, and sends the satellite data of search to portable terminal.
Preferably, after surrounding devices searches satellite data, initiatively finish the work of search of satellite data.
Preferably, locating module specifically comprises: judge module, portable terminal judge whether the satellite data that searches in conjunction with both enough positions calculating; Computing module enough then positions calculating if be used for; Module if be used for inadequately, then continue to connect surrounding devices, and makes surrounding devices search of satellite data repeatedly.
Portable terminal of the foregoing description and localization method thereof, because utilized the common search of satellite data of surrounding devices to position, so overcome the problem that existing portable terminal can not be located fast when search location star condition is not good, and then quick location of having realized portable terminal.
Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
Fig. 1 shows the flow chart according to the mobile terminal locating method of the embodiment of the invention, may further comprise the steps:
Step S10, the mobile terminal to search satellite data;
Step S20, portable terminal connects surrounding devices, and makes surrounding devices search of satellite data;
Step S30, portable terminal positions in conjunction with the satellite data that both search.
As can be seen, this mobile terminal locating method is because portable terminal has utilized the common search of satellite data of surrounding devices to position, so overcome the problem that existing portable terminal can not be located fast when search location star condition is not good, and then quick location of having realized portable terminal.
Preferably, step S20 specifically comprises: portable terminal connects surrounding devices by bluetooth approach, and wherein, portable terminal is as client, and surrounding devices is as service end.
Bluetooth is the open standard technology of wireless data and speech transmissions, is mainly used in to solve short-range wireless connections, is generally 10 centimetres to 10 meters scope.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 about 10 meters, 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 the internet, thereby make the transfer of data between these modern communications equipments and the internet become efficient more rapidly, be the radio communication widening road.The Bluetooth technology feasible more modern mobile communication equipment that carries easily and computer equipments needn't just can be networked by cable, and can be realized the wireless connections internet.Its practical ranges can also be extended to 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 realized easily, 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 portable terminal.Comparatively speaking, background mode is transparent to the user of surrounding devices.Therefore, use background mode work, can make the less influence that is subjected to portable terminal of user of surrounding devices.
Preferably, step S20 specifically comprises: after surrounding devices searches satellite data, initiatively finish the work of search of satellite data.Can reduce influence like this to the user of surrounding devices as far as possible.
Preferably, step S30 specifically comprises: portable terminal judges whether the satellite data that searches in conjunction with both enough positions calculating; If enough, then position calculating; If not enough, then continue to connect surrounding devices, and make surrounding devices search of satellite data.Like this, when location condition is relatively poor, can make surrounding devices maintenance work, till obtaining enough data.Like this, portable 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, may further comprise the steps:
Step 101: the user initiates position location request, opens the GPS search module of oneself;
When portable terminal need position information and obtains, the portable terminal with bluetooth and GPS function started the GPS search engine of oneself;
Step 102: start GPS search usable satellite, and the bluetooth GPS equipment around beginning to search for;
Portable terminal starts GPS search usable satellite, and whether the equipment of bluetooth and GPS function is arranged around beginning to survey;
Step 103: if having the equipment with bluetooth and GPS, portable terminal to begin around detecting and bluetooth GPS equipment on every side between set up a kind of backstage safety bluetooth connect;
Step 104: portable terminal send out invitation signal please around bluetooth GPS equipment begin GPS and decide the satellite acquisition process;
Step 105: bluetooth GPS equipment on every side searches behind the satellite information as server end, and the bluetooth by safety connects to portable terminal and sends the satellite assistance data that searches separately;
Step 106: portable terminal receives from the next information of bluetooth GPS equipment transmission on every side, and the information of combination oneself search judges whether locating information has satisfied the information content of positioning requirements, can locate, if then enter step 107, step 105 is proceeded and supplementary is obtained in the contact of bluetooth GPS equipment on every side otherwise return;
Step 107: locating information is enough, and portable terminal carries out position calculation, send to disconnect signal that bluetooth safety connects afterwards to bluetooth GPS equipment on every side;
Step 108: bluetooth GPS equipment is received and is disconnected the unlatching side of judging own GPS search behind the signal that safety connects on every side, and promptly whether oneself is invited unlatching GPS to search for;
Step 109: if bluetooth GPS equipment is invited unlatching, then stop the GPS search procedure on every side, close and being connected of portable terminal; If oneself open, then continue search procedure, need not consider to close and being connected of portable terminal;
At mobile terminal side, it calculates corresponding position according to the locating information that obtains.
From above preferred embodiment as can be seen, portable terminal and surrounding devices are set up communication channel, obtain the relevant information of location star by this channel, portable terminal according to these information compensations oneself use the gps satellite search or and the base station between carry out the deficiency of information interaction, thereby obtain relevant information fast, and through calculating corresponding positional information, thereby realized the quick location of mobile device.
Fig. 3 shows the block diagram according to the portable terminal of the embodiment of the invention, comprising:
Location star antenna 10 is used for the search of satellite data;
Networking module 20 is used to connect surrounding devices, and makes surrounding devices search of satellite data;
Locating module 30 is used for positioning in conjunction with the satellite data that both search.
Preferably, networking module 20 is bluetooth modules, is used for connecting surrounding devices by bluetooth approach, and wherein, portable terminal is as client, and surrounding devices is as service end.
This embodiment adopts bluetooth module, connects surrounding devices by Bluetooth technology, both realized easily, and effect is fine.
Preferably, surrounding devices is used for the mode search of satellite data by background work, and sends the satellite data of search to portable terminal.Like this, use background mode work, can make the less influence that is subjected to portable terminal of user of surrounding devices.
Preferably, after surrounding devices searches satellite data, initiatively finish the work of search of satellite data.Can reduce influence like this to the user of surrounding devices as far as possible.
Preferably, locating module 30 specifically comprises: judge module, portable terminal judge whether the satellite data that searches in conjunction with both enough positions calculating; Computing module enough then positions calculating if be used for; Module if be used for inadequately, then continue to connect surrounding devices, and makes surrounding devices search of satellite data repeatedly.Like this, portable terminal just can be realized quick location.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.