CN102883261A - Method and device for acquiring position information of mobile terminal and mobile terminal - Google Patents

Method and device for acquiring position information of mobile terminal and mobile terminal Download PDF

Info

Publication number
CN102883261A
CN102883261A CN2012103287790A CN201210328779A CN102883261A CN 102883261 A CN102883261 A CN 102883261A CN 2012103287790 A CN2012103287790 A CN 2012103287790A CN 201210328779 A CN201210328779 A CN 201210328779A CN 102883261 A CN102883261 A CN 102883261A
Authority
CN
China
Prior art keywords
terminal
positional information
message
parsing
response message
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.)
Granted
Application number
CN2012103287790A
Other languages
Chinese (zh)
Other versions
CN102883261B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201210328779.0A priority Critical patent/CN102883261B/en
Publication of CN102883261A publication Critical patent/CN102883261A/en
Application granted granted Critical
Publication of CN102883261B publication Critical patent/CN102883261B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for acquiring position information of a mobile terminal and the mobile terminal. The method comprises the following steps: a first terminal sends an invitation message to a second terminal, wherein the invitation message comprises a position information identifier; the second terminal receives the invitation message; the second terminal judges whether supporting the analysis of the position information according to the position information identifier in the invitation message; and if the second terminal supports the analysis of the position information, a receiving format of the position information is set in response information sent to the first terminal by the second terminal so as to acquire the position information of the first terminal. According to the method disclosed by the embodiment of the invention, the position information of a conversation opposite side can be rapidly acquired and the user experience is promoted.

Description

