CN103731800B - Method of locating terminal and device - Google Patents

Method of locating terminal and device Download PDF

Info

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

Links

Abstract

This application discloses a kind of method of locating terminal and device, the method comprising the steps of:Receive the first terminal Location Request that first terminal equipment is sent;Obtain the current positional information of first terminal equipment;Search each second terminal equipment fallen into the current corresponding localization region of positional information of the first terminal equipment;Obtain the first terminal equipment and the direction pointed by the electronic compass in each second terminal equipment found;In each second terminal equipment found, determine that the direction pointed by electronic compass and the direction pointed by the electronic compass of the first terminal equipment meet the second terminal equipment of default matched rule.Using technical scheme, the ratio of precision for solving terminal positioning in the prior art is relatively low, and position fixing process is comparatively laborious, the problem of flexibility is poor.

Description

Method of locating terminal and device
Technical field
The application is related to field of locating technology, more particularly to a kind of method of locating terminal and device.
Background technology
In the prior art, it may need to transmit information between two very near terminal devices(Such as card information Or image information etc.), now, one of terminal device needs finding another terminal in neighbouring terminal device Equipment, then sets up with another terminal device for finding and communicates to connect, to carry out information transfer again.
Wherein it is possible to using collision(Bump)Technology carrys out positioning terminal equipment, concretely comprises the following steps:Using terminal device A User wants to transmit information with other-end equipment by terminal device A, and now the user of using terminal device A needs to rock end Gravity sensor in end equipment A, terminal device A, which is sensed, to be rocked after operation, can be sent eventually to the location-server of network side Location Request is held, the coordinate for itself being presently in position location-server is reported into, location-server can just obtain the end End equipment A coordinate, or terminal device A by the mark and reporting signal strength of itself current own base station to positioning service Device, location-server is according to the mark and signal intensity of the current own base stations of terminal device A, it becomes possible to calculate the terminal The coordinate of device A, in addition, location-server can be performed the time point of receiving terminal Location Request as terminal device A Rock the time point of operation, location-server orient performed with terminal device A rock operation time point is identical and coordinate difference Terminal device in default coordinate difference threshold value, and the mark for the terminal device oriented is supplied to terminal device A, so that Terminal device A and the terminal device oriented are set up and communicated to connect.
Therefore, if terminal device A needs to transmit information with terminal device B, using terminal equipment B user also needs Terminal device B is rocked, if two terminal devices, which are performed, is rocked operation while terminal device A is performed and rocked operation Time point is different, then location-server would not orient terminal device B for terminal device A, and this allows for terminal positioning Ratio of precision is relatively low, and requires higher to the interactive of user.
In addition it is also possible to which Bluetooth technology carrys out positioning terminal equipment, concretely comprise the following steps:Terminal device A needs and terminal device B When transmitting information, two terminal devices, which are required to unlatching Bluetooth function, i.e. user, to be needed to start the bluetooth module in terminal device, If terminal device A needs to search terminal device B, using terminal equipment B user is needed terminal device B state setting For externally it is visible, after terminal device A searches terminal device B, the user of using terminal device A is also needed in terminal device A The authorization code that middle input terminal equipment B is set, the communication connection that could be set up between terminal device A and terminal device B.
Therefore, when carrying out positioning terminal equipment using Bluetooth technology, the operation of user is comparatively laborious so that terminal positioning Flexibility it is poor.
The content of the invention
In view of this, the embodiment of the present application provides a kind of method of locating terminal and device, for solving in the prior art eventually Hold the ratio of precision of positioning relatively low, and position fixing process is comparatively laborious, the problem of flexibility is poor.
The embodiment of the present application is achieved through the following technical solutions:
A kind of method of locating terminal, the method comprising the steps of:The first terminal positioning for receiving the transmission of first terminal equipment please Ask;Obtain the current positional information of first terminal equipment;Search and fall into the current positional information correspondence of the first terminal equipment Localization region in each second terminal equipment;Obtain in the first terminal equipment and each second terminal equipment for finding Direction pointed by electronic compass;In each second terminal equipment found, determine direction pointed by electronic compass with Direction pointed by the electronic compass of the first terminal equipment meets the second terminal equipment of default matched rule.
A kind of terminal positioning device, including:First Location Request receiving unit, for receiving the transmission of first terminal equipment First terminal Location Request;Positional information obtaining unit, the positional information current for obtaining first terminal equipment;Equipment is searched Unit, sets for searching each second terminal fallen into the current corresponding localization region of positional information of the first terminal equipment It is standby;Direction acquiring unit, for obtaining each second terminal equipment that the first terminal equipment and equipment searching unit are found In electronic compass pointed by direction;Equipment determining unit, each second terminal for being found in equipment searching unit is set In standby, determine that the direction pointed by electronic compass meets pre- with the direction pointed by the electronic compass of the first terminal equipment If matched rule second terminal equipment.
Equipment determining unit, in each second terminal equipment that equipment searching unit is found, determining electronics sieve Direction pointed by disk and the direction pointed by the electronic compass of the first terminal equipment meet the of default matched rule Two terminal devices.
In the embodiment of the present application technical scheme, after the first terminal Location Request of first terminal equipment transmission is received, The current positional information of first terminal equipment is first obtained, it is corresponding that lookup falls into the current positional information of the first terminal equipment Each second terminal equipment in localization region, is then obtained in the first terminal equipment and each second terminal equipment for finding Electronic compass pointed by direction, in each second terminal found, determine the direction pointed by electronic compass and institute The second terminal equipment that the direction pointed by the electronic compass of first terminal equipment meets default matched rule is stated, is retouched by above-mentioned State and understand, if first terminal equipment needs to transmit information with second terminal equipment, only need to the use using first terminal equipment Family rotates the first terminal equipment, so that the direction pointed by the electronic compass of first terminal equipment and the second terminal equipment Direction pointed by electronic compass meets default matched rule, and terminal positioning device can think that first terminal equipment is determined Position goes out the second terminal equipment, and terminal device is rocked in position fixing process without user, rolling is performed without according to terminal device The time point of dynamic operation is positioned, therefore is effectively improved the precision of terminal positioning, and reduces the interaction to user It is required that, in addition, the method for locating terminal that the embodiment of the present application is proposed performs without user and sets the state of terminal device and defeated Enter the operation of authorization code, simplify the flow of terminal positioning, be effectively improved the flexibility of terminal positioning.
Other features and advantage will be illustrated in the following description, also, partly be become from specification Obtain it is clear that or being understood by implementing the application.The purpose of the application and other advantages can be by the explanations write Specifically noted structure is realized and obtained in book, claims and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used for providing further understanding of the present application, and constitutes a part for specification, implements with the application Example is used to explain the application together, does not constitute the limitation to the application.In the accompanying drawings:
Fig. 1 be the embodiment of the present application one in, method of locating terminal schematic flow sheet;
Fig. 2 be the embodiment of the present application one in, terminal device A and terminal device B electronic compass direction schematic diagram one;
Fig. 3 be the embodiment of the present application one in, terminal device A and terminal device B electronic compass direction schematic diagram two;
Fig. 4 be the embodiment of the present application one in, terminal device A and terminal device B electronic compass direction schematic diagram three;
Fig. 5 be the embodiment of the present application one in, terminal device A and terminal device B electronic compass direction schematic diagram four;
Fig. 6 is in the embodiment of the present application two, method of locating terminal implements schematic flow sheet one;
Fig. 7 is in the embodiment of the present application three, method of locating terminal implements schematic flow sheet two;
Fig. 8 is in the embodiment of the present application four, method of locating terminal implements schematic flow sheet three;
Fig. 9 be the embodiment of the present application five in, terminal positioning apparatus structure schematic diagram.
Embodiment
The preferred embodiment of the application is illustrated below in conjunction with Figure of description, it will be appreciated that described herein Preferred embodiment is merely to illustrate and explained the application, is not used to limit the application.And in the case where not conflicting, this Shen Please in embodiment and the feature in embodiment can be mutually combined.
Embodiment one
As shown in figure 1, the method for locating terminal flow chart proposed for the embodiment of the present application one, its specific handling process is such as Under:
Step 11, the first terminal Location Request that first terminal equipment is sent is received.
Wherein, the terminal device mentioned in the embodiment of the present application one can be mobile terminal device, or individual's meter Calculation machine(PC, Personal Computer)Equipment.The terminal positioning device for performing method of locating terminal can be, but not limited to be placed in In location-server.
If wanting to transmit information by first terminal equipment and other-end equipment using the user of first terminal equipment, Can by using terminal positioning device from above-mentioned first terminal equipment to network side send first terminal Location Request, its In, above-mentioned first terminal equipment can need to send to other-end equipment for information sender equipment, i.e. first terminal equipment During information, first terminal Location Request is sent to the terminal positioning device of network side, above-mentioned first terminal equipment can also be letter When breath receiver equipment, i.e. first terminal equipment need to receive the information of other-end equipment transmission, determine to the terminal of network side Position device sends first terminal Location Request.
In the embodiment of the present application one, if being opened using the user of first terminal equipment has positioning in first terminal equipment Some application of function, then first terminal equipment can be to terminal positioning device transmission first terminal Location Request;Or use The user of first terminal equipment opens some application with positioning function in first terminal equipment, and presses application interface On navigation button, then first terminal equipment can to terminal positioning device send first terminal Location Request;Or use The user of one terminal device opens some application with positioning function in first terminal equipment, and uses first terminal equipment User first terminal equipment is kept flat, i.e., first terminal equipment by the gravity sensor of itself detect itself be in level Laying state, then first terminal equipment can be to terminal positioning device transmission first terminal Location Request.
Step 12, the current positional information of first terminal equipment is obtained, searches that to fall into the first terminal equipment current Each second terminal equipment in the corresponding localization region of positional information.
In the embodiment of the present application one, terminal positioning device first enters when being positioned according to the localization method of prior art The fuzzy positioning of row, to orient each terminal device being located near first terminal equipment, wherein, terminal positioning device is carrying out mould Each terminal device oriented after paste positioning is properly termed as each second terminal equipment.
Terminal positioning device obtains the current positional information of first terminal equipment, Ran Houcha when carrying out fuzzy positioning, first Look for and fall into each second terminal equipment that the first terminal equipment is presently in the corresponding localization region in position, each found Two terminal devices are the fuzzy second terminal equipment oriented.
Wherein, the current positional information of first terminal equipment can be presently in the coordinate of position for first terminal equipment, Terminal positioning device can be, but not limited to carry out fuzzy positioning using GPS location method or architecture method.It following is a brief introduction of Lower GPS location method and architecture method.
First, GPS location method.
The coordinate for itself being presently in position is periodically reported terminal positioning dress by the GPS module in each terminal device Put, terminal positioning device is received after the first terminal Location Request of first terminal equipment transmission, and other-end equipment is current The coordinate that the coordinate of present position is presently in position with first terminal equipment respectively is compared, and orients and is set with first terminal Other each terminal devices of coordinate difference in default coordinate difference threshold value between standby, then the terminal device oriented just is fallen into In the corresponding localization region of the current positional information of the first terminal equipment.
2nd, architecture method.
When terminal device is in interior, the mark and reporting signal strength of itself current own base station are determined to terminal Position device, terminal positioning device is received after the first terminal Location Request of first terminal equipment transmission, according to the first terminal The mark and signal intensity of the current own base station of equipment, it becomes possible to calculate the seat that the first terminal equipment is presently in position Mark, coordinate of the terminal positioning device by the coordinate of other-end equipment respectively with first terminal equipment be compared, orient with Other each terminal devices of coordinate difference in default coordinate difference threshold value between first terminal equipment, then the terminal oriented Equipment is just fallen into the corresponding localization region of the current positional information of the first terminal equipment.
Step 13, obtain pointed by the electronic compass in the first terminal equipment and each second terminal equipment found Direction.
Terminal positioning device is after fuzzy positioning is carried out, and it is accurately fixed to be carried out further according to the direction pointed by electronic compass Position, terminal positioning device will obtain first terminal equipment and the fuzzy each second terminal oriented when being accurately positioned, first The direction pointed by electronic compass in equipment, the mode for obtaining the direction pointed by electronic compass can be, but not limited under including State three kinds of modes:
The first acquisition modes, terminal positioning device active obtaining, terminal positioning device is needing to obtain electronic compass institute During the direction of sensing, obtain and ask to first terminal equipment and the fuzzy each second terminal equipment difference sending direction oriented, First terminal equipment and each second terminal equipment gather the electronic compass institute of itself after above-mentioned direction acquisition request is received The direction signs in the direction of sensing, and the direction signs collected are fed back into terminal positioning device, then terminal positioning device Just it can determine that the electronic compass in first terminal equipment and each second terminal equipment is signified according to the direction signs received To direction.
Second of acquisition modes, terminal device active reporting, each terminal device periodically gathers the electronic compass of itself The direction signs in pointed direction, and terminal positioning device is reported, wherein, report cycle can be configured.Terminal is determined Position device is initially received after the direction signs that terminal device is reported, by the direction signs received and the mark of the terminal device Correspondence storage, then the corresponding relation between the mark of terminal device and direction signs has just been obtained, in subsequently received terminal After the direction signs that device periodically is reported, terminal positioning device enters to the direction signs of the terminal device in above-mentioned corresponding relation Row updates, specifically:Terminal positioning device is directed to each terminal device, respectively according to the mark of the terminal device, at the end of storage In corresponding relation between the mark and direction signs of end equipment, the corresponding direction signs of the terminal device are searched, and according to connecing The direction signs that the terminal device received is this time reported, update find, the corresponding direction signs of the terminal device, by upper It can be seen that, the side that each terminal device the last time that is stored with the corresponding relation between the mark and direction signs of terminal device reports To mark.Wherein, above-mentioned corresponding relation can be, but not limited to as shown in the table:
The mark of terminal device Direction signs
Terminal device A mark Direction a
Terminal device B mark Direction b
Terminal device C mark Direction c
Subsequent terminal positioner is needing to obtain pointed by the electronic compass of first terminal equipment and second terminal equipment Direction when, for first terminal equipment and each second terminal equipment, respectively according to the mark of the terminal device, at the end of storage In corresponding relation between the mark and direction signs of end equipment, the corresponding direction signs of the terminal device are searched, and according to looking into The direction signs found, determine the direction pointed by the electronic compass in the terminal device.
In the embodiment of the present application, the mark of terminal device is the mark for being used to identify terminal device, the mark of terminal device Knowledge can be the corresponding device identification of terminal device, or user's mark of device identification binding corresponding with terminal device (The hereinafter referred to as corresponding user of terminal device identifies).
In the above-mentioned second way, fuzzy positioning is carried out according to GPS location method, then terminal device can be by collection Direction signs report terminal positioning device together with the coordinate for itself being presently in position, now report the cycle of direction signs It is consistent with the cycle of coordinate is reported;Fuzzy positioning is carried out according to architecture method, then terminal device can be by the direction of collection Mark and the mark and signal intensity of itself current own base station report terminal positioning device together, now report direction sign The cycle of knowledge is consistent with the cycle of the mark of reporting base station and signal intensity.
The third acquisition modes, first terminal equipment need to terminal positioning device send first terminal Location Request it Before, gather the direction signs in the direction pointed by the electronic compass of itself, and by the direction pointed by the electronic compass of collection Direction signs are carried is sent to terminal positioning device in first terminal Location Request, and terminal positioning device, which receives first terminal, to be determined After the request of position, direction signs are extracted from first terminal Location Request, and according to the direction signs extracted, obtain first eventually Direction pointed by the electronic compass of end equipment.
Terminal positioning device can obtain the electronic compass institute of first terminal equipment according to the third above-mentioned acquisition modes The direction of sensing, then obtains the electronics of each second terminal equipment according to the first above-mentioned acquisition modes or second of acquisition modes Direction pointed by compass.
Electronic compass in terminal device is also digital compass, is a kind of equipment using the earth's magnetic field Lai Ding arctic, one As terminal device in be respectively provided with electronic compass.
Step 14, in each second terminal equipment found, direction pointed by electronic compass and described the are determined Direction pointed by the electronic compass of one terminal device meets the second terminal equipment of default matched rule.
Terminal positioning device in the fuzzy each second terminal equipment oriented, determines electricity when being accurately positioned Direction pointed by sub- compass and the direction pointed by the electronic compass of first terminal equipment meet the of default matched rule Two terminal devices, the second terminal equipment determined is second that terminal positioning device is accurately positioned out for first terminal equipment Terminal device.
Wherein, above-mentioned default matched rule can be:Direction pointed by the electronic compass of second terminal equipment and the Direction pointed by the electronic compass of one terminal device is identical.Now, when the side pointed by the electronic compass of second terminal equipment To it is identical with the direction pointed by the electronic compass of first terminal equipment when, the second terminal equipment be terminal positioning device essence The terminal device really oriented.If being wanted using the user of first terminal equipment whole with neighbouring second by first terminal equipment End equipment transmits information, then first terminal equipment can be just rotated using the user of first terminal equipment, so that first terminal is set The electronic compass of the second terminal equipment of information is transmitted with first terminal equipment with needs in direction pointed by standby electronic compass Pointed direction is identical, then terminal positioning device just can be by judging the side pointed by the electronic compass of each terminal device To being that first terminal equipment is accurately positioned out needs and in each second terminal equipment near first terminal equipment One terminal device transmits the second terminal equipment of information.
For example, the direction pointed by terminal device A electronic compass and the direction pointed by terminal device B electronic compass If as shown in Fig. 2 the user of using terminal device A wants to transmit information, the user by terminal device A and terminal device B Terminal device A direction is rotated, as shown in figure 3, the direction pointed by the electronic compass of the terminal device A after rotating is set with terminal Direction pointed by standby B electronic compass is identical.
Above-mentioned default matched rule can be:Direction and first terminal pointed by the electronic compass of second terminal equipment It is in opposite direction pointed by the electronic compass of equipment.Now, when the direction pointed by the electronic compass of second terminal equipment and the During in opposite direction pointed by the electronic compass of one terminal device, the second terminal equipment is that terminal positioning device is accurately positioned The terminal device gone out.If being wanted using the user of first terminal equipment by first terminal equipment and neighbouring second terminal equipment Information is transmitted, then first terminal equipment can be just rotated using the user of first terminal equipment, so that the electricity of first terminal equipment Pointed by the electronic compass for the second terminal equipment that information is transmitted in direction pointed by sub- compass with needs with first terminal equipment It is in opposite direction, then terminal positioning device just can by judging the direction pointed by the electronic compass of each terminal device, It is that first terminal equipment is accurately positioned out needs and first terminal in each second terminal equipment near first terminal equipment Equipment transmits the second terminal equipment of information.
For example, the direction pointed by terminal device A electronic compass and the direction pointed by terminal device B electronic compass If as shown in figure 4, the user of using terminal device A wants to transmit information, the user by terminal device A and terminal device B Terminal device A direction is rotated, as shown in figure 5, the direction pointed by the electronic compass of the terminal device A after rotating is set with terminal It is in opposite direction pointed by standby B electronic compass.
The embodiment of the present application one proposes, direction of the terminal positioning device according to pointed by the electronic compass of each terminal device, Needs are oriented with that after the second terminal equipment of first terminal equipment transmission information, will can orient for first terminal equipment The mark of second terminal equipment be sent to first terminal equipment so that first terminal equipment can be with the second terminal oriented Equipment sets up communication link and fetches carry out information transfer.Wherein, the mark of second terminal equipment can be second terminal equipment correspondence Device identification, or user's mark of corresponding with second terminal equipment device identification binding(That is second terminal equipment Corresponding user's mark).
Wherein, the mark for each second terminal equipment being accurately positioned out directly can be sent to first by terminal positioning device Terminal device.
In addition, first terminal equipment can also pre-set the defined amount of the mark for the terminal device for needing to feed back, example The defined amount pre-set such as first terminal equipment is one, that is to say, that terminal positioning device only needs to feed back a terminal The mark of equipment gives first terminal equipment.If terminal positioning device, which is first terminal equipment, is accurately positioned out at least two the Two terminal devices, then terminal positioning device the mark of the second terminal oriented equipment can be sent to first terminal equipment Before, the defined amount of mark that first terminal equipment is pre-set, needing the terminal device fed back is first obtained, is then judged Whether the number for the second terminal equipment being accurately positioned out is more than the above-mentioned defined amount obtained, if judged result is no, eventually The mark for the second terminal equipment being accurately positioned out directly can be sent to first terminal equipment by end positioning device.
If the determination result is YES, i.e. the number of the second terminal equipment that terminal positioning device is accurately positioned out has been over The defined amount of the mark for the terminal device that first terminal equipment is fed back the need for pre-setting, then terminal positioning device can be to First terminal equipment sends failure prompt message, to point out the positioning failure of first terminal equipment, in addition, terminal positioning device also may be used To select above-mentioned defined amount second terminal equipment in each second terminal equipment being accurately positioned out, then it will select The mark of each second terminal equipment be sent to first terminal equipment.
In the embodiment of the present application one, terminal positioning device selects regulation in each second terminal equipment being accurately positioned out During number second terminal equipment, can will accurately it determine according to the order with the distance between first terminal equipment from the close-by examples to those far off The mark for each second terminal equipment that position goes out is ranked up, then in the mark of each second terminal equipment after sequence, selection The mark of preceding defined amount second terminal equipment, and by the identification feedback for the defined amount second terminal equipment selected to First terminal equipment.
If in addition, terminal positioning device finally feedback at least two second terminal equipment mark give first terminal equipment, Then the mark of second terminal equipment to be feedback first can be ranked up by terminal positioning device, then by second after sequence eventually The identification feedback of end equipment gives first terminal equipment.Wherein, terminal positioning device can be according between first terminal equipment The order of distance from the close-by examples to those far off, the mark of each second terminal equipment is ranked up.
In the embodiment of the present application one, the mark of second terminal equipment is being sent to first terminal equipment by terminal positioning device Afterwards, the second terminal equipment for asking whether and determining can be sent to first terminal equipment(It is accurately positioned out Second terminal equipment)The inquiry message of connection is set up, first terminal equipment is showed the inquiry message received, if first In the mark for the second terminal equipment that terminal device is received, the second of information transfer is carried out with first terminal equipment comprising needs The mark of terminal device, then can pass through first terminal equipment, it would be desirable to first terminal using the user of first terminal equipment The mark carrying that equipment carries out the second terminal equipment of information transfer feeds back to terminal positioning device in confirming to reply, and terminal is fixed Position device is after the confirmation for receiving first terminal equipment feedback is replied, and the determination set up first terminal equipment and received is replied Communication connection between the corresponding second terminal equipment of mark of middle carrying.
Terminal positioning device by the identification feedback of second terminal equipment to first terminal equipment after, if using first terminal The user of equipment does not find needs and transmits information with first terminal equipment in the mark of the second terminal equipment received Second terminal equipment mark, then the user may be rotated further first terminal equipment, now first terminal equipment Direction pointed by electronic compass will change, and be oriented in addition, terminal positioning device is that first terminal equipment is fuzzy The direction of each second terminal equipment be able to may also be changed, and in order to further improve the precision of terminal positioning, the application is implemented Example one proposes that terminal positioning device detects the electronic compass in first terminal equipment and the fuzzy each second terminal equipment oriented Whether pointed direction changes, if detecting in first terminal equipment and each second terminal equipment for finding at least Direction pointed by the electronic compass of one terminal device changes, then terminal positioning device again it is fuzzy orient it is each In second terminal equipment, determine that the direction pointed by electronic compass and the direction pointed by the electronic compass of first terminal equipment are accorded with Close the second terminal equipment of default matched rule, then terminal positioning device judge the second terminal equipment this time determined with Whether the second terminal equipment that the last time is determined is identical, if judging identical, can not process, if judging difference, Then the mark for the second terminal equipment that terminal positioning device can determine this is sent to first terminal equipment, with renewal The mark of the second terminal equipment once sent.
In the embodiment of the present application one, terminal positioning device is orienting each second terminal equipment for first terminal equipment is fuzzy Afterwards, and before the direction pointed by the electronic compass in obtaining each terminal device, can by it is fuzzy orient each the Two terminal devices(Fall into the corresponding localization region of the current positional information of first terminal equipment each second found is eventually End equipment)Mark be sent to first terminal equipment, first terminal equipment is by the mark exhibition of each second terminal equipment received Now give user, wherein, terminal device mark can comprising using terminal equipment user set institute image and word believe Breath, subsequent terminal positioner is accurately positioned out the direction pointed by electronic compass and the electronic compass meaning of first terminal equipment To direction meet after the second terminal equipment of default matched rule, the mark of the second terminal equipment being accurately positioned out is sent out First terminal equipment is given, first terminal equipment is searched in the mark of the fuzzy each second terminal equipment oriented and is accurately positioned The mark of the second terminal equipment gone out, and the image in the mark found is amplified, so as to use the use of first terminal equipment Family can know each second terminal equipment near first terminal equipment, which second terminal equipment and first terminal equipment Electronic compass pointed by it is reverse identical or opposite.
In addition, the embodiment of the present application one is also, it has been proposed that terminal positioning device is being accurately positioned out second for first terminal equipment After terminal device, communication connection can be set up directly between first terminal equipment and the second terminal equipment being accurately positioned out, So first terminal equipment just directly can transmit information with the second terminal equipment being accurately positioned out, be effectively improved terminal The flexibility of information is transmitted between equipment.
Seen from the above description, the method for locating terminal in the embodiment of the present application one comprising fuzzy positioning, be accurately positioned and Three steps of positioning result are fed back, or three steps of communication connection, terminal positioning dress are positioned, are accurately positioned and set up comprising fuzzy Put after the first terminal Location Request for receiving the transmission of first terminal equipment, the step of performing fuzzy positioning, wherein, terminal positioning Device can directly perform the step of being accurately positioned and feed back positioning result after fuzzy positioning is performed, or directly perform accurate The step of positioning and foundation communication connection;Terminal positioning device can also receive the second terminal of first terminal equipment transmission After Location Request, then the step of being accurately positioned and feed back positioning result is performed, or execution is accurately positioned and set up communication connection Step;In addition, terminal positioning device can also be after fuzzy positioning be performed, then the step of execution is accurately positioned receiving After the second terminal Location Request that first terminal equipment is sent, the step of performing feedback positioning result or set up communication connection.Cause This, the method for locating terminal in the embodiment of the present application one comprises at least following three kinds of positioning flows, is specially:
The first positioning flow, first terminal equipment sends first terminal Location Request to terminal positioning device, and terminal is fixed Position device is received after first terminal Location Request, carries out fuzzy positioning, that is, is searched and fallen into the current position of the first terminal equipment Confidence ceases each second terminal equipment in corresponding localization region, is then accurately positioned, that is, obtain first terminal equipment with The direction pointed by electronic compass in each second terminal equipment found, and in each second terminal equipment found In, determine that the direction pointed by electronic compass and the direction pointed by the electronic compass of first terminal equipment meet default Second terminal equipment with rule, then terminal positioning device is accurate fixed to first terminal equipment feedback positioning result, i.e. feedback The mark for the second terminal equipment that position goes out, or terminal positioning device is in first terminal equipment and the second terminal being accurately positioned out Communication connection is set up between equipment.
Second of positioning flow, first terminal equipment sends first terminal Location Request to terminal positioning device, and terminal is fixed Position device is received after first terminal Location Request, carries out fuzzy positioning, that is, is searched and fallen into the current position of the first terminal equipment Confidence ceases each second terminal equipment in corresponding localization region, if wanting to orient and the using the user of first terminal equipment The identical or opposite second terminal equipment in direction pointed by the electronic compass of one terminal device, then first terminal will be triggered Equipment sends second terminal Location Request to terminal positioning device, and terminal positioning device is received after second terminal Location Request, It is accurately positioned, that is, obtains the side pointed by the electronic compass in first terminal equipment and each second terminal equipment found To, and in each second terminal equipment found, determine the direction pointed by electronic compass and first terminal equipment Direction pointed by electronic compass meets the second terminal equipment of default matched rule, and then terminal positioning device is whole to first End equipment feeds back positioning result, i.e., the mark of second terminal equipment that feedback is accurately positioned out, or terminal positioning device the Communication connection is set up between one terminal device and the second terminal equipment being accurately positioned out.
The third positioning flow, first terminal equipment sends first terminal Location Request to terminal positioning device, and terminal is fixed Position device is received after first terminal Location Request, carries out fuzzy positioning, that is, is searched and fallen into the current position of the first terminal equipment Confidence ceases each second terminal equipment in corresponding localization region, and then terminal positioning device is accurately positioned, that is, obtains the The direction pointed by electronic compass in one terminal device and each second terminal equipment found, and in each the found In two terminal devices, determine that the direction pointed by electronic compass and the direction pointed by the electronic compass of first terminal equipment are accorded with The second terminal equipment of default matched rule is closed, is set if wanting to orient using the user of first terminal equipment with first terminal The identical or opposite second terminal equipment in direction pointed by standby electronic compass, then first terminal equipment will be triggered to end End positioning device sends second terminal Location Request, and terminal positioning device is received after second terminal Location Request, to first eventually End equipment feeds back positioning result, i.e., the mark of second terminal equipment that feedback is accurately positioned out, or terminal positioning device the Communication connection is set up between one terminal device and the second terminal equipment being accurately positioned out.
In actual application, can be selected which kind of positioning flow used according to business demand, can also be according to industry Business demand is the mark of second terminal equipment that feedback is accurately positioned out to select, or directly sets up first terminal equipment and essence Communication connection between the second terminal equipment really oriented.
In the embodiment of the present application one, asked if triggering first terminal equipment sends first terminal positioning to terminal positioning device The operation asked is that some opened using the user of first terminal equipment in first terminal equipment with positioning function is applied, then The operation that triggering first terminal equipment sends second terminal Location Request to terminal positioning device can be to be set using first terminal Standby user presses the navigation button on application interface, or can be the user using first terminal equipment by first terminal Equipment is kept flat, i.e., first terminal equipment detects itself by the gravity sensor of itself and is in horizontal positioned state.
The method of locating terminal that the embodiment of the present application one is proposed can be, but not limited to enter applied to user's using terminal equipment The process that row is paid the bill face-to-face, paying party user or beneficiary user turn to the electronic compass of used terminal device with receiving The identical or opposite direction of electronic compass in terminal device used in money side user or paying party user, and triggering terminal positions Device carries out fuzzy positioning or is accurately positioned, and terminal positioning device is by the identification feedback for the terminal device being accurately positioned out to payment Terminal device used in square user or beneficiary user, then paying party user or beneficiary user just can used in eventually Communication connection between terminal device used in end equipment and beneficiary user or paying party user, carries out payment process, eventually End positioning device can also be directly set up used in the terminal device being accurately positioned out and paying party user or beneficiary user Communication connection between terminal device, so that paying party user and beneficiary user can carry out payment process, is effectively improved The flexibility of payment, also improves payment efficiency.
In above-mentioned handling process, the embodiment of the present application technical scheme, the transmission of first terminal equipment is being received After first terminal Location Request, the current positional information of first terminal equipment is first obtained, lookup falls into the first terminal equipment Each second terminal equipment in the corresponding localization region of current positional information, then obtains the first terminal equipment and lookup To each second terminal equipment in electronic compass pointed by direction, in each second terminal found, determine electronics Direction pointed by compass meets default matched rule with the direction pointed by the electronic compass of the first terminal equipment Second terminal equipment, seen from the above description, if first terminal equipment needs to transmit information with second terminal equipment, is only needed to The first terminal equipment is rotated using the user of first terminal equipment, so that the side pointed by the electronic compass of first terminal equipment Meet default matched rule to the direction pointed by the electronic compass of the second terminal equipment, terminal positioning device is just The second terminal equipment can be oriented for first terminal equipment, terminal device is rocked in position fixing process without user, also without It need to be performed according to terminal device and rock the time point of operation and positioned, therefore be effectively improved the precision of terminal positioning, And the interaction reduced to user is required, in addition, the method for locating terminal that the embodiment of the present application is proposed performs setting without user The state of terminal device and the operation for inputting authorization code, simplify the flow of terminal positioning, are effectively improved terminal positioning Flexibility.
Embodiment two
If positioning flow is the first above-mentioned positioning flow, and terminal positioning device is accurately positioned out after second terminal equipment To first terminal equipment feed back positioning result, then method of locating terminal implement as shown in fig. 6, its specific handling process such as Under:
Step 61, the user of using terminal device A opens a terminal when there is in device A some of positioning function to apply, eventually End equipment A sends first terminal Location Request to terminal positioning device;
Step 62, terminal positioning device is received after first terminal Location Request, obtains the current position letters of terminal device A Breath, searches each terminal device fallen into the current corresponding localization regions of positional information of terminal device A;
Step 63, the electronic compass that terminal positioning device is obtained in terminal device A and each terminal device found is signified To direction;
Step 64, terminal positioning device determines the direction pointed by electronic compass in each terminal device found With the terminal device in opposite direction pointed by terminal device A electronic compass, that is, determine electronic compass pointed by direction with Direction pointed by terminal device A electronic compass meets the terminal device of default matched rule;
Step 65, terminal positioning device feeds back direction and the terminal pointed by determine, electronic compass to terminal device A The mark of terminal device in opposite direction pointed by the electronic compass of device A.
Embodiment three
If positioning flow is above-mentioned second of positioning flow, and terminal positioning device is accurately positioned out after second terminal equipment To first terminal equipment feed back positioning result, then method of locating terminal implement as shown in fig. 7, its specific handling process such as Under:
Step 71, the user of using terminal device A opens a terminal when there is in device A some of positioning function to apply, eventually End equipment A sends first terminal Location Request to terminal positioning device;
Step 72, terminal positioning device is received after first terminal Location Request, obtains the current position letters of terminal device A Breath, searches each terminal device fallen into the current corresponding localization regions of positional information of terminal device A;
Step 73, the user of using terminal device A keeps flat terminal device A, i.e. terminal device A is passed by the gravity of itself Sensor detects itself and is in horizontal positioned state, then terminal device A sends second terminal Location Request to terminal positioning device;
Step 74, terminal positioning device is received after second terminal Location Request, obtain terminal device A and find it is each The direction pointed by electronic compass in terminal device;
Step 75, terminal positioning device determines the direction pointed by electronic compass in each terminal device found With the terminal device in opposite direction pointed by terminal device A electronic compass, that is, determine electronic compass pointed by direction with Direction pointed by terminal device A electronic compass meets the terminal device of default matched rule;
Step 76, terminal positioning device feeds back direction and the terminal pointed by determine, electronic compass to terminal device A The mark of terminal device in opposite direction pointed by the electronic compass of device A.
Example IV
If positioning flow is the third above-mentioned positioning flow, and terminal positioning device is accurately positioned out after second terminal equipment To first terminal equipment feed back positioning result, then method of locating terminal implement as shown in figure 8, its specific handling process such as Under:
Step 81, the user of using terminal device A opens a terminal when there is in device A some of positioning function to apply, eventually End equipment A sends first terminal Location Request to terminal positioning device;
Step 82, terminal positioning device is received after first terminal Location Request, obtains the current position letters of terminal device A Breath, searches each terminal device fallen into the current corresponding localization regions of positional information of terminal device A;
Step 83, the electronic compass that terminal positioning device is obtained in terminal device A and each terminal device found is signified To direction;
Step 84, terminal positioning device determines the direction pointed by electronic compass in each terminal device found With the terminal device in opposite direction pointed by terminal device A electronic compass, that is, determine electronic compass pointed by direction with Direction pointed by terminal device A electronic compass meets the terminal device of default matched rule;
Step 85, the user of using terminal device A keeps flat terminal device A, i.e. terminal device A is passed by the gravity of itself Sensor detects itself and is in horizontal positioned state, then terminal device A sends second terminal Location Request to terminal positioning device;
Step 86, terminal positioning device is received after second terminal Location Request, being determined to terminal device A feedbacks, Direction and the mark of the terminal device in opposite direction pointed by terminal device A electronic compass pointed by electronic compass.
Embodiment five
Corresponding with the method for locating terminal that the embodiment of the present application one is proposed, the embodiment of the present application five proposes a kind of terminal positioning Device, its structure as shown in figure 9, including:
First Location Request receiving unit 91, the first terminal Location Request for receiving the transmission of first terminal equipment;
Positional information obtaining unit 92, the positional information current for obtaining first terminal equipment;
Equipment searching unit 93, the current corresponding positioning area of positional information of the first terminal equipment is fallen into for searching Each second terminal equipment in domain;
Direction acquiring unit 94, for obtaining the first terminal equipment and equipment searching unit 92 are found each second The direction pointed by electronic compass in terminal device;
Equipment determining unit 95, in each second terminal equipment that equipment searching unit 93 is found, determining electricity Direction pointed by sub- compass meets default matched rule with the direction pointed by the electronic compass of the first terminal equipment Second terminal equipment.
It is preferred that the current positional information of the first terminal equipment, which is the first terminal equipment, is presently in position Coordinate;
The positional information obtaining unit 92, position is presently in specifically for what the acquisition first terminal equipment was reported Coordinate, or obtain the mark and signal intensity of the current own base station that the first terminal equipment is reported, and according to described The mark and signal intensity of the current own base station of first terminal equipment, calculate the seat that first terminal equipment is presently in position Mark.
It is preferred that the direction acquiring unit 94 is specifically included:
Request transmission sub-unit is obtained, each second for being found to first terminal equipment and equipment searching unit 93 is whole End equipment difference sending direction obtains request;
Direction signs receiving subelement, for receiving first terminal equipment and equipment searching unit 93 are found each second Terminal device is receiving the direction pointed by gather and feed back after the direction the obtains request, electronic compass of itself Direction signs;
Direction determination subelement, for the direction signs received according to direction signs receiving subelement, determines described The direction pointed by electronic compass in each second terminal equipment that one terminal device and equipment searching unit 93 are found.
It is preferred that the terminal positioning device also includes:
Direction signs receiving unit, for receiving pointed by each terminal device is periodically the reported, electronic compass of itself Direction direction signs;
Direction signs searching unit, for for each terminal device, respectively according to the mark of the terminal device, in storage In corresponding relation between the mark and direction signs of terminal device, the corresponding direction signs of the terminal device are searched;
Direction signs updating block, for for each terminal device, being reported respectively according to the terminal device received Direction signs, update direction signs searching unit is found, the corresponding direction signs of the terminal device;
The direction acquiring unit 94, specifically for for first terminal equipment and each second terminal equipment, basis respectively In the mark of the terminal device, the corresponding relation between the mark and direction signs of the terminal device of storage, the terminal is searched The corresponding direction signs of equipment, and according to the direction signs found, determine pointed by the electronic compass in the terminal device Direction.
It is preferred that carrying first in the first terminal Location Request that the first Location Request receiving unit 91 is received The direction signs in the direction pointed by the electronic compass of terminal device;
The direction acquiring unit 94, determines specifically for the first terminal received from the first Location Request receiving unit 91 Direction signs are extracted in the request of position, and determine according to the direction signs extracted the electronic compass institute of the first terminal equipment The direction of sensing.
It is preferred that the default matched rule is:
Direction pointed by the electronic compass of second terminal equipment and the side pointed by the electronic compass of first terminal equipment To identical;Or
Direction pointed by the electronic compass of second terminal equipment and the side pointed by the electronic compass of first terminal equipment To opposite.
It is preferred that the terminal positioning device also includes:
Second Location Request receiving unit, for obtaining the first terminal equipment in direction acquiring unit 94 and finding Each second terminal equipment in electronic compass pointed by direction before, receive that the first terminal equipment sends second is eventually Hold Location Request.
It is preferred that the terminal positioning device also includes:
First device identification transmitting element, for the mark hair for the second terminal equipment for determining equipment determining unit 95 Give the first terminal equipment.
More preferably, the terminal positioning device also includes:
Second device identification transmitting element, for obtaining the first terminal equipment in direction acquiring unit 94 and equipment is looked into Look for before the direction pointed by the electronic compass in each second terminal equipment that unit 93 finds, equipment searching unit 93 is looked into The mark of each second terminal equipment fallen into the current corresponding localization region of positional information of the first terminal equipment found Knowledge is sent to the first terminal equipment.
More preferably, the terminal positioning device also includes:
Inquiry message transmitting element, for being sent to the first terminal equipment for asking whether and equipment determining unit The second terminal equipment determined sets up the inquiry message of connection;
Confirm to reply receiving unit, the confirmation for receiving the first terminal equipment feedback is replied, described to confirm to reply The middle mark for carrying the second terminal equipment in need that communication connection is set up with first terminal equipment;
Unit is set up in first communication connection, for confirming that replying receiving unit receives the first terminal equipment feedback Confirmation reply after, set up the first terminal equipment and determine in reply the corresponding second terminal equipment of the mark that carries with described Between communication connection.
More preferably, the terminal positioning device also includes:
Defined amount obtaining unit, the electronics for determining at least two second terminal equipment in equipment determining unit 95 When direction pointed by compass meets default matched rule with the direction pointed by the electronic compass of the first terminal equipment, The mark for the second terminal equipment for determining equipment determining unit 95 in the first device identification transmitting element is sent to described Before one terminal device, the regulation of mark that the first terminal equipment is pre-set, needing the terminal device fed back is obtained Number;
Number of devices judging unit, for judge the second terminal equipment that equipment determining unit 95 is determined number whether The defined amount obtained more than defined amount obtaining unit;
The first device identification transmitting element, specifically for number of devices judging unit judged result for it is no when, The step of mark for performing the second terminal equipment for determining equipment determining unit 95 is sent to the first terminal equipment.
More preferably, the terminal positioning device also includes:
Equipment selecting unit, for when the judged result of number of devices judging unit is to be, in equipment determining unit 95 The defined amount second terminal equipment is selected in each second terminal equipment determined;
3rd device identification transmitting element, for the mark hair for each second terminal equipment for selecting equipment selecting unit Give the first terminal equipment.
More preferably, the terminal positioning device also includes:
3rd Location Request receiving unit, for determining equipment determining unit 95 in the first device identification transmitting element The mark of second terminal equipment be sent to before the first terminal equipment, receive the first terminal equipment is sent second Terminal positioning is asked.
More preferably, the terminal positioning device also includes:
Angle detecting unit, for detecting each second end that the first terminal equipment and equipment searching unit 93 are found Whether the direction pointed by electronic compass in end equipment changes;
The equipment determining unit 95, is additionally operable to detect the first terminal equipment in angle detecting unit and equipment is looked into Direction pointed by the electronic compass at least one terminal device looked in each second terminal equipment that unit 93 finds occurs During change, again in each second terminal equipment that equipment searching unit 93 is found, the side pointed by electronic compass is determined To the second terminal equipment for meeting default matched rule with the direction pointed by the electronic compass of the first terminal equipment;
Equipment judging unit, for judging that second terminal equipment that equipment determining unit 95 this time determines and last time are true Whether the second terminal equipment made is identical;
4th device identification transmitting element, for when equipment judging unit judges different, by equipment determining unit 95 The mark of this second terminal equipment determined is sent to the first terminal equipment.
It is preferred that the terminal positioning device also includes:
Unit is set up in second communication connection, for determined in the first terminal equipment and equipment determining unit 95 the Communication connection is set up between two terminal devices.
More preferably, the terminal positioning device also includes:
4th Location Request receiving unit, for determined in the first terminal equipment and equipment determining unit 95 the Set up between two terminal devices before communication connection, receive the second terminal Location Request that the first terminal equipment is sent.
The terminal positioning device that the embodiment of the present application five is provided can be realized by computer program.Those skilled in the art It should be appreciated that above-mentioned dividing elements mode is only one kind in plurality of cells dividing mode, if being divided into other lists Member or without inner cells, all should be within the protection domain of the application as long as terminal positioning device has above-mentioned functions.
In the embodiment of the present application five, terminal positioning device can be arranged in location-server, that is to say, that positioning service Utensil has the above-mentioned functions of terminal positioning device, in addition, terminal positioning device can also be arranged in other servers.
It will be understood by those skilled in the art that embodiments herein can be provided as method, device(Equipment)Or computer Program product.Therefore, in terms of the application can be using complete hardware embodiment, complete software embodiment or combination software and hardware Embodiment form.Moreover, the application can be used in one or more meters for wherein including computer usable program code Calculation machine usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer journey of upper implementation The form of sequence product.
The application is with reference to the method according to the embodiment of the present application, device(Equipment)With the flow chart of computer program product And/or block diagram is described.It should be understood that can be by each flow in computer program instructions implementation process figure and/or block diagram And/or square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided to refer to The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is made to produce One machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for realizing The device for the function of being specified in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, 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, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into 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 processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified 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, appended claims are intended to be construed to include excellent Select embodiment and fall into having altered and changing for the application scope.Obviously, those skilled in the art can be to the application Various changes and modification are carried out without departing from spirit and scope.So, if these modifications and variations of the application Belong within the scope of the application claim and its equivalent technologies, then the application is also intended to exist comprising these changes and modification It is interior.

