Summary of the invention
The embodiment of the present application provides a kind of method and device of terminal positioning, in order to solve the lower problem of the precision of terminal positioning in prior art.
The method of a kind of terminal positioning that the embodiment of the present application provides, comprising:
Location-server receives the first Location Request that first terminal sends, wherein, described the first Location Request is described first terminal in the process that the ambient sound volume of self environment of living in is monitored, when the ratio of determining the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section is before greater than the first setting threshold, send to described location-server; And
According to first time of reception that receives described the first Location Request, in the second Location Request receiving, search the second Location Request that meets specified requirements, wherein, for second Location Request receiving, this second Location Request be send this second Location Request the second terminal in the process that the ambient sound volume of self environment of living in is monitored, when the ratio of determining the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section is before greater than the first setting threshold, send to described location-server, if described location-server receives second time of reception of this second Location Request and the time difference of described first time of reception falls in the poor scope of Preset Time, determine that this second Location Request is the second Location Request that meets specified requirements, and
The terminal identification information that transmission is met to the second terminal of the second Location Request of specified requirements is returned to described first terminal.
The method of a kind of terminal positioning that the embodiment of the present application provides, comprising:
The ambient sound volume of first terminal monitoring self environment of living in; And
Determine the ratio of the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section before; And
In the time that described ratio is greater than the first setting threshold, send the first Location Request to location-server, make described location-server according to first time of reception that receives described the first Location Request, in the second Location Request receiving, search the second Location Request that meets specified requirements, and the terminal identification information that transmission meets the second terminal of the second Location Request of specified requirements is returned to described first terminal, wherein, described location-server is for second Location Request receiving, if receiving second time of reception of this second Location Request and the time difference of described first time of reception falls in the poor scope of Preset Time, determine that this second Location Request is the second Location Request that meets specified requirements, this second Location Request be send this second Location Request the second terminal in the process that the ambient sound volume of self environment of living in is monitored, when the ratio of determining the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section is before greater than the first setting threshold, send to described location-server,
Described first terminal receives the terminal identification information of the second terminal that described location-server returns.
The method of a kind of terminal Trigger Function that the embodiment of the present application provides, comprising:
The ambient sound volume of terminal monitoring self environment of living in; And
Determine the ratio of the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section before; And
In the time that described ratio is greater than the first setting threshold, trigger preset function.
The device of a kind of terminal positioning that the embodiment of the present application provides, comprising:
Receiver module, the first Location Request sending for receiving first terminal, wherein, described the first Location Request is described first terminal in the process that the ambient sound volume of self environment of living in is monitored, and the ratio of determining the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section before sends while being greater than the first setting threshold;
Search module, receive first time of reception of described the first Location Request for basis, in the second Location Request receiving, search the second Location Request that meets specified requirements, wherein, for second Location Request receiving, this second Location Request be send this second Location Request the second terminal in the process that the ambient sound volume of self environment of living in is monitored, the ratio of determining the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section before sends while being greater than the first setting threshold, if receiving second time of reception of this second Location Request and the time difference of described first time of reception falls in the poor scope of Preset Time, determine that this second Location Request is the second Location Request that meets specified requirements,
Sending module, returns to described first terminal for the terminal identification information of the second terminal of the second Location Request of transmission being met to specified requirements.
A kind of terminal that the embodiment of the present application provides, comprising:
Monitoring module, for monitoring the ambient sound volume of self environment of living in;
Determination module, for determining the ratio of the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section before;
Trigger module, for in the time that described ratio is greater than the first setting threshold, send the first Location Request to location-server, make described location-server according to first time of reception that receives described the first Location Request, in the second Location Request receiving, search the second Location Request that meets specified requirements, and the terminal identification information that transmission meets the second terminal of the second Location Request of specified requirements is returned, wherein, described location-server is for second Location Request receiving, if receiving second time of reception of this second Location Request and the time difference of described first time of reception falls in the poor scope of Preset Time, determine that this second Location Request is the second Location Request that meets specified requirements, this second Location Request be send this second Location Request the second terminal in the process that the ambient sound volume of self environment of living in is monitored, when the ratio of determining the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section is before greater than the first setting threshold, send to described location-server,
Receiver module, for receiving the terminal identification information of the second terminal that described location-server returns.
A kind of terminal that the embodiment of the present application provides, comprising:
Monitoring module, for monitoring the ambient sound volume of self environment of living in;
Determination module, for determining the ratio of the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section before;
Trigger module, in the time that described ratio is greater than the first setting threshold, triggers preset function.
The embodiment of the present application provides a kind of method and device of terminal positioning, the method first terminal is in the time monitoring ambient sound volume and increase suddenly, send the first Location Request to location-server, location-server is according to first time of reception that receives the first Location Request, search the second Location Request that meets specified requirements, and return to send this terminal identification information that meets the second terminal of the second Location Request of specified requirements to first terminal, wherein, second time of reception of the second Location Request that meets specified requirements is close to first time of reception.Pass through said method, if two terminals all monitor ambient sound volume and increase suddenly, all can send Location Request, if and that location-server receives the time of reception of these two Location Requests is also more approaching, illustrate that these two terminals are in same environment, and then can determine that these two terminals are at a distance of nearer, thereby effectively raise the positioning precision to the terminal at a distance of nearer.
Embodiment
In the embodiment of the present application, by the ambient sound volume of terminal monitoring self environment of living in, increase suddenly if monitor ambient sound volume, send Location Request to location-server.Because the propagation distance of sound is very limited, the decay of the volume of sound in sound transmission process is very large, therefore, two or more Location Requests that location-server comparatively approached for the time of reception, can determine that the terminal that sends these Location Requests is in same environment, and then determine that these terminals are at a distance of nearer, thereby can effectively improve the positioning precision to the terminal at a distance of nearer by the method.
Below in conjunction with Figure of description, the embodiment of the present application is described in detail.
Fig. 1 is the terminal positioning process that the embodiment of the present application provides, and specifically comprises the following steps:
S101: the ambient sound volume of first terminal monitoring self environment of living in.
In the embodiment of the present application, by terminal, the ambient sound volume of himself environment of living in is monitored.
For example, have terminal A, terminal B, terminal C totally 3 terminals, terminal A, terminal B, terminal C monitor the ambient sound volume of environment of living in separately respectively.
Wherein, the terminal described in the embodiment of the present application includes but not limited to: mobile terminal, personal computer (Personal Computer, PC), and other forms of terminal.Concrete, terminal can be monitored the ambient sound volume of himself environment of living in by the audio collecting device of self.As, terminal can gather ambient sound by microphone, and the ambient sound volume collecting is monitored.
S102: first terminal is determined the ratio of the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section before.
In the embodiment of the present application, terminal can be determined the ratio of the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section before, and this definite ratio can reflect variation tendency and the intensity of variation of the ambient sound volume of the current environment of living in of this terminal.Concrete, if this ratio is 1, the ambient sound volume that the current environment of living in of terminal is described remains unchanged, if this ratio is less than 1, the ambient sound volume that the current environment of living in of terminal is described reduces, if this ratio is greater than 1, illustrate that the ambient sound volume of the current environment of living in of terminal increases.And this ratio, more close to 1, illustrates that the intensity of variation of ambient sound volume is less, otherwise, illustrate that the intensity of variation of ambient sound volume is larger.
Wherein, this fixed time section can arrange as required, as is set as 3 seconds, in step S102, first terminal determine the current ambient sound volume monitoring with 3 seconds before in the ratio of the average environment sound volume that monitors.
Continue along using example, terminal A, terminal B, terminal C determine respectively the ratio of the ambient sound volume monitoring separately and the average environment sound volume monitoring separately in 3 seconds before.
S103: in the time that first terminal determines that this ratio is greater than the first setting threshold, send the first Location Request to location-server.
Wherein, the first setting threshold can be set as being greater than certain numerical value of 1, as be set as 1.3, in the time that terminal is greater than 1.3 by the definite ratio of above-mentioned steps S102, the ambient sound volume that the current environment of living in of this terminal is described increases suddenly, triggers this terminal and send to location-server the operation of the first Location Request.
Continue, along using example, terminal A to be designated as to first terminal, the other-end except terminal A (being terminal B and terminal C) is all designated as to the second terminal.Also have which other-end when nearer when using the user of first terminal (terminal A) to want to know near this first terminal, can near first terminal, artificially manufacture an ambient sound volume increasing suddenly, as this user can clap hands near first terminal.Now, the ambient sound volume that first terminal can monitor its environment of living in increases suddenly, is also greater than the first setting threshold by the definite ratio of above-mentioned steps S102, and therefore, first terminal sends Location Request to location-server, is designated as the first Location Request.
Suppose that terminal A and terminal B are at a distance of nearer, terminal A and terminal C apart from each other, also, terminal A and terminal B in same environment, terminal A from terminal C in different environment:
Because the user who uses terminal A has artificially manufactured the ambient sound volume of unexpected increase in the residing environment of terminal A, and terminal B and terminal A are in same environment, therefore, this ambient sound volume increasing suddenly equally also can be monitored by terminal B, also be, terminal B is also greater than the first setting threshold by the definite ratio of above-mentioned steps S102, and therefore terminal B also sends Location Request to location-server, is designated as the second Location Request;
Due to terminal A from terminal C in different environment, therefore, the ambient sound volume of the unexpected increase that the user of use terminal A manufactures is in the time propagating in the residing environment of terminal C, its volume has decayed a lot, thereby terminal C just can not be greater than the first setting threshold by the definite ratio of above-mentioned steps S102, even terminal C can not monitor the variation of any ambient sound volume, and therefore, terminal C also just can not send Location Request to location-server.
Also be, first terminal (terminal A) is by the ambient sound volume of above-mentioned steps S101 ~ S103 monitoring self environment of living in, if the average environment monitoring in the ambient sound volume monitoring current and before fixed time section answers volume to be greater than the first setting threshold, send Location Request to location-server, be designated as the first Location Request.Same, the second terminal (terminal B and terminal C) also adopts similar method, monitor the ambient sound volume of self environment of living in, if the average environment monitoring in the ambient sound volume monitoring current and before fixed time section answers volume to be greater than the first setting threshold, also send Location Request to location-server, be designated as the second Location Request.
S104: location-server, according to first time of reception that receives this first Location Request, in the second Location Request receiving, is searched the second Location Request that meets specified requirements.
Wherein, for second Location Request receiving, if location-server receives second time of reception of this second Location Request and the time difference of this first time of reception falls in the poor scope of Preset Time, determine that this second Location Request is the second Location Request that meets fixed condition, this second Location Request be send this second Location Request the second terminal in the process that the ambient sound volume of self environment of living in is monitored, when the ratio of determining the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section is before greater than the first setting threshold, send to location-server.
Continue along using example, suppose that the poor scope of this Preset Time is 1 second, due to terminal A and terminal B in same environment (at a distance of nearer), although therefore using the ambient sound volume of the artificial unexpected increase of manufacturing of user of terminal A is first to be monitored by terminal A, monitored by terminal B again, but the two time difference that monitors this ambient sound volume increasing suddenly can not be greater than 1 second, thereby, location-server receives first time of reception of the first Location Request of terminal A transmission, can fall in the poor scope of this Preset Time (1 second) with the time difference of second time of reception that receives the second Location Request that terminal B sends, therefore, location-server determines that the second Location Request being sent by terminal B is exactly the second Location Request that meets specified requirements.
S105: the terminal identification information that transmission is met the second terminal of the second Location Request of specified requirements by location-server is returned to first terminal.
In the embodiment of the present application, location-server is using the second terminal that sends this second Location Request that meets specified requirements as that orient and the second terminal this first terminal close together, therefore, return to first terminal by sending this terminal identification information that meets the second terminal of the second Location Request of specified requirements.This first terminal receives after the terminal identification information of this second terminal, use the user of this first terminal can know that the second terminal that this terminal identification information identifies is exactly apart from oneself the second nearer terminal, follow-up first terminal can be based on this second terminal terminal identification information, establish a communications link with this second terminal, to carry out the business such as transfer of data.
Continue along using example, location-server using the terminal B that sends this second Location Request that meets specified requirements as orient with terminal A(first terminal) the second terminal of close together, therefore, the terminal identification information of terminal B is returned to terminal A, use the user of terminal A can know that the nearer other-end of current distance oneself is exactly terminal B.Follow-up terminal identification information that can be based on this terminal B, is used terminal A and terminal B to carry out the business such as transfer of data.
Said method has utilized that the propagation distance of sound is very limited, the volume of sound decays very large characteristic in sound transmission process, if two terminals all monitor ambient sound volume and increase suddenly, all can send Location Request, if and that location-server receives the time of reception of these two Location Requests is also more approaching, illustrate that these two terminals are in same environment, and then can determine that these two terminals are at a distance of nearer, thereby effectively raise the positioning precision to the terminal at a distance of nearer.
Preferably, consider may there is in actual applications apart from each other two or more terminals by chance simultaneously (or in approaching moment) send the situation of Location Request to location-server, and method based on as shown in Figure 1, location-server will become these two or more terminal positioning at a distance of nearer terminal.
For example, suppose that terminal A and terminal B are at a distance of nearer, terminal A and terminal C apart from each other, if use the user of terminal A to want to know near it to also have which terminal close together, near terminal A, clap hands, the i.e. artificial ambient sound volume of manufacturing a unexpected increase, the terminal A method based on shown in Fig. 1 sends Location Request to location-server.Same, due to terminal B with terminal A at a distance of nearer, therefore terminal B also can monitor this ambient sound volume of increase suddenly, therefore also sends Location Request in the approaching moment to location-server.And if the user who now uses terminal C has also artificially manufactured an ambient sound volume increasing suddenly just, terminal C also can send Location Request to location-server.Now, location-server has received 3 Location Requests that terminal A, terminal B, terminal C send altogether, and in these 3 Location Requests the time difference of the time of reception of every two Location Requests all fall in the poor scope of Preset Time, the time of reception that is these 3 Location Requests is all very approaching, location-server will using terminal B and terminal C all as with terminal A at a distance of nearer terminal, this has obviously reduced the precision of location.
Therefore, in the embodiment of the present application, in order further to improve the precision of terminal positioning, location-server is before the step S104 carrying out as shown in Figure 1, also be that location-server receives after the first Location Request of first terminal transmission, before searching the second Location Request that meets specified requirements, also to obtain the current positional information of this first terminal, and determine each the second terminal that is positioned at locating area corresponding to the current positional information of this first terminal.
Determine after each the second terminal that is positioned at locating area corresponding to the current positional information of this first terminal, the method that location-server is searched the second Location Request that meets specified requirements in the second Location Request receiving is specially: in the second Location Request that each the second terminal by determining receiving sends, search the second Location Request that meets specified requirements.Follow-up using the second terminal that sends this second Location Request that meets specified requirements as orient with first terminal at a distance of nearer terminal, the terminal identification information of the second terminal of orienting is sent to first terminal.
For example, suppose that terminal A and terminal B are at a distance of nearer, terminal A and terminal C apart from each other, if use the user of terminal A to want to know near it to also have which terminal close together, near terminal A, clap hands, the i.e. artificial ambient sound volume of manufacturing a unexpected increase, the terminal A method based on shown in Fig. 1 sends Location Request to location-server, is designated as the first Location Request.Same, due to terminal B with terminal A at a distance of nearer, therefore terminal B also can monitor this ambient sound volume of increase suddenly, therefore also sends Location Request in the approaching moment to location-server, is designated as the second Location Request.Suppose now to use the user of terminal C just also artificially to manufacture an ambient sound volume increasing suddenly, terminal C also can send Location Request to location-server, is also designated as the second Location Request.
Location-server receives after this first Location Request, obtain the current positional information of terminal A, definite the second terminal that is positioned at locating area corresponding to the current positional information of terminal A is terminal B, in the time searching the second Location Request that meets specified requirements, only in the second Location Request being sent by terminal B, search, thereby can orient terminal B is the terminal nearer apart from terminal A, and terminal C can be positioned to terminal A at a distance of nearer terminal.
Can find out, pass through said method, even if by chance the while (or in approaching moment) has sent Location Request to location-server to two or more terminals of apart from each other, location-server still can be oriented accurately at a distance of nearer terminal, has further improved the precision of terminal positioning.
Further, the method that location-server obtains the current positional information of first terminal includes but not limited to adopt GPS positioning mode of the prior art or architecture method to obtain the coordinate of the current present position of first terminal.Concrete, location-server can obtain the coordinate of the current present position that first terminal reports, and, obtains the coordinate of the current present position that the GPS module in first terminal reports that is.Location-server also can obtain mark and the signal strength signal intensity of base station under current that first terminal reports, and mark and the signal strength signal intensity of base station under current according to first terminal, calculates the coordinate of the current present position of first terminal.Also be, location-server receives after the first Location Request of first terminal transmission, can first adopt GPS positioning mode of the prior art or architecture method to carry out fuzzy location to first terminal, coarse localization goes out to be positioned near each the second terminal first terminal, again according to first time of reception that receives this first Location Request, and receive each second time of reception by the second Location Request of each the second terminal transmission of orienting, accurately orient with first terminal at a distance of the second nearer terminal.
In addition, because the embodiment of the present application is to utilize the propagation distance of sound very limited, the volume of the sound very large characteristic that decays in sound transmission process, the terminal positioning realizing, therefore, in order further to improve the precision of terminal positioning, while positioning initiating the first terminal of location by said method, need to meet such requirement by the current residing environment of this first terminal: the ambient sound volume of the current environment of living in of first terminal is lower, or, the fluctuation lower (being that ambient sound volume is relatively stable) of the ambient sound volume of the current environment of living in of first terminal.
Therefore, in the process shown in Fig. 1, first terminal is in the process that the ambient sound volume of self environment of living in is monitored (step S101), determine the current ambient sound volume monitoring with before the average environment sound volume that monitors in fixed time section ratio (step S102) before, the average environment sound volume monitoring in fixed time section before also will determining is less than the second setting threshold, or the standard deviation of the ambient sound volume monitoring in fixed time section before determining is less than the 3rd setting threshold., if the average environment sound volume monitoring in fixed time section is less than the second setting threshold before, the ambient sound volume that current environment of living in is described is lower, if the standard deviation of the ambient sound volume monitoring in fixed time section is less than the 3rd setting threshold before, the fluctuation of ambient sound volume that current environment of living in is described is lower, therefore, when the ambient sound volume monitoring when first terminal meets above-mentioned two conditions, can proceed follow-up step, if do not met, the ambient sound volume that current environment of living in is described is more noisy, be unsuitable for adopting the method shown in Fig. 1 to position, thereby can still adopt the method for prior art to position.
Certainly, above-mentioned two conditions also can combine use simultaneously,, the average environment sound volume monitoring in fixed time section before first terminal is determined is less than the second setting threshold, and, when the standard deviation of the ambient sound volume monitoring in fixed time section before determining is less than the 3rd setting threshold, proceed follow-up step S102, just repeat no longer one by one here.
The detailed process of the terminal positioning that Fig. 2 provides for the embodiment of the present application, specifically comprises the following steps:
S201: the ambient sound volume of first terminal monitoring self environment of living in.
S202: whether the average environment sound volume monitoring in fixed time section before judgement is less than the second setting threshold, if so, performs step S203, otherwise execution step S209.
S203: whether the standard deviation of the ambient sound volume monitoring in fixed time section before judgement is less than the 3rd setting threshold, if so, performs step S204, otherwise execution step S209.
S204: the ratio of determining the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section before.
S205: in the time that first terminal determines that this ratio is greater than the first setting threshold, send the first Location Request to location-server.
S206: location-server obtains the current positional information of this first terminal, and determine each the second terminal that is positioned at locating area corresponding to the current positional information of this first terminal.
S207: in the second Location Request that location-server sends in each the second terminal by determining receiving, search the second Location Request that meets specified requirements.
Wherein, for second Location Request receiving, this second Location Request be send this second Location Request the second terminal in the process that the ambient sound volume of self environment of living in is monitored, when the ratio of determining the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section is before greater than the first setting threshold, send to location-server, if location-server receives second time of reception of this second Location Request and the time difference of this first time of reception falls in the poor scope of Preset Time, determine that this second Location Request is the second Location Request that meets fixed condition.
S208: the terminal identification information that transmission is met the second terminal of the second Location Request of specified requirements by location-server is returned to first terminal.
S209: adopt GPS positioning mode or architecture method to position.
It is more than the method for locating terminal of realizing based on ambient sound volume that the embodiment of the present application provides.Consider due at present such as the terminal such as mobile terminal or PC triggering when certain function, all need user to trigger by input units such as keyboard, mouse, touch-screens, but along with the diversified development of business, only can not meet gradually user's diversified demand by keyboard, mouse, this comparatively single triggering mode of touch-screen, therefore, based on same thinking, the embodiment of the present application also provides a kind of method of terminal Trigger Function, as shown in Figure 3.
The process of the terminal Trigger Function that Fig. 3 provides for the embodiment of the present application, specifically comprises the following steps:
S301: the ambient sound volume of terminal monitoring self environment of living in.
Terminal described in the embodiment of the present application includes but not limited to mobile terminal, PC and other forms of terminal.Terminal can be monitored the ambient sound volume of self environment of living in by the audio collecting device such as such as microphone.
S302: the ratio of determining the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section before.
S303: in the time that this ratio is greater than the first setting threshold, trigger preset function.
In said process as shown in Figure 3, remain in the time that terminal monitoring increases suddenly to ambient sound volume, trigger preset function, this preset function can be set as required, as in the time monitoring ambient sound volume and increase suddenly, start default application or login default webpage etc., certainly, also comprising and trigger the positioning function of carrying out as shown in Figure 1.
Although also have " shaking " function realizing based on collision (Bump) technology in prior art, that is, user rocks mobile terminal, the gravity sensor in mobile terminal senses and rocks after operation, can trigger corresponding function.But, should " shaking " function also be only applicable to mobile terminal, and not be suitable for PC.And only, with regard to mobile terminal, under some scene, user may also and be not easy to rock mobile terminal.For example, when user is in the time driving, rocking mobile terminal will certainly affect the fail safe that it is driven.And by method as shown in Figure 3, user only needs the artificial ambient sound volume increasing suddenly of manufacturing, as clap hands, snap, even shout, get final product the preset function of triggering terminal, be not only applicable to mobile terminal, and be applicable to PC, and therefore make the triggering method of terminal Trigger Function more flexible, diversified, meet user's diversified demand.
Similarly, consider because said method is as shown in Figure 3 the preset function that carrys out triggering terminal by the ambient sound volume of unexpected increase, therefore in order to trigger more accurately preset function, also need the ambient sound volume of the current environment of living in of terminal lower, or the fluctuation of the ambient sound volume of current environment of living in is lower.Therefore, terminal is in the process of the ambient sound volume of monitoring self environment of living in, determine the current ambient sound volume monitoring with before the average environment sound volume that monitors in fixed time section ratio (step S302) before, also the average environment sound volume monitoring in fixed time section before will determining is less than the second setting threshold, or the standard deviation of the ambient sound volume monitoring in fixed time section before determining is less than the 3rd setting threshold.
The apparatus structure schematic diagram of the terminal positioning that Fig. 4 provides for the embodiment of the present application, specifically comprises:
Receiver module 401, the first Location Request sending for receiving first terminal, wherein, described the first Location Request is described first terminal in the process that the ambient sound volume of self environment of living in is monitored, and the ratio of determining the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section before sends while being greater than the first setting threshold;
Search module 402, receive first time of reception of described the first Location Request for basis, in the second Location Request receiving, search the second Location Request that meets specified requirements, wherein, for second Location Request receiving, this second Location Request be send this second Location Request the second terminal in the process that the ambient sound volume of self environment of living in is monitored, the ratio of determining the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section before sends while being greater than the first setting threshold, if receiving second time of reception of this second Location Request and the time difference of described first time of reception falls in the poor scope of Preset Time, determine that this second Location Request is the second Location Request that meets specified requirements,
Sending module 403, returns to described first terminal for the terminal identification information of the second terminal of the second Location Request of transmission being met to specified requirements.
Described device also comprises:
Fuzzy locating module 404, for searching described the second Location Request that module 402 is receiving, before searching the second Location Request that meets specified requirements, obtain the current positional information of described first terminal, and determine each the second terminal that is positioned at locating area corresponding to the current positional information of described first terminal;
Described search module 402 specifically for, receive by determine each second terminal send the second Location Request in, search the second Location Request that meets specified requirements.
Described fuzzy locating module 404 specifically for, obtain the coordinate of the current present position that described first terminal reports; Or, obtain mark and the signal strength signal intensity of base station under current that described first terminal reports, and mark and the signal strength signal intensity of base station under current according to described first terminal, the coordinate of the current present position of described first terminal calculated.
The device of concrete terminal positioning as shown in Figure 4 can be arranged in location-server.
The structural representation of the first terminal that Fig. 5 provides for the embodiment of the present application, specifically comprises:
Monitoring module 501, for monitoring the ambient sound volume of self environment of living in;
Determination module 502, for determining the ratio of the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section before;
Trigger module 503, for in the time that described ratio is greater than the first setting threshold, send the first Location Request to location-server, make described location-server according to first time of reception that receives described the first Location Request, in the second Location Request receiving, search the second Location Request that meets specified requirements, and the terminal identification information that transmission meets the second terminal of the second Location Request of specified requirements is returned, wherein, described location-server is for second Location Request receiving, if receiving second time of reception of this second Location Request and the time difference of described first time of reception falls in the poor scope of Preset Time, determine that this second Location Request is the second Location Request that meets specified requirements, this second Location Request be send this second Location Request the second terminal in the process that the ambient sound volume of self environment of living in is monitored, when the ratio of determining the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section is before greater than the first setting threshold, send to described location-server,
Receiver module 504, for receiving the terminal identification information of the second terminal that described location-server returns.
Described determination module 502 also for, determine the current ambient sound volume monitoring with before before the ratio of the average environment sound volume that monitors in fixed time section, the average environment sound volume monitoring in fixed time section before determining is less than the second setting threshold, or the standard deviation of the ambient sound volume monitoring in fixed time section before determining is less than the 3rd setting threshold.
The structural representation of the second terminal that Fig. 6 provides for the embodiment of the present application, specifically comprises:
Monitoring module 601, for monitoring the ambient sound volume of self environment of living in;
Determination module 602, for determining the ratio of the average environment sound volume monitoring in the current ambient sound volume monitoring and fixed time section before;
Trigger module 603, in the time that described ratio is greater than the first setting threshold, triggers preset function.
Described determination module 602 also for, determine the current ambient sound volume monitoring with before before the ratio of the average environment sound volume that monitors in fixed time section, the average environment sound volume monitoring in fixed time section before determining is less than the second setting threshold, or the standard deviation of the ambient sound volume monitoring in fixed time section before determining is less than the 3rd setting threshold.
The embodiment of the present application provides a kind of method and device of terminal positioning, the method first terminal is in the time monitoring ambient sound volume and increase suddenly, send the first Location Request to location-server, location-server is according to first time of reception that receives the first Location Request, search the second Location Request that meets specified requirements, and return to send this terminal identification information that meets the second terminal of the second Location Request of specified requirements to first terminal, wherein, second time of reception of the second Location Request that meets specified requirements is close to first time of reception.Pass through said method, if two terminals all monitor ambient sound volume and increase suddenly, all can send Location Request, if and that location-server receives the time of reception of these two Location Requests is also more approaching, illustrate that these two terminals are in same environment, and then can determine that these two terminals are at a distance of nearer, thereby effectively raise the positioning precision to the terminal at a distance of nearer.
Those skilled in the art should understand, the application's embodiment can be provided as method, system or computer program.Therefore, the application can adopt complete hardware implementation example, completely implement software example or the form in conjunction with the embodiment of software and hardware aspect.And the application can adopt the form at one or more upper computer programs of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) that wherein include computer usable program code.
The application is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present application, equipment (system) and computer program.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction that makes to carry out by the processor of computer or other programmable data processing device produces the device for realizing the function of specifying at flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of specifying in flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of specifying in flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame on computer or other programmable devices.
Although described the application's preferred embodiment, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to be interpreted as comprising preferred embodiment and fall into all changes and the modification of the application's scope.
Obviously, those skilled in the art can carry out various changes and modification and the spirit and scope that do not depart from the application to the application.Like this, if within these of the application are revised and modification belongs to the scope of the application's claim and equivalent technologies thereof, the application is also intended to comprise these changes and modification interior.