Obtain method, device and the portable terminal of location information of mobile terminal
Technical field
The present invention relates to mobile internet technical field, relate in particular to a kind of method, device and portable terminal that obtains location information of mobile terminal.
Background technology
Development along with development of Mobile Internet technology, location-based service (Location Based Service, LBS) obtained popularizing greatly, the both sides that particularly mutually exchange wish to know communicatee's geographical position, at present, the geographical position that obtains the communicatee generally all is by server, and server obtains corresponding geographical location information by GPRS etc., and process is complicated.
Summary of the invention
The present invention is intended to one of solve the problems of the technologies described above at least.
For this reason, first purpose of the present invention is to propose a kind of method of obtaining location information of mobile terminal, and the method can be obtained the positional information of partner fast, promotes the user and experiences.
Second purpose of the present invention is to propose a kind of device that obtains location information of mobile terminal.
The 3rd purpose of the present invention is to propose a kind of portable terminal.
To achieve these goals, the method for obtaining location information of mobile terminal according to the embodiment of first aspect present invention may further comprise the steps: a, first terminal send invitation message to the second terminal, and wherein, described message request comprises the positional information sign; B, described the second terminal receive described message request; C, described the second terminal judge whether to support the parsing of described positional information according to the described positional information sign in the described message request; And if described the second terminal of d supports the parsing of described positional information, then in the response message that described the second terminal sends to described first terminal, set the reception form of described positional information to obtain the positional information of described first terminal.
The method of obtaining location information of mobile terminal according to the embodiment of the invention, in message request, add the positional information sign and set the reception form to obtain recipient's positional information the recipient, can obtain fast the positional information of partner, promote the user and experience.
To achieve these goals, the device that obtains location information of mobile terminal according to the embodiment of second aspect present invention comprises: the first sending module, be used for sending invitation message to terminal, wherein, described message request comprises the positional information sign, described terminal receives described message request, and judge whether to support the parsing of described positional information according to the sign of the described positional information in the described message request, and when supporting the parsing of described positional information, in the response message that terminal sends, set the reception form of described positional information; The first receiver module is used for receiving the response message that described terminal sends; And second sending module, be used for sending described positional information according to described response message to described terminal.
According to the device that obtains location information of mobile terminal of the embodiment of the invention, in message request, add the positional information sign with the positional information of quick obtaining terminal, promote the user and experience.
To achieve these goals, the device that obtains location information of mobile terminal that comprises second aspect present invention embodiment according to the portable terminal of the embodiment of third aspect present invention.
According to the portable terminal of the embodiment of the invention, positional information that can the quick obtaining partner, and also can send own positional information to correspondent, promote user's experience.
The aspect that the present invention adds and advantage in the following description part provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Description of drawings
Above-mentioned and/or the additional aspect of the present invention and advantage be from obviously and easily understanding becoming the description of embodiment below in conjunction with accompanying drawing, wherein,
Fig. 1 is the flow chart that obtains according to an embodiment of the invention the method for location information of mobile terminal;
Fig. 2 is the flow chart that obtains according to an embodiment of the invention the method for location information of mobile terminal;
Fig. 3 is the structured flowchart that obtains according to an embodiment of the invention the device of location information of mobile terminal; And
Fig. 4 is the structured flowchart that obtains according to an embodiment of the invention the device of location information of mobile terminal.
Embodiment
The below describes embodiments of the invention in detail, and the example of described embodiment is shown in the drawings, and wherein identical or similar label represents identical or similar element or the element with identical or similar functions from start to finish.Be exemplary below by the embodiment that is described with reference to the drawings, only be used for explaining the present invention, and can not be interpreted as limitation of the present invention.On the contrary, embodiments of the invention comprise spirit and interior all changes, modification and the equivalent of intension scope that falls into additional claims.
In description of the invention, it will be appreciated that term " first ", " second " etc. only are used for describing purpose, and can not be interpreted as indication or hint relative importance.In description of the invention, need to prove that unless clear and definite regulation and restriction are arranged in addition, term " links to each other ", " connection " should do broad understanding, for example, can be to be fixedly connected with, and also can be to removably connect, or connect integratedly; Can be mechanical connection, also can be to be electrically connected; Can be directly to link to each other, also can indirectly link to each other by intermediary.For the ordinary skill in the art, can concrete condition understand above-mentioned term concrete meaning in the present invention.In addition, in description of the invention, except as otherwise noted, the implication of " a plurality of " is two or more.
Describe and to be understood in the flow chart or in this any process of otherwise describing or method, expression comprises module, fragment or the part of code of the executable instruction of the step that one or more is used to realize specific logical function or process, and the scope of preferred implementation of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by opposite order, carry out function, this should be understood by the embodiments of the invention person of ordinary skill in the field.
Below with reference to the method for obtaining location information of mobile terminal, device and the portable terminal of accompanying drawing description according to the embodiment of the invention.
A kind of method of obtaining location information of mobile terminal may further comprise the steps: a, first terminal send invitation message to the second terminal, and wherein, message request comprises the positional information sign; B, the second terminal receive message request; C, the second terminal judge whether the parsing of assisting positional information according to the sign of the positional information in the message request; And if the parsing of d the second terminal assisting positional information, then in the response message that the second terminal sends to first terminal the reception form of set position information to obtain the positional information of first terminal.
Fig. 1 is the flow chart that obtains according to an embodiment of the invention the method for location information of mobile terminal.
As shown in Figure 1, obtain the method for location information of mobile terminal, comprise the steps.
Step S101, first terminal sends invitation message to the second terminal, and wherein, message request comprises the positional information sign.
In one embodiment of the invention, first terminal is by SIP(Session Initiation Protocol, signaling control protocol) signaling sends invitation message to the second terminal.Wherein, in the header field of invitation message, add the positional information sign.Particularly, message request can be first information INVITE information of first terminal in the SIP signaling to the transmission of the second terminal, add GEOLOCATION and identify as the geographical position in the header field ALLOW of INVITE information, specific code is ALLOW:GEOLOCATION.
Step S102, the second terminal receives message request.
Step S103, the second terminal judges whether the parsing of assisting positional information according to the sign of the positional information in the message request.
Wherein, the second terminal can judge whether according to the ability of equipment of itself the parsing of assisting positional information, perhaps according to the user the whether parsing of assisting positional information is set, and may not want to allow positional information that the other side knows etc. such as the user.
Step S104, if the parsing of the second terminal assisting positional information, then in the response message that the second terminal sends to first terminal the reception form of set position information to obtain the positional information of first terminal.
Wherein, response message can be 200OK, adds Method:GET-LONGTITUDE-LATITUDE with the reception form of set position information in the header field of 200OK.
If step S105 is the not parsing of assisting positional information of the second terminal, the then positional information of the second terminal disregards first terminal.Wherein, step S105 is optional.
The method of obtaining location information of mobile terminal according to the embodiment of the invention, in message request, add the positional information sign and set the reception form to obtain recipient's positional information the recipient, can obtain fast the positional information of partner, promote the user and experience.
Fig. 2 is the flow chart that obtains according to an embodiment of the invention the method for location information of mobile terminal.
As shown in Figure 2, obtain the method for location information of mobile terminal, comprise the steps.
Step S201, first terminal sends invitation message to the second terminal, and wherein, message request comprises the positional information sign.
In one embodiment of the invention, first terminal is by SIP(Session Initiation Protocol, signaling control protocol) signaling sends invitation message to the second terminal.Wherein, in the header field of invitation message, add the positional information sign.Particularly, message request can be first information INVITE information of first terminal in the SIP signaling to the transmission of the second terminal, add GEOLOCATION and identify as the geographical position in the header field ALLOW of INVITE information, specific code is ALLOW:GEOLOCATION.
Step S202, the second terminal receives message request.
Step S203, the second terminal judges whether the parsing of assisting positional information according to the sign of the positional information in the message request.
Wherein, the second terminal can judge whether according to the ability of equipment of itself the parsing of assisting positional information, perhaps according to the user the whether parsing of assisting positional information is set, and may not want to allow positional information that the other side knows etc. such as the user.
Step S204, if the parsing of the second terminal assisting positional information, then in the response message that the second terminal sends to first terminal the reception form of set position information to obtain the positional information of first terminal.
Wherein, response message can be 200OK, adds Method:GET-LONGTITUDE-LATITUDE with the reception form of set position information in the header field of 200OK.
If step S205 is the not parsing of assisting positional information of the second terminal, the then positional information of the second terminal disregards first terminal.
Wherein, step S205 is optional.
In one embodiment of the invention, response message comprises the positional information sign, and wherein this station location marker is positional information sign corresponding to the second terminal.Particularly, can in the header field of response message 200OK, add the positional information sign, concrete identical with message request.
Step S206, first terminal receives response message.
Step S207, first terminal judge whether the parsing of assisting positional information according to the sign of the positional information in the response message.
Wherein, first terminal can judge whether according to the ability of equipment of itself the parsing of assisting positional information, perhaps according to the user the whether parsing of assisting positional information is set, and may not want to allow positional information that the other side knows etc. such as the user.
Step S208, if the parsing of first terminal assisting positional information, the reception form of replying set position information in the confirmation that then sends to the second terminal at first terminal is to obtain the positional information of the second terminal.
Step S209, if the not parsing of assisting positional information of first terminal, then first terminal is ignored the positional information of the second terminal.
Wherein, step S209 is optional.
According to the method for obtaining location information of mobile terminal of the embodiment of the invention, both sides can be known the other side's positional information.
In order to realize above-described embodiment, the present invention also proposes a kind of device that obtains location information of mobile terminal.
A kind of device that obtains location information of mobile terminal, comprise: the first sending module, be used for sending invitation message to terminal, wherein, message request comprises the positional information sign, terminal identifies the parsing that judges whether assisting positional information according to the positional information in the message request, and when the parsing of assisting positional information, the reception form of set position information in the response message that terminal sends; The first receiver module is used for the response message that receiving terminal sends; And second sending module, be used for sending positional information according to response message to terminal.
Fig. 3 is the structured flowchart that obtains according to an embodiment of the invention the device of location information of mobile terminal.
As shown in Figure 3, the device that obtains location information of mobile terminal comprises: the first sending module 100, the first receiver module 200 and the second sending module 300.
Particularly, the first sending module 100 is used for sending invitation message to terminal, and wherein, message request comprises the positional information sign.In one embodiment of the invention, by SIP(Session Initiation Protocol, signaling control protocol) signaling sends invitation message to terminal, particularly, in the header field of invitation message, add the positional information sign, message request can be first information INVITE information that sends to terminal in the SIP signaling, adds GEOLOCATION and identify as the geographical position in the header field ALLOW of INVITE information, and specific code is ALLOW:GEOLOCATION.Terminal judges whether the parsing of assisting positional information again according to the sign of the positional information in the message request, and when the parsing of assisting positional information, the reception form of set position information in the response message that terminal sends, wherein, response message can be 200OK, adds Method:GET-LONGTITUDE-LATITUDE with the reception form of set position information in the header field of 200OK.
The first receiver module 200 is used for the response message that receiving terminal sends.
The second sending module 300 is used for sending positional information according to response message to terminal.
According to the device that obtains location information of mobile terminal of the embodiment of the invention, in message request, add the positional information sign with the positional information of quick obtaining terminal, promote the user and experience.
Fig. 4 is the structured flowchart that obtains according to an embodiment of the invention the device of location information of mobile terminal.
As shown in Figure 4, the device that obtains location information of mobile terminal comprises: the first sending module 100, the first receiver module 200, the second sending module 300, the second receiver module 400, judge module 500 and acquisition module 600.
Particularly, the first sending module 100 is used for sending invitation message to terminal, wherein, message request comprises the positional information sign, terminal judges whether the parsing of assisting positional information according to the sign of the positional information in the message request, and when the parsing of assisting positional information, the reception form of set position information in the response message that terminal sends.The first receiver module 200 is used for the response message that receiving terminal sends.The second sending module 300 is used for sending positional information according to response message to terminal.
The second receiver module 400 is used for the message request that receiving terminal sends, and wherein, message request comprises the positional information sign.This message request is identical with the message request that sends to terminal.
Judge module 500 is used for judging whether according to the positional information sign of response message the parsing of assisting positional information.Particularly, can judge whether according to the ability of equipment of itself the parsing of assisting positional information, perhaps according to the user the whether parsing of assisting positional information is set, may not want to allow positional information that the other side knows etc. such as the user.
Acquisition module 600 is used for when judge module 500 is judged the parsing of assisting positional informations, at the reception form of replying set position information in the confirmation that sends to terminal to obtain the positional information of terminal.
According to the device that obtains location information of mobile terminal of the embodiment of the invention, terminal can be obtained the positional information of this device.
In order to realize above-described embodiment, the present invention proposes again a kind of portable terminal.
A kind of portable terminal comprises the described device that obtains location information of mobile terminal of each embodiment of the present invention.
According to the portable terminal of the embodiment of the invention, positional information that can the quick obtaining partner, and also can send own positional information to correspondent, promote user's experience.
Should be appreciated that in an embodiment of the present invention portable terminal can be the hardware device that mobile phone, panel computer, personal digital assistant, e-book etc. have various operating systems.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, a plurality of steps or method can realize with being stored in the memory and by software or firmware that suitable instruction execution system is carried out.For example, if realize with hardware, the same in another embodiment, can realize with the combination of each or they in the following technology well known in the art: have for the discrete logic of data-signal being realized the logic gates of logic function, application-specific integrated circuit (ASIC) with suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
In the description of this specification, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or the example in conjunction with specific features, structure, material or the characteristics of this embodiment or example description.In this manual, the schematic statement of above-mentioned term not necessarily referred to identical embodiment or example.And the specific features of description, structure, material or characteristics can be with suitable mode combinations in any one or more embodiment or example.
Although illustrated and described embodiments of the invention, for the ordinary skill in the art, be appreciated that without departing from the principles and spirit of the present invention and can carry out multiple variation, modification, replacement and modification to these embodiment that scope of the present invention is by claims and be equal to and limit.