Claims (13)

1. a kind of method of locating terminal, it is characterised in that including:
Receive the first terminal Location Request that first terminal equipment is sent;
Obtain the current positional information of first terminal equipment;
Search each second terminal equipment fallen into the current corresponding localization region of positional information of the first terminal equipment;
For first terminal equipment and each second terminal equipment, respectively according to the mark of the terminal device, set in the terminal of storage In corresponding relation between standby mark and direction signs, the corresponding direction signs of the terminal device are searched, and according to finding Direction signs, determine the direction pointed by the electronic compass in the terminal device;
In each second terminal equipment found, the direction pointed by electronic compass and the first terminal equipment are determined Direction pointed by electronic compass meets the second terminal equipment of default matched rule.
2. the method as described in claim 1, it is characterised in that each second for obtaining the first terminal equipment and finding is whole The direction pointed by electronic compass in end equipment, is specifically included:
Request is obtained to first terminal equipment and each second terminal equipment found difference sending direction;
Receive first terminal equipment and each second terminal equipment found and receive collection after the direction obtains request And the direction signs in the direction pointed by feedback, the electronic compass of itself;
According to the direction signs received, the electronics in the first terminal equipment and each second terminal equipment found is determined Direction pointed by compass.
3. the method as described in claim 1, it is characterised in that also include:
Receive the direction signs in the direction pointed by each terminal device is periodically the reported, electronic compass of itself;
For each terminal device, respectively according to the mark of the terminal device, in the mark and direction signs of the terminal device of storage Between corresponding relation in, search the corresponding direction signs of the terminal device, and report according to the terminal device received Direction signs, update find, the corresponding direction signs of the terminal device.
4. the method as described in claim 1, it is characterised in that the default matched rule is:
Direction pointed by the electronic compass of second terminal equipment and the direction phase pointed by the electronic compass of first terminal equipment Together;Or
Direction pointed by the electronic compass of second terminal equipment and the direction phase pointed by the electronic compass of first terminal equipment Instead.
5. the method as described in claim 1, it is characterised in that also include:
The mark for the second terminal equipment determined is sent to the first terminal equipment.
6. method as claimed in claim 5, it is characterised in that also include:
The second terminal equipment sent to the first terminal equipment for asking whether and determining sets up the inquiry letter of connection Breath;And
The confirmation for receiving the first terminal equipment feedback is replied, described to confirm to carry in need and first terminal equipment in replying Set up the mark of the second terminal equipment of communication connection;
Set up between the corresponding second terminal equipment of the mark carried during the first terminal equipment is replied with the determination that receives Communication connection.
7. the method as described in claim 1~6 any claim, it is characterised in that also include:
If detecting the first terminal equipment and the electricity of at least one terminal device in each second terminal equipment found Direction pointed by sub- compass changes, then determines electronic compass institute in each second terminal equipment found again The direction of sensing meets the second end of default matched rule with the direction pointed by the electronic compass of the first terminal equipment End equipment;
Judge whether the second terminal equipment this time determined is identical with the second terminal equipment that the last time is determined;
If judging difference, the mark of this second terminal equipment determined is sent to the first terminal equipment.
8. a kind of terminal positioning device, it is characterised in that including:
First Location Request receiving unit, the first terminal Location Request for receiving the transmission of first terminal equipment;
Positional information obtaining unit, the positional information current for obtaining first terminal equipment;
Equipment searching unit, falls into the current corresponding localization region of positional information of the first terminal equipment for searching Each second terminal equipment;
Direction acquiring unit, for for first terminal equipment and each second terminal equipment, respectively according to the mark of the terminal device Know, in the corresponding relation between the mark and direction signs of the terminal device of storage, search the corresponding direction of the terminal device Mark, and according to the direction signs found, determine the direction pointed by the electronic compass in the terminal device;
Equipment determining unit, in each second terminal equipment that equipment searching unit is found, determining electronic compass institute The direction of sensing meets the second end of default matched rule with the direction pointed by the electronic compass of the first terminal equipment End equipment.
9. device as claimed in claim 8, it is characterised in that the direction acquiring unit is specifically included:
Request transmission sub-unit is obtained, for each second terminal equipment found to first terminal equipment and equipment searching unit Sending direction obtains request respectively;
Direction signs receiving subelement, sets for receiving each second terminal that first terminal equipment and equipment searching unit are found The direction sign in the direction pointed by standby gather and feed back after the direction acquisition request the is received, electronic compass of itself Know;
Direction determination subelement, for the direction signs received according to direction signs receiving subelement, determines described first eventually The direction pointed by electronic compass in each second terminal equipment that end equipment and equipment searching unit are found.
10. device as claimed in claim 8, it is characterised in that also include:
Direction signs receiving unit, for receiving the side pointed by each terminal device is periodically the reported, electronic compass of itself To direction signs;
Direction signs searching unit, for for each terminal device, respectively according to the mark of the terminal device, in the terminal of storage In corresponding relation between the mark and direction signs of equipment, the corresponding direction signs of the terminal device are searched;
Direction signs updating block, for the direction reported for each terminal device, the terminal device that basis is received respectively Mark, updates direction signs searching unit is found, the corresponding direction signs of the terminal device.
11. device as claimed in claim 8, it is characterised in that also include:
First device identification transmitting element, the mark of the second terminal equipment for equipment determining unit to be determined is sent to institute State first terminal equipment.
12. device as claimed in claim 11, it is characterised in that also include:
Inquiry message transmitting element, for being sent to the first terminal equipment for asking whether to determine with equipment determining unit The second terminal equipment gone out sets up the inquiry message of connection;
Confirm to reply receiving unit, the confirmation for receiving the first terminal equipment feedback is replied, described to confirm to take in replying Mark with the second terminal equipment in need that communication connection is set up with first terminal equipment;
Unit is set up in first communication connection, for confirming that replying receiving unit receives the first terminal equipment feedback really Recognize after reply, set up between the corresponding second terminal equipment of the mark carried during the first terminal equipment and the determination are replied Communication connection.
13. the device as described in claim 8~12 any claim, it is characterised in that also include:
Angle detecting unit, for detecting each second terminal equipment that the first terminal equipment and equipment searching unit are found In electronic compass pointed by direction whether change;
The equipment determining unit, is additionally operable to detect the first terminal equipment and equipment searching unit in angle detecting unit When direction pointed by the electronic compass of at least one terminal device in each second terminal equipment found changes, weight Newly in each second terminal equipment that equipment searching unit is found, the direction and described first pointed by electronic compass is determined Direction pointed by the electronic compass of terminal device meets the second terminal equipment of default matched rule;
Equipment judging unit, for judging that second terminal equipment that equipment determining unit this time determines is determined with last Whether second terminal equipment is identical;
4th device identification transmitting element, it is for when equipment judging unit judges different, equipment determining unit is this time true The mark for the second terminal equipment made is sent to the first terminal equipment.
CN201210389995.6A 2012-10-15 2012-10-15 Method of locating terminal and device Active CN103731800B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210389995.6A CN103731800B (en) 2012-10-15 2012-10-15 Method of locating terminal and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210389995.6A CN103731800B (en) 2012-10-15 2012-10-15 Method of locating terminal and device

