CN103813441B - Terminal positioning method and apparatus - Google Patents

Terminal positioning method and apparatus Download PDF

Info

Publication number
CN103813441B
CN103813441B CN201210443866.0A CN201210443866A CN103813441B CN 103813441 B CN103813441 B CN 103813441B CN 201210443866 A CN201210443866 A CN 201210443866A CN 103813441 B CN103813441 B CN 103813441B
Authority
CN
China
Prior art keywords
terminal
location request
sound volume
location
ambient sound
Prior art date
Application number
CN201210443866.0A
Other languages
Chinese (zh)
Other versions
CN103813441A (en
Inventor
孟超峰
陈晓薇
陈凌云
祝枫
许明星
王磊
夏炎
许吉
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Priority to CN201210443866.0A priority Critical patent/CN103813441B/en
Publication of CN103813441A publication Critical patent/CN103813441A/en
Application granted granted Critical
Publication of CN103813441B publication Critical patent/CN103813441B/en

Links

Abstract

The application discloses a terminal positioning method and apparatus, so that a problem of low terminal positioning precision in the prior art can be solved. The method comprises the following steps that: when a first terminal monitors sudden increasing of an ambient sound volume, a first positioning request is sent to a positioning server; the positioning server searches a second positioning request meeting a designated condition according to a first receiving time of first positioning request reception; and terminal identification information of a second terminal sending the second positioning request meeting the designated condition is returned to the first terminal. And a second receiving time of the second positioning request meeting the designated condition is close to the first receiving time. According to the scheme, if monitoring sudden increasing of an ambient sound volume, two terminals send positioning requests; if receiving times of the two positioning requests by a positioning server are close to each other, the distance between the two terminals is determined to be short, thereby effectively improving the positioning precision of terminals with the short distance.

Description

A kind of method and device of terminal positioning

Technical field

The application is related to communication technical field, more particularly to a kind of method and device of terminal positioning.

Background technology

In the prior art, if the user of using terminal wants to know nearby also have which other-end, need to pass through The terminal for using sends Location Request to the location-server of network side, and location-server passes through global positioning system(GPS, Global Positioning System)Positioning mode or architecture method, orient fall into the terminal be presently in position correspondence Positioning region in each other-end, the terminal identification information of each other-end oriented is fed back to the user then makes Terminal.Following is a brief introduction of GPS location method and architecture method.

First, GPS location method.

The coordinate for itself being presently in position is periodically reported location-server by the GPS module in each terminal, fixed After position server receives the Location Request of terminal A transmission, the coordinate and terminal A that other-end is presently in position respectively is worked as The coordinate of front present position is compared, orient with the difference of the coordinate of terminal A in default coordinate difference threshold value it is each its His terminal, then each other-end oriented just falls into its that terminal A is presently in the corresponding positioning region in position His terminal.

2nd, architecture method.

When terminal is in interior, by the mark and reporting signal strength of itself current own base station to positioning service Device, after location-server receives the Location Request of terminal A transmission, according to the mark and signal of the current own base station of terminal A Intensity, calculates the coordinate of terminal A, and the coordinate of other-end equipment is carried out by location-server respectively with the coordinate of terminal A Compare, orient each other-end in default coordinate difference threshold value with the difference of the coordinate of terminal A, then that what is oriented is each Other-end just falls into the other-end that terminal A is presently in the corresponding positioning region in position.

Wherein, in above two localization method, terminal A is presently in the corresponding positioning region in position to be worked as with terminal A The coordinate of front present position be the center of circle, the border circular areas with above-mentioned default coordinate difference threshold value as radius.Location-server will be fixed After the terminal identification information of each other-end that position goes out feeds back to terminal A, can just be known nearby also using the user of terminal A There is which other-end.

In the prior art, user needs to know in using terminal, not only nearby also have which other-end, may be also Needs know near terminal in which with itself apart from closer, such that it is able to carry out with these closely located other-ends The business such as data transfer.But in above two localization method, typically only 10 meters of the precision of GPS location method, architecture The error of method is bigger, or even has the error of hundreds of meters, that is to say, that when the actual range between two terminals is closer, fixed The coordinate of the two terminals that position server is determined may be identical, therefore when the terminal that location-server is oriented has multiple When, it is closer apart from the terminal of the request positioning which terminal location-server cannot orient exactly so that terminal is fixed The precision of position is relatively low.

The content of the invention

The embodiment of the present application provides a kind of method and device of terminal positioning, to solve terminal positioning in prior art The relatively low problem of precision.

A kind of method of terminal positioning that the embodiment of the present application is provided, including:

Location-server receives the first Location Request that first terminal sends, wherein, first Location Request is described First terminal determines the ambient sound sound that current monitor is arrived during the ambient sound volume to itself local environment is monitored When amount is more than the first given threshold with the ratio for specifying the average environment sound volume monitored in the time period before, to the positioning What server sent;And

According to first time of reception for receiving first Location Request, in the second Location Request for receiving, look into The second Location Request for meeting specified requirementss is looked for, wherein, for second Location Request for receiving, second Location Request Be send second Location Request second terminal during the ambient sound volume to itself local environment is monitored, really The ambient sound volume that monitors before settled with specify the ratio of the average environment sound volume monitored in the time period before more than the During one given threshold, send to the location-server, if the location-server receives second Location Request Second time of reception was fallen in the poor scope of Preset Time with the time difference of first time of reception, it is determined that second positioning please Seeking Truth meets the second Location Request of specified requirementss;And

The terminal identification information for sending the second terminal of the second Location Request for meeting specified requirementss is returned into described first Terminal.

A kind of method of terminal positioning that the embodiment of the present application is provided, including:

First terminal monitors the ambient sound volume of itself local environment;And

Determine current monitor to ambient sound volume with specify the average environment sound volume that monitors in the time period before Ratio;And

When the ratio is more than the first given threshold, the first Location Request is sent to location-server, make the positioning Server, is searched according to first time of reception for receiving first Location Request in the second Location Request for receiving Meet the second Location Request of specified requirementss, and the terminal of the second terminal of the second Location Request for meeting specified requirementss will be sent Identification information returns the first terminal, wherein, the location-server is directed to second Location Request for receiving, if The time difference of second time of reception and first time of reception that receive second Location Request falls into the poor model of Preset Time In enclosing, it is determined that second Location Request is the second Location Request for meeting specified requirementss, and second Location Request is to send to be somebody's turn to do The second terminal of the second Location Request is during the ambient sound volume to itself local environment is monitored, it is determined that current supervise The ambient sound volume controlled sets threshold with the ratio for specifying the average environment sound volume monitored in the time period before more than first During value, send to the location-server;

The first terminal receives the terminal identification information of the second terminal that the location-server is returned.

A kind of method of terminal Trigger Function that the embodiment of the present application is provided, including:

The ambient sound volume of terminal monitoring itself local environment;And

Determine current monitor to ambient sound volume with specify the average environment sound volume that monitors in the time period before Ratio;And

When the ratio is more than the first given threshold, preset function is triggered.

A kind of device of terminal positioning that the embodiment of the present application is provided, including:

Receiver module, for receiving the first Location Request of first terminal transmission, wherein, first Location Request is institute First terminal is stated during the ambient sound volume to itself local environment is monitored, the ambient sound that current monitor is arrived is determined What volume was sent when being more than the first given threshold with the ratio for specifying the average environment sound volume monitored in the time period before;

Searching modul, for according to first time of reception for receiving first Location Request, in second for receiving In Location Request, lookup meets the second Location Request of specified requirementss, wherein, for second Location Request for receiving, Second Location Request is that the second terminal for sending second Location Request is carried out in the ambient sound volume to itself local environment During monitoring, determine current monitor to ambient sound volume with specify the average environment sound sound that monitors in the time period before The ratio of amount is sent when being more than the first given threshold, if receive second time of reception of second Location Request with it is described The time difference of first time of reception is fallen in Preset Time difference scope, it is determined that second Location Request meets specified requirementss Second Location Request;

Sending module, for the terminal identification information of the second terminal by the second Location Request for meeting specified requirementss is sent Return the first terminal.

A kind of terminal that the embodiment of the present application is provided, including:

Monitoring module, for monitoring the ambient sound volume of itself local environment;

Determining module, for determine current monitor to ambient sound volume with before specify the time period in monitor it is average The ratio of ambient sound volume;

Trigger module, for when the ratio is more than the first given threshold, sending the first positioning to location-server please Ask, the location-server is made according to first time of reception for receiving first Location Request, it is fixed in second for receiving In the request of position, lookup meets the second Location Request of specified requirementss, and will send the second Location Request for meeting specified requirementss The terminal identification information of second terminal is returned, wherein, the location-server is directed to second Location Request for receiving, such as It is poor that the time difference of second time of reception and first time of reception that fruit receives second Location Request falls into Preset Time In the range of, it is determined that second Location Request is the second Location Request for meeting specified requirementss, and second Location Request is to send The second terminal of second Location Request during the ambient sound volume to itself local environment is monitored, it is determined that currently The ambient sound volume for monitoring is set more than first with the ratio for specifying the average environment sound volume monitored in the time period before During threshold value, send to the location-server;

Receiver module, for receiving the terminal identification information of the second terminal that the location-server is returned.

A kind of terminal that the embodiment of the present application is provided, including:

Monitoring module, for monitoring the ambient sound volume of itself local environment;

Determining module, for determine current monitor to ambient sound volume with before specify the time period in monitor it is average The ratio of ambient sound volume;

Trigger module, for when the ratio is more than the first given threshold, triggering preset function.

The embodiment of the present application provides a kind of method and device of terminal positioning, and the method first terminal is monitoring ambient sound When volume increases suddenly, the first Location Request is sent to location-server, location-server is according to receiving the first Location Request First time of reception, lookup meets the second Location Request of specified requirementss, and will send this and meet the second fixed of specified requirementss The terminal identification information of the second terminal of position request returns first terminal, wherein, meet the second Location Request of specified requirementss Second time of reception is close to first time of reception.By said method, if two terminals monitor ambient sound volume and dash forward So increase, then can all send Location Request, and if the time of reception that location-server receives the two Location Requests also compare Be closer to, then the two terminals illustrated in same environment, and then can determine the two terminals at a distance of relatively near, so as to have The positioning precision that improve to nearer terminal apart of effect.

Description of the drawings

The terminal positioning process that Fig. 1 is provided for the embodiment of the present application;

The detailed process of the terminal positioning that Fig. 2 is provided for the embodiment of the present application;

The process of the terminal Trigger Function that Fig. 3 is provided for the embodiment of the present application;

The apparatus structure schematic diagram of the terminal positioning that Fig. 4 is provided for the embodiment of the present application;

The structural representation of the first terminal that Fig. 5 is provided for the embodiment of the present application;

The structural representation of second terminal that Fig. 6 is provided for the embodiment of the present application.

Specific embodiment

In the embodiment of the present application by terminal monitoring itself local environment ambient sound volume, if monitor ambient sound volume dash forward So increase, then Location Request is sent to location-server.As the propagation distance of sound is very limited, the volume of sound is in sound Decay in communication process is very big, therefore, location-server is two or more fixed for what the time of reception was closer to Position request, then can determine the terminal for sending these Location Requests in same environment, and then determine these terminals apart It is relatively near, effectively can improve to the positioning precision at a distance of nearer terminal so as to pass through the method.

The embodiment of the present application is described in detail with reference to Figure of description.

The terminal positioning process that Fig. 1 is provided for the embodiment of the present application, specifically includes following steps:

S101:First terminal monitors the ambient sound volume of itself local environment.

In the embodiment of the present application, it is monitored by the ambient sound volume of terminal-pair its own local environment.

For example, there is terminal A, terminal B, terminal C totally 3 terminals, then terminal A, terminal B, terminal C are respectively to each residing The ambient sound volume of environment is monitored.

Wherein, the terminal described in the embodiment of the present application is included but is not limited to:Mobile terminal, personal computer (Personal Computer, PC), and the terminal of other forms.Specifically, terminal can be filled by the audio collection of itself Put the ambient sound volume to its own local environment to be monitored.Such as, terminal can be acquired to ambient sound by mike, and Ambient sound volume to collecting is monitored.

S102:First terminal determine current monitor to ambient sound volume with before specify the time period in monitor it is average The ratio of ambient sound volume.

In the embodiment of the present application, terminal is can determine in ambient sound volume and specified time period before that current monitor is arrived The ratio of the average environment sound volume for monitoring, it is determined that the ratio can reflect that the terminal is presently in the ambient sound of environment The variation tendency and intensity of variation of volume.Specifically, if the ratio is 1, illustrate that terminal is presently in the environment of environment Sound volume keeps constant, if the ratio is less than 1, illustrates that terminal is presently in the ambient sound volume of environment and reduces, such as Really the ratio is more than 1, then illustrate that terminal is presently in the ambient sound volume of environment and increases.And, the ratio is closer to 1, illustrate that the intensity of variation of ambient sound volume is less, conversely, the intensity of variation of explanation ambient sound volume is bigger.

Wherein, the specified time period can be configured as needed, be such as set as 3 seconds, then in step s 102, first eventually End determine current monitor to ambient sound volume with 3 seconds before in the ratio of average environment sound volume that monitors.

Continue to use the example above, terminal A, terminal B, terminal C determine the ambient sound volume and 3 seconds before for each monitoring respectively The ratio of the average environment sound volume for inside each monitoring.

S103:When first terminal determines the ratio more than the first given threshold, first is sent to location-server and positioned Request.

Wherein, the first given threshold may be set to certain numerical value more than 1, such as be set as 1.3, then when terminal is by above-mentioned When the ratio that step S102 determines is more than 1.3, then illustrate that the terminal is presently in the ambient sound volume of environment and increases suddenly, trigger The terminal sends the operation of the first Location Request to location-server.

Continue to use the example above, terminal A is designated as into first terminal, by the other-end in addition to terminal A(That is terminal B and end End C)Second terminal is designated as.When using first terminal(Terminal A)User want to know which also has near the first terminal When other-end is nearer apart, artificial near first terminal an ambient sound volume for increasing suddenly, such as the use can be manufactured Can clap hands near first terminal at family.Now, first terminal can then monitor the ambient sound volume of its local environment and increase suddenly, Namely the ratio determined by above-mentioned steps S102 is more than the first given threshold, therefore, first terminal is sent to location-server Location Request, is designated as the first Location Request.

Assume that terminal A is relatively near apart with terminal B, terminal A is apart from each other with terminal C, that is, terminal A and terminal B are in same In one environment, terminal A is in different environment, then from terminal C:

As the user of using terminal A has artificially manufactured the ambient sound volume of unexpected increase in the environment residing for terminal A, And terminal B is in same environment with terminal A, therefore, the ambient sound volume of the unexpected increase equally also can be monitored by terminal B Arrive, that is, terminal B is also taken to positioning also greater than the first given threshold, therefore terminal B by the ratio that above-mentioned steps S102 determine Business device sends Location Request, is designated as the second Location Request;

As terminal A is in different environment from terminal C, therefore, the unexpected increase of user's manufacture of using terminal A When traveling in the environment residing for terminal C, its volume has decayed much ambient sound volume, so as to terminal C is by above-mentioned The ratio that step S102 determines would not be more than the first given threshold, or even terminal C will not monitor any ambient sound volume Change, therefore, terminal C also would not send Location Request to location-server.

That is, first terminal(Terminal A)The ambient sound sound of itself local environment is monitored by above-mentioned steps S101 ~ S103 Amount, if current monitor to ambient sound volume answer volume to be more than first with the average environment that monitors in the time period is specified before Given threshold, then send Location Request to location-server, be designated as the first Location Request.Likewise, second terminal(Terminal B and Terminal C)Similar method is also adopted by, the ambient sound volume of itself local environment is monitored, if the ambient sound sound that current monitor is arrived Amount answers volume more than the first given threshold with the average environment monitored in the time period is specified before, then also send out to location-server Location Request is sent, the second Location Request is designated as.

S104:Location-server according to first time of reception for receiving first Location Request, in second for receiving In Location Request, lookup meets the second Location Request of specified requirementss.

Wherein, for second Location Request for receiving, if location-server receives second Location Request The time difference of second time of reception and first time of reception fall in Preset Time difference scope, it is determined that second positioning please Seeking Truth meets the second Location Request of fixed condition, and second Location Request is the second terminal for sending second Location Request right During the ambient sound volume of itself local environment is monitored, determine current monitor to ambient sound volume with specify before When the ratio of the average environment sound volume monitored in the time period is more than the first given threshold, send to location-server.

Continue to use the example above, it is assumed that the Preset Time difference scope is 1 second, then as terminal A and terminal B are in same ring In border(At a distance of nearer), therefore although the ambient sound volume of the unexpected increase of the artificial manufacture of user of using terminal A is first by end End A is monitored, then is monitored by terminal B, but the two time difference for monitoring the ambient sound volume of the unexpected increase is not more than 1 Second, so as to location-server receives first time of reception of the first Location Request of terminal A transmission, sends out with terminal B is received The time difference of second time of reception of the second Location Request sent can fall into the Preset Time difference scope(1 second)It is interior, therefore, positioning Server determination is exactly the second Location Request for meeting specified requirementss by the second Location Request that terminal B sends.

S105:Location-server will send the terminal iidentification letter of the second terminal of the second Location Request for meeting specified requirementss Breath returns first terminal.

In the embodiment of the present application, location-server is whole by send second Location Request for meeting specified requirementss second Hold as the second terminal closer to the distance with the first terminal oriented, therefore, this will be sent and meet the second of specified requirementss The terminal identification information of the second terminal of Location Request returns to first terminal.The first terminal receives the end of the second terminal After the identification information of end, using the user of the first terminal would know that second terminal that the terminal identification information is identified be exactly away from Second terminal close to oneself, follow-up first terminal then can be based on the terminal identification informations of the second terminal, with second end Communication connection is set up at end, the business such as to carry out data transmission.

Continue to use the example above, location-server using send this meet specified requirementss the second Location Request terminal B as Orient with terminal A(First terminal)Second terminal closer to the distance, therefore, the terminal identification information of terminal B is returned eventually End A, the user of using terminal A would know that the nearer other-end of current distance oneself is exactly terminal B.It is follow-up then can be based on The terminal identification information of terminal B, using terminal A and terminal B such as carry out data transmission at the business.

Said method make use of that the propagation distance of sound is very limited, sound volume decays very during sound transmission Big characteristic, if two terminals monitor ambient sound volume and increase suddenly, can all send Location Request, and if positioning Server receive the time of reception of the two Location Requests also relatively, then illustrate the two terminals be in same environment In, and then the two terminals are can determine at a distance of relatively near, so as to effectively raise to the positioning precision at a distance of nearer terminal.

Preferably, in view of in actual applications it may happen that two or more terminals apart from each other by chance Simultaneously(Or when being close to)The situation of Location Request is sent to location-server, and based on method as shown in Figure 1, is positioned Server will be by the two or plural terminal positioning at a distance of nearer terminal.

For example, it is assumed that terminal A is relatively near apart with terminal B, terminal A is apart from each other with terminal C, if the use of using terminal A Want to know which terminal which nearby also has closer to the distance, then clap hands near terminal A, i.e., artificially manufacture one and increase suddenly in family Ambient sound volume, terminal A then based on the method shown in Fig. 1 to location-server send Location Request.Likewise, due to terminal B is relatively near apart with terminal A, therefore terminal B can also monitor the ambient sound volume of the unexpected increase, therefore also when being close to Location Request is sent to location-server.And if now the user of using terminal C has also artificially manufactured an increasing suddenly just Big ambient sound volume, then terminal C also can be to location-server transmission Location Request.Now, location-server have received altogether Terminal A, terminal B, terminal C send 3 Location Requests, and in this 3 Location Requests each two Location Request the time of reception Time difference each fall within Preset Time difference scope, i.e. the time of reception of this 3 Location Requests is very close to then location-server Will be using terminal B and terminal C all as at a distance of nearer terminal, this obviously reduces the precision of positioning with terminal A.

Therefore, in the embodiment of the present application, in order to further improve the precision of terminal positioning, location-server is being performed such as Before step S104 shown in Fig. 1, namely after location-server receives the first Location Request of first terminal transmission, searching Before meeting the second Location Request of specified requirementss, the current positional information of the first terminal to be also obtained, and determination is located at and is somebody's turn to do Each second terminal in the corresponding positioning region of the current positional information of first terminal.

After determining each second terminal in the corresponding positioning region of the current positional information of the first terminal, positioning Server is searched the method for the second Location Request for meeting specified requirementss in the second Location Request for receiving and is specially:Connecing In the second Location Request by each second terminal transmission determined for receiving, lookup meets the second positioning of specified requirementss please Ask.It is follow-up then the second terminal of second Location Request for meeting specified requirementss will be sent as orienting and first terminal phase Away from nearer terminal, the terminal identification information of the second terminal oriented is sent to into first terminal.

For example, it is assumed that terminal A is relatively near apart with terminal B, terminal A is apart from each other with terminal C, if the use of using terminal A Want to know which terminal which nearby also has closer to the distance, then clap hands near terminal A, i.e., artificially manufacture one and increase suddenly in family Ambient sound volume, terminal A then based on the method shown in Fig. 1 to location-server send Location Request, be designated as the first positioning please Ask.Likewise, due to terminal B with terminal A apart relatively closely, therefore terminal B can also monitor the ambient sound volume of the unexpected increase, Therefore also Location Request is sent to location-server at the moment being close to, is designated as the second Location Request.Assume now using terminal C User just also artificially manufactured the ambient sound volume of an increase suddenly, then terminal C also can send fixed to location-server Position request, is also denoted as the second Location Request.

After location-server receives first Location Request, the current positional information of terminal A is obtained, it is determined that being located at terminal Second terminal in the corresponding positioning region of A current positional information is terminal B, then meet the second of specified requirementss in lookup and determine During the request of position, only make a look up in the second Location Request sent by terminal B, it is thus possible to it is that distance is whole to orient terminal B End A nearer terminal, without terminal C is positioned to terminal A at a distance of nearer terminal.

As can be seen that by said method, even if two or more terminals apart from each other are by chance simultaneously(Or The close moment)Location Request be have sent to location-server, location-server still accurately can be oriented at a distance of nearer Terminal, further increase the precision of terminal positioning.

Further, location-server obtains the method for the current positional information of first terminal including but not limited to using existing The GPS location method having in technology or architecture method obtain the coordinate that first terminal is presently in position.Specifically, positioning service Device can obtain the coordinate for being presently in position that first terminal is reported, i.e. what the GPS module in acquisition first terminal was reported works as The coordinate of front present position.Location-server can also obtain the mark and signal of the current own base station that first terminal is reported Intensity, and according to the mark and signal intensity of the current own base station of first terminal, calculate first terminal and be presently in position Coordinate.That is, after location-server receives the first Location Request of first terminal transmission, can first using of the prior art GPS location method or architecture method carry out fuzzy positioning to first terminal, and coarse localization goes out near first terminal each the Two terminals, further according to first time of reception for receiving first Location Request, and receive by each second for orienting eventually Each second time of reception of the second Location Request that end sends, it is accurately positioned out with first terminal at a distance of nearer second terminal.

Further, since the embodiment of the present application be using sound propagation distance is very limited, sound volume is passed in sound Decay during broadcasting very big characteristic, the terminal positioning realized, therefore, in order to further improve the precision of terminal positioning, lead to When crossing said method and positioning to the first terminal for initiating positioning, the environment that the first terminal is presently in is needed to meet so Requirement:The ambient sound volume that first terminal is presently in environment is relatively low, or, first terminal is presently in the ambient sound of environment The undulatory property of volume is relatively low(That is ambient sound volume is relatively stable).

Therefore, during shown in Fig. 1, first terminal is monitored in the ambient sound volume to itself local environment During(Step S101), it is determined that current monitor to ambient sound volume the average ring that monitored in the time period was specified with before The ratio of border sound volume(Step S102)Before, specify the average environment sound volume monitored in the time period little before being also predefined In the second given threshold, or, it is determined that specifying the standard deviation of the ambient sound volume monitored in the time period to set less than the 3rd before Determine threshold value.That is, if specifying the average environment sound volume monitored in the time period less than the second given threshold before, illustrate to work as The ambient sound volume of front local environment is relatively low, if specifying the standard deviation of the ambient sound volume monitored in the time period to be less than before 3rd given threshold, then the undulatory property of the ambient sound volume that explanation is presently in environment is relatively low, therefore, when first terminal is monitored Ambient sound volume when meeting above-mentioned two condition, then can proceed follow-up step, if be unsatisfactory for, illustrate current The ambient sound volume ratio of local environment is more noisy, is unsuitable for being positioned using the method shown in Fig. 1, such that it is able to still using existing The method for having technology is positioned.

Certainly, above-mentioned two condition can also combine while using, i.e. specify the time period before first terminal determines The average environment sound volume for inside monitoring is less than the second given threshold, and, it is determined that specifying the environment monitored in the time period before When the standard deviation of sound volume is less than three given thresholds, proceeds follow-up step S102, just no longer repeat one by one here.

The detailed process of the terminal positioning that Fig. 2 is provided for the embodiment of the present application, specifically includes following steps:

S201:First terminal monitors the ambient sound volume of itself local environment.

S202:The average environment sound volume monitored in the time period is specified before judgement whether less than the second given threshold, If so, then execution step S203, otherwise execution step S209.

S203:The standard deviation of the ambient sound volume monitored in the time period is specified before judgement whether less than the 3rd setting threshold Value, if so, then execution step S204, otherwise execution step S209.

S204:Determine current monitor to ambient sound volume with specify the average environment sound sound that monitors in the time period before The ratio of amount.

S205:When first terminal determines the ratio more than the first given threshold, first is sent to location-server and positioned Request.

S206:Location-server obtains the current positional information of the first terminal, and determines current positioned at the first terminal The corresponding positioning region of positional information in each second terminal.

S207:Location-server is looked in the second Location Request sent by each second terminal determined for receiving Look for the second Location Request for meeting specified requirementss.

Wherein, for second Location Request for receiving, second Location Request is to send second Location Request Second terminal during the ambient sound volume to itself local environment is monitored, determine the ambient sound that current monitor is arrived When volume is more than the first given threshold with the ratio for specifying the average environment sound volume monitored in the time period before, to positioning clothes Business device sends, if location-server receives second time of reception and first time of reception of second Location Request Time difference is fallen in Preset Time difference scope, it is determined that second Location Request is the second Location Request for meeting fixed condition.

S208:Location-server will send the terminal iidentification letter of the second terminal of the second Location Request for meeting specified requirementss Breath returns first terminal.

S209:Positioned using GPS location method or architecture method.

It is more than the method for locating terminal realized based on ambient sound volume of the embodiment of the present application offer.In view of due to mesh The terminal such as front mobile terminal or PC is required to user by the input such as keyboard, mouse, touch screen when certain function is triggered Device is triggered, but with the diversified development of business, only by keyboard, mouse, this more single triggering of touch screen Mode can not gradually meet the diversified demand of user, therefore, based on same thinking, the embodiment of the present application also provides one The method for planting terminal Trigger Function, as shown in Figure 3.

The process of the terminal Trigger Function that Fig. 3 is provided for the embodiment of the present application, specifically includes following steps:

S301:The ambient sound volume of terminal monitoring itself local environment.

Terminal described in the embodiment of the present application includes but is not limited to the terminal of mobile terminal, PC and other forms.Eventually End can be monitored to the ambient sound volume of itself local environment by audio collecting devices such as mikes.

S302:Determine current monitor to ambient sound volume with specify the average environment sound sound that monitors in the time period before The ratio of amount.

S303:When the ratio is more than the first given threshold, preset function is triggered.

In said process as shown in Figure 3, remain when terminal monitoring increases to ambient sound volume suddenly, triggering is pre- If function, the preset function can be set as needed, such as when monitoring ambient sound volume and increasing suddenly, start default Using, or log in default webpage etc., certainly, also perform positioning function as shown in Figure 1 including triggering.

Although there is also based on collision in prior art(Bump)" shaking " function that technology is realized, i.e. user rocks Mobile terminal, the gravity sensor in mobile terminal sense rock operation after, then can trigger corresponding function.But, " should shake One shakes " function is also only applicable to mobile terminal, is not particularly suited for PC.And, only for mobile terminal, in some scenarios, User also and may be not easy to rock mobile terminal.For example, when user is when driving, rocking mobile terminal will certainly affect which to drive The safety of car.And by method as shown in Figure 3, user only needs the ambient sound volume for artificially manufacturing an increase suddenly, such as Clap hands, snap, even shout, you can the preset function of triggering terminal, be applicable not only to mobile terminal, and be also applied for PC, Therefore make the triggering method of terminal Trigger Function more flexible, diversified, meet the diversified demand of user.

It is similar, it is contemplated that as said method as shown in Figure 3 is triggering by the ambient sound volume of unexpected increase The preset function of terminal, therefore in order to more accurately trigger preset function, it is also desirable to terminal is presently in the environment of environment Sound volume is relatively low, or, the undulatory property for being presently in the ambient sound volume of environment is relatively low.Therefore, terminal is being monitored residing for itself During the ambient sound volume of environment, it is determined that current monitor to ambient sound volume with before specify the time period in monitor Average environment sound volume ratio(Step S302)Before, the average environment monitored in the time period is specified before determining also that Sound volume is less than the second given threshold, or, it is determined that specifying the standard deviation of the ambient sound volume monitored in the time period little before In the 3rd given threshold.

The apparatus structure schematic diagram of the terminal positioning that Fig. 4 is provided for the embodiment of the present application, specifically includes:

Receiver module 401, for receiving the first Location Request of first terminal transmission, wherein, first Location Request Be the first terminal during the ambient sound volume to itself local environment is monitored, determine the ring that current monitor is arrived Border sound volume is sent when being more than the first given threshold with the ratio for specifying the average environment sound volume monitored in the time period before 's;

Searching modul 402, for according to receiving first time of reception of first Location Request, in for receiving In two Location Requests, lookup meets the second Location Request of specified requirementss, wherein, one second positioning for receiving please Ask, second Location Request is that the second terminal for sending second Location Request is entered in the ambient sound volume to itself local environment During row monitoring, determine current monitor to ambient sound volume with specify the average environment sound that monitors in the time period before The ratio of volume is more than what is sent during the first given threshold, if receiving second time of reception and the institute of second Location Request The time difference for stating for first time of reception is fallen in Preset Time difference scope, it is determined that second Location Request is to meet specified requirementss The second Location Request;

Sending module 403, for the terminal iidentification of the second terminal by the second Location Request for meeting specified requirementss is sent Information returns the first terminal.

Described device also includes:

Fuzzy locating module 404 is full for, searching in the second Location Request for receiving in the searching modul 402 Before second Location Request of toe fixed condition, the current positional information of the first terminal is obtained, and determine positioned at described the Each second terminal in the corresponding positioning region of the current positional information of one terminal;

The searching modul 402 is specifically in the second positioning sent by each second terminal determined for receiving In request, lookup meets the second Location Request of specified requirementss.

The fuzzy locating module 404 is specifically for obtaining the coordinate for being presently in position that the first terminal is reported; Or, obtaining the mark and signal intensity of the current own base station that the first terminal is reported, and worked as according to the first terminal The mark and signal intensity of front own base station, calculates the coordinate that the first terminal is presently in position.

The device of specific terminal positioning as shown in Figure 4 is may be located in location-server.

The structural representation of the first terminal that Fig. 5 is provided for the embodiment of the present application, specifically includes:

Monitoring module 501, for monitoring the ambient sound volume of itself local environment;

Determining module 502, for determine current monitor to ambient sound volume monitor in the time period with specifying before The ratio of average environment sound volume;

Trigger module 503, for when the ratio is more than the first given threshold, sending first to location-server and positioning Request, makes the location-server according to first time of reception for receiving first Location Request, in second for receiving In Location Request, lookup meets the second Location Request of specified requirementss, and will send the second Location Request for meeting specified requirementss The terminal identification information of second terminal return, wherein, the location-server for second Location Request receiving, If second time of reception for receiving second Location Request and the time difference of first time of reception fall into Preset Time In difference scope, it is determined that second Location Request is the second Location Request for meeting specified requirementss, and second Location Request is to send out The second terminal of second Location Request is given during the ambient sound volume to itself local environment is monitored, it is determined that working as Before the ambient sound volume that monitors set more than first with the ratio of the average environment sound volume monitored in the time period is specified before When determining threshold value, send to the location-server;

Receiver module 504, for receiving the terminal identification information of the second terminal that the location-server is returned.

The determining module 502 is additionally operable to, it is determined that the ambient sound volume that current monitor is arrived was specified in the time period with before Before the ratio of the average environment sound volume for monitoring, it is determined that specifying the average environment sound volume monitored in the time period little before In the second given threshold, or, it is determined that specifying the standard deviation of the ambient sound volume monitored in the time period to set less than the 3rd before Determine threshold value.

The structural representation of second terminal that Fig. 6 is provided for the embodiment of the present application, specifically includes:

Monitoring module 601, for monitoring the ambient sound volume of itself local environment;

Determining module 602, for determine current monitor to ambient sound volume monitor in the time period with specifying before The ratio of average environment sound volume;

Trigger module 603, for when the ratio is more than the first given threshold, triggering preset function.

The determining module 602 is additionally operable to, it is determined that the ambient sound volume that current monitor is arrived was specified in the time period with before Before the ratio of the average environment sound volume for monitoring, it is determined that specifying the average environment sound volume monitored in the time period little before In the second given threshold, or, it is determined that specifying the standard deviation of the ambient sound volume monitored in the time period to set less than the 3rd before Determine threshold value.

The embodiment of the present application provides a kind of method and device of terminal positioning, and the method first terminal is monitoring ambient sound When volume increases suddenly, the first Location Request is sent to location-server, location-server is according to receiving the first Location Request First time of reception, lookup meets the second Location Request of specified requirementss, and will send this and meet the second fixed of specified requirementss The terminal identification information of the second terminal of position request returns first terminal, wherein, meet the second Location Request of specified requirementss Second time of reception is close to first time of reception.By said method, if two terminals monitor ambient sound volume and dash forward So increase, then can all send Location Request, and if the time of reception that location-server receives the two Location Requests also compare Be closer to, then the two terminals illustrated in same environment, and then can determine the two terminals at a distance of relatively near, so as to have The positioning precision that improve to nearer terminal apart of effect.

Those skilled in the art are it should be appreciated that embodiments herein can be provided as method, system or computer program Product.Therefore, the application can adopt complete hardware embodiment, complete software embodiment or with reference to the reality in terms of software and hardware Apply the form of example.And, the application can be using the computer for wherein including computer usable program code at one or more Usable storage medium(Including but not limited to disk memory, CD-ROM, optical memory etc.)The computer program of upper enforcement is produced The form of product.

The application is with reference to method, the equipment according to the embodiment of the present application(System), and computer program flow process Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram The combination of journey and/or square frame and flow chart and/or flow process and/or square frame in block diagram.These computer programs can be provided The processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices The device of the function of specifying in present 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 and can guide computer or other programmable data processing devices with spy Determine in 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 can be also 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 the had altered of the application scope and change.

Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the application to the application God and scope.So, if these modifications of the application and modification belong to the scope of the application claim and its equivalent technologies Within, then the application is also intended to comprising these changes and modification.

Claims (10)

1. a kind of method of terminal positioning, it is characterised in that include:
Location-server receives the first Location Request that first terminal sends, wherein, first Location Request is described first Terminal during the ambient sound volume to itself local environment is monitored, determine ambient sound volume that current monitor arrives with When specifying the ratio of the average environment sound volume monitored in the time period to be more than the first given threshold, to the positioning service before What device sent;And
According to first time of reception for receiving first Location Request, in the second Location Request for receiving, search full Second Location Request of toe fixed condition, wherein, second Location Request of receive is to send second Location Request Second terminal determines the ambient sound sound that current monitor is arrived during the ambient sound volume to itself local environment is monitored When amount is more than the first given threshold with the ratio for specifying the average environment sound volume monitored in the time period before, to the positioning What server sent, if the location-server receives second time of reception of second Location Request and described first and connects The time difference that time receiving carves is fallen in Preset Time difference scope, it is determined that second Location Request is to meet the second of specified requirementss to determine Position request;And
The terminal identification information for sending the second terminal of the second Location Request for meeting specified requirementss is returned into the first terminal.
2. the method for claim 1, it is characterised in that in the second Location Request for receiving, searches to meet and specifies Before second Location Request of condition, methods described also includes:
The location-server obtains the current positional information of the first terminal;And
It is determined that each second terminal in the corresponding positioning region of the current positional information of the first terminal;
In the second Location Request for receiving, lookup meets the second Location Request of specified requirementss, specifically includes:
In the second Location Request sent by each second terminal determined for receiving, lookup meets the second of specified requirementss Location Request.
3. method as claimed in claim 2, it is characterised in that the location-server obtains the current position of the first terminal Confidence ceases, and specifically includes:
The location-server obtains the coordinate for being presently in position that the first terminal is reported;Or
The location-server obtains the mark and signal intensity of the current own base station that the first terminal is reported, and according to The mark and signal intensity of the current own base station of the first terminal, calculates the seat that the first terminal is presently in position Mark.
4. a kind of method of terminal positioning, it is characterised in that include:
First terminal monitors the ambient sound volume of itself local environment;And
Determine current monitor to ambient sound volume with specify the ratio of average environment sound volume that monitors in the time period before; And
When the ratio is more than the first given threshold, the first Location Request is sent to location-server, make the positioning service Device in the second Location Request for receiving, was searched and is met according to first time of reception for receiving first Location Request Second Location Request of specified requirementss, and the terminal iidentification of the second terminal of the second Location Request for meeting specified requirementss will be sent Information returns the first terminal, wherein, when the location-server often receives second Location Request, if received Second time of reception of second Location Request is fallen in the poor scope of Preset Time, then with the time difference of first time of reception Determine that second Location Request is the second Location Request for meeting specified requirementss, second Location Request is to send second positioning The second terminal of request determines the ring that current monitor is arrived during the ambient sound volume to itself local environment is monitored When border sound volume is more than the first given threshold with the ratio for specifying the average environment sound volume monitored in the time period before, to institute State location-server transmission;
The first terminal receives the terminal identification information of the second terminal that the location-server is returned.
5. method as claimed in claim 4, it is characterised in that when determining ambient sound volume that current monitor arrives with specifying before Between before the ratio of average environment sound volume that monitors in section, methods described also includes:
It is determined that specifying the average environment sound volume monitored in the time period to be less than the second given threshold before;Or
It is determined that specifying the standard deviation of the ambient sound volume monitored in the time period to be less than the 3rd given threshold before.
6. a kind of device of terminal positioning, it is characterised in that include:
Receiver module, for receiving the first Location Request of first terminal transmission, wherein, first Location Request is described the One terminal determines the ambient sound volume that current monitor is arrived during the ambient sound volume to itself local environment is monitored Send when being more than the first given threshold with the ratio for specifying the average environment sound volume monitored in the time period before;
Searching modul, for according to first time of reception for receiving first Location Request, in the second positioning for receiving In request, lookup meets the second Location Request of specified requirementss, wherein, second Location Request of receive be send this The second terminal of two Location Requests determines current monitor during the ambient sound volume to itself local environment is monitored To ambient sound volume be more than the first given threshold with the ratio of average environment sound volume monitored in the time period is specified before When send, if receiving second time of reception of second Location Request and the time difference of first time of reception falls into In Preset Time difference scope, it is determined that second Location Request is the second Location Request for meeting specified requirementss;
Sending module, the terminal identification information for the second terminal by the second Location Request for meeting specified requirementss is sent are returned The first terminal.
7. device as claimed in claim 6, it is characterised in that described device also includes:
Fuzzy locating module, in the second Location Request for receiving, lookup meets specified requirementss in the searching modul The second Location Request before, obtain the current positional information of the first terminal, and determine current positioned at the first terminal The corresponding positioning region of positional information in each second terminal;
The searching modul specifically for, in second Location Request sent by each second terminal determined is received, Lookup meets the second Location Request of specified requirementss.
8. device as claimed in claim 7, it is characterised in that the fuzzy locating module is specifically for obtaining described first The coordinate for being presently in position of terminal to report;Or, obtain the current own base station that the first terminal is reported mark and Signal intensity, and according to the mark and signal intensity of the current own base station of the first terminal, calculate the first terminal and work as The coordinate of front present position.
9. a kind of terminal, it is characterised in that include:
Monitoring module, for monitoring the ambient sound volume of itself local environment;
Determining module, for determine current monitor to ambient sound volume with specify the average environment that monitors in the time period before The ratio of sound volume;
Trigger module, for when the ratio is more than the first given threshold, sending the first Location Request to location-server, making The location-server according to first time of reception for receiving first Location Request, in the second Location Request for receiving In, lookup meets the second Location Request of specified requirementss, and whole by send the second Location Request for meeting specified requirementss second The terminal identification information at end is returned, wherein, when the location-server often receives second Location Request, if received Second time of reception of second Location Request is fallen in the poor scope of Preset Time, then with the time difference of first time of reception Determine that second Location Request is the second Location Request for meeting specified requirementss, second Location Request is to send second positioning The second terminal of request determines the ring that current monitor is arrived during the ambient sound volume to itself local environment is monitored When border sound volume is more than the first given threshold with the ratio for specifying the average environment sound volume monitored in the time period before, to institute State location-server transmission;
Receiver module, for receiving the terminal identification information of the second terminal that the location-server is returned.
10. terminal as claimed in claim 9, it is characterised in that the determining module is additionally operable to, it is determined that what current monitor was arrived Before the ratio of ambient sound volume and the average environment sound volume monitored in the specified time period before, it is determined that specifying the time before The average environment sound volume monitored in section is less than the second given threshold, or, it is determined that specifying what is monitored in the time period before The standard deviation of ambient sound volume is less than the 3rd given threshold.
CN201210443866.0A 2012-11-08 2012-11-08 Terminal positioning method and apparatus CN103813441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210443866.0A CN103813441B (en) 2012-11-08 2012-11-08 Terminal positioning method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210443866.0A CN103813441B (en) 2012-11-08 2012-11-08 Terminal positioning method and apparatus

Publications (2)

Publication Number Publication Date
CN103813441A CN103813441A (en) 2014-05-21
CN103813441B true CN103813441B (en) 2017-04-26

Family

ID=50709505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210443866.0A CN103813441B (en) 2012-11-08 2012-11-08 Terminal positioning method and apparatus

Country Status (1)

Country Link
CN (1) CN103813441B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104864888B (en) * 2015-05-12 2018-01-02 北京红旗胜利科技发展有限责任公司 A kind of method and apparatus of navigation device position amendment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624980A (en) * 2012-03-06 2012-08-01 惠州Tcl移动通信有限公司 Method for detecting abrupt environment and prompting based on earphone of mobile phone and mobile phone
CN102455421B (en) * 2010-10-27 2014-03-26 清华大学 Sound positioning system and method without time synchronization

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2581982C (en) * 2004-09-27 2013-06-18 Nielsen Media Research, Inc. Methods and apparatus for using location information to manage spillover in an audience monitoring system
US20120224711A1 (en) * 2011-03-04 2012-09-06 Qualcomm Incorporated Method and apparatus for grouping client devices based on context similarity

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102455421B (en) * 2010-10-27 2014-03-26 清华大学 Sound positioning system and method without time synchronization
CN102624980A (en) * 2012-03-06 2012-08-01 惠州Tcl移动通信有限公司 Method for detecting abrupt environment and prompting based on earphone of mobile phone and mobile phone

Also Published As

Publication number Publication date
CN103813441A (en) 2014-05-21

Similar Documents

Publication Publication Date Title
Hightower et al. SpotON: An indoor 3D location sensing technology based on RF signal strength
US9232335B2 (en) Networked speaker system with follow me
US8350758B1 (en) Systems and methods for indoor geolocation based on yield of RF signals
JP2013517679A (en) Management of location database of positioning system based on network
US20150066823A1 (en) Activating Applications Based on Accelerometer Data
US9310462B2 (en) Locating a mobile computing device in an indoor environment
US20130331127A1 (en) Proximity-based notifications in a mobile device
US8874129B2 (en) Pre-fetching information based on gesture and/or location
US20120050153A1 (en) Intelligent pairing of electronic devices
EP3064963B1 (en) System and method for mapping an indoor environment
JP5622968B2 (en) Indoor location of mobile devices
US20150005014A1 (en) Selective Location Determination
EP2530983A1 (en) Mobile device location estimation
US20160212582A1 (en) System and method for detection of indoor tracking units
US20130093627A1 (en) Power-aware tiered geofencing and beacon watchlists
US9292936B2 (en) Method and apparatus for determining location
US8862067B2 (en) Proximate beacon identification
US8784309B2 (en) Sensor fusion for activity identification
JP2014517943A (en) Improved device location detection
US9118776B2 (en) Location monitoring feature of a mobile device for activating an application subsystem
US9602377B2 (en) Network latency estimation for mobile devices
US20140045521A1 (en) Multi-Tier Geofence Detection
US10064003B2 (en) Beacon-based geofencing
US8665154B2 (en) Modeling and location inference based on ordered beacon sets
US9351114B2 (en) Generating geofences

Legal Events

Date Code Title Description
C06 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: 1194906

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: 1194906

Country of ref document: HK