Claims (11)

1. a method of obtaining location information of mobile terminal is characterized in that, may further comprise the steps:
A, first terminal send invitation message to the second terminal, and wherein, described message request comprises the positional information sign;
B, described the second terminal receive described message request;
C, described the second terminal judge whether to support the parsing of described positional information according to the described positional information sign in the described message request; And
If described the second terminal of d is supported the parsing of described positional information, then in the response message that described the second terminal sends to described first terminal, set the reception form of described positional information to obtain the positional information of described first terminal.
2. method according to claim 1 is characterized in that, described response message comprises described positional information sign.
3. method according to claim 2 is characterized in that, and is further comprising the steps of after described steps d:
Described first terminal receives described response message;
Described first terminal judges whether to support the parsing of described positional information according to the described positional information sign in the described response message; And
If described first terminal is supported the parsing of described positional information, the reception form of then setting described positional information in the confirmation to replying of sending of described the second terminal at described first terminal is to obtain the positional information of described the second terminal.
4. each described method is characterized in that according to claim 1-3, and described first terminal sends described invitation message by the SIP signaling to described the second terminal.
5. each described method is characterized in that according to claim 1-4, adds described positional information sign in the header field of described invitation message and described response message.
6. a device that obtains location information of mobile terminal is characterized in that, comprising:
The first sending module, be used for sending invitation message to terminal, wherein, described message request comprises the positional information sign, described terminal receives described message request, and judge whether to support the parsing of described positional information according to the sign of the described positional information in the described message request, and when supporting the parsing of described positional information, in the response message that terminal sends, set the reception form of described positional information;
The first receiver module is used for receiving the response message that described terminal sends; And
The second sending module is used for sending described positional information according to described response message to described terminal.
7. device according to claim 6 is characterized in that, described response message comprises described positional information sign.
8. device according to claim 7 is characterized in that, also comprises:
The second receiver module is used for receiving the message request that described terminal sends, and wherein, described message request comprises described positional information sign;
Judge module is used for identifying the parsing that judges whether to support described positional information according to the described positional information of described response message; And
Acquisition module is used for when described judge module is judged the parsing of the described positional information of described support, and the reception form of setting described positional information in the confirmation replying of sending to described terminal is to obtain the positional information of described terminal.
9. each described device is characterized in that according to claim 6-8, sends described invitation message by the SIP signaling to described terminal.
10. each described device is characterized in that according to claim 6-9, adds described positional information sign in the header field of described invitation message and described response message.
11. a portable terminal is characterized in that, has each described device that obtains location information of mobile terminal such as claim 6-10.
CN201210328779.0A 2012-09-06 2012-09-06 Method and device for acquiring position information of mobile terminal and mobile terminal Active CN102883261B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210328779.0A CN102883261B (en) 2012-09-06 2012-09-06 Method and device for acquiring position information of mobile terminal and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210328779.0A CN102883261B (en) 2012-09-06 2012-09-06 Method and device for acquiring position information of mobile terminal and mobile terminal

