Embodiment one
As shown in figure 1, the method for locating terminal flow chart proposed for the embodiment of the present application one, its concrete handling process is such as
Under:
Step 11, receives the first request that first terminal equipment sends.
Wherein, the terminal unit mentioned in the embodiment of the present application one can be mobile terminal device, or individual's meter
Calculation machine(PC, Personal Computer)Equipment.The terminal positioning device for performing method of locating terminal can be, but not limited to be placed in
In location-server.
If being wanted to know which terminal unit nearby also have using the user of first terminal equipment, need by using
Above-mentioned first terminal equipment sends first and asks to the terminal positioning device of network side.Wherein, if using first terminal equipment
User opens certain application with positioning function in first terminal equipment, then first terminal equipment can be filled to terminal positioning
Put transmission first to ask;Or using first terminal equipment user open in first terminal equipment with positioning function certain
Individual application, and press the navigation button on application interface, then first terminal equipment can send first to terminal positioning device
Request;Or using first terminal equipment user open in first terminal equipment with positioning function certain application, and
First terminal equipment is kept flat using the user of first terminal equipment, i.e., first terminal equipment is examined by the gravity sensor of itself
Itself is measured in horizontal positioned state, then first terminal equipment can be to the request of terminal positioning device transmission first.
Step 12, obtains the current positional information of first terminal equipment, and it is current that lookup falls into the first terminal equipment
Each second terminal equipment in the corresponding positioning region of positional information.
In the embodiment of the present application one, terminal positioning device first enters when being positioned according to the localization method of prior art
The fuzzy positioning of row, but because the positioning precision of the localization method of prior art is not high, therefore the embodiment of the present application one proposes,
After carrying out fuzzy positioning, terminal positioning device is accurately positioned further according to ambient sound data, wherein, terminal positioning device exists
The each terminal unit for carrying out being oriented after fuzzy positioning is properly termed as each second terminal equipment.
Terminal positioning device obtains the current positional information of first terminal equipment, Ran Houcha when fuzzy positioning is carried out, first
The each second terminal equipment that the first terminal equipment is presently in the corresponding positioning region in position that falls into is looked for, each for finding
The as fuzzy second terminal equipment oriented of two terminal units.
Wherein, the current positional information of first terminal equipment can be the coordinate that first terminal equipment is presently in position,
Terminal positioning device can be, but not limited to carry out fuzzy positioning using GPS location method or architecture method.
When fuzzy positioning is carried out using GPS location method, the GPS module in each terminal unit is periodically current by itself
The coordinate of present position reports terminal positioning device, and terminal positioning device receives the first request of first terminal equipment transmission
Afterwards, the coordinate that the coordinate that other-end equipment is presently in position is presently in respectively position with first terminal equipment is compared
It is right, orient other each terminal units in default coordinate difference threshold value with the coordinate difference between first terminal equipment, then
The terminal unit oriented just is fallen in the corresponding positioning region of the current positional information of the first terminal equipment.
When fuzzy positioning is carried out using architecture method, each terminal unit by the mark of itself current own base station and
Reporting signal strength receives after the first request of first terminal equipment transmission to terminal positioning device, terminal positioning device, root
According to the mark and signal intensity of the current own base station of first terminal equipment, calculate the first terminal equipment and be presently in position
The coordinate put, the coordinate of other-end equipment is compared respectively with the coordinate of first terminal equipment, is oriented with first eventually
Other each terminal units of coordinate difference between end equipment in default coordinate difference threshold value, then the terminal unit oriented is just
Fall in the corresponding positioning region of the current positional information of the first terminal equipment.
Step 13, the acquisition first terminal equipment and each second terminal equipment for finding are presently in the environment of environment
Sound data.
Terminal positioning device will obtain first terminal equipment when being accurately positioned according to ambient sound data, first and obscure
The each second terminal equipment oriented is presently in the ambient sound data of environment, obtain ambient sound data mode can with but do not limit
In including following three kinds of modes:
The first acquisition modes, terminal positioning device active obtaining, terminal positioning device is needing to obtain ambient sound data
When, send ambient sound data acquisition request respectively to first terminal equipment and the fuzzy each second terminal equipment oriented, first
After above-mentioned ambient sound data acquisition request is received, collection is presently in environment for terminal unit and each second terminal equipment
Ambient sound data, and give terminal positioning device by the ambient sound data feedback collected, then terminal positioning device just can be obtained
The ambient sound data of environment are presently in first terminal equipment and each second terminal equipment.
Second acquisition modes, terminal unit active reporting, each terminal unit is periodically collected and is presently in environment
Ambient sound data, and terminal positioning device is reported, wherein, report cycle can be configured.Terminal positioning device connects for the first time
After receiving the ambient sound data that terminal unit is reported, deposit the ambient sound data for receiving are corresponding with the mark of the terminal unit
Storage, then the corresponding relation between the mark of terminal unit and ambient sound data has just been obtained, in subsequently received terminal unit
After the ambient sound data for periodically reporting, terminal positioning device enters to the ambient sound data of the terminal unit in above-mentioned corresponding relation
Row updates, specifically:Terminal positioning device is directed to each terminal unit, respectively according to the mark of the terminal unit, at the end of storage
In corresponding relation between the mark and ambient sound data of end equipment, the corresponding ambient sound data of the terminal unit, and root are searched
According to the ambient sound data that the terminal unit for receiving this time is reported, the ambient sound data for finding are updated, therefore, terminal
Be stored with the ambient sound number that each terminal unit the last time reports in corresponding relation between the mark and ambient sound data of equipment
According to.Wherein, above-mentioned corresponding relation can be, but not limited to as shown in the table:
The mark of terminal unit |
Ambient sound data |
The mark of terminal unit A |
Ambient sound data a |
The mark of terminal unit B |
Ambient sound data b |
The mark of terminal unit C |
Ambient sound data c |
Subsequent terminal positioner is in the ring for needing acquisition first terminal equipment and second terminal equipment to be presently in environment
During the sound data of border, for first terminal equipment and each second terminal equipment, respectively according to the mark of the terminal unit, in storage
In corresponding relation between the mark and ambient sound data of terminal unit, corresponding ambient sound data are searched.
In the embodiment of the present application, the mark of terminal unit is as used to identify the mark of terminal unit, the mark of terminal unit
Knowledge can be the corresponding device identification of terminal unit, or user's mark of device identification binding corresponding with terminal unit
(The hereinafter referred to as corresponding ID of terminal unit).
In the above-mentioned second way, fuzzy positioning is carried out according to GPS location method, then terminal unit can be by collection
Ambient sound data report together terminal positioning device with the coordinate for itself being presently in position, now report ambient sound data
Cycle is consistent with the cycle for reporting coordinate;Fuzzy positioning is carried out according to architecture method, then terminal unit can be by collection
The mark and signal intensity of ambient sound data and itself current own base station reports together terminal positioning device, now reports
The cycle of ambient sound data is consistent with the cycle of the mark of reporting base station and signal intensity.
The third acquisition modes, first terminal equipment needs to be sent before the first request to terminal positioning device, collects and works as
The ambient sound data of front local environment, and the ambient sound data carrying of collection is sent to into terminal positioning dress in the first request
Put, terminal positioning device is received after the first request, from the first request ambient sound data are extracted, set so as to obtain first terminal
The standby ambient sound data for being presently in environment.
Terminal positioning device can obtain the ambient sound data of first terminal equipment according to above-mentioned the third acquisition modes,
Then according to the ambient sound data of above-mentioned the first acquisition modes or each second terminal equipment of second acquisition modes acquisition.
In the embodiment of the present application one, each terminal unit can arrange each stipulated time point, eventually according to the time interval of regulation
End equipment if desired collects ambient sound data, then when each stipulated time point is reached, ambient sound data are just collected, until collecting
To the ambient sound data of defined amount stipulated time point, wherein it is possible to each stipulated time point for pre-setting is referred to as
Sampled point, the time interval between two neighboring sampled point is above-mentioned predetermined time interval.Therefore, each ambient sound number
According to defined amount sampled point is included, and corresponding time span is equal.
In order to ensure ambient sound data that each terminal unit collects can accurate alignment, the embodiment of the present application one proposes, respectively
The stipulated time point that terminal unit is arranged can be with identical.For example, it is stipulated that time interval be 1 second, the rule that each terminal unit is arranged
Fix time and be a little:1 o'clock sharp, 1 point 01 second, 1 point 02 second, the rest may be inferred for .. within 1 point 03 second ....
If each stipulated time point for wanting to arrange terminal unit is identical, need to enter the local clock of each terminal unit
Row is synchronous, and the embodiment of the present application one is proposed, base station can send measurement signal to terminal unit in advance, and terminal unit receives survey
After amount signal, to base station feedback confirmation signal, base station according to the time point for sending measurement signal and receive confirmation signal when
Between put between time delay, the propagation delay time between base station and terminal unit is determined, then by local clock and the transmission determined
Time delay is sent to terminal unit, terminal unit according to the clock and above-mentioned propagation delay time of base station, synchronous local clock so that
The time of each terminal unit reaches unification.
In the embodiment of the present application one, terminal unit can be received by sound collection devices such as the mike of itself, earphones
Collection is presently in the ambient sound data of environment.
Step 14, according to each ambient sound data for getting, determines and described in each second terminal for finding
The close each second terminal equipment in one terminal unit position.
Ambient sound data can be voice data, or frequency spectrum data.Terminal positioning device is it is determined that with first eventually
During the close each second terminal equipment in end equipment position, needs are determined according to frequency spectrum data, therefore terminal positioning device is obtained
The ambient sound data got are frequency spectrum data.
In the embodiment of the present application one, the ambient sound data that terminal unit is collected are voice data.Wherein, terminal unit can
So that the voice data collected directly is uploaded to into terminal positioning device, voice data is converted to into frequency spectrum by terminal positioning device
Data;Additionally, terminal unit can also first be converted to frequency spectrum data after voice data is collected, terminal is then uploaded to again
Positioner, as shown in Fig. 2 mike, the ear of terminal unit A, terminal unit B and terminal unit C periodically by itself
The sound collection devices such as machine are presently in the voice data of environment to collect, and the voice data collected is carried out into pretreatment,
Voice data is converted to into frequency spectrum data, then again the frequency spectrum data after conversion terminal positioning device is sent to into.
Wherein, the ambient sound that terminal unit is collected is made up of the frequency of sound and the intensity of sound, therefore, terminal positioning dress
Put and include in the frequency spectrum data for getting the corresponding sound frequency value harmony loudness of a sound angle value of each sampled point.Terminal positioning device is true
During fixed close with first terminal device location each second terminal equipment, for each second terminal equipment for finding, general respectively
The ambient sound data of the second terminal equipment are compared with the ambient sound data of first terminal equipment, then according to comparative result
To determine whether the second terminal equipment is close with first terminal device location, specifically:
Because the sampled point in varying environment sound data may be different, therefore in order to ensure the accuracy of comparative result, this
Application embodiment one proposes that terminal positioning device is first in the ambient sound data and the ring of first terminal equipment of second terminal equipment
In the sound data of border, each sampled point of overlap, i.e. time point identical sampled point are determined, then for each of the overlap determined
Sampled point, is respectively compared the sound frequency value of the corresponding second terminal equipment of each sampled point and the sound of first terminal equipment
Whether frequency values are equal, judge the ratio of quantity that comparative result is equal sampled point in the total quantity of each sampled point for overlapping
Whether example has exceeded the proportion threshold value of setting, if exceeding, confirms the second terminal equipment with first terminal device location phase
Closely.
Wherein, in order to further improve the accuracy of comparative result, the embodiment of the present application one is proposed, can be in comparative result
Quantity for equal sampled point is equal to the total quantity of each sampled point for overlapping(Each sampled point corresponding second for overlapping is eventually
The sound frequency value of end equipment is equal with the sound frequency value of first terminal equipment)When, just confirm second terminal equipment and the
One terminal unit position is close.
For example, the ambient sound data of first terminal equipment(Ambient sound data one)In each sampled point be t11, t12, t13,
T14, t15, the ambient sound data of second terminal equipment(Ambient sound data two)In each sampled point be t21, t22, t23, t24,
T25, wherein, t13 and t21 is overlapped, and t14 and t22 is overlapped, and t15 and t23 is overlapped, and compares sound of the t13 in ambient sound data one
Whether sound frequency value of the frequency values with t21 in ambient sound data two be equal, sound frequencies of the t14 in ambient sound data one
Whether sound frequency value of the value with t22 in ambient sound data two equal, sound frequency values of the t15 in ambient sound data one and
Whether sound frequency values of the t23 in ambient sound data two be equal, if comparative result is equal, confirmation second terminal equipment
It is close with first terminal device location.
Further, terminal positioning device can also be for each second terminal close with first terminal device location and set
It is standby, respectively according to the ambient sound data and the ambient sound data of the second terminal equipment of the first terminal equipment for getting,
Determine the relative distance value between the second terminal equipment and the first terminal equipment, specifically:
Terminal positioning device is directed to each second terminal equipment close with first terminal device location, respectively in the second terminal
In the ambient sound data of equipment and the ambient sound data of first terminal equipment, each sampled point of overlap, i.e. time point phase are determined
Same sampled point, then each sampled point of the overlap for determining, sets respectively according to the corresponding second terminal of the sampled point
Standby intensity of sound value and the intensity of sound value of first terminal equipment, determine the corresponding relative distance value of the sampled point, according to true
Sampled point make, each distinguishes corresponding relative distance value, determines between the second terminal equipment and the first terminal equipment
Relative distance value.
Wherein, the computation rule of the relative distance value for calculating sampled point is pre-set, terminal positioning device is for overlap
Each sampled point, respectively according to the intensity of sound value and the sound of first terminal equipment of the corresponding second terminal equipment of the sampled point
Intensity level, based on above-mentioned default computation rule, calculates the corresponding relative distance value of the sampled point, and above-mentioned default calculating is advised
Then can be, but not limited to for:
△=a|X-Y|
△ be the corresponding relative distance value of sampled point, X for the corresponding first terminal equipment of sampled point intensity of sound value, Y
For the intensity of sound value of the corresponding second terminal equipment of sampled point, a is default conversion coefficient.
Additionally, each sampled point can be distinguished terminal positioning device the meansigma methodss of corresponding relative distance value, it is defined as this
Relative distance value between second terminal equipment and the first terminal equipment.
From the foregoing, it will be observed that the intensity of sound value of the intensity of sound value of second terminal equipment and first terminal equipment is closer to the
Two terminal units are nearer with the distance of first terminal equipment.
For example, the ambient sound data of first terminal equipment(Ambient sound data one)In each sampled point be t11, t12, t13,
T14, t15, the ambient sound data of second terminal equipment(Ambient sound data two)In each sampled point be t21, t22, t23, t24,
T25, wherein, t13 and t21 is overlapped, and t14 and t22 is overlapped, and t15 and t23 is overlapped, according to sound of the t13 in ambient sound data one
Intensity level and intensity of sound values of the t21 in ambient sound data two, determine the corresponding relative distance value of sampled point t13 and t21
△ 1, the intensity of sound value according to t14 in ambient sound data one and intensity of sound values of the t22 in ambient sound data two, it is determined that
Go out corresponding relative distance value △ 2 of sampled point t14 and t22, the intensity of sound value and t23 according to t15 in ambient sound data one
Intensity of sound value in ambient sound data two, determines corresponding relative distance value △ 3 of sampled point t15 and t23, then by △
=(△1+△2+△3)/ 3 confirm as the relative distance value between second terminal equipment and first terminal equipment.
In the embodiment of the present application one, if the second terminal equipment only one of which close with first terminal device location,
The relative distance value between the second terminal equipment and first terminal equipment need not be calculated.
The embodiment of the present application one proposes that final positioning result can be fed back to first terminal and be set by terminal positioning device
It is standby, so that first terminal equipment can select one of second terminal equipment to set up communication connection.Wherein it is possible to but be not limited to
Positioning result is fed back by following six kinds of modes, specifically:
The first feedback system, terminal positioning device is determining each second terminal close with first terminal device location
After equipment, the mark of each second terminal equipment determined is sent to into first terminal equipment, then using first terminal equipment
User can just know which second terminal equipment is close with first terminal device location.Wherein, the mark of second terminal equipment
Knowledge can be the corresponding device identification of second terminal equipment, or device identification binding corresponding with second terminal equipment
ID(That is the corresponding ID of second terminal equipment).
For example, first terminal equipment is terminal unit A, and it is close with terminal unit location A that terminal positioning device is determined
Each second terminal equipment be terminal unit B, terminal unit C and terminal unit D, then terminal positioning device is by terminal unit B, end
End equipment C and the corresponding ID of terminal unit D feed back to terminal unit A.
Second feedback system, the terminal positioning device pair each second terminal equipment close with first terminal device location
Mark is respectively provided with the first label, wherein, the first label is used to characterize compared with other each second terminal equipment, first label
Corresponding second terminal equipment is nearer apart from first terminal equipment, and terminal positioning device makes first terminal equipment show what is found
The mark of each second terminal equipment, if second terminal equipment is provided with the first label, shows first label.Specifically
's:Terminal positioning device is marked the first of the mark of each second terminal equipment close with first terminal device location and setting
Sign correspondence and be sent to first terminal equipment, additionally, terminal positioning device is also sent to the mark of other each second terminal equipment
First terminal equipment, that is to say, that terminal positioning device finds step 12, fall into the current position of first terminal equipment
The mark of each second terminal equipment in the corresponding positioning region of information is sent to first terminal equipment, and will also be with first eventually
The mark of the close each second terminal equipment in end equipment position is corresponding with the first label to be sent, then using first terminal equipment
User can not only know nearby have which second terminal equipment, moreover it is possible to know which second terminal equipment and first terminal equipment
Position is close.Wherein, the mark of second terminal equipment can be the corresponding device identification of second terminal equipment, or with
The ID of the corresponding device identification binding of two terminal units(That is the corresponding ID of second terminal equipment).
For example, first terminal equipment is terminal unit A, that terminal positioning device finds, to fall into terminal unit A current
Each second terminal equipment in the corresponding positioning region of positional information is terminal unit B, terminal unit C, terminal unit D, terminal
Equipment E, terminal unit F and terminal unit G, each second close with terminal unit location A that terminal positioning device is determined is eventually
End equipment is terminal unit B, terminal unit E and terminal unit G, then terminal positioning device by terminal unit B, terminal unit E and
The corresponding ID of terminal unit G is corresponding with the first label to be sent to terminal unit A, and terminal positioning device is also by terminal unit
C, terminal unit D and the corresponding ID of terminal unit F feed back to terminal unit A.
In the embodiment of the present application one, the first label can be, but not limited to the Word message to pre-set, for example " distance compared with
Closely " etc..
The third feedback system, terminal positioning device is determined relative between second terminal equipment and first terminal equipment
After distance value, according to the relative distance between first terminal equipment ascending order is worth, will be with first terminal equipment position
The mark for putting close each second terminal equipment is ranked up, then by sequence after the mark of each second terminal equipment be sent to
First terminal equipment, then can not only be known using the user of first terminal equipment close with first terminal device location each
Second terminal equipment, additionally it is possible to know each second terminal equipment close with first terminal device location and first terminal equipment it
Between distance relation.Wherein, the mark of second terminal equipment can be the corresponding device identification of second terminal equipment, or
The ID of device identification binding corresponding with second terminal equipment(That is the corresponding ID of second terminal equipment).
For example, first terminal equipment is terminal unit A, and it is close with terminal unit location A that terminal positioning device is determined
Each second terminal equipment be terminal unit B, terminal unit C and terminal unit D, and according to the phase between terminal unit A
The ascending order of value of adjusting the distance, the order after the corresponding ID of each second terminal equipment is ranked up is:Terminal
The corresponding ID of equipment C, the corresponding ID of terminal unit D, the corresponding ID of terminal unit B, then terminal is fixed
Identification feedback after above-mentioned sequence is given terminal unit A by position device.
4th kind of feedback system, terminal positioning device is according to the second terminal equipment close with first terminal device location
The posterior order of mark of other each second terminal equipment in first, positioning region is identified, by each second terminal for finding
The mark of equipment is ranked up, meanwhile, it is worth ascending order according further to the relative distance between first terminal equipment, will
The mark of each second terminal equipment close with first terminal device location is ranked up, then by sequence after each second terminal
The mark of equipment is sent to first terminal equipment.That is, it is that terminal positioning device finds step 12, fall into first eventually
The mark of each second terminal equipment in the corresponding positioning region of the current positional information of end equipment is sent to first terminal and sets
It is standby, wherein the mark of each second terminal equipment close with first terminal device location is formerly, the mark of other second terminal equipment
Know rear and close with first terminal device location each second terminal equipment mark according between first terminal equipment
Relative distance is worth ascending order sequence, then can not only be known using the user of first terminal equipment nearby which has
Second terminal equipment, additionally it is possible to know the distance between each second terminal equipment and first terminal equipment relation.Wherein, second eventually
The mark of end equipment can be the corresponding device identification of second terminal equipment, or equipment corresponding with second terminal equipment
The ID of mark binding(That is the corresponding ID of second terminal equipment).
For example, first terminal equipment is terminal unit A, that terminal positioning device finds, to fall into terminal unit A current
Each second terminal equipment in the corresponding positioning region of positional information is terminal unit B, terminal unit C, terminal unit D, terminal
Equipment E, terminal unit F and terminal unit G, each second close with terminal unit location A that terminal positioning device is determined is eventually
End equipment be terminal unit B, terminal unit E and terminal unit G, according to the relative distance value between terminal unit A by it is little to
Big order, the order after the corresponding ID of close with terminal unit location A each second terminal equipment is ranked up
For:The corresponding ID of terminal unit E, the corresponding ID of terminal unit B, the corresponding ID of terminal unit G, respectively
Order after the sequence of second terminal equipment corresponding ID is:The corresponding ID of terminal unit E, terminal unit B pair
The ID answered, the corresponding ID of terminal unit G, the corresponding ID of terminal unit C, terminal unit D are corresponding
ID, the corresponding ID of terminal unit F, terminal positioning device is by the identification feedback after above-mentioned sequence to terminal unit
A。
5th kind of feedback system, terminal positioning device is in each second terminal equipment close with first terminal device location
In, after determining the second terminal equipment nearest with the relative distance value between the first terminal equipment, to the second terminal
The mark of equipment arranges the second label, and the second label is used to characterize compared with other each second terminal equipment, second label pair
Apart from first terminal equipment recently, terminal positioning device makes first terminal equipment show this with first eventually to the second terminal equipment answered
The mark and the second label of the nearest second terminal equipment of end equipment relative distance value.Specifically:Terminal positioning device will be with this
The mark of the nearest second terminal equipment of relative distance value between first terminal equipment and the second label correspondence of setting are sent out
Give first terminal equipment, then just can know in neighbouring second terminal equipment using the user of first terminal equipment, which
Individual second terminal equipment is closest with the first terminal equipment.Wherein, the mark of second terminal equipment can be second terminal
The corresponding device identification of equipment, or the ID of device identification binding corresponding with second terminal equipment(I.e. second
The corresponding ID of terminal unit).
For example, first terminal equipment is terminal unit A, and it is close with terminal unit location A that terminal positioning device is determined
Each second terminal equipment be relative distance value between terminal unit B, terminal unit C and terminal unit D, with terminal unit A
Nearest second terminal equipment is terminal unit C, then terminal positioning device is by the corresponding ID of terminal unit C and second
Tag feedback gives terminal unit A.
6th kind of feedback system, terminal positioning device is in each second terminal equipment close with first terminal device location
In, after determining the second terminal equipment nearest with the relative distance value between the first terminal equipment, to the second terminal
The mark of equipment arranges the second label, and terminal positioning device makes first terminal equipment show each second terminal equipment for finding
Mark, if the second terminal equipment is provided with the second label, shows the second label.Specifically:Terminal positioning device will be with
The mark of the nearest second terminal equipment of relative distance value between the first terminal equipment and the second label correspondence of setting
First terminal equipment is sent to, additionally, terminal positioning device also sends the mark of other each second terminal equipment for finding
Give first terminal equipment, that is to say, that terminal positioning device finds step 12, fall into the current position of first terminal equipment
Confidence ceases the mark of each second terminal equipment in corresponding positioning region and is sent to first terminal equipment, and will also be with first
The mark of the nearest second terminal equipment of relative distance value between terminal unit is corresponding with the second label to be sent, then use the
The user of one terminal unit can not only know nearby have which second terminal equipment, moreover it is possible to know wherein which second terminal sets
It is standby nearest with the distance between first terminal equipment.Wherein, the mark of second terminal equipment can be second terminal equipment correspondence
Device identification, or the ID of corresponding with second terminal equipment device identification binding(That is second terminal equipment
Corresponding ID).
For example, first terminal equipment is terminal unit A, that terminal positioning device finds, to fall into terminal unit A current
Each second terminal equipment in the corresponding positioning region of positional information is terminal unit B, terminal unit C, terminal unit D, terminal
Equipment E, terminal unit F and terminal unit G, each second close with terminal unit location A that terminal positioning device is determined is eventually
End equipment is terminal unit B, terminal unit E and terminal unit G, and nearest with the relative distance value between terminal unit A is
Terminal unit E, then terminal positioning device be sent to terminal unit by the corresponding ID of terminal unit E is corresponding with the second label
A, terminal positioning device is also by terminal unit B, terminal unit C, terminal unit D, terminal unit F and the corresponding use of terminal unit G
Family identification feedback gives terminal unit A.
In the embodiment of the present application one, the second label can be, but not limited to the Word message to pre-set, and for example " distance is most
Closely " etc..
Additionally, it is that if terminal positioning device finds, fall into the corresponding positioning of the current positional information of first terminal equipment
Second terminal equipment only one of which in region, then terminal positioning device is directly by the mark of the second terminal equipment for finding
Knowledge feeds back to first terminal equipment.
Method of locating terminal in the embodiment of the present application one is positioned, is accurately positioned and feeds back positioning result three comprising fuzzy
Step, terminal positioning device is received after the first request of first terminal equipment transmission, performs the step of obscuring positioning, wherein,
Terminal positioning device can directly perform the step of being accurately positioned and feed back positioning result after fuzzy positioning is performed;Terminal is determined
Position device after the second request for receiving the transmission of first terminal equipment, then can also be performed and be accurately positioned and feed back positioning result
The step of;Additionally, terminal positioning device can also perform the step of being accurately positioned after fuzzy positioning is performed, then receiving
After the second request sent to first terminal equipment, the step of feeding back positioning result is performed.Seen from the above description, the application reality
The method of locating terminal applied in example one includes at least following three kinds of positioning flows, specially:
The first positioning flow, first terminal equipment sends first and asks to terminal positioning device, and terminal positioning device connects
After receiving the first request, fuzzy positioning is carried out, that is, search and fall into the corresponding positioning of the current positional information of the first terminal equipment
Each second terminal equipment in region, is then accurately positioned, that is, obtain first terminal equipment with each second for finding eventually
End equipment is presently in the ambient sound data of environment, and according to each ambient sound data for getting, in each second for finding
The each second terminal equipment close with first terminal device location is determined in terminal, then terminal positioning device is to first terminal
Equipment feed back positioning result, wherein, feed back positioning result mode can be, but not limited to as above-mentioned six kinds of feedback systems in appoint
Meaning is a kind of.
Second positioning flow, first terminal equipment sends first and asks to terminal positioning device, and terminal positioning device connects
After receiving the first request, fuzzy positioning is carried out, that is, search and fall into the corresponding positioning of the current positional information of the first terminal equipment
Each second terminal equipment in region, if using the user of first terminal equipment want to know near terminal unit in which at end
End equipment is closer apart from the first terminal equipment, then will trigger first terminal equipment and send second to terminal positioning device
Request, terminal positioning device is received after the second request, is accurately positioned, that is, obtain first terminal equipment each with what is found
Second terminal equipment is presently in the ambient sound data of environment, and according to each ambient sound data for getting, what is found
The each second terminal equipment close with first terminal device location is determined in each second terminal, then terminal positioning device is to
One terminal unit feeds back positioning result, wherein, the mode for feeding back positioning result can be, but not limited to as above-mentioned six kinds of feedback systems
In any one.
The third positioning flow, first terminal equipment sends first and asks to terminal positioning device, and terminal positioning device connects
After receiving the first request, fuzzy positioning is carried out, that is, search and fall into the corresponding positioning of the current positional information of the first terminal equipment
Each second terminal equipment in region, then terminal positioning device be accurately positioned, that is, obtain first terminal equipment and lookup
To each second terminal equipment be presently in the ambient sound data of environment, and according to each ambient sound data for getting, looking into
The each second terminal equipment close with first terminal device location is determined in each second terminal for finding, is set using first terminal
If standby user wants to know which terminal unit is closer apart from the first terminal equipment in neighbouring terminal unit, then just
First terminal equipment can be triggered and send the second request to terminal positioning device, terminal positioning device is received after the second request, to
First terminal equipment feeds back positioning result, and the mode for feeding back positioning result can be, but not limited to as in above-mentioned six kinds of feedback systems
Any one.
Wherein, in above-mentioned the third positioning flow, if the mode of feedback positioning result is above-mentioned the first feedback system,
Then terminal positioning device is sent to the mark of each second terminal equipment determined before first terminal equipment, receives first eventually
The second request that end equipment sends;
If the mode of feedback positioning result is above-mentioned second feedback system, terminal positioning device will set with first terminal
The mark of the standby close each second terminal equipment in position and the first label correspondence of setting be sent to first terminal equipment and
The mark of other each second terminal equipment is sent to before first terminal equipment, receive the transmission of first terminal equipment second please
Ask;
If the mode of feedback positioning result is above-mentioned the third feedback system or the 4th kind of feedback system, terminal positioning dress
The mark of each second terminal equipment after putting sequence is sent to before first terminal equipment, receives what first terminal equipment sent
Second request;
If the mode of feedback positioning result is above-mentioned 5th kind of feedback system, terminal positioning device will be with the first terminal
The mark and the second label of the nearest second terminal equipment of relative distance value between equipment be sent to first terminal equipment it
Before, receive the second request that first terminal equipment sends;
If the mode of feedback positioning result is above-mentioned 6th kind of feedback system, terminal positioning device will set with first terminal
The nearest mark of second terminal equipment of relative distance value between standby and the second label correspondence of setting are sent to first eventually
End equipment, and the mark of other each second terminal equipment is sent to before first terminal equipment, receive first terminal equipment
The second request for sending.
Which kind of which kind of in actual application, can be selected that positioning flow and anti-using used according to business demand
Feedback mode feeds back positioning result.
In the embodiment of the present application one, if triggering first terminal equipment sends the operation of the first request to terminal positioning device
It is to open certain application with positioning function in first terminal equipment using the user of first terminal equipment, then triggers first
Terminal unit can be to press to answer using the user of first terminal equipment to the operation that terminal positioning device sends the second request
With the navigation button on interface, or can be to be kept flat first terminal equipment using the user of first terminal equipment, i.e., first
Terminal unit detects itself in horizontal positioned state by the gravity sensor of itself.
The method of locating terminal that the embodiment of the present application one is proposed can be, but not limited to be applied to user's using terminal equipment to enter
The process that row is paid the bill face-to-face, when two users want to be paid the bill face-to-face by terminal unit, paying party user needs
The terminal unit that beneficiary user uses is found in nigh terminal unit, if using the terminal positioning side of prior art
Method, then can only orient neighbouring each terminal unit, can not be apparent from what closest recipient user was used
Terminal unit, if the method for locating terminal proposed using the embodiment of the present application one, and using above-mentioned 5th kind of feedback system or
Feeding back positioning result, then paying party user can clearly find the terminal that beneficiary user uses and set 6th kind of feedback system
It is standby, and corresponding communication connection is set up, payment process is carried out, the motility of payment is effectively improved, also improve payment effect
Rate.
From above-mentioned handling process, in the embodiment of the present application technical scheme, the transmission of first terminal equipment is being received
After first request, the current positional information of first terminal equipment is first obtained, lookup falls into the current position of the first terminal equipment
Confidence ceases each second terminal equipment in corresponding positioning region, the first terminal equipment is then obtained again each with what is found
Second terminal equipment is presently in the ambient sound data of environment, according to each ambient sound data for getting, in each for finding
The each second terminal equipment close with the first terminal device location is determined in two terminals, and from prior art, if
The ambient sound data of two terminal units closely, then show that the distance between the two terminal units are very near, therefore this
Application embodiment technical scheme proposed when terminal positioning is carried out, and first carries out fuzzy positioning, then again it is fuzzy orient it is each
In second terminal equipment, it is accurately positioned according to ambient sound data, is oriented with first terminal equipment apart from closer each
Second terminal equipment, so as to be effectively improved the precision of terminal positioning.
Embodiment five
Corresponding with the method for locating terminal that the embodiment of the present application one is proposed, the embodiment of the present application five proposes a kind of terminal positioning
Device, its structure as shown in fig. 6, including:
First request reception unit 61, for receiving the first request of first terminal equipment transmission;
Positional information obtaining unit 62, the positional information current for obtaining first terminal equipment;
Equipment searching unit 63, for searching the current corresponding positioning area of positional information of the first terminal equipment is fallen into
Each second terminal equipment in domain;
Ambient sound acquiring unit 64, for obtaining the first terminal equipment and equipment searching unit 63 find each
Two terminal units are presently in the ambient sound data of environment;
Equipment determining unit 65, for each ambient sound data got according to ambient sound acquiring unit 64, looks in equipment
Look in each second terminal that unit 63 finds and determine each second terminal equipment close with the first terminal device location.
It is preferred that the current positional information of the first terminal equipment is the first terminal equipment is presently in position
Coordinate;
The positional information obtaining unit 62, specifically for what the acquisition first terminal equipment was reported position is presently in
Coordinate, or obtain the mark and signal intensity of the current own base station that the first terminal equipment is reported, and according to described
The mark and signal intensity of the current own base station of first terminal equipment, calculates the seat that first terminal equipment is presently in position
Mark.
It is preferred that the ambient sound acquiring unit 64 is specifically included:
Obtain request and send subelement, each second for finding to first terminal equipment and equipment searching unit 63 is whole
End equipment sends respectively ambient sound data acquisition request;
Ambient sound receiving subelement, for receiving each second end that first terminal equipment and equipment searching unit 63 find
Ambient sound number that end equipment is collected after the ambient sound data acquisition request is received and fed back, being presently in environment
According to.
It is preferred that the terminal positioning device also includes:
Ambient sound receiving unit, for receiving ambient sound number that each terminal unit is periodically reported, being presently in environment
According to;
Ambient sound searching unit, for for each terminal unit, respectively according to the mark of the terminal unit, at the end of storage
In corresponding relation between the mark and ambient sound data of end equipment, the corresponding ambient sound data of the terminal unit are searched;
Ambient sound updating block, for for each terminal unit, the ring for being reported according to the terminal unit for receiving respectively
Border sound data, update ambient sound searching unit finds, the corresponding ambient sound data of the terminal unit;
The ambient sound acquiring unit 64, specifically for for first terminal equipment and each second terminal equipment, existing respectively
In corresponding relation between the mark and ambient sound data of the terminal unit of storage, corresponding ambient sound data are searched.
It is preferred that in the first request for receiving of first request reception unit 61, to carry first terminal equipment current
The ambient sound data of local environment;
The ambient sound acquiring unit 64, first specifically for receiving from the first request reception unit 61 carries in asking
Take out the ambient sound data that the first terminal equipment is presently in environment.
It is preferred that the ambient sound packet of terminal unit that the ambient sound acquiring unit 64 gets contains each sampled point pair
The sound frequency value answered;
The equipment determining unit 65 is specifically included:
First sampled point determination subelement, for each second terminal equipment found for equipment searching unit 63, point
Not in the ambient sound data of the second terminal equipment and the ambient sound data of first terminal equipment, each sampling of overlap is determined
Point;
Sound frequency value comparing subunit, each sampling of the overlap for determining for the first sampled point determination subelement
Point, is respectively compared the sound frequency value of the corresponding second terminal equipment of each sampled point and the sound frequency of first terminal equipment
Whether value is equal;
Equipment determination subelement, for the quantity that comparative result is equal sampled point overlap each sampled point it is total
When ratio in quantity has exceeded the proportion threshold value of setting, confirm that the second terminal equipment is close with first terminal device location.
It is preferred that the terminal positioning device also includes:
As a result feedback unit, for positioning result to be fed back to into the first terminal equipment.
More preferably, the terminal positioning device also includes:
Second request reception unit, for obtaining the first terminal equipment and equipment lookup in ambient sound acquiring unit 64
Each second terminal equipment that unit 63 finds is presently in before the ambient sound data of environment, receives the first terminal equipment
The second request for sending.
More preferably, the terminal positioning device also includes:
3rd request reception unit, for result feedback unit by positioning result feed back to the first terminal equipment it
Before, receive the second request that the first terminal equipment sends.
More preferably, the result feedback unit, specifically for determining equipment determining unit 65 with described first eventually
The mark of the close each second terminal equipment in end equipment position is sent to the first terminal equipment.
More preferably, the result feedback unit, specifically for pair each second terminal close with first terminal device location
The mark of equipment is respectively provided with the first label, and first label is used to characterize compared with other each second terminal equipment, and this
The corresponding second terminal equipment of one label is nearer apart from first terminal equipment, makes first terminal equipment show that what is found falls into institute
The mark of each second terminal equipment in the corresponding positioning region of the current positional information of first terminal equipment is stated, if second is whole
End equipment is provided with the first label, then show first label.
More preferably, the terminal positioning device also includes:
Relative distance value determining unit, for positioning result to be fed back to into the first terminal equipment in result feedback unit
Before, for each second terminal equipment close with the first terminal device location, respectively according to ambient sound acquiring unit 64
The ambient sound data of the first terminal equipment for getting and the ambient sound data of the second terminal equipment, determine second end
Relative distance value between end equipment and the first terminal equipment.
More preferably, the ambient sound packet of the terminal unit that the ambient sound acquiring unit 64 gets contains each sampled point pair
The intensity of sound value answered;
The relative distance value determining unit, specifically includes:
Second sampled point determination subelement, for setting for each second terminal close with the first terminal device location
It is standby, respectively in the ambient sound data of the second terminal equipment and the ambient sound data of first terminal equipment, determine overlap
Each sampled point;
First relative distance value determination subelement, for being directed to each of the overlap that the second sampled point determination subelement is determined
Sampled point is strong with the sound of first terminal equipment according to the intensity of sound value of the corresponding second terminal equipment of the sampled point respectively
Angle value, determines the corresponding relative distance value of the sampled point;
Second relative distance value determination subelement, for being determined according to the first relative distance value determination subelement, each
Sampled point distinguishes corresponding relative distance value, determines the relative distance between the second terminal equipment and the first terminal equipment
Value.
More preferably, the second relative distance value determination subelement, specifically for the first relative distance value is determined into son is single
Sampled point that unit determines, each distinguishes the meansigma methodss of corresponding relative distance value, be defined as the second terminal equipment with this first
Relative distance value between terminal unit.
More preferably, the result feedback unit, specifically for according to the relative distance value between first terminal equipment by
It is little to be ranked up the mark of each second terminal equipment close with the first terminal device location to big order, and will
The mark of each second terminal equipment after sequence is sent to the first terminal equipment.
More preferably, the result feedback unit, specifically for according to the second terminal close with first terminal device location
The posterior order of mark of other each second terminal equipment of the mark of equipment formerly, in positioning region, by find each the
The mark of two terminal units is ranked up, and according to the relative distance between first terminal equipment ascending order is worth, will
The mark of each second terminal equipment close with the first terminal device location is ranked up, and by sequence after each second
The mark of terminal unit is sent to the first terminal equipment.
It is preferred that the terminal positioning device also includes:
The nearest terminal unit determining unit of distance value, for positioning result to be fed back to into described first in result feedback unit
Before terminal unit, in each second terminal equipment close with first terminal device location, determine and set with the first terminal
The nearest second terminal equipment of relative distance value between standby, to the mark of the second terminal equipment the second label is arranged, described
Second label is used to characterize compared with other each second terminal equipment, the corresponding second terminal equipment distance first of second label
Terminal unit recently, makes first terminal equipment show the second terminal equipment nearest with first terminal equipment relative distance value
Mark, if the second terminal equipment is provided with the second label, shows second label.
It is preferred that terminal unit is designated the corresponding device identification of terminal unit, or equipment corresponding with terminal unit
The ID of mark binding.
The terminal positioning device that the embodiment of the present application five is provided can be realized by computer program.Those skilled in the art
It should be appreciated that above-mentioned dividing elements mode is only the one kind in plurality of cells dividing mode, if being divided into other lists
Unit or without inner cells, as long as terminal positioning device has above-mentioned functions, all should be within the protection domain of the application.
In the embodiment of the present application five, terminal positioning device can be arranged in location-server, that is to say, that positioning service
Utensil has the above-mentioned functions of terminal positioning device, additionally, terminal positioning device can also be arranged in other servers.
It will be understood by those skilled in the art that embodiments herein can be provided as method, device(Equipment)Or computer
Program product.Therefore, the application can be using complete hardware embodiment, complete software embodiment or with reference to software and hardware aspect
Embodiment form.And, the application can be adopted and wherein include the meter of computer usable program code at one or more
Calculation machine usable storage medium(Including but not limited to disk memory, CD-ROM, optical memory etc.)The computer journey of upper enforcement
The form of sequence product.
The application is with reference to method, the device according to the embodiment of the present application(Equipment)With the flow chart of computer program
And/or block diagram is describing.It should be understood that can be by each flow process in computer program instructions flowchart and/or block diagram
And/or the combination of square frame and flow chart and/or the flow process in block diagram and/or square frame.These computer programs can be provided to refer to
The processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is made to produce
One machine so that produced for realizing by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of specifying in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring to
Make the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or
The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one
The step of function of specifying in individual square frame or multiple square frames.
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to include excellent
Select embodiment and fall into having altered and changing for the application scope.Obviously, those skilled in the art can be to the application
Various changes and modification are carried out without deviating from spirit and scope.So, if these modifications of the application and modification
Belong within the scope of the application claim and its equivalent technologies, then the application is also intended to exist comprising these changes and modification
It is interior.