Publications (2)

Publication Number Publication Date
CN103731800A CN103731800A (en) 2014-04-16
CN103731800B true CN103731800B (en) 2017-07-21

Family

ID=50455692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210389995.6A Active CN103731800B (en) 2012-10-15 2012-10-15 Method of locating terminal and device

Country Status (1)

Country Link
CN (1) CN103731800B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105578404B (en) 2014-10-17 2021-05-11 中兴通讯股份有限公司 Positioning method and corresponding terminal and system
CN105871952A (en) * 2015-01-20 2016-08-17 阿里巴巴集团控股有限公司 Method and device for information processing
CN104869538B (en) * 2015-05-18 2018-09-18 小米科技有限责任公司 Localization method and device
CN106412819B (en) * 2015-07-31 2020-11-10 腾讯科技(深圳)有限公司 Method and device for positioning equipment
CN105494286A (en) * 2015-11-27 2016-04-20 小米科技有限责任公司 Mosquito eradication method and device
CN105554563A (en) * 2015-12-14 2016-05-04 小米科技有限责任公司 Method and device for multimedia playing
CN108471592A (en) * 2017-02-22 2018-08-31 中兴通讯股份有限公司 A kind of communication means, mobile terminal and server
CN108004990B (en) * 2017-11-21 2020-01-07 浙江工商大学 Tidal lane change method adopting ultrasonic obstacle avoidance
CN108109358B (en) * 2017-12-15 2021-06-29 广众通电子(深圳)有限公司 Information interaction method and system
CN110324779A (en) * 2019-05-21 2019-10-11 平安普惠企业管理有限公司 Location data monitoring method and relevant device based on information security
CN110440808A (en) * 2019-08-13 2019-11-12 Oppo(重庆)智能科技有限公司 Indoor orientation method, system and device based on visible light communication
CN111093181B (en) * 2019-11-19 2023-06-02 深圳优克云联科技有限公司 Device matching method, electronic device and storage medium
CN111541815A (en) * 2020-04-16 2020-08-14 广东好太太科技集团股份有限公司 Terminal interaction method and device based on electronic compass and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102300149A (en) * 2010-06-23 2011-12-28 上海博路信息技术有限公司 Target recognition mobile phone system based on global positioning system (GPS) and electronic compass
CN102566757A (en) * 2011-12-27 2012-07-11 Tcl集团股份有限公司 Electronic-compass-based mobile terminal and data interaction method thereof
CN102630076A (en) * 2012-03-20 2012-08-08 广州市动景计算机科技有限公司 Display method and system of target position direction pointing information based on electronic compass

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102300149A (en) * 2010-06-23 2011-12-28 上海博路信息技术有限公司 Target recognition mobile phone system based on global positioning system (GPS) and electronic compass
CN102566757A (en) * 2011-12-27 2012-07-11 Tcl集团股份有限公司 Electronic-compass-based mobile terminal and data interaction method thereof
CN102630076A (en) * 2012-03-20 2012-08-08 广州市动景计算机科技有限公司 Display method and system of target position direction pointing information based on electronic compass

Also Published As

Publication number Publication date
CN103731800A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
CN103731800B (en) Method of locating terminal and device
US8750900B2 (en) Facilitating use of a device based on short-range wireless technology
US9560618B2 (en) System and method for providing social network service and for setting relationship between users
US8707319B2 (en) Resource location verification by comparing and updating resource location with a location of a consumer device after a threshold of location mismatches is exceeded
US8959175B2 (en) Method, device and system for creating a virtual local social network
CN105100390A (en) Mobile terminal and method for controlling the mobile terminal
CN102918901A (en) Apparatus and method for recognizing zone in portable terminal
JP5589505B2 (en) Mobile distribution terminal device, participant terminal device, specific information distribution program, and participant terminal program
CN103685428B (en) A method and an apparatus for positioning a terminal
CN104580325A (en) User pairing method and device, as well as data exchange method, device and system
JP6660207B2 (en) Information display program, information distribution method, and information distribution system
CN106412819A (en) Method and device for positioning device
US9064286B2 (en) Social network service providing system and method for setting relationship between users based on motion of mobile terminal and information about time
US20190130503A1 (en) Systems and methods for beverage ordering using a control device
US11722986B2 (en) Positioning system for continuously and accurately updating position value of wireless LAN AP, and method therefor
JP5273778B2 (en) Communication system between vending machine and portable terminal
CN104662392A (en) A wireless radio communication system for consumption meters
CN105243100A (en) Map rendering method, and method and apparatus for providing rendering target information
CN103780665B (en) Data transmission system, data transmission method and mobile electronic device
CN105844576A (en) Ibeacon based book self-service guiding and borrowing system and method
KR101994841B1 (en) Providing information about welfare point store based on location and welfare point payment system and method thereof
CN105472554A (en) Indoor target recommendation method and user terminal
CN114973524A (en) Return processing method and device of shared equipment and computer equipment
CN105224584A (en) Mobile terminal, Content panel display packing and program of mobile terminal
CN107734450A (en) A kind of indoor bluetooth localization method and system

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

Country of ref document: HK

GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1194591

Country of ref document: HK

TR01 Transfer of patent right

Effective date of registration: 20191211

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

Patentee after: Innovative advanced technology Co., Ltd

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

Patentee before: Alibaba Group Holding Co., Ltd.

TR01 Transfer of patent right