CN103685428B - A method and an apparatus for positioning a terminal - Google Patents

A method and an apparatus for positioning a terminal Download PDF

Info

Publication number
CN103685428B
CN103685428B CN201210362322.1A CN201210362322A CN103685428B CN 103685428 B CN103685428 B CN 103685428B CN 201210362322 A CN201210362322 A CN 201210362322A CN 103685428 B CN103685428 B CN 103685428B
Authority
CN
China
Prior art keywords
terminal
terminal equipment
ambient sound
unit
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210362322.1A
Other languages
Chinese (zh)
Other versions
CN103685428A (en
Inventor
孟超峰
陈晓薇
陈凌云
祝枫
胡研
夏炎
罗凯耀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201210362322.1A priority Critical patent/CN103685428B/en
Publication of CN103685428A publication Critical patent/CN103685428A/en
Application granted granted Critical
Publication of CN103685428B publication Critical patent/CN103685428B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Navigation (AREA)

Abstract

The application discloses a method and an apparatus for positioning a terminal. The method comprises steps of: receiving a first request transmitted from a terminal device; acquiring the current positional information of the first terminal device; finding various second terminal devices located in a positioning area corresponding to the current positional information of the first terminal device; acquiring environmental sound data of environment where the first terminal device and found second terminal devices are arranged; determining second terminal devices near the position of the first terminal device from the found second terminal devices according to the acquired environmental sound data. The technical scheme of the application resolves a problem of low terminal positioning precision in the prior art.

Description

Method of locating terminal and device
Technical field
The application is related to field of locating technology, more particularly to a kind of method of locating terminal and device.
Background technology
In prior art, if the user of using terminal equipment wants to be known which terminal unit nearby also have, need to lead to Cross the terminal unit for using and send terminal positioning request to the location-server of network side, location-server passes through global positioning system System(GPS, Global Positioning System)Positioning mode or architecture method, orient that to fall into the terminal unit current Other each terminal units in the corresponding positioning region in present position, then give the use by the identification feedback of each terminal oriented The terminal unit that family uses.Following is a brief introduction of lower GPS location method and architecture method.
First, GPS location method.
The coordinate for itself being presently in position is periodically reported positioning service by the GPS module in each terminal unit Device, location-server is received after the terminal positioning request of terminal unit A transmissions, and other-end equipment is presently in into the seat of position The coordinate that mark is presently in position with terminal unit A respectively is compared, and is oriented with the coordinate difference between terminal unit A pre- If coordinate difference threshold value in other each terminal units, then the terminal unit oriented just falls into the current institutes of terminal unit A In the corresponding positioning region in place position.
2nd, architecture method.
When terminal unit is in interior, by the given position clothes of the mark and reporting signal strength of itself current own base station Business device, location-server is received after the terminal positioning request of terminal unit A transmissions, according to the current own base stations of terminal unit A Mark and signal intensity, it becomes possible to calculate the coordinate of terminal unit A, location-server is by the seat of other-end equipment Mark is compared respectively with the coordinate of terminal unit A, is oriented with the coordinate difference between terminal unit A in default coordinate difference limen Other each terminal units in value, then the terminal unit oriented just falls into terminal unit A, and to be presently in position corresponding In positioning region.
Wherein, in above two localization method, it is with terminal that terminal unit A is presently in the corresponding positioning region in position Device A be presently in position coordinate be the center of circle, the border circular areas with above-mentioned default coordinate difference threshold value as radius.Positioning service The identification feedback of each terminal unit oriented is given terminal unit A by device, then the user of using terminal device A is just able to know that Nearby there is which terminal unit.
In the prior art, user is in using terminal equipment, and which terminal unit is needed not only to find nearby has, may Still want to it is to be understood which terminal unit with itself apart from closer, such that it is able to the business such as carry out data transmission.But above-mentioned In two kinds of localization methods, typically only 10 meters of the precision of GPS location method, the error of architecture method is bigger, or even has hundreds of meters Error, that is to say, that when the actual range between two terminal units is closer, location-server determine the two The coordinate of terminal unit may be equal, therefore when the terminal unit that location-server is oriented has multiple, location-server is just The terminal unit which terminal unit can not exactly be oriented apart from the request positioning is closer so that the precision of terminal positioning Than relatively low.
The content of the invention
In view of this, the embodiment of the present application provides a kind of method of locating terminal and device, for solving prior art in eventually The problem for holding the ratio of precision of positioning relatively low.
The embodiment of the present application is achieved through the following technical solutions:
A kind of method of locating terminal, the method comprising the steps of:Receive the first request that first terminal equipment sends;Obtain the The current positional information of one terminal unit;Lookup falls into the current corresponding positioning region of positional information of the first terminal equipment Interior each second terminal equipment;The each second terminal equipment for obtaining the first terminal equipment and finding is presently in environment Ambient sound data;According to each ambient sound data for getting, determine in each second terminal for finding with described first eventually The close each second terminal equipment in end equipment position.
A kind of terminal positioning device, including:First request reception unit, for receiving the first of the transmission of first terminal equipment Request;Positional information obtaining unit, the positional information current for obtaining first terminal equipment;Equipment searching unit, for looking into Look for each second terminal equipment fallen in the current corresponding positioning region of positional information of the first terminal equipment;Ambient sound is obtained Unit is taken, for obtaining each second terminal equipment that the first terminal equipment and equipment searching unit find ring is presently in The ambient sound data in border;
Equipment determining unit, for each ambient sound data got according to ambient sound acquiring unit, searches single in equipment The each second terminal equipment close with the first terminal device location is determined in each second terminal that unit finds.
In the embodiment of the present application technical scheme, after the first request for receiving the transmission of first terminal equipment, the is first obtained The current positional information of one terminal unit, lookup falls into the current corresponding positioning region of positional information of the first terminal equipment Interior each second terminal equipment, each second terminal equipment for the first terminal equipment then being obtained again and being found is presently in The ambient sound data of environment, according to each ambient sound data for getting, determine in each second terminal for finding with it is described The close each second terminal equipment of first terminal device location, and from prior art, if the ambient sound of two terminal units Data closely, then show that the distance between the two terminal units are very near, therefore the embodiment of the present application technical scheme is carried Go out when terminal positioning is carried out, first carry out fuzzy positioning, then again in the fuzzy each second terminal equipment oriented, according to ring Border sound data are accurately positioned, and are oriented with first terminal equipment apart from closer each second terminal equipment, so as to effective Improve the precision of terminal positioning.
Other features and advantage will be illustrated in the following description, also, the partly change from description Obtain it is clear that or being understood by implementing the application.The purpose of the application and other advantages can be by the explanations write Specifically noted structure is realizing and obtain in book, claims and accompanying drawing.
Description of the drawings
Accompanying drawing is used for providing further understanding of the present application, and constitutes a part for description, implements with the application Example for explaining the application, does not constitute the restriction to the application together.In the accompanying drawings:
Fig. 1 is method of locating terminal schematic flow sheet in the embodiment of the present application one;
Fig. 2 is that in the embodiment of the present application one, terminal unit uploads the schematic diagram of ambient sound data;
Fig. 3 is that method of locating terminal implements schematic flow sheet one in the embodiment of the present application two;
Fig. 4 is that method of locating terminal implements schematic flow sheet two in the embodiment of the present application three;
Fig. 5 is that method of locating terminal implements schematic flow sheet three in the embodiment of the present application four;
Fig. 6 is terminal positioning apparatus structure schematic diagram in the embodiment of the present application five.
Specific embodiment
The preferred embodiment of the application is illustrated below in conjunction with Figure of description, it will be appreciated that described herein Preferred embodiment is merely to illustrate and explains the application, is not used to limit the application.And in the case where not conflicting, this Shen Please in embodiment and the feature in embodiment can be mutually combined.
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 two
When positioning flow is above-mentioned the first positioning flow, and it is above-mentioned 5th kind of feedback side to feed back the mode of positioning result During formula, method of locating terminal is implemented as shown in figure 3, its concrete handling process is as follows:
Step 31, certain application in first terminal equipment with positioning function is opened using the user of first terminal equipment When, first terminal equipment sends first and asks to terminal positioning device;
Step 32, terminal positioning device is received after the first request, and lookup falls into the current position of the first terminal equipment Each second terminal equipment in the corresponding positioning region of information;
Step 33, terminal positioning device obtains first terminal equipment and is presently in ring with each second terminal equipment for finding The ambient sound data in border;
Step 34, terminal positioning device is true in each second terminal for finding according to each ambient sound data for getting Make each second terminal equipment close with first terminal device location;
Step 35, terminal positioning device determine with the close each second terminal equipment of first terminal device location with this first Relative distance value between terminal unit;
Step 36, terminal positioning device in each second terminal equipment close with first terminal device location, determine with The nearest second terminal equipment of relative distance value between the first terminal equipment;
Step 37, the mark of the terminal positioning device second terminal equipment nearest to the relative distance value determined arranges the Two labels, wherein, the second label is used to characterize compared with other each second terminal equipment, the corresponding second terminal of the second label Equipment is nearest apart from first terminal equipment;
Step 38, terminal positioning device sets the nearest second terminal of the relative distance value between the first terminal equipment Standby mark and the second label correspondence of setting is sent to first terminal equipment.
Embodiment three
When positioning flow is above-mentioned second positioning flow, and it is above-mentioned 5th kind of feedback side to feed back the mode of positioning result During formula, method of locating terminal is implemented as shown in figure 4, its concrete handling process is as follows:
Step 41, certain application in first terminal equipment with positioning function is opened using the user of first terminal equipment When, first terminal equipment sends first and asks to terminal positioning device;
Step 42, terminal positioning device is received after the first request, and lookup falls into the current position of the first terminal equipment Each second terminal equipment in the corresponding positioning region of information;
Step 43, if using the user of first terminal equipment want to know near terminal unit in which terminal unit away from It is closer from the first terminal equipment, then first terminal equipment will to be triggered and send the second request to terminal positioning device;
Step 44, terminal positioning device is received after the second request, obtains first terminal equipment and find each second Terminal unit is presently in the ambient sound data of environment;
Step 45, terminal positioning device is true in each second terminal for finding according to each ambient sound data for getting Make each second terminal equipment close with first terminal device location;
Step 46, terminal positioning device determine with the close each second terminal equipment of first terminal device location with this first Relative distance value between terminal unit;
Step 47, terminal positioning device is determined in each second terminal equipment close with first terminal device location The second terminal equipment nearest with the relative distance value between the first terminal equipment;
Step 48, the mark of the terminal positioning device second terminal equipment nearest to the relative distance value determined arranges the Two labels, wherein, the second label is used to characterize compared with other each second terminal equipment, the corresponding second terminal of the second label Equipment is nearest apart from first terminal equipment;
Step 49, terminal positioning device sets the nearest second terminal of the relative distance value between the first terminal equipment Standby mark and the second label correspondence of setting is sent to first terminal equipment.
Example IV
When positioning flow is above-mentioned the third positioning flow, and it is above-mentioned 5th kind of feedback side to feed back the mode of positioning result During formula, method of locating terminal is implemented as shown in figure 5, its concrete handling process is as follows:
Step 51, certain application in first terminal equipment with positioning function is opened using the user of first terminal equipment When, first terminal equipment sends first and asks to terminal positioning device;
Step 52, terminal positioning device is received after the first request, and lookup falls into the current position of the first terminal equipment Each second terminal equipment in the corresponding positioning region of information;
Step 53, terminal positioning device obtains first terminal equipment and is presently in ring with each second terminal equipment for finding The ambient sound data in border;
Step 54, terminal positioning device is true in each second terminal for finding according to each ambient sound data for getting Make each second terminal equipment close with first terminal device location;
Step 55, terminal positioning device determine with the close each second terminal equipment of first terminal device location with this first Relative distance value between terminal unit;
Step 56, terminal positioning device is determined in each second terminal equipment close with first terminal device location The second terminal equipment nearest with the relative distance value between the first terminal equipment;
Step 57, if using the user of first terminal equipment want to know near terminal unit in which terminal unit away from It is closer from the first terminal equipment, then first terminal equipment will to be triggered and send the second request to terminal positioning device;
Step 58, terminal positioning device is received after the second request, the second nearest end of the relative distance value to determining The mark of end equipment arranges the second label, wherein, the second label is used to characterize compared with other each second terminal equipment, and this second The corresponding second terminal equipment of label is nearest apart from first terminal equipment;
Step 59, terminal positioning device sets the nearest second terminal of the relative distance value between the first terminal equipment Standby mark and the second label correspondence of setting is sent to first terminal equipment.
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.

Claims (28)

1. a kind of method of locating terminal, it is characterised in that include:
Receive the first request that first terminal equipment sends;
Obtain the current positional information of first terminal equipment;
Each second terminal equipment that lookup is fallen in the current corresponding positioning region of positional information of the first terminal equipment;
Obtain the first terminal equipment and each second terminal equipment for finding is presently in the ambient sound data of environment;Its In, the ambient sound data are voice data or frequency spectrum data;
According to each ambient sound data for getting, determine in each second terminal for finding and the first terminal equipment position Put close each second terminal equipment.
2. the method for claim 1, it is characterised in that the current positional information of the first terminal equipment is described the One terminal unit is presently in the coordinate of position;
The current positional information of first terminal equipment is obtained, is specifically included:
Obtain the coordinate for being presently in position that the first terminal equipment is reported;Or
The mark and signal intensity of the current own base station that the first terminal equipment is reported are obtained, and it is whole according to described first The mark and signal intensity of the current own base station of end equipment, calculates the coordinate that first terminal equipment is presently in position.
3. the method for claim 1, it is characterised in that obtain the first terminal equipment and second terminal equipment is current The ambient sound data of local environment, specifically include:
Ambient sound data acquisition request is sent respectively to first terminal equipment and each second terminal equipment for finding;
Receive first terminal equipment and each second terminal equipment for finding receive the ambient sound data acquisition request it Ambient sound data collecting afterwards and feed back, being presently in environment.
4. the method for claim 1, it is characterised in that also include:
Receive ambient sound data that each terminal unit is periodically reported, being presently in environment;
For each terminal unit, respectively according to the mark of the terminal unit, in the mark and ambient sound number of the terminal unit of storage In corresponding relation according between, the corresponding ambient sound data of the terminal unit are searched;And
The ambient sound data that the terminal unit according to receiving is reported, renewal finds, the corresponding environment of the terminal unit Sound data;
Obtain the first terminal equipment and second terminal equipment is presently in the ambient sound data of environment, specifically include:
For first terminal equipment and each second terminal equipment, respectively according to the mark of the terminal unit, set in the terminal of storage In corresponding relation between standby mark and ambient sound data, corresponding ambient sound data are searched.
5. the method for claim 1, it is characterised in that carry first in the first request that first terminal equipment sends Terminal unit is presently in the ambient sound data of environment;
The ambient sound data that the first terminal equipment is presently in environment are obtained, is specifically included:
The ambient sound data that the first terminal equipment is presently in environment are extracted from the first request for receiving.
6. the method for claim 1, it is characterised in that the ambient sound packet of the terminal unit for getting contains each sampling The corresponding sound frequency value of point;
According to each ambient sound data for getting, determine in each second terminal for finding and the first terminal equipment position Close each second terminal equipment is put, is specifically included:
For each second terminal equipment for finding, perform respectively:
In the ambient sound data of the second terminal equipment and the ambient sound data of first terminal equipment, respectively adopting for overlap is determined Sampling point;
Each sampled point of the overlap for determining, is respectively compared the sound audio of the corresponding second terminal equipment of each sampled point Whether rate value is equal with the sound frequency value of first terminal equipment;
If comparative result is the quantity of equal sampled point, the ratio in the total quantity of each sampled point for overlapping has exceeded setting Proportion threshold value, then confirm that the second terminal equipment is close with first terminal device location.
7. the method for claim 1, it is characterised in that also include:
Positioning result is fed back to into the first terminal equipment.
8. method as claimed in claim 7, it is characterised in that in each second for obtaining the first terminal equipment and finding Terminal unit is presently in before the ambient sound data of environment, is also included:
Receive the second request that the first terminal equipment sends.
9. method as claimed in claim 7, it is characterised in that by positioning result feed back to the first terminal equipment it Before, also include:
Receive the second request that the first terminal equipment sends.
10. method as claimed in claim 7, it is characterised in that positioning result is fed back to into the first terminal equipment, specifically Including:
The mark of each second terminal equipment close with the first terminal device location determined is sent to into described first Terminal unit.
11. methods as claimed in claim 7, it is characterised in that positioning result is fed back to into the first terminal equipment, specifically Including:
The mark of pair each second terminal equipment close with first terminal device location is respectively provided with the first label, first mark Sign for characterizing compared with other each second terminal equipment, the corresponding second terminal equipment of first label sets apart from first terminal It is standby nearer;
First terminal equipment is set to show that what is found falls into the current corresponding positioning area of positional information of the first terminal equipment The mark of each second terminal equipment in domain, if second terminal equipment is provided with the first label, shows first label.
12. methods as claimed in claim 7, it is characterised in that positioning result is fed back to before the first terminal equipment, Also include:
For each second terminal equipment close with the first terminal device location, respectively according to the first terminal for getting The ambient sound data of equipment and the ambient sound data of the second terminal equipment, determine the second terminal equipment and the first terminal Relative distance value between equipment.
13. methods as claimed in claim 12, it is characterised in that the ambient sound packet of the terminal unit for getting contains respectively to be adopted The corresponding intensity of sound value of sampling point;
For each second terminal equipment close with the first terminal device location, respectively according to the first terminal for getting The ambient sound data of equipment and the ambient sound data of the second terminal equipment, determine the second terminal equipment and the first terminal Relative distance value between equipment, specifically includes:
For each second terminal equipment close with the first terminal device location, perform respectively:
In the ambient sound data of the second terminal equipment and the ambient sound data of first terminal equipment, respectively adopting for overlap is determined Sampling point;
Each sampled point of the overlap for determining, respectively according to the intensity of sound of the corresponding second terminal equipment of the sampled point Value and the intensity of sound value of first terminal equipment, determine the corresponding relative distance value of the sampled point;
Corresponding relative distance value is distinguished according to sampled point determine, each, the second terminal equipment and the first terminal is determined Relative distance value between equipment.
14. methods as claimed in claim 13, it is characterised in that corresponding relative according to determine, each sampled point difference Distance value, determines the relative distance value between the second terminal equipment and the first terminal equipment, specifically includes:
Sampled point determine, each is distinguished into the meansigma methodss of corresponding relative distance value, is defined as the second terminal equipment and is somebody's turn to do Relative distance value between first terminal equipment.
15. methods as claimed in claim 12, it is characterised in that positioning result is fed back to into the first terminal equipment, tool Body includes:
It is worth ascending order according to the relative distance between first terminal equipment, will be with the first terminal device location The mark of close each second terminal equipment is ranked up;And
The mark of each second terminal equipment after by sequence is sent to the first terminal equipment.
16. methods as claimed in claim 12, it is characterised in that positioning result is fed back to into the first terminal equipment, tool Body includes:
According to the mark of the second terminal equipment close with first terminal device location formerly, in positioning region other each second The posterior order of mark of terminal unit, the mark of each second terminal equipment for finding is ranked up;And
It is worth ascending order according to the relative distance between first terminal equipment, will be with the first terminal device location The mark of close each second terminal equipment is ranked up;
The mark of each second terminal equipment after by sequence is sent to the first terminal equipment.
17. methods as claimed in claim 12, it is characterised in that by positioning result feed back to the first terminal equipment it Before, also include:
In each second terminal equipment close with first terminal device location, determine and the phase between the first terminal equipment The nearest second terminal equipment of value of adjusting the distance;
Second label is arranged to the mark of the second terminal equipment, second label is used for sign and sets with other each second terminals Standby to compare, the corresponding second terminal equipment of second label is nearest apart from first terminal equipment;
First terminal equipment is set to show the mark and of the second terminal equipment nearest with first terminal equipment relative distance value Two labels.
18. methods as described in any claim in claim 4,10~11,15~17, it is characterised in that terminal unit Be designated the corresponding device identification of terminal unit, or the ID of device identification corresponding with terminal unit binding.
19. a kind of terminal positioning devices, it is characterised in that include:
First request reception unit, for receiving the first request of first terminal equipment transmission;
Positional information obtaining unit, the positional information current for obtaining first terminal equipment;
Equipment searching unit, falls in the current corresponding positioning region of positional information of the first terminal equipment for searching Each second terminal equipment;
Ambient sound acquiring unit, sets for obtaining each second terminal that the first terminal equipment and equipment searching unit find The standby ambient sound data for being presently in environment;Wherein, the ambient sound data, are voice data or frequency spectrum data;
Equipment determining unit, for each ambient sound data got according to ambient sound acquiring unit, looks in equipment searching unit The each second terminal equipment close with the first terminal device location is determined in each second terminal for finding.
20. devices as claimed in claim 19, it is characterised in that the ambient sound acquiring unit is specifically included:
Obtain request and send subelement, for each second terminal equipment found to first terminal equipment and equipment searching unit Ambient sound data acquisition request is sent respectively;
Ambient sound receiving subelement, for receiving each second terminal equipment that first terminal equipment and equipment searching unit find Ambient sound data collecting after the ambient sound data acquisition request is received and feed back, being presently in environment.
21. devices as claimed in claim 19, it is characterised in that also include:
Ambient sound receiving unit, for receiving ambient sound data that each terminal unit is periodically reported, being presently in environment;
Ambient sound searching unit, for for each terminal unit, respectively according to the mark of the terminal unit, sets in the terminal of storage In corresponding relation between standby mark and ambient sound data, the corresponding ambient sound data of the terminal unit are searched;
Ambient sound updating block, for for each terminal unit, the ambient sound for being reported according to the terminal unit for receiving respectively Data, update ambient sound searching unit finds, the corresponding ambient sound data of the terminal unit;
The ambient sound acquiring unit, specifically for for first terminal equipment and each second terminal equipment, respectively in storage In corresponding relation between the mark and ambient sound data of terminal unit, corresponding ambient sound data are searched.
22. devices as claimed in claim 19, it is characterised in that the first request that first request reception unit is received In carry the ambient sound data that first terminal equipment is presently in environment;
The ambient sound acquiring unit, first specifically for receiving from the first request reception unit extracts described in asking First terminal equipment is presently in the ambient sound data of environment.
23. devices as claimed in claim 19, it is characterised in that also include:
As a result feedback unit, for positioning result to be fed back to into the first terminal equipment.
24. devices as claimed in claim 23, it is characterised in that also include:
Second request reception unit, for looking in the ambient sound acquiring unit acquisition first terminal equipment and equipment searching unit The each second terminal equipment for finding is presently in before the ambient sound data of environment, receive that the first terminal equipment sends the Two requests.
25. devices as claimed in claim 23, it is characterised in that also include:
3rd request reception unit, for before positioning result to be fed back to result feedback unit the first terminal equipment, Receive the second request that the first terminal equipment sends.
26. devices as claimed in claim 23, it is characterised in that the result feedback unit, it is whole with first specifically for pair The mark of the close each second terminal equipment in end equipment position is respectively provided with the first label, and first label is used to characterize and it He compares each second terminal equipment, and the corresponding second terminal equipment of first label is nearer apart from first terminal equipment, makes first Terminal unit shows fall in the current corresponding positioning region of positional information of the first terminal equipment each for finding The mark of two terminal units, if second terminal equipment is provided with the first label, shows first label.
27. devices as claimed in claim 23, it is characterised in that also include:
Relative distance value determining unit, for result feedback unit by positioning result feed back to the first terminal equipment it Before, for each second terminal equipment close with the first terminal device location, obtained according to ambient sound acquiring unit respectively The ambient sound data of the first terminal equipment for arriving and the ambient sound data of the second terminal equipment, determine that the second terminal sets It is standby with the relative distance value between the first terminal equipment.
28. devices as claimed in claim 27, it is characterised in that also include:
The nearest terminal unit determining unit of distance value, for positioning result to be fed back to into the first terminal in result feedback unit Before equipment, in each second terminal equipment close with first terminal device location, determine with the first terminal equipment it Between the nearest second terminal equipment of relative distance value, the second label is set to the mark of the second terminal equipment, described second Label is used to characterize compared with other each second terminal equipment, and the corresponding second terminal equipment of second label is apart from first terminal Equipment recently, makes first terminal equipment show the mark of the second terminal equipment nearest with first terminal equipment relative distance value Know, if the second terminal equipment is provided with the second label, show second label.
CN201210362322.1A 2012-09-25 2012-09-25 A method and an apparatus for positioning a terminal Active CN103685428B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210362322.1A CN103685428B (en) 2012-09-25 2012-09-25 A method and an apparatus for positioning a terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210362322.1A CN103685428B (en) 2012-09-25 2012-09-25 A method and an apparatus for positioning a terminal

Publications (2)

Publication Number Publication Date
CN103685428A CN103685428A (en) 2014-03-26
CN103685428B true CN103685428B (en) 2017-04-12

Family

ID=50321724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210362322.1A Active CN103685428B (en) 2012-09-25 2012-09-25 A method and an apparatus for positioning a terminal

Country Status (1)

Country Link
CN (1) CN103685428B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282841A (en) * 2014-06-12 2016-01-27 中兴通讯股份有限公司 Positioning method, positioning device, positioning center and terminal
CN105338480B (en) * 2014-06-24 2020-01-24 创新先进技术有限公司 LBS-based user matching method, message client, server and system
CN104469673B (en) * 2014-11-04 2018-11-30 深圳市同洲电子股份有限公司 A kind of method of locating terminal and device
JPWO2017026120A1 (en) * 2015-08-10 2018-05-24 セイコーエプソン株式会社 Location information utilization system, gateway device, and wearable device
CN106019218B (en) * 2016-05-13 2018-05-18 中科劲点(北京)科技有限公司 Terminal relative distance acquisition methods and the terminal that relative distance can be obtained
CN107968986A (en) * 2016-10-18 2018-04-27 中兴通讯股份有限公司 A kind of method of hotspot equipment and its locating wireless terminals
CN110324779A (en) * 2019-05-21 2019-10-11 平安普惠企业管理有限公司 Location data monitoring method and relevant device based on information security
CN110557506B (en) * 2019-08-30 2022-03-25 维沃移动通信有限公司 Electric quantity distribution method and device
CN114171060A (en) * 2021-12-08 2022-03-11 广州彩熠灯光股份有限公司 Lamp management method, device and computer program product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635613A (en) * 2008-07-25 2010-01-27 杨缙杰 Application method for capturing real-time audio and video information at any particular place
CN101902503A (en) * 2010-08-16 2010-12-01 任明和 Terminal location-based information inquiry platform and charging method thereof
CN101953197A (en) * 2007-12-28 2011-01-19 探空气球无线公司 Providing WI-FI location information to a mobile device in order to estimate its position

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130325565A1 (en) * 2010-05-05 2013-12-05 Gisela Toussaint Method for locating a parking space that is suitable for parking in the vicinity of the vehicle, and a vehicle assistance system that is suitable for this purpose

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101953197A (en) * 2007-12-28 2011-01-19 探空气球无线公司 Providing WI-FI location information to a mobile device in order to estimate its position
CN101635613A (en) * 2008-07-25 2010-01-27 杨缙杰 Application method for capturing real-time audio and video information at any particular place
CN101902503A (en) * 2010-08-16 2010-12-01 任明和 Terminal location-based information inquiry platform and charging method thereof

Also Published As

Publication number Publication date
CN103685428A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN103685428B (en) A method and an apparatus for positioning a terminal
US20200408873A1 (en) Determining a location of a transmitter device
EP3036557B1 (en) System and method for selecting a wi-fi access point for position determination
US8326320B2 (en) Method and locating device for locating at least one mobile radio subscriber
US8867313B1 (en) Audio based localization
CN105792129B (en) Localization method and device under a kind of nlos environment
US9609473B2 (en) Service processing method and apparatus based on location information
CN103731800B (en) Method of locating terminal and device
US8862154B2 (en) Location measuring method and apparatus using access point for wireless local area network service
US8433250B2 (en) Estimating whether a wireless terminal is indoors using pattern classification
CN108322855B (en) Method and device for acquiring audio information
CN104427610B (en) WiFi indoor orientation methods and server
CN111935820B (en) Positioning implementation method based on wireless network and related equipment
CN103645631B (en) Temporal frequency calibration steps and service system between a kind of remote time-frequency laboratory
CN103561387A (en) Indoor positioning method and system based on TDoA
CN103581828A (en) Method for inquiring nearby mobile terminals, server and system
CN103781095A (en) Calibration method for TDOA (Time Difference Of Arrival) measurement errors, transmit points and system
CN105204002B (en) A kind of sound localization method and system
CN111615048A (en) Positioning method, positioning device, electronic equipment and storage medium
CN100446623C (en) OTDOA positioning method and equipment
CN105451329A (en) Location method and electronic device
CN105979489A (en) Floor positioning method and device
WO2016070347A1 (en) Position information acquisition method and device
CN105357640B (en) The method and apparatus of positioning
CN105635958B (en) A kind of position data collecting method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1193276

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1193276

Country of ref document: HK

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191211

Address after: P.O. Box 31119, grand exhibition hall, hibiscus street, 802 West Bay Road, Grand Cayman, Cayman Islands

Patentee after: Innovative advanced technology Co., Ltd

Address before: Cayman Islands Grand Cayman capital building, a four storey No. 847 mailbox

Patentee before: Alibaba Group Holding Co., Ltd.