Publications (2)

Publication Number Publication Date
CN102883261A true CN102883261A (en) 2013-01-16
CN102883261B CN102883261B (en) 2015-06-24

Family

ID=47484366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210328779.0A Active CN102883261B (en) 2012-09-06 2012-09-06 Method and device for acquiring position information of mobile terminal and mobile terminal

Country Status (1)

Country Link
CN (1) CN102883261B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040196810A1 (en) * 2003-02-12 2004-10-07 Tae-Young Kil Complex wireless service apparatus using wired and wireless communication systems and method thereof
CN101600153A (en) * 2009-07-08 2009-12-09 中兴通讯股份有限公司 Method of locating terminal and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040196810A1 (en) * 2003-02-12 2004-10-07 Tae-Young Kil Complex wireless service apparatus using wired and wireless communication systems and method thereof
CN101600153A (en) * 2009-07-08 2009-12-09 中兴通讯股份有限公司 Method of locating terminal and terminal

Also Published As

Publication number Publication date
CN102883261B (en) 2015-06-24

Similar Documents

Publication Publication Date Title
EP1895722B1 (en) Network node, method, and mobile terminal for providing voice calls to a mobile terminal in a packet-switched-only network
CN102356650B (en) Cellular radio and method of operation
EP3531723B1 (en) Indication method and related device
CN100584097C (en) User's position information obtaining and transmitting method and network device
US20130005377A1 (en) Method and Apparatus for Device-to-Device Communication Setup
KR20090005675A (en) Method and system of communicating peer to peer in a communication system
CN101378596A (en) Method, system and equipment for tracking single user
CN103052169A (en) System and method for mobile terminal conversation interaction and mobile terminal
CN106028266B (en) Information transmission method, device and system
CN111866799B (en) Resource request method, resource allocation method, device and medium
CN102026369A (en) Method and location server for determining a position of a target device
CN112753267B (en) Information transmission method, apparatus, communication device and storage medium
TW201225599A (en) A method and device for initiating one-to-many communication process by a network in a communication system
US9686648B2 (en) Method, a server and a computer program for local discovery
KR20100115184A (en) Method for performing inter ue transfer in wireless communcation system based on ip multimedia subsystem
US8954054B2 (en) Method for processing and testing of called terminal and long term evolution system
CN105575158A (en) Bus waiting method and smart bracelet
CN102883261B (en) Method and device for acquiring position information of mobile terminal and mobile terminal
CN103516685A (en) Method and system for obtaining terminal connecting state in IMS network, and equipment
CN102761822A (en) Message sending method and mobile terminal
CN102711281A (en) Method and device for establishing X2 link between base stations and base stations
CN103024690A (en) Method, device and system for integrating traditional text messages and network information
CN102572752B (en) Method for carrying time zone information in short message, gateway and system
CN113784399B (en) Method and equipment for switching multicast broadcast service (MBMS)
CN105744618A (en) Method for carrying out positioning, system and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant