[go: up one dir, main page]

CN102469122A - Electronic equipment and position information transmission method thereof - Google Patents

Electronic equipment and position information transmission method thereof Download PDF

Info

Publication number
CN102469122A
CN102469122A CN2010105373927A CN201010537392A CN102469122A CN 102469122 A CN102469122 A CN 102469122A CN 2010105373927 A CN2010105373927 A CN 2010105373927A CN 201010537392 A CN201010537392 A CN 201010537392A CN 102469122 A CN102469122 A CN 102469122A
Authority
CN
China
Prior art keywords
positional information
transfer protocol
hypertext transfer
module
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2010105373927A
Other languages
Chinese (zh)
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN2010105373927A priority Critical patent/CN102469122A/en
Publication of CN102469122A publication Critical patent/CN102469122A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides an electronic device and a position information transmission method thereof, wherein the electronic device comprises: the obtaining module is used for obtaining position information; the generating module is used for generating a hypertext transfer protocol request message, and the position information is recorded in the hypertext transfer protocol request message; a sending module, configured to send the http request message to a server, so that the server can provide a location-related service using the location information recorded in the http request message. The electronic equipment of the embodiment of the invention is used for transmitting the position information, the existing protocol is not required to be modified, the implementation is simple, and the application scene is very wide.

Description

A kind of electronic equipment and positional information transmission method thereof
Technical field
The present invention relates to technical field of electronic equipment, particularly a kind of electronic equipment and positional information transmission method thereof.
Background technology
Along with the continuous progress of Internet technology, increasing service provider begins to provide location based services.
But the service of position-based information at first needs the electronic equipment positional information to server end, and server could provide corresponding service based on this positional information.
But prior art does not also have a kind of easy position information transmitting method.
Summary of the invention
The purpose of this invention is to provide a kind of electronic equipment and positional information transmission method thereof.
To achieve these goals, the embodiment of the invention provides a kind of electronic equipment, comprising:
Obtain module, be used to obtain a positional information;
Generation module is used to generate a hypertext transfer protocol requests message, has write down said positional information in the said hypertext transfer protocol requests message;
Sending module is used for sending said hypertext transfer protocol requests message to a server, makes said server can utilize the said positional information that writes down in the said hypertext transfer protocol requests message to provide the position relevant service.
Above-mentioned portable electric appts, wherein, said hypertext transfer protocol requests message comprises a request header, said positional information is recorded in the described request head.
Above-mentioned portable electric appts wherein, comprises the positional information header field in the described request head, said positional information is recorded in the said positional information header field.
Above-mentioned portable electric appts wherein, comprises request row and entity information part in the said hypertext transfer protocol requests message, said positional information is recorded in described request row or the entity information part.
Above-mentioned portable electric appts wherein, also comprises a logging modle, is used for the said positional information that recording user is imported in advance, and said acquisition module specifically is used for obtaining said positional information from said logging modle.
Above-mentioned portable electric appts wherein, also comprises a location module, is used to obtain a latitude and longitude information, and said acquisition module specifically is used for obtaining said latitude and longitude information as said positional information from said locating module.
Above-mentioned portable electric appts wherein, also comprises a position error information in the said positional information.
Above-mentioned portable electric appts wherein, also comprises:
Whether detection module is used to detect browser and is opened, and obtains a testing result;
Trigger module is used for when said testing result shows that browser is opened, triggering said acquisition module, generation module and sending module.
Above-mentioned portable electric appts wherein, also comprises:
Receiver module is used to receive the response message that said server returns;
Judge module is used to judge whether said response message indicates that said positional information is provided, and obtains a judged result;
Second trigger module is used for when said judged result shows that said response message indication provides said positional information, triggering said acquisition module, generation module and sending module.
To achieve these goals, the embodiment of the invention also provides a kind of positional information transmission method of electronic equipment, comprising:
Obtain a positional information relevant with said electronic equipment;
Generate a hypertext transfer protocol requests message, write down said positional information in the said hypertext transfer protocol requests message;
Send said hypertext transfer protocol requests message to a server, make said server can utilize the said positional information that writes down in the said hypertext transfer protocol requests message to provide the position relevant service.
Above-mentioned positional information transmission method, wherein, said hypertext transfer protocol requests message comprises a request header, said positional information is recorded in the described request head.
Above-mentioned positional information transmission method wherein, comprises the positional information header field in the described request head, said positional information is recorded in the said positional information header field.
Above-mentioned positional information transmission method wherein, comprises request row and data division in the said hypertext transfer protocol requests message, said positional information is recorded in described request row or the entity information part.
The embodiment of the invention has following beneficial effect:
In the electronic equipment of specific embodiment of the present invention; Come transmission of location information based on hyper text transmission protocol (HTTP) message; Because browser is the standard configuration of nearly all electronic equipment, so utilize the electronic equipment of the embodiment of the invention to come transmission of location information, also need not make amendment to existing protocol; Realize that simply application scenarios is very extensive.
In the electronic equipment of specific embodiment of the present invention, directly utilize in the hyper text transmission protocol (HTTP) message extendible part to come transmission of location information, guaranteed compatibility with existing protocol.
The electronic equipment of the embodiment of the invention can be carried out any operation without the user; Can positional information be sent to server through the HTTP request message; Reduced user's operational ton; Be very easy to the user, also make the different crowd of level can both utilize the electronic equipment of the embodiment of the invention to enjoy the service of the position-based information that server provides.
Description of drawings
Fig. 1 is the structural representation of the electronic equipment of the embodiment of the invention;
Fig. 2 is the schematic flow sheet of the method for the embodiment of the invention.
Embodiment
In the electronic equipment of the embodiment of the invention and the positional information transmission method thereof; Utilize HTTP HTTP request message, and utilize this request message delivering position information to make said server can utilize the said positional information that writes down in the said hypertext transfer protocol requests message to provide the position relevant service to server.
As shown in Figure 1, the electronic equipment of the embodiment of the invention comprises:
Obtain module, be used to obtain a positional information;
Generation module is used to generate a hyper text transmission protocol (HTTP) message, has write down said positional information in the said hypertext transfer protocol requests message;
Sending module is used for sending said hypertext transfer protocol requests message to a server, makes said server can utilize the said positional information that writes down in the said hypertext transfer protocol requests message to provide the position relevant service.
Should be understood that above-mentioned HTTP HTTP also comprises HTTPS, i.e. the HTTP of safety version.
In specific embodiment of the present invention, this electronic equipment can be portable electric appts, net network television or Desktop PC etc.
In the electronic equipment of specific embodiment of the present invention; Come transmission of location information based on hyper text transmission protocol (HTTP) message; Because browser is the standard configuration of nearly all electronic equipment, so utilize the electronic equipment of the embodiment of the invention to come transmission of location information, also need not make amendment to existing protocol; Realize that simply application scenarios is very extensive.
In specific embodiment of the present invention, should the positional information relevant can obtain through variety of way with said electronic equipment, also can utilize variety of way to represent, explain as follows:
< mode one >
In the mode one, this positional information is relevant with subscriber equipment.
In mode one, this positional information is the position at the current place of subscriber equipment.
In embodiments of the present invention, this positional information can obtain in several ways, explains as follows.
In positional information obtain manner one, for stationary electronic devices (like desktop computer), can utilize the employed outer net IP of this fixed terminal address to confirm its positional information.
Like outer net IP address is that the position of the fixed terminal of 202.119.0.1 is Nanjing, Jiangsu Province, and outer net IP address is 12.130.132.30, shows that then this fixed terminal is positioned at the U.S..
In positional information obtain manner two, can confirm its positional information through the GPS module that is provided with in the electronic equipment.
The major function that is arranged at the gps signal receiver in the electronic equipment is can capture by the selected satellite to be measured of certain satellite angle of cut-off, and follows the tracks of the operation of these satellites.Arrive the satellite-signal of tracking when receiver acquisition after, just can measure the pseudo-distance of reception antenna to satellite and the rate of change of distance, demodulate data such as satellite orbit parameter.According to these data, the little process computer in the receiver just can position calculating by the positioning calculation method, calculates the position information such as longitude and latitude, height of user geographic location.
In positional information obtain manner three, can obtain the positional information of the electronic equipment that moves class through location-server.
LBS (Location Based Services; Location-based service) claims positioning service again; It is a kind of value-added service that combines and provide by mobile communications network and global position system; Positional information (like the latitude and longitude coordinates data) through one group of location technology acquisition portable terminal offers mobile subscriber or other people and communication system, realizes the various business relevant with the position.
Wireless E911 second edition has following several method for location definition:
AOA (Angle of Arrival, the angle of arrival) method, its common factor through the base station obtains the position of mobile communication terminal;
TDOA (Time Difference of Arrival, the time of advent is poor) method, it was located through a travelling carriage and mutual time difference of a plurality of base station;
Position mark method, it obtains the position through each lane place is identified; And
Satellite positioning method.
In the above-mentioned method, some processing is carried out at the electronic equipment end, and some processing is carried out at server, but final result can obtain through the location-server that positioning service is provided.
Obtain the positional information of mobile communication terminal as for how with location-server alternately, belong to the prior art of field of locating technology, do not describe in detail at this.
Certainly,, also can obtain the positional information of fixed terminal, not be described in further detail at this through similar server for fixed terminal.
In specific embodiment of the present invention, also need obtain a target location, wherein this target location can be a desired point, also can be a desired regions, obtaining of target location can realize in several ways that explanation is as follows respectively.
Certainly, for above any positional information that obtains, can utilize longitude and latitude to represent that form is following:
[latitude, longitude]
Certainly, above positional information also can be the text description in a certain place, like College Road, Haidian District XXX number, Xueyuan Nanlu, Haidian District Beijing University of Post & Telecommunication etc.
< mode two >
In mode two, it doesn't matter for this positional information and electronic equipment, and the positional information of importing in advance for the user is like user's job site, home address etc.
In this case, also comprise a logging modle in the electronic equipment of the embodiment of the invention, be used for the said positional information that recording user is imported in advance, said acquisition module specifically is used for obtaining said positional information from said logging modle.
Illustrate as follows.
Stay in B street, A district like users home; For location-based commodity information of discount, the user is only interested near the information of discount the home address, at this moment; The user submits to its home address to get final product to server, and need subscriber equipment present located position be submitted to server.
More than described the source and the describing mode of all places information, after obtaining positional information, need transmit this positional information based on HTTP, in specific embodiment of the present invention, the transmission of this positional information can realize in several ways.
< implementation one >
Hypertext transfer protocol requests message comprises several sections: request row, request header and entity information part.
In implementation one, said positional information is recorded in the described request row, shown in following the giving an example.
GET?http://www.xxx.com/?Longitude-Latitude=xxx,xxx?HTTP/1.1
Host:www.xxx.com
……
Under this mode, this positional information is spliced in the Query part of request path of request row, and server end receives that this positional information of Query extracting section from request path gets final product behind this HTTP request message.
Wherein, the positional information that xxx, xxx promptly represent with longitude and latitude as 60.22,55.11, certainly, in specific embodiment of the present invention, when this said positional information is represented with longitude and latitude, wherein can also be added a position error information, as follows:
60.22,55.11,10
Wherein 10 expression position errors are 10m.
< implementation two >
Hypertext transfer protocol requests message comprises several sections: request row, request header and entity information part.
In implementation two, said positional information is recorded in the described request head, shown in following the giving an example.
GET?http://www.xxx.com/HTTP/1.1
Host:www.xxx.com
……
Longitude-Latitude:xxx,xxx
Because the agreement regulation, the request header part of hypertext transfer protocol requests message can increase custom field, as above shown in the example, partly increases a positional information header field at request header, this positional information of information header territory record in the position.
Certainly, should be understood that the positional information of positional information header field record is the positional information of representing with longitude and latitude, as 60.22,55.11, certainly, it can also utilize other modes to embody, like sub-district, street, concrete building etc.
In specific embodiment of the present invention, when this said positional information is represented with longitude and latitude, wherein can also add a position error information, as follows:
60.22,55.11,10
Wherein 10 expression position errors are 10m.
< implementation three >
Hypertext transfer protocol requests message comprises several sections: request row, request header and entity information part.
HTTP request message and response message can comprise entity information, and entity information generally is made up of entity header field and entity.The entity header field comprises the prime information about entity, and entity can be a byte stream through coding, and its coded system is by Content-Encoding or Content-Type definition, and its length is by Content-Length or Content-Range definition.
Therefore, can partly transmit this positional information at the entity information of hypertext transfer protocol requests message.
In specific embodiment of the present invention, this electronic equipment can trigger the transmission of above-mentioned positional information automatically, and does not need the user to participate in, and explains as follows in the face of its implementation that triggers the transmission of above-mentioned positional information automatically down.
< mode one >
In mode one, a detection module is set in electronic equipment, be used to detect browser and whether be opened, obtain a testing result;
First trigger module is used for when said testing result shows that browser is opened, triggering said acquisition module, generation module and sending module.
In the implementation one, in case browser is opened, then obtains module and will obtain positional information, generation module then can (be imported like the user according to this positional information and user's operation Www.abc.comAnd carriage return) generates the HTTP request message that comprises positional information, and send the hypertext transfer protocol requests message that comprises positional information to server by sending module.
Certainly; It is understandable that; This server can be a common server, also can be a server that location based services can be provided, and is when the server of location based services can be provided at server; Then can from hypertext transfer protocol requests message, obtain positional information, and location based services is provided based on the positional information of obtaining.
< mode two >
In mode two, electronic equipment all sends the hypertext transfer protocol requests message that comprises positional information to server no matter can the server that the user asks to visit provide location information service, and in mode two, electronic equipment comprises:
Receiver module is used to receive the response message that said server returns;
Judge module is used to judge whether said response message indicates that said positional information is provided, and obtains a judged result;
Second trigger module is used for when said judged result shows that said response message indication provides said positional information, triggering said acquisition module, generation module and sending module.
Through above-mentioned dual mode; The electronic equipment of the embodiment of the invention can be carried out any operation without the user; Can positional information be sent to server through the HTTP request message; Reduce user's operational ton, be very easy to the user, also made the different crowd of level can both utilize the electronic equipment of the embodiment of the invention to enjoy the service of the position-based information that server provides.
Mode two is illustrated as follows.
Suppose common website A of this visit of user, Website server is handled based on usual manner after receiving request message, and electronic equipment is also based on old process and server interaction, for the user provides the service of browsing.
And this visit of user can provide the website B of the service of position-based information; Website server returns a response message after receiving request message; This response message indication provides said positional information; This moment, electronic equipment can obtain positional information based on this response message, and this positional information carried through the HTTP request message was transferred to server, made said server can utilize the said positional information that writes down in the said hypertext transfer protocol requests message to provide the position relevant service.
The positional information transmission method of the electronic equipment of the embodiment of the invention is as shown in Figure 2, comprising:
Obtain a positional information relevant with said electronic equipment;
Generate a hyper text transmission protocol (HTTP) message, write down said positional information in the said hypertext transfer protocol requests message;
Send said hypertext transfer protocol requests message to a server, make said server can utilize the said positional information that writes down in the said hypertext transfer protocol requests message to provide the position relevant service.
In the above-mentioned positional information transmission method, said hypertext transfer protocol requests message comprises a request header, and said positional information is recorded in the described request head.
In the above-mentioned positional information transmission method, comprise the positional information header field in the described request head, said positional information is recorded in the said positional information header field.
In the above-mentioned positional information transmission method, comprise the request row in the said hypertext transfer protocol requests message, said positional information is recorded in the described request row.
In the above-mentioned positional information transmission method, the information that said positional information is imported for the user in advance, or the latitude and longitude information obtained of the locating module in the said electronic equipment.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.

Claims (13)

1. an electronic equipment is characterized in that, comprising:
Obtain module, be used to obtain a positional information;
Generation module is used to generate a hypertext transfer protocol requests message, has write down said positional information in the said hypertext transfer protocol requests message;
Sending module is used for sending said hypertext transfer protocol requests message to a server, makes said server can utilize the said positional information that writes down in the said hypertext transfer protocol requests message to provide the position relevant service.
2. electronic equipment according to claim 1 is characterized in that, said hypertext transfer protocol requests message comprises a request header, and said positional information is recorded in the described request head.
3. electronic equipment according to claim 2 is characterized in that, comprises the positional information header field in the described request head, and said positional information is recorded in the said positional information header field.
4. electronic equipment according to claim 1 is characterized in that, comprises request row and entity information part in the said hypertext transfer protocol requests message, and said positional information is recorded in described request row or the entity information part.
5. portable electric appts according to claim 1 is characterized in that, also comprises a logging modle, is used for the said positional information that recording user is imported in advance, and said acquisition module specifically is used for obtaining said positional information from said logging modle.
6. portable electric appts according to claim 1 is characterized in that, also comprises a location module, is used to obtain a latitude and longitude information, and said acquisition module specifically is used for obtaining said latitude and longitude information as said positional information from said locating module.
7. portable electric appts according to claim 6 is characterized in that, also comprises a position error information in the said positional information.
8. portable electric appts according to claim 1 is characterized in that, also comprises:
Whether detection module is used to detect browser and is opened, and obtains a testing result;
Trigger module is used for when said testing result shows that browser is opened, triggering said acquisition module, generation module and sending module.
9. portable electric appts according to claim 1 is characterized in that, also comprises:
Receiver module is used to receive the response message that said server returns;
Judge module is used to judge whether said response message indicates that said positional information is provided, and obtains a judged result;
Second trigger module is used for when said judged result shows that said response message indication provides said positional information, triggering said acquisition module, generation module and sending module.
10. the positional information transmission method of an electronic equipment is characterized in that, comprising:
Obtain a positional information relevant with said electronic equipment;
Generate a hypertext transfer protocol requests message, write down said positional information in the said hypertext transfer protocol requests message;
Send said hypertext transfer protocol requests message to a server, make said server can utilize the said positional information that writes down in the said hypertext transfer protocol requests message to provide the position relevant service.
11. positional information transmission method according to claim 10 is characterized in that, said hypertext transfer protocol requests message comprises a request header, and said positional information is recorded in the described request head.
12. positional information transmission method according to claim 11 is characterized in that, comprises the positional information header field in the described request head, said positional information is recorded in the said positional information header field.
13. positional information transmission method according to claim 10 is characterized in that, comprises request row and data division in the said hypertext transfer protocol requests message, said positional information is recorded in described request row or the entity information part.
CN2010105373927A 2010-11-05 2010-11-05 Electronic equipment and position information transmission method thereof Pending CN102469122A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105373927A CN102469122A (en) 2010-11-05 2010-11-05 Electronic equipment and position information transmission method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105373927A CN102469122A (en) 2010-11-05 2010-11-05 Electronic equipment and position information transmission method thereof

Publications (1)

Publication Number Publication Date
CN102469122A true CN102469122A (en) 2012-05-23

Family

ID=46072287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105373927A Pending CN102469122A (en) 2010-11-05 2010-11-05 Electronic equipment and position information transmission method thereof

Country Status (1)

Country Link
CN (1) CN102469122A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888520A (en) * 2014-03-10 2014-06-25 百度在线网络技术(北京)有限公司 Method and device for obtaining position information of mobile terminal, and mobile terminal
CN111641691A (en) * 2020-05-20 2020-09-08 北京字节跳动网络技术有限公司 Session message transmission method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1529959A (en) * 2000-09-01 2004-09-15 �����շ�������˹�� System and method for measuring wireless device and network usage and performance metrics
US7010306B1 (en) * 1999-07-29 2006-03-07 Ntt Docomo, Inc. Location information notifying method and location information notifying apparatus
CN101388907A (en) * 2008-10-28 2009-03-18 中国电信股份有限公司 Internet customer attribute information transmitting method and network apparatus
CN101478720A (en) * 2009-01-23 2009-07-08 曹梅花 Position sensing information obtaining system
CN101742638A (en) * 2008-11-19 2010-06-16 华为技术有限公司 Method, client and server for providing position information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7010306B1 (en) * 1999-07-29 2006-03-07 Ntt Docomo, Inc. Location information notifying method and location information notifying apparatus
CN1529959A (en) * 2000-09-01 2004-09-15 �����շ�������˹�� System and method for measuring wireless device and network usage and performance metrics
CN101388907A (en) * 2008-10-28 2009-03-18 中国电信股份有限公司 Internet customer attribute information transmitting method and network apparatus
CN101742638A (en) * 2008-11-19 2010-06-16 华为技术有限公司 Method, client and server for providing position information
CN101478720A (en) * 2009-01-23 2009-07-08 曹梅花 Position sensing information obtaining system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888520A (en) * 2014-03-10 2014-06-25 百度在线网络技术(北京)有限公司 Method and device for obtaining position information of mobile terminal, and mobile terminal
CN111641691A (en) * 2020-05-20 2020-09-08 北京字节跳动网络技术有限公司 Session message transmission method and device and electronic equipment
CN111641691B (en) * 2020-05-20 2022-09-23 北京字节跳动网络技术有限公司 Session message transmission method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US8180371B1 (en) System and method for mobile device self-location
US9903721B2 (en) Method for transferring route and device therefor
US20080062940A1 (en) Presence-based communication between local wireless network access points and mobile devices
US8355693B2 (en) Determining application usage relative to a particular location
CN101043747B (en) Method for realizing inter-mobile terminal position data interaction based on geographical information system
EP1999867A1 (en) Mobile communication terminal capable of position determination and method of determining position in the mobile communication terminal
CN102904974A (en) Method for obtaining location of terminal, related device and system
CN101227746B (en) Mobile communication network-based positioning system and method
KR100732969B1 (en) Device and method for finding people using mobile messenger service
CN103024895A (en) Positioning method for positioning by combining GPS (global positioning system) with base station
US20040215692A1 (en) Advertising for wireless content providers
CN103869277A (en) Ultrasonic positioning method, ultrasonic positioning device and ultrasonic positioning system
CN107071172A (en) A kind of shared smart mobile phone with navigation feature of customized information
Quigley et al. BlueStar, a privacy centric location aware system
CN102469122A (en) Electronic equipment and position information transmission method thereof
CN103108278B (en) Method, the Apparatus and system of nearby users help is obtained based on mobile positioning information
KR100678682B1 (en) Method and system for providing local information service using location based service
Kawaguchi WiFi location information system for both indoors and outdoors
WO2010127589A1 (en) Information sending method, apparatus and system
CN102300149A (en) Target recognition mobile phone system based on global positioning system (GPS) and electronic compass
KR20060028515A (en) Method and system for providing advertisement according to location using location information of mobile communication terminal
KR101272073B1 (en) Method and System for Providing Location Bulletin Board Service by Using Location Based Service
KR20110134998A (en) Method and device for providing location information using video call
KR100754457B1 (en) Method and system to inform location information of specific location using icon
KR20150066229A (en) System and method for providing location based service

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120523