Embodiment
Below in conjunction with Figure of description, the application's preferred embodiment is described, should be appreciated that preferred embodiment described herein is only for description and interpretation the application, and be not used in restriction the application.And in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.
Embodiment mono-
As shown in Figure 1, be the method for locating terminal flow chart that the embodiment of the present application one proposes, its concrete handling process is as follows:
Step 11, receives the first terminal Location Request that first terminal equipment sends.
Wherein, the terminal equipment of mentioning in the embodiment of the present application one can be mobile terminal device, can be also personal computer (PC, Personal Computer) equipment.The terminal positioning device of carrying out method of locating terminal can be, but not limited to be placed in location-server.
If use the user of first terminal equipment to want by first terminal equipment and other-end device transmission information, can pass through the above-mentioned first terminal equipment of use to the terminal positioning device transmission first terminal Location Request of network side, wherein, above-mentioned first terminal equipment can be information sender equipment, be that first terminal equipment is need to send information to other-end equipment time, terminal positioning device to network side sends first terminal Location Request, above-mentioned first terminal equipment can be also receiving party's equipment, be that first terminal equipment is need to receive the information that other-end equipment sends time, terminal positioning device to network side sends first terminal Location Request.
In the embodiment of the present application one, if use the user of first terminal equipment to open certain application in first terminal equipment with positioning function, first terminal equipment can send first terminal Location Request to terminal positioning device; Or the user who uses first terminal equipment has opened certain application in first terminal equipment with positioning function, and supresses the navigation button on application interface, and first terminal equipment can send first terminal Location Request to terminal positioning device; Or use the user of first terminal equipment to open certain application in first terminal equipment with positioning function, and use the user of first terminal equipment that first terminal equipment is kept flat, being first terminal equipment detects self in horizontal positioned state by self gravity sensor, and first terminal equipment can send first terminal Location Request to terminal positioning device.
Step 12, obtains the current positional information of first terminal equipment, searches each second terminal equipment falling in locating area corresponding to the current positional information of described first terminal equipment.
In the embodiment of the present application one, terminal positioning device is when positioning, first according to the localization method of prior art, carry out fuzzy location, to orient near each terminal equipment being positioned at first terminal equipment, wherein, each terminal equipment that terminal positioning device is oriented after carrying out fuzzy location can be called each the second terminal equipment.
Terminal positioning device is when carrying out fuzzy location, first obtain the current positional information of first terminal equipment, then search each second terminal equipment falling in locating area corresponding to this current present position of first terminal equipment, each second terminal equipment finding is fuzzy the second terminal equipment of orienting.
Wherein, the current positional information of first terminal equipment can be the coordinate of the current present position of first terminal equipment, and terminal positioning device can be, but not limited to adopt GPS positioning mode or architecture method to carry out fuzzy location.Below simple lower GPS positioning mode and the architecture method introduced.
One, GPS positioning mode.
GPS module in each terminal equipment periodically reports terminal positioning device by the coordinate of self current present position, terminal positioning device receives after the first terminal Location Request of first terminal equipment transmission, the coordinate of the current present position of other-end equipment is compared with the coordinate of the current present position of first terminal equipment respectively, orient and first terminal equipment between other each terminal equipments in default coordinate difference threshold value of coordinate difference, the terminal equipment of orienting so just falls in locating area corresponding to the current positional information of this first terminal equipment.
Two, architecture method.
When terminal equipment is when indoor, under self is current, the sign of base station and reporting signal strength are to terminal positioning device, terminal positioning device receives after the first terminal Location Request of first terminal equipment transmission, sign and the signal strength signal intensity of base station under current according to this first terminal equipment, just can calculate the coordinate of this current present position of first terminal equipment, terminal positioning device is compared the coordinate of other-end equipment respectively with the coordinate of first terminal equipment, orient and first terminal equipment between other each terminal equipments in default coordinate difference threshold value of coordinate difference, the terminal equipment of orienting so just falls in locating area corresponding to the current positional information of this first terminal equipment.
Step 13, obtain described first terminal equipment and each second terminal equipment of finding in electronic compass direction pointed.
Terminal positioning device is after carrying out fuzzy location, according to electronic compass direction pointed, accurately locate again, terminal positioning device is when accurately locating, first will obtain the electronic compass direction pointed in first terminal equipment and fuzzy each second terminal equipment of orienting, the mode of obtaining electronic compass direction pointed can be, but not limited to comprise following three kinds of modes:
The first obtain manner, terminal positioning device active obtaining, terminal positioning device is in the time need to obtaining electronic compass direction pointed, to first terminal equipment and fuzzy each second terminal equipment of orienting respectively sending direction obtain request, first terminal equipment and each second terminal equipment are receiving after above-mentioned direction obtains request, gather the direction signs of self electronic compass direction pointed, and the direction signs that collect are fed back to terminal positioning device, terminal positioning device just can be according to the direction signs that receive so, determine the electronic compass direction pointed in first terminal equipment and each second terminal equipment.
The second obtain manner, terminal equipment active reporting, each terminal equipment periodically gathers the direction signs of self electronic compass direction pointed, and reports terminal positioning device, and wherein, report cycle can arrange.Terminal positioning device receives after the direction signs that terminal equipment reports for the first time, by the sign corresponding stored of the direction signs that receive and this terminal equipment, the sign of terminal equipment and the corresponding relation between direction signs have so just been obtained, follow-up, receive after the direction signs that terminal equipment periodically reports, terminal positioning device upgrades the direction signs of the terminal equipment in above-mentioned corresponding relation, concrete: terminal positioning device is for each terminal equipment, respectively according to the sign of this terminal equipment, in the sign and the corresponding relation between direction signs of the terminal equipment of storing, search the direction signs that this terminal equipment is corresponding, and the direction signs that this time report according to this terminal equipment receiving, renewal finds, the direction signs that this terminal equipment is corresponding, therefore, in the sign of terminal equipment and the corresponding relation between direction signs, store the direction signs that each terminal equipment the last time reports.Wherein, above-mentioned corresponding relation can be, but not limited to as shown in the table:
The sign of terminal equipment |
Direction signs |
The sign of terminal equipment A |
Direction a |
The sign of terminal equipment B |
Direction b |
The sign of terminal equipment C |
Direction c |
Follow-up terminal positioning device is when the electronic compass that need to obtain first terminal equipment and the second terminal equipment direction pointed, for first terminal equipment and each second terminal equipment, respectively according to the sign of this terminal equipment, in the sign and the corresponding relation between direction signs of the terminal equipment of storing, search the direction signs that this terminal equipment is corresponding, and according to the direction signs that find, determine the electronic compass direction pointed in this terminal equipment.
In the embodiment of the present application, the sign of terminal equipment is the sign for marking terminal equipment, the sign of terminal equipment can be device identification corresponding to terminal equipment, can be also user's mark (hereinafter to be referred as user ID corresponding to terminal equipment) of the device identification binding corresponding with terminal equipment.
In the above-mentioned second way, if adopt GPS positioning mode, carry out fuzzy location, terminal equipment can report terminal positioning device together with the coordinate of the direction signs of collection and self current present position, and the cycle that now reports direction signs is with to report the cycle of coordinate consistent; If adopt architecture method, carry out fuzzy location, terminal equipment can report terminal positioning device together with the sign of the current affiliated base station of the direction signs of collection and self and signal strength signal intensity, now reports the cycle of the cycle of direction signs and the sign of reporting base station and signal strength signal intensity consistent.
The third obtain manner, before first terminal equipment need to send first terminal Location Request to terminal positioning device, gather the direction signs of self electronic compass direction pointed, and the direction signs of the electronic compass of collection direction pointed are carried at and in first terminal Location Request, send to terminal positioning device, terminal positioning device receives after first terminal Location Request, from first terminal Location Request, extract direction signs, and according to the direction signs that extract, obtain the electronic compass direction pointed of first terminal equipment.
The electronic compass direction pointed that terminal positioning device can obtain first terminal equipment according to above-mentioned the third obtain manner, then obtains the respectively electronic compass direction pointed of second terminal equipment according to above-mentioned the first obtain manner or the second obtain manner.
Electronic compass in terminal equipment is also digital compass, is a kind of equipment that utilizes the Lai Ding arctic, earth magnetic field, all has electronic compass in general terminal equipment.
Step 14, in each second terminal equipment finding, the electronic compass direction pointed of determining electronic compass direction pointed and described first terminal equipment meets the second terminal equipment of default matched rule.
Terminal positioning device is when accurately locating, in fuzzy each second terminal equipment of orienting, the electronic compass direction pointed of determining electronic compass direction pointed and first terminal equipment meets the second terminal equipment of default matched rule, and it is the second terminal equipment that first terminal equipment is accurately oriented that the second terminal equipment of determining is terminal positioning device.
Wherein, above-mentioned default matched rule can be: the electronic compass of the second terminal equipment direction pointed direction pointed with the electronic compass of first terminal equipment is identical.Now, when the electronic compass of the second terminal equipment direction pointed direction pointed with the electronic compass of first terminal equipment is identical, this second terminal equipment is the terminal equipment that terminal positioning device is accurately oriented.If use the user of first terminal equipment to want by first terminal equipment and near the second terminal equipment transmission information, use the user of first terminal equipment just can rotate first terminal equipment, so that the electronic compass of first terminal equipment direction pointed is identical with direction that need to be pointed with the electronic compass of the second terminal equipment of first terminal device transmission information, terminal positioning device just can be by the electronic compass direction pointed of each terminal equipment of judgement so, at near each second terminal equipment being arranged in first terminal equipment, for first terminal equipment accurately orient need to the second terminal equipment of first terminal device transmission information.
For example, the direction that the electronic compass of terminal equipment A is pointed and the electronic compass of terminal equipment B direction pointed as shown in Figure 2, if use the user of terminal equipment A to want by terminal equipment A and terminal equipment B transmission information, this user rotates the direction of terminal equipment A, as shown in Figure 3, the electronic compass of the terminal equipment A after the rotation direction pointed direction pointed with the electronic compass of terminal equipment B is identical.
Above-mentioned default matched rule can be: the opposite direction that the direction that the electronic compass of the second terminal equipment is pointed and the electronic compass of first terminal equipment are pointed.Now, when the electronic compass of the electronic compass of the second terminal equipment direction pointed and first terminal equipment opposite direction pointed, this second terminal equipment is the terminal equipment that terminal positioning device is accurately oriented.If use the user of first terminal equipment to want by first terminal equipment and near the second terminal equipment transmission information, use the user of first terminal equipment just can rotate first terminal equipment, so that the electronic compass of first terminal equipment direction pointed and opposite direction that need to be pointed with the electronic compass of the second terminal equipment of first terminal device transmission information, terminal positioning device just can be by the electronic compass direction pointed of each terminal equipment of judgement so, at near each second terminal equipment being arranged in first terminal equipment, for first terminal equipment accurately orient need to the second terminal equipment of first terminal device transmission information.
For example, the direction that the electronic compass of terminal equipment A is pointed and the electronic compass of terminal equipment B direction pointed as shown in Figure 4, if use the user of terminal equipment A to want by terminal equipment A and terminal equipment B transmission information, this user rotates the direction of terminal equipment A, as shown in Figure 5, the electronic compass of the electronic compass of the terminal equipment A after rotation direction pointed and terminal equipment B opposite direction pointed.
The embodiment of the present application one proposes, terminal positioning device is according to the electronic compass of each terminal equipment direction pointed, for first terminal equipment orient need to the second terminal equipment of first terminal device transmission information after, first terminal equipment the sign of the second terminal equipment of orienting can be sent to first terminal equipment, so that can establish a communications link to carry out communication with the second terminal equipment of orienting.Wherein, the sign of the second terminal equipment can be device identification corresponding to the second terminal equipment, can be also the user ID (i.e. user ID corresponding to the second terminal equipment) of the device identification binding corresponding with the second terminal equipment.
Wherein, terminal positioning device can directly send to first terminal equipment by the sign of each second terminal equipment of accurately orienting.
In addition, first terminal equipment also can set in advance the defined amount of the sign of the terminal equipment that needs feedback, the defined amount that for example first terminal equipment sets in advance is one, that is to say that sign that terminal positioning device only need to feed back a terminal equipment is to first terminal equipment.If being first terminal equipment, terminal positioning device accurately orients at least two the second terminal equipments, terminal positioning device can be before sending to first terminal equipment by the sign of the second terminal equipment of orienting, first obtain that first terminal equipment sets in advance, the defined amount of the sign of the terminal equipment that need to feed back, whether the number of the second terminal equipment that then judgement is accurately oriented is greater than the afore mentioned rules number of acquisition, if the determination result is NO, terminal positioning device can directly send to first terminal equipment by the sign of the second terminal equipment of accurately orienting.
If the determination result is YES, it is the defined amount of the sign of the number of the second terminal equipment of accurately orienting of the terminal positioning device terminal equipment that surpassed the needs feedback that first terminal equipment sets in advance, terminal positioning device can send failed information to first terminal equipment, with prompting first terminal equipment, locate unsuccessfully, in addition, terminal positioning device also can be selected afore mentioned rules number the second terminal equipment in each second terminal equipment of accurately orienting, then the sign of each second terminal equipment of selecting is sent to first terminal equipment.
In the embodiment of the present application one, when terminal positioning device is selected individual the second terminal equipment of defined amount in each second terminal equipment of accurately orienting, can according to and first terminal equipment between order from the close-by examples to those far off of distance, the sign of each second terminal equipment of accurately orienting is sorted, then in the sign of each second terminal equipment after sequence, the sign of defined amount the second terminal equipment before selecting, and by the identification feedback of the defined amount of selecting second terminal equipment to first terminal equipment.
In addition, if the sign of at least two the second terminal equipments of the final feedback of terminal positioning device is to first terminal equipment, terminal positioning device can first sort the sign of the second terminal equipment to be feedback, then by the identification feedback of the second terminal equipment after sequence to first terminal equipment.Wherein, terminal positioning device can according to and first terminal equipment between order from the close-by examples to those far off of distance, the sign of each the second terminal equipment is sorted.
In the embodiment of the present application one, terminal positioning device is after sending to first terminal equipment by the sign of the second terminal equipment, can send the inquiry message connecting with the second terminal equipment of determining (the second terminal equipment of accurately orienting) for whether inquiring to first terminal equipment, first terminal equipment represents the inquiry message receiving, if in the sign of the second terminal equipment that first terminal equipment receives, comprise and need to carry out with first terminal equipment the sign of the second terminal equipment of communication, use the user of first terminal equipment can pass through first terminal equipment, the sign that need to carry out the second terminal equipment of communication with first terminal equipment feeds back to terminal positioning device in being carried at and confirming to reply, terminal positioning device is after the confirmation that receives first terminal equipment feedback is replied, set up the communication connection between the second terminal equipment that first terminal equipment is corresponding with the sign of carrying in the definite reply receiving.
Terminal positioning device by the identification feedback of the second terminal equipment to after first terminal equipment, if use the user of first terminal equipment in the sign of the second terminal equipment receiving, do not find need to the sign of the second terminal equipment of first terminal device transmission information, this user may be rotated further first terminal equipment so, now the electronic compass of first terminal equipment direction pointed will change, in addition, terminal positioning device is that the direction of fuzzy each second terminal equipment oriented of first terminal equipment also may change, in order further to improve the precision of terminal positioning, the embodiment of the present application one proposes, whether the electronic compass direction pointed that terminal positioning device detects in first terminal equipment and fuzzy each second terminal equipment of orienting changes, if the electronic compass direction pointed of at least one terminal equipment in each second terminal equipment that first terminal equipment detected and find changes, terminal positioning device is again in fuzzy each second terminal equipment of orienting, determine that the electronic compass direction pointed of direction that electronic compass is pointed and first terminal equipment meets the second terminal equipment of default matched rule, whether the second terminal equipment that then judgement of terminal positioning device is this time determined is identical with last the second terminal equipment of determining, if judge identical, can not process, if judge difference, the sign of the second terminal equipment that terminal positioning device can be determined this sends to first terminal equipment, to upgrade the sign of last the second terminal equipment sending.
In the embodiment of the present application one, terminal positioning device is after orienting each second terminal equipment for first terminal equipment is fuzzy, and before the direction pointed of the electronic compass in obtaining each terminal equipment, the sign of fuzzy each second terminal equipment of orienting (each second terminal equipment in locating area corresponding to the current positional information of the first terminal equipment that falls into that finds) can be sent to first terminal equipment, first terminal equipment represents the sign of each second terminal equipment receiving to user, wherein, the sign of terminal equipment can comprise use the user of terminal equipment arrange image and Word message, the electronic compass direction pointed that follow-up terminal positioning device is accurately oriented electronic compass direction pointed and first terminal equipment meets after the second terminal equipment of default matched rule, the sign of the second terminal equipment of accurately orienting is sent to first terminal equipment, the sign that first terminal equipment is searched the second terminal equipment of accurately orienting in the sign of fuzzy each second terminal equipment of orienting, and the image in the sign finding is amplified, so that use the user of first terminal equipment to know, be positioned near each second terminal equipment of first terminal equipment, pointed reverse identical or contrary of the electronic compass of which the second terminal equipment and first terminal equipment.
In addition, the embodiment of the present application one also proposes, terminal positioning device is accurately being oriented after the second terminal equipment for first terminal equipment, can be directly between first terminal equipment and the second terminal equipment of accurately orienting, establish a communications link, first terminal equipment just can be directly and the second terminal equipment transmission information of accurately orienting so, the flexibility that has effectively improved transmission information between terminal equipment.
Seen from the above description, method of locating terminal in the embodiment of the present application one comprises fuzzy location, accurately locates and feed back three steps of positioning result, or comprise fuzzy location, accurate three steps of locating and establish a communications link, terminal positioning device receives after the first terminal Location Request of first terminal equipment transmission, carry out the step of fuzzy location, wherein, terminal positioning device can be after carrying out fuzzy location, directly carry out the step of accurately locating and feed back positioning result, or the step that directly execution is accurately located and established a communications link; Terminal positioning device also can be after receiving the second terminal positioning request that first terminal equipment sends, then carry out the accurately step of location and feedback positioning result, or carry out the step of accurately locating and establishing a communications link; In addition, terminal positioning device also can be carried out pinpoint step after carrying out fuzzy location, then, after receiving the second terminal positioning request of first terminal equipment transmission, carries out the step of feeding back positioning result or establishing a communications link.Therefore, the method for locating terminal in the embodiment of the present application one at least comprises following three kinds of positioning flows, is specially:
The first positioning flow, first terminal equipment sends first terminal Location Request to terminal positioning device, terminal positioning device receives after first terminal Location Request, carry out fuzzy location, search each second terminal equipment falling in locating area corresponding to the current positional information of this first terminal equipment, then accurately locate, the electronic compass direction pointed in each second terminal equipment that obtains first terminal equipment and find, and in each second terminal equipment finding, the electronic compass direction pointed of determining electronic compass direction pointed and first terminal equipment meets the second terminal equipment of default matched rule, then terminal positioning device is to first terminal equipment feedback positioning result, the sign of the second terminal equipment that feedback is accurately oriented, or terminal positioning device establishes a communications link between first terminal equipment and the second terminal equipment of accurately orienting.
The second positioning flow, first terminal equipment sends first terminal Location Request to terminal positioning device, terminal positioning device receives after first terminal Location Request, carry out fuzzy location, search each second terminal equipment falling in locating area corresponding to the current positional information of this first terminal equipment, if use the user of first terminal equipment to want to orient the second terminal equipment that the direction pointed with the electronic compass of first terminal equipment is identical or contrary, will trigger so first terminal equipment and send the second terminal positioning request to terminal positioning device, terminal positioning device receives after the second terminal positioning request, accurately locate, the electronic compass direction pointed in each second terminal equipment that obtains first terminal equipment and find, and in each second terminal equipment finding, the electronic compass direction pointed of determining electronic compass direction pointed and first terminal equipment meets the second terminal equipment of default matched rule, then terminal positioning device is to first terminal equipment feedback positioning result, the sign of the second terminal equipment that feedback is accurately oriented, or terminal positioning device establishes a communications link between first terminal equipment and the second terminal equipment of accurately orienting.
The third positioning flow, first terminal equipment sends first terminal Location Request to terminal positioning device, terminal positioning device receives after first terminal Location Request, carry out fuzzy location, search each second terminal equipment falling in locating area corresponding to the current positional information of this first terminal equipment, then terminal positioning device is accurately located, the electronic compass direction pointed in each second terminal equipment that obtains first terminal equipment and find, and in each second terminal equipment finding, the electronic compass direction pointed of determining electronic compass direction pointed and first terminal equipment meets the second terminal equipment of default matched rule, if use the user of first terminal equipment to want to orient the second terminal equipment that the direction pointed with the electronic compass of first terminal equipment is identical or contrary, will trigger so first terminal equipment and send the second terminal positioning request to terminal positioning device, terminal positioning device receives after the second terminal positioning request, to first terminal equipment feedback positioning result, the sign of the second terminal equipment that feedback is accurately oriented, or terminal positioning device establishes a communications link between first terminal equipment and the second terminal equipment of accurately orienting.
In actual application, can carry out which kind of positioning flow of choice for use according to business demand, also can select according to business demand is the sign of feeding back the second terminal equipment of accurately orienting, still directly set up first terminal equipment and the second terminal equipment of accurately orienting between communication connection.
In the embodiment of the present application one, if trigger first terminal equipment, to being operating as of terminal positioning device transmission first terminal Location Request, use the user of first terminal equipment to open certain application in first terminal equipment with positioning function, trigger first terminal equipment to terminal positioning device, send the operation of the second terminal positioning request can be for using the user of first terminal equipment supress the navigation button on application interface, or can be for using the user of first terminal equipment that first terminal equipment is kept flat, being first terminal equipment detects self in horizontal positioned state by self gravity sensor.
The method of locating terminal that the embodiment of the present application one proposes can be, but not limited to be applied to user and uses terminal equipment to carry out the process of payment face-to-face, paying party user or beneficiary user turn to the electronic compass of used terminal equipment the identical or contrary direction of electronic compass in the terminal equipment using with beneficiary user or paying party user, and triggering terminal positioner carries out fuzzy location or accurately locates, terminal positioning device is used the identification feedback of the terminal equipment of accurately orienting terminal equipment to paying party user or beneficiary user, communication connection between the terminal equipment that the terminal equipment that paying party user or beneficiary user just can use so and beneficiary user or paying party user use, carry out payment process, terminal positioning device also can directly be set up the communication connection between the terminal equipment that the terminal equipment accurately oriented and paying party user or beneficiary user use, so that paying party user and beneficiary user can carry out payment process, effectively improved the flexibility of payment, also improved payment efficiency.
From above-mentioned handling process, in the embodiment of the present application technical scheme, after receiving the first terminal Location Request of first terminal equipment transmission, first obtain the current positional information of first terminal equipment, search each second terminal equipment falling in locating area corresponding to the current positional information of described first terminal equipment, then the electronic compass direction pointed in each second terminal equipment that obtains described first terminal equipment and find, in each second terminal finding, the electronic compass direction pointed of determining electronic compass direction pointed and described first terminal equipment meets the second terminal equipment of default matched rule, seen from the above description, if first terminal equipment need to the second terminal equipment transmission information, only need to use the user of first terminal equipment to rotate this first terminal equipment, so that the electronic compass of the electronic compass of first terminal equipment direction pointed and this second terminal equipment direction pointed meets default matched rule, terminal positioning device just can be oriented this second terminal equipment for first terminal equipment, without user, in position fixing process, rock terminal equipment, also without the time point that rocks operation according to terminal equipment execution, position, therefore effectively improved the precision of terminal positioning, and reduced the interactive requirement to user, in addition, the method of locating terminal that the embodiment of the present application proposes is carried out the operation of state and input authorization code that terminal equipment is set without user, simplified the flow process of terminal positioning, effectively improved the flexibility of terminal positioning.
Embodiment bis-
If positioning flow is above-mentioned the first positioning flow, and terminal positioning device accurately orients the backward first terminal equipment of the second terminal equipment feedback positioning result, and as shown in Figure 6, its concrete handling process is as follows for the specific implementation of method of locating terminal:
Step 61, while using the user of terminal equipment A to open a terminal to have certain application of positioning function in device A, terminal equipment A sends first terminal Location Request to terminal positioning device;
Step 62, terminal positioning device receives after first terminal Location Request, obtains the current positional information of terminal equipment A, searches each terminal equipment falling in locating area corresponding to the current positional information of this terminal equipment A;
Step 63, terminal positioning device obtains the electronic compass direction pointed in terminal equipment A and each terminal equipment of finding;
Step 64, terminal positioning device is in each terminal equipment finding, determine the terminal equipment of the electronic compass of electronic compass direction pointed and terminal equipment A opposite direction pointed, determine that the electronic compass direction pointed of direction that electronic compass is pointed and terminal equipment A meets the terminal equipment of default matched rule;
Step 65, terminal positioning device is to the sign of the terminal equipment of the electronic compass of terminal equipment A feedback direction that determine, that electronic compass is pointed and terminal equipment A opposite direction pointed.
Embodiment tri-
If positioning flow is above-mentioned the second positioning flow, and terminal positioning device accurately orients the backward first terminal equipment of the second terminal equipment feedback positioning result, and as shown in Figure 7, its concrete handling process is as follows for the specific implementation of method of locating terminal:
Step 71, while using the user of terminal equipment A to open a terminal to have certain application of positioning function in device A, terminal equipment A sends first terminal Location Request to terminal positioning device;
Step 72, terminal positioning device receives after first terminal Location Request, obtains the current positional information of terminal equipment A, searches each terminal equipment falling in locating area corresponding to the current positional information of this terminal equipment A;
Step 73, is used the user of terminal equipment A that terminal equipment A is kept flat, and terminal equipment A detects self in horizontal positioned state by the gravity sensor of self, and terminal equipment A sends the second terminal positioning request to terminal positioning device;
Step 74, terminal positioning device receives after the second terminal positioning request, obtains the electronic compass direction pointed in terminal equipment A and each terminal equipment of finding;
Step 75, terminal positioning device is in each terminal equipment finding, determine the terminal equipment of the electronic compass of electronic compass direction pointed and terminal equipment A opposite direction pointed, determine that the electronic compass direction pointed of direction that electronic compass is pointed and terminal equipment A meets the terminal equipment of default matched rule;
Step 76, terminal positioning device is to the sign of the terminal equipment of the electronic compass of terminal equipment A feedback direction that determine, that electronic compass is pointed and terminal equipment A opposite direction pointed.
Embodiment tetra-
If positioning flow is above-mentioned the third positioning flow, and terminal positioning device accurately orients the backward first terminal equipment of the second terminal equipment feedback positioning result, and as shown in Figure 8, its concrete handling process is as follows for the specific implementation of method of locating terminal:
Step 81, while using the user of terminal equipment A to open a terminal to have certain application of positioning function in device A, terminal equipment A sends first terminal Location Request to terminal positioning device;
Step 82, terminal positioning device receives after first terminal Location Request, obtains the current positional information of terminal equipment A, searches each terminal equipment falling in locating area corresponding to the current positional information of this terminal equipment A;
Step 83, terminal positioning device obtains the electronic compass direction pointed in terminal equipment A and each terminal equipment of finding;
Step 84, terminal positioning device is in each terminal equipment finding, determine the terminal equipment of the electronic compass of electronic compass direction pointed and terminal equipment A opposite direction pointed, determine that the electronic compass direction pointed of direction that electronic compass is pointed and terminal equipment A meets the terminal equipment of default matched rule;
Step 85, is used the user of terminal equipment A that terminal equipment A is kept flat, and terminal equipment A detects self in horizontal positioned state by the gravity sensor of self, and terminal equipment A sends the second terminal positioning request to terminal positioning device;
Step 86, terminal positioning device receives after the second terminal positioning request, to the sign of the terminal equipment of the electronic compass of terminal equipment A feedback direction that determine, that electronic compass is pointed and terminal equipment A opposite direction pointed.
Embodiment five
The method of locating terminal proposing with the embodiment of the present application one is corresponding, and the embodiment of the present application five proposes a kind of terminal positioning device, and its structure as shown in Figure 9, comprising:
The first Location Request receiving element 91, the first terminal Location Request sending for receiving first terminal equipment;
Positional information obtains unit 92, for obtaining the current positional information of first terminal equipment;
Equipment is searched unit 93, for searching each second terminal equipment falling in locating area corresponding to the current positional information of described first terminal equipment;
Direction acquiring unit 94, searches for obtaining described first terminal equipment and equipment the respectively electronic compass direction pointed of second terminal equipment that unit 92 finds;
Equipment determining unit 95, each second terminal equipment finding for search unit 93 at equipment, the electronic compass direction pointed of determining electronic compass direction pointed and described first terminal equipment meets the second terminal equipment of default matched rule.
Preferably, the current positional information of described first terminal equipment is the coordinate of the current present position of described first terminal equipment;
Described positional information obtains unit 92, specifically for obtaining the coordinate of the current present position that described first terminal equipment reports, or obtain sign and the signal strength signal intensity of base station under current that described first terminal equipment reports, and according to sign and the signal strength signal intensity of the current affiliated base station of described first terminal equipment, calculate the coordinate of the current present position of first terminal equipment.
Preferably, described direction acquiring unit 94 specifically comprises:
The request of obtaining sends subelement, for to first terminal equipment and equipment, search each second terminal equipment that unit 93 finds respectively sending direction obtain request;
Direction signs receive subelement, for receiving first terminal equipment and equipment, search that each second terminal equipment that unit 93 finds gathers after receiving the request of obtaining of described direction and the direction signs of the direction fed back, self electronic compass is pointed;
Orientation determination subelement, for receive the direction signs that subelement receives according to direction signs, determines that described first terminal equipment and equipment searches the electronic compass direction pointed in each second terminal equipment that unit 93 finds.
Preferably, described terminal positioning device also comprises:
Direction signs receiving element, the direction signs of the direction that, self electronic compass that each terminal equipment periodically reports for receiving is pointed;
Direction signs are searched unit, for for each terminal equipment, respectively according to the sign of this terminal equipment, in the sign and the corresponding relation between direction signs of the terminal equipment of storing, search the direction signs that this terminal equipment is corresponding;
Direction signs updating block, for for each terminal equipment, the direction signs that report according to this terminal equipment receiving respectively, upgrade direction signs and search direction signs that unit finds, that this terminal equipment is corresponding;
Described direction acquiring unit 94, specifically for for first terminal equipment and each second terminal equipment, respectively according to the sign of this terminal equipment, in the sign and the corresponding relation between direction signs of the terminal equipment of storing, search the direction signs that this terminal equipment is corresponding, and according to the direction signs that find, determine the electronic compass direction pointed in this terminal equipment.
Preferably, in the first terminal Location Request that described the first Location Request receiving element 91 receives, carry the direction signs of the electronic compass of first terminal equipment direction pointed;
Described direction acquiring unit 94, specifically for extracting direction signs the first terminal Location Request receiving from the first Location Request receiving element 91, and determines the electronic compass direction pointed of described first terminal equipment according to the direction signs that extract.
Preferably, described default matched rule is:
The electronic compass of the second terminal equipment direction pointed direction pointed with the electronic compass of first terminal equipment is identical; Or
The opposite direction that the direction that the electronic compass of the second terminal equipment is pointed and the electronic compass of first terminal equipment are pointed.
Preferably, described terminal positioning device also comprises:
The second Location Request receiving element, for obtain described first terminal equipment and the electronic compass of each second terminal equipment finding direction pointed at direction acquiring unit 94 before, receives the second terminal positioning request that described first terminal equipment sends.
Preferably, described terminal positioning device also comprises:
The first device identification transmitting element, sends to described first terminal equipment for the sign of the second terminal equipment that equipment determining unit 95 is determined.
More preferably, described terminal positioning device also comprises:
The second device identification transmitting element, for obtaining at direction acquiring unit 94 before described first terminal equipment and equipment searches the electronic compass of each second terminal equipment that unit 93 finds direction pointed, equipment is searched to the sign that falls into each second terminal equipment in locating area corresponding to the current positional information of described first terminal equipment that unit 93 finds and send to described first terminal equipment.
More preferably, described terminal positioning device also comprises:
Inquiry message transmitting element, for sending the inquiry message for whether inquiring that the second terminal equipment of determining with equipment determining unit connects to described first terminal equipment;
Confirm to reply receiving element, for receiving the confirmation of described first terminal equipment feedback, reply, described confirmation carries the sign of second terminal equipment that need to establish a communications link with first terminal equipment in replying;
Unit is set up in the first communication connection, for confirming that replying receiving element receives after the confirmation reply of described first terminal equipment feedback, sets up the communication connection between the second terminal equipment that described first terminal equipment is corresponding with the sign of carrying in described definite reply.
More preferably, described terminal positioning device also comprises:
Defined amount obtains unit, while meeting default matched rule for determine the electronic compass direction pointed of the electronic compass of at least two the second terminal equipments direction pointed and described first terminal equipment in equipment determining unit 95, before the sign of the second terminal equipment of equipment determining unit 95 being determined at the first device identification transmitting element sends to described first terminal equipment, obtain the defined amount of the sign of that described first terminal equipment sets in advance, to need feedback terminal equipment;
Number of devices judging unit, whether the number of the second terminal equipment of determining for judgment device determining unit 95 is greater than defined amount and obtains the described defined amount that unit obtains;
Described the first device identification transmitting element, when at number of devices judging unit, the determination result is NO, the sign of carrying out the second terminal equipment that equipment determining unit 95 is determined sends to the step of described first terminal equipment.
More preferably, described terminal positioning device also comprises:
Equipment selected cell, for when judgment result is that of number of devices judging unit is, selects described defined amount the second terminal equipment in equipment determining unit 95 in each second terminal equipment of determining;
The 3rd device identification transmitting element, sends to described first terminal equipment for the respectively sign of second terminal equipment that equipment selected cell is selected.
More preferably, described terminal positioning device also comprises:
The 3rd Location Request receiving element, before sending to described first terminal equipment for the sign of the second terminal equipment of equipment determining unit 95 being determined at the first device identification transmitting element, receive the second terminal positioning request that described first terminal equipment sends.
More preferably, described terminal positioning device also comprises:
Direction detecting unit, whether the electronic compass direction pointed of searching in each second terminal equipment that unit 93 finds for detection of described first terminal equipment and equipment changes;
Described equipment determining unit 95, when the electronic compass direction pointed of also searching at least one terminal equipment of each second terminal equipment that unit 93 finds for described first terminal equipment and equipment detected at direction detecting unit changes, again at equipment, search in each second terminal equipment that unit 93 finds, the electronic compass direction pointed of determining electronic compass direction pointed and described first terminal equipment meets the second terminal equipment of default matched rule;
Equipment judging unit, whether the second terminal equipment of this time determining for judgment device determining unit 95 is identical with last the second terminal equipment of determining;
The 4th device identification transmitting element, for when equipment judging unit is judged difference, the sign of the second terminal equipment that equipment determining unit 95 is this time determined sends to described first terminal equipment.
Preferably, described terminal positioning device also comprises:
Second communication connects sets up unit, for establishing a communications link between the second terminal equipment of determining in described first terminal equipment and equipment determining unit 95.
More preferably, described terminal positioning device also comprises:
The 4th Location Request receiving element, before establishing a communications link between the second terminal equipment of determining in described first terminal equipment and equipment determining unit 95, receives the second terminal positioning request that described first terminal equipment sends.
The terminal positioning device that the embodiment of the present application five provides can be realized by computer program.Those skilled in the art should be understood that; above-mentioned dividing elements mode is only a kind of in plurality of cells dividing mode; if be divided into other unit or without inner cells, as long as terminal positioning device has above-mentioned functions, all should be within the application's protection range.
In the embodiment of the present application five, terminal positioning device can be arranged in location-server, that is to say that location-server has the above-mentioned functions of terminal positioning device, and in addition, terminal positioning device also can be arranged in other servers.
The embodiment that it will be understood by those skilled in the art that the application can be provided as method, device (equipment) or computer program.Therefore, the application can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the application can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code one or more.
The application is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present application, device (equipment) and computer program.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computer or other programmable data processing device is produced for realizing the device in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame on computer or other programmable devices.
Although described the application's preferred embodiment, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the application's scope.Obviously, those skilled in the art can carry out various changes and modification and the spirit and scope that do not depart from the application to the application.Like this, if within these of the application are revised and modification belongs to the scope of the application's claim and equivalent technologies thereof, the application is also intended to comprise these changes and modification interior.