WO2016131335A1 - 一种定位方法和终端设备 - Google Patents
一种定位方法和终端设备 Download PDFInfo
- Publication number
- WO2016131335A1 WO2016131335A1 PCT/CN2015/097912 CN2015097912W WO2016131335A1 WO 2016131335 A1 WO2016131335 A1 WO 2016131335A1 CN 2015097912 W CN2015097912 W CN 2015097912W WO 2016131335 A1 WO2016131335 A1 WO 2016131335A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- positioning
- shared
- assistance information
- terminal
- information
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 230000004044 response Effects 0.000 claims abstract description 38
- 230000006870 function Effects 0.000 description 23
- 238000001514 detection method Methods 0.000 description 11
- 238000012423 maintenance Methods 0.000 description 3
- 238000005259 measurement Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/38—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
- G01S19/39—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/42—Determining position
Definitions
- This application relates to, but is not limited to, the field of terminal devices.
- GPS Global Positioning System
- terminal GPS satellite positioning is a satellite over the area where the terminal search engine is located after the terminal GPS engine is turned on.
- This paper provides a positioning method and terminal equipment to solve the low-end platform or poor GPS performance.
- the problem of GPS positioning on the terminal is difficult.
- a positioning method is applied to a terminal device, and the method includes:
- the terminal device sends a positioning request, where the positioning request includes a sharing request identifier
- the response terminal is a located terminal determined according to the positioning request, and the shared positioning assistance information refers to information used for performing GPS positioning.
- the number of the shared positioning assistance information is one or more;
- the performing the positioning according to the shared positioning assistance information includes:
- the positioning is performed according to the shared positioning assistance information
- one valid shared positioning assistance information is selected from the plurality of shared positioning assistance information, and the positioning is performed according to the valid shared positioning assistance information.
- the selecting a valid shared positioning assistance information from the multiple shared positioning assistance information includes:
- the shared positioning assistance information having the smallest absolute value of the difference is selected.
- the shared positioning assistance information sent by the receiving response terminal includes:
- the terminal device starts timing when the positioning request is initiated
- a data sharing method is applied to a terminal device, and the method includes:
- the shared positioning assistance information is fed back according to the positioning request, and the shared positioning assistance information refers to information used for performing GPS positioning.
- the positioning request carries a preset comparison time
- the feeding back the shared positioning assistance information according to the positioning request includes:
- a terminal device comprising:
- a requesting module configured to: send a positioning request, where the positioning request includes a sharing request identifier
- the first receiving module is configured to: receive the shared positioning assistance information sent by the responding terminal;
- the positioning module is configured to: perform positioning according to the shared positioning assistance information
- the response terminal is a located terminal determined according to the positioning request, and the shared positioning assistance information refers to information used for performing GPS positioning.
- the number of the shared positioning assistance information is one or more;
- the positioning module is set to:
- one shared positioning auxiliary information is selected from the multiple shared positioning auxiliary information, and the positioning is performed according to the optimal shared positioning auxiliary information.
- the positioning module is set to:
- the shared positioning assistance information received by the first receiving module is multiple, respectively calculating an absolute value of a difference between a resolution time of each shared positioning assistance information and a current time of the system on the terminal device;
- the shared positioning assistance information having the smallest absolute value of the difference is selected.
- the first receiving module is configured to:
- a terminal device comprising:
- the second receiving module is configured to: receive a positioning request sent by another terminal device;
- the response module is configured to: feed back the shared positioning assistance information according to the positioning request, where the shared positioning assistance information refers to information used for performing GPS positioning.
- the positioning request carries a preset comparison time
- the response module is set to:
- a computer readable storage medium storing computer executable instructions for performing the method of any of the above.
- the above solution solves the problem of GPS positioning on the low-end platform or the terminal with poor GPS performance by sharing the positioning assistance information of other terminal devices, and reduces the maintenance cost. Improve user experience.
- Embodiment 1 is a flowchart of a positioning method in Embodiment 1 of the present invention.
- Embodiment 2 is a flowchart of a method for data sharing in Embodiment 1 of the present invention
- FIG. 3 is a flowchart of a positioning method and a data sharing method in Embodiment 1 of the present invention.
- FIG. 4 is a schematic structural diagram of a terminal device according to Embodiment 2 of the present invention.
- FIG. 5 is a schematic structural diagram of a terminal device according to Embodiment 2 of the present invention.
- the positioning assistance information of the positioned and newly positioned terminal is provided as a shared resource to a terminal that is not located or is about to expire or even expired, thereby speeding up the positioning speed of the terminal; and, on the one hand, the GPS performance of the terminal itself
- the problem of poor positioning and poor positioning effect is largely alleviated; on the other hand, the sharing of positioning assistance information between terminals solves the problem of full-band search in current satellite positioning, and network-assisted positioning
- the location server deployment and ephemeris information maintenance issues not only achieve the purpose of improving the performance of the terminal GPS positioning effect, but also save costs and improve user experience.
- this embodiment provides a positioning method, which is applied to a terminal device, and the method includes:
- Step S11 The terminal device sends a positioning request.
- the location request contains a sharing request identifier
- Step S12 The terminal device receives the shared positioning assistance information sent by the response terminal;
- the response terminal is a located terminal determined according to the positioning request, and the shared positioning assistance letter Information refers to the information used for GPS positioning.
- the number of the shared positioning assistance information is one or more.
- the multiple response terminals may send the shared positioning assistance information, or each of the response terminals may send multiple shared positioning assistance information.
- the terminal device can set the waiting time, and can receive the shared positioning assistance information sent by the responding terminal in a certain time range.
- the terminal device may start timing when the positioning request is initiated; and receive one or more shared positioning assistance information sent by the responding terminal within a preset waiting time range.
- Step S13 Perform positioning according to the shared positioning assistance information.
- the terminal device may select the best shared positioning assistance information according to the number of the received shared positioning assistance information, and select the best shared positioning according to the selected shared positioning information.
- Auxiliary information is used for positioning.
- the positioning is directly performed according to the shared positioning assistance information
- a shared positioning auxiliary information is selected from the multiple shared positioning auxiliary information as effective shared positioning auxiliary information, and then the positioning is performed according to the valid shared positioning auxiliary information.
- Selecting a valid shared positioning assistance information from multiple shared positioning assistance information can be implemented in the following manner:
- the absolute values of the difference between the resolution time of each shared positioning assistance information and the current time of the system on the terminal device are respectively calculated; then the shared positioning assistance information with the smallest absolute value of the difference is selected.
- the embodiment further provides a data sharing method, which is applied to a terminal device, and the method includes:
- Step S21 Receive a positioning request sent by another terminal device.
- Step S22 feedback sharing positioning assistance information according to the positioning request, where the shared positioning assistant Help information refers to the information used to perform GPS positioning.
- the positioning request may carry a preset comparison time; the shared positioning assistance information may be fed back in the following manner:
- the terminal device that sends the positioning request may be used as the requesting terminal, and the terminal device that provides the shared positioning assistance information may be used as the responding terminal.
- the requesting terminal determines whether the positioning and the auxiliary information are required to be used for the positioning according to the initiated positioning request.
- the positioning request carries the shared identifier to identify whether to perform positioning or common positioning by sharing the positioning auxiliary information.
- the requesting terminal performs parsing according to the positioning request detected by the GPS module; when the requesting terminal detects that the parsing content includes the requirement of sharing the positioning auxiliary information, the requesting terminal requests the terminal to transmit the positioning request to the connected server; when the requesting terminal detects the parsing When the content does not include the requirement to share the positioning assistance information, the terminal is requested to cancel the delivery of the location request to the connected server.
- the responding terminal compares the parsed preset content according to the preset request according to the positioning request transmitted by the connected server;
- the preset content may be the positioning auxiliary information parsing time, the ephemeris parsing time, the request positioning time, and the like;
- the corresponding preset algorithm may be a positioning auxiliary information analysis time comparison, a positioning time comparison, and the like.
- the responding terminal detects that the parsed positioning request content includes a preset comparison content
- the preset comparison content may be selected as the positioning auxiliary information parsing time, and the responding terminal takes its own current positioning auxiliary information time, and requests The positioning assistance information time of the terminal is compared;
- the preset algorithm may be selected to compare the satellite assistance time of the requesting terminal and the responding terminal to the morning and the evening; when the positioning assistance information time of the responding terminal is later than the positioning auxiliary information time of the requesting terminal, the positioning auxiliary information of the responding terminal and The positioning auxiliary information time is transmitted to the requesting terminal; If the positioning assistance information time of the terminal is earlier than the positioning assistance information time of the requesting terminal, the responding terminal cancels transmitting the positioning auxiliary information to the requesting terminal; and does not exclude that the responding terminal may select to update itself by using the positioning auxiliary information of the parsing requesting terminal.
- the responding terminal when the responding terminal detects that the parsing positioning request content does not include the positioning auxiliary information time of the requesting terminal, the responding terminal reads its own current positioning auxiliary information time, and the current positioning auxiliary information and its positioning assistance The information time is passed to the requesting terminal.
- the requesting terminal compares the parsed preset content according to the request information of one or more effective positioning assistance information transmitted by the terminal, and then selects the optimal effective positioning auxiliary information for positioning.
- the requesting terminal presets a waiting time from a process of initiating a positioning request to receiving valid positioning assistance information transmitted by the sharing terminal; when the requesting terminal initiates a positioning request, the waiting time process starts to run the counting task; When the requesting terminal detects that the waiting time process is not completed, the receiving shared terminal initiates a request channel for transmitting the effective positioning auxiliary information; when the requesting terminal detects that the sharing terminal initiates the delivery of the effective positioning auxiliary information request, the requesting terminal requests the terminal to receive the shared terminal.
- the auxiliary information is effectively located and parsed; when the requesting terminal receives only one of the effective positioning assistance information transmitted by the sharing terminal, the requesting terminal parses and reads the effective positioning auxiliary information, thereby implementing positioning; when the requesting terminal receives the delivery by the sharing terminal
- the requesting terminal parses the plurality of effective positioning auxiliary information one by one, and reads the positioning auxiliary information time in the parsed content, and then compares with the current system time; the requesting terminal judges according to the time comparison value result.
- the terminal requesting the selected optimum location assistance information further embodiment of the positioning.
- the optimal positioning assistance information may be selected in the following manner: after requesting the terminal to parse the plurality of valid positioning auxiliary information, the terminal reads the multiple positioning auxiliary information time one by one, and compares with the current system time of the requesting terminal one by one; The terminal selects the corresponding positioning auxiliary information with the smallest absolute value of the current system time and the read positioning auxiliary information, as the optimal positioning auxiliary information required by the terminal, and then performs positioning; when the terminal detects the waiting time After the process has ended, the receiving shared terminal initiates a request channel for transmitting the effective positioning auxiliary information; when the terminal detects that the waiting time process has ended, and does not receive the valid positioning auxiliary information request transmitted by the sharing terminal before the end of the process, the terminal Return to the normal GPS satellite positioning process.
- the responding terminal may be a terminal that succeeds in normal positioning, or may be a terminal that is successfully located by sharing the shared positioning assistance information sent by other terminals.
- End of positioning The terminal usually sends an identifier of the success or failure of the positioning to the connected server according to the success result of its own positioning. After the positioning succeeds, the terminal successfully locates the information to be transmitted to the connected server.
- the identification information can be divided into two categories: one type of identifier represents unknown location or expired location; the other type of identifier represents the latest location.
- the terminal that has performed the positioning determines that its own positioning information is updated, it sends a request notification for updating the positioning identifier to the connected server; the positioning information includes the positioning result, and includes the positioning assistance used in the positioning process. information.
- the server connected to the terminal that has been located detects that the terminal does not send the notification request for updating the location identifier within a certain effective time, the server automatically updates the identifier information corresponding to the terminal to the expired location;
- the server connected to the terminal has the function of transmitting the request information and storing the key useful information of the terminal that has been located.
- the key useful information does not exclude the CellID information of the terminal, the terminal IMEI number, and the location identifier.
- the server is configured on the terminal to provide a channel through which the terminal is connected to the server.
- Step 301 The requesting terminal selects whether to share the positioning assistance information on the display module invoked by the terminal when the positioning request is initiated, and the GPS module on the requesting terminal detects the positioning request, and the transfer positioning request process Task_1 is started.
- the positioning request Request_1 is delivered to the detection update module on the requesting terminal;
- the detection update module on the requesting terminal When the detection update module on the requesting terminal reads the Share_Info field value in the Request_1 message, the detection update module calls the open delivery location request process Task_2, and transmits the Request_1 message to the server connected to the requesting terminal, and passes the server.
- the server may be a simple server built by the operator, and stores the following letter. interest:
- Loc_Flag The location identifier Loc_Flag of the terminal (requesting terminal and responding terminal) is divided into two types: "unlocated” or “expired positioning”, with 0, "newest positioning” or “effective positioning”, indicated by 1;
- the requesting terminal and the responding terminal can access the server by configuring the connected server address thereon, and transmit the positioning request to the server;
- the server connected to the requesting terminal When the server connected to the requesting terminal receives the Request_1 message transmitted by the requesting terminal, the server parses and reads, and detects the field information therein: CellID information, the IMEI number of the terminal, and the IP address of the terminal; and then compares the requesting terminal stored in the server. And responding to terminal information.
- the server When there is a response terminal information in the server search result that has the same CellID as the requesting terminal and the positioning identifier Loc_Flag is 1, the server repackages the positioning request into a Request_2 message, and according to the IMEI number and IP address corresponding to the responding terminal. Passed to the associated response terminal, the associated terminal is referred to as a "response terminal", and the "response terminal" may be one or more;
- the terminal When the located positioning terminal receives the positioning success information, the terminal sends a notification request to the server to update the positioning identifier Loc_Flag of the terminal recorded on the connected server; when the recorded positioning identifier Loc_Flag is already 1 before the update , no updates are made;
- Step 303 When the value of the Share_Info field in the read update request module on the requesting terminal is 0, the detection update module on the requesting terminal cancels the delivery of the Request_1 message to the server connected to the requesting terminal, that is, the open delivery location is not invoked. Requesting the process Task_2; further sending a positioning process for implementing the common positioning method to the GPS module on the requesting terminal;
- Step 304 When the responding terminal receives the Request_2 message delivered by the connected server, The parsing and contrasting module on the terminal starts working, that is, the parsing and comparing module sequentially calls the parsing function Parse_1() and the contrast function Contrast_1(int p, int l);
- Parse_1() When the result of the parsing function Parse_1() returns, where the field identifier parse_time_flag is 1, it indicates that the "positioning assistance information parsing time P" is included, and then proceeds to step 305;
- Step 305 The response terminal is the latest positioned terminal recorded on the connected server, so the terminal itself has the positioning assistance information; then the response terminal reads its own positioning assistance information analysis time, and the analysis time is called L;
- the comparison function Contrast_1(int p, int l) called by the parsing comparison module on the terminal compares P and L. When the result returned by the function is 1, L is later than P; when the result of the function result feedback is 0, Then L is earlier than P;
- Step 306 The response terminal reads the positioning assistance information and the positioning assistance information time that the terminal itself has, repackages into a Response_2_1 message, and according to the result returned by the parsing function Parse_1(), the field IMEI number and the field IP address, the Request_3 message is sent. Passed to the requesting terminal;
- Step 307 When the response terminal resolution time L is later than the positioning assistance information analysis time P delivered by the requesting terminal, the positioning assistance information of the responding terminal is effective positioning assistance information for the requesting terminal; Re-packaging the effective positioning assistance information and the positioning assistance information parsing time into a Response_2_2 message, and transmitting the field IMEI number and the field IP address to the requesting terminal according to the result returned by the parsing function Parse_1();
- the requesting terminal is pre-set with a waiting time T, that is, the requesting terminal indicates the time that can be used when starting the positioning request and receiving the effective positioning auxiliary information;
- the detecting update module calls the waiting time process Time_Task, and the function of the process is to make the waiting time T enter a countdown;
- step 309 is performed
- the detection update module in the requesting terminal detects that the waiting time T process has ended, the detection is more The new module will call the Closed method to close the request to receive the valid positioning assistance information transmitted by the response terminal;
- Step 308 When the response terminal positioning assistance information parsing time L is earlier than the positioning assistance information parsing time P delivered by the requesting terminal, that is, the positioning auxiliary information of the responding terminal is invalid positioning auxiliary information for the requesting terminal;
- the parsing and comparison module on the above stops working, that is, ends all processes and recycles related program running resources;
- Step 309 The requesting terminal receives the Response message transmitted by the responding terminal, and the message may be Response_2_1, or may be Response_2_2;
- the detection update module in the requesting terminal detects that only one Response message of the effective positioning assistance information is received before the end of the "waiting time T"
- the Response message is transmitted to the parsing and contrasting module, and the parsing function is called by the parsing and comparing module.
- the detection update module in the requesting terminal detects that a plurality of “Responsive Positioning Assistance Information” Response messages are received before the end of the waiting time T, the multiple Response messages are transmitted to the parsing and comparing module, and then the parsing and comparing module is configured.
- the process task of calling the parsing function Parse_2() and the contrast function Contrast_2(int[][]t1) is started; the parsing function Parse_2() parses multiple Response messages one by one, and stores the parsing result according to the data structure of the list or array.
- the data structure form of the selection list is named as list1; the positioning auxiliary information parsing time of the plurality of effective positioning auxiliary information is stored in the first column in the list1, that is, l1[][1] is a plurality of effective positioning
- the current system time of the terminal is simultaneously passed to the comparison function Contrast_2(int[][1]t1); the comparison function Contrast_2(int[][1]t1) is used to first determine the list1
- the bit auxiliary information analysis time l1[][1] is compared with the current system time, and then t1[m][1] is compared one by one.
- t1 [m][1] is the return value of the contrast function Contrast_2(int[][1]t1), that is, the effective positioning auxiliary information in list1 corresponding to t1[n][1] is used as the optimal positioning auxiliary information of the requesting terminal.
- t1[m][1] indicates that the requesting terminal receives m valid positioning assistance information and parses the positioning assistance information stored in the first column of the list1
- t1[n][1] indicates that the requesting terminal receives Among the m effective positioning auxiliary information, the analysis time of the nth effective positioning auxiliary information is closest to the current terminal system
- the system time, that is, the nth effective positioning assistance information is the optimal positioning assistance information required by the requesting terminal;
- the positioning can be implemented; the subsequent implementation of the positioning process is the same as the GPS pseudorange measurement described in the common positioning method flow, and finally calculates the terminal position, speed and time (PVT). );
- Step 310 When detecting the location success information sent by the GPS module, the detection and update module of the terminal sends an update notification message Update message to the server connected to the terminal, so as to update the location identifier recorded by the terminal on the server;
- an embodiment of the present invention provides a terminal device 1, where the terminal device 1 includes:
- the requesting module 11 is configured to: send a positioning request, where the positioning request includes a sharing request identifier;
- the first receiving module 12 is configured to: receive the shared positioning assistance information sent by the responding terminal;
- the positioning module 13 is configured to: perform positioning according to the shared positioning assistance information
- the response terminal is a located terminal determined according to the positioning request, and the shared positioning assistance information refers to information used for performing GPS positioning.
- the number of the shared positioning assistance information is one or more;
- the positioning module 13 is configured to: when the shared positioning assistance information received by the first receiving module 12 is one, perform positioning according to the shared positioning auxiliary information;
- one shared positioning auxiliary information is selected from the plurality of shared positioning auxiliary information, and the positioning is performed according to the optimal shared positioning auxiliary information.
- the positioning module 13 is configured to:
- the absolute value of the difference between the parsing time of each shared positioning auxiliary information and the current time of the system on the terminal device is calculated respectively;
- the shared positioning assistance information having the smallest absolute value of the difference is selected.
- the receiving module 12 is configured to:
- the embodiment of the present invention further provides a terminal device 2, where the terminal device 2 includes:
- the second receiving module 21 is configured to: receive a positioning request sent by another terminal device;
- the response module 22 is configured to: feed back the shared positioning assistance information according to the positioning request, where the shared positioning assistance information refers to information used for performing GPS positioning.
- the positioning request carries a preset comparison time
- the response module 22 is configured to:
- serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
- function name, the message name, the instruction name, the symbol, and the like in the above embodiment are only described, and are not specifically limited in the present application. Other names and symbols may be used in other embodiments.
- all or part of the steps of the above embodiments may also be implemented using an integrated circuit.
- the steps may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps may be fabricated into a single integrated circuit module.
- the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
- the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
- the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
- the embodiment of the invention solves the problem that the GPS positioning is difficult on the low-end platform or the terminal with poor GPS performance by sharing the positioning auxiliary information of other terminal devices, thereby reducing the maintenance cost and improving the user experience.
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
一种定位方法,应用于终端设备,所述方法包括:所述终端设备发送定位请求(S11),所述定位请求含有共享请求标识;所述终端设备接收响应终端发送的共享定位辅助信息(S12);根据所述共享定位辅助信息进行定位(S13);其中,所述响应终端为根据所述定位请求确定的已定位终端,所述共享定位辅助信息是指用于进行GPS定位所使用的信息。
Description
本申请涉及但不限于终端设备领域。
随着移动终端的普及和高速发展,其终端系统具有的GPS(Global Positioning System,全球定位系统)定位位置服务功能越来越切合人们的日常生活需要。
但是对于终端的软硬件高低端层次不同,用户使用其上的GPS定位位置服务能力也千差万别。一方面对于低端平台的终端或者GPS性能差的终端,用户通过其进行定位所带来的体验效果比较差,甚至影响用户使用;另一方面对于定位速度及定位精度要求高的用户或者使用场景而言,虽然有当前终端常用GPS定位方法的支撑,但是这些定位技术对终端及运营商的要求比较高;比如终端GPS卫星定位,是终端GPS引擎开启后,全频段搜索终端所在区域上空的卫星信息,进而进行时钟同步、频率同步、星历下载、解析导航电文、伪距测量,最终计算终端位置、速度和时间(PVT);这一类定位方法要求终端的GPS性能本身要好,即终端GPS搜星能力强,处理信息速度快等特点,才能很快的显示出定位结果;再比如AGPS(Assisted Global Positioning System,辅助全球卫星定位系统)定位,是终端通过蜂窝网络从运营商部署的AGPS服务器上下载定位辅助信息,进而进行伪距测量,最终计算终端位置、速度和时间(PVT);这一类定位方法要求运营商要部署AGPS服务器,并通过实时采集每个区域的卫星信息,将其保存在AGPS服务器中,需要运营商实时维护AGPS服务器,成本比较高。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本文提供一种定位方法和终端设备,解决了低端平台或者GPS性能差的
终端上GPS定位难的问题。
一种定位方法,应用于终端设备,所述方法包括:
所述终端设备发送定位请求,所述定位请求含有共享请求标识;
所述终端设备接收响应终端发送的共享定位辅助信息;
根据所述共享定位辅助信息进行定位;
其中,所述响应终端为根据所述定位请求确定的已定位终端,所述共享定位辅助信息是指用于进行GPS定位所使用的信息。
可选地,
所述共享定位辅助信息的个数为一个或者多个;
所述根据所述共享定位辅助信息进行定位包括:
当接收到的共享定位辅助信息为一个时,根据所述共享定位辅助信息进行定位;
当接收到的共享定位辅助信息为多个时,从所述多个共享定位辅助信息中选择一个有效的共享定位辅助信息,根据所述有效的共享定位辅助信息进行定位。
可选地,
所述从所述多个共享定位辅助信息中选择一个有效的共享定位辅助信息包括:
分别计算每个共享定位辅助信息的解析时间与所述终端设备上系统的当前时间的差值的绝对值;
选择所述差值的绝对值最小的共享定位辅助信息。
可选地,
所述接收响应终端发送的共享定位辅助信息包括:
所述终端设备在所述定位请求发起时开始计时;
在预先设定的等待时间范围内接收所述响应终端发送的一个或多个共享定位辅助信息。
一种数据共享的方法,应用于终端设备,所述方法包括:
接收其它终端设备发送的定位请求;
根据所述定位请求反馈共享定位辅助信息,所述共享定位辅助信息是指用于进行GPS定位所使用的信息。
可选地,
所述定位请求携带有预设比较时间;
所述根据所述定位请求反馈共享定位辅助信息包括:
将所述预设比较时间与本地的辅助信息对应的时间进行比较;将对应的时间不早于所述预设比较时间的辅助信息作为共享定位辅助信息;
将所述共享定位辅助信息发送给所述终端设备。
一种终端设备,所述终端设备包括:
请求模块,设置为:发送定位请求,所述定位请求含有共享请求标识;
第一接收模块,设置为:接收响应终端发送的共享定位辅助信息;
定位模块,设置为:根据所述共享定位辅助信息进行定位;
其中,所述响应终端为根据所述定位请求确定的已定位终端,所述共享定位辅助信息是指用于进行GPS定位所使用的信息。
可选地,
所述共享定位辅助信息的个数为一个或者多个;
所述定位模块是设置为:
当第一接收模块接收到的共享定位辅助信息为一个时,根据所述共享定位辅助信息进行定位;
当第一接收模块接收到的共享定位辅助信息为多个时,从所述多个共享定位辅助信息中选择一个共享定位辅助信息,根据所述最佳共享定位辅助信息进行定位。
可选地,
所述定位模块是设置为:
当第一接收模块接收到的共享定位辅助信息为多个时,分别计算每个共享定位辅助信息的解析时间与所述终端设备上系统的当前时间的差值的绝对值;
选择所述差值的绝对值最小的共享定位辅助信息。
可选地,
所述第一接收模块是设置为:
在所述定位请求发起时开始计时;
在预先设定的等待时间范围内接收所述响应终端发送的一个或多个共享定位辅助信息。
一种终端设备,所述终端设备包括:
第二接收模块,设置为:接收其它终端设备发送的定位请求;
响应模块,设置为:根据所述定位请求反馈共享定位辅助信息,所述共享定位辅助信息是指用于进行GPS定位所使用的信息。
可选地,
所述定位请求携带有预设比较时间;
所述响应模块是设置为:
将所述预设比较时间与本地的辅助信息对应的时间进行比较;将对应的时间不早于所述预设比较时间的辅助信息作为共享定位辅助信息;
将所述共享定位辅助信息发送给所述终端设备。
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的方法。
上述方案通过共享其它终端设备的定位辅助信息进行GPS定位,解决了低端平台或者GPS性能差的终端上GPS定位难的问题,同时降低了维护成本,
提高用户体验度。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1是本发明实施例一中定位方法的流程图;
图2是本发明实施例一中数据共享的方法的流程图;
图3是本发明实施例一中定位方法及数据共享方法的流程图;
图4是本发明实施例二中的终端设备的结构示意图;
图5是本发明实施例二中的终端设备的结构示意图。
下文中将结合附图对本申请的实施方式进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
实施例一
本发明实施例将已定位并且最新定位终端的定位辅助信息作为共享资源,提供给未定位或者即将过期、甚至已过期定位的终端,以此加快终端的定位速度;并且,一方面对于本身GPS性能较差的终端而言,很大程度上缓解了定位难及定位效果差的问题;另一方面,通过终端之间共享定位辅助信息,解决了目前卫星定位时的全频段搜索问题,网络辅助定位时的位置服务器的部署及星历信息维护问题;不仅达到了改善终端GPS定位效果性能的目的,而且节约成本,提高用户体验。
如图1所示,本实施例提供一种定位方法,应用于终端设备,所述方法包括:
步骤S11:所述终端设备发送定位请求;
定位请求含有共享请求标识;
步骤S12:所述终端设备接收响应终端发送的共享定位辅助信息;
响应终端为根据所述定位请求确定的已定位终端,所述共享定位辅助信
息是指用于进行GPS定位所使用的信息。
共享定位辅助信息的个数为一个或者多个,例如,可以是多个响应终端都发送了共享定位辅助信息,也可以是每个响应终端发送了多个共享定位辅助信息。
终端设备可以设定等待时间,在一定时间范围能接收响应终端发送的共享定位辅助信息。
如可以按照以下方式进行:终端设备在定位请求发起时开始计时;在预先设定的等待时间范围内接收所述响应终端发送的一个或多个共享定位辅助信息。
步骤S13:根据所述共享定位辅助信息进行定位。
当终端设备接收了响应终端发送的共享定位辅助信息后,可以根据接收到的共享定位辅助信息的个数,从中选择出最佳的共享定位辅助信息,并根据该选择出的最佳的共享定位辅助信息进行定位。
当接收到的共享定位辅助信息为一个时,则直接根据该共享定位辅助信息进行定位;
当接收到的共享定位辅助信息为多个时,则需从所述多个共享定位辅助信息中选择一个共享定位辅助信息作为有效的共享定位辅助信息,进而根据该有效的共享定位辅助信息进行定位。
从多个共享定位辅助信息中选择出一个有效的共享定位辅助信息可以通过以下方式实现:
分别计算每个共享定位辅助信息的解析时间与终端设备上系统的当前时间的差值的绝对值;然后选择差值的绝对值最小的共享定位辅助信息。
如图2所示,本实施例还提供一种数据共享的方法,应用于终端设备,述方法包括:
步骤S21:接收其它终端设备发送的定位请求;
步骤S22:根据所述定位请求反馈共享定位辅助信息,所述共享定位辅
助信息是指用于进行GPS定位所使用的信息。
定位请求可以携带有预设比较时间;可以按照以下方式反馈共享定位辅助信息:
将所述预设比较时间与本地的辅助信息对应的时间进行比较;将对应的时间不早于所述预设比较时间的辅助信息作为共享定位辅助信息;
将所述共享定位辅助信息发送给所述终端设备。
在本实施例中,可以将发送定位请求的终端设备作为请求终端,将提供共享定位辅助信息的终端设备作为响应终端。请求终端根据发起的定位请求,判断是否需要通过共享定位辅助信息来进行定位,通常,可以在定位请求中携带共享标识以标识是否通过共享定位辅助信息进行定位还是进行普通定位。请求终端根据GPS模块检测的定位请求,进行解析;当请求终端检测到解析内容中包含有共享定位辅助信息的需求时,则请求终端将该定位请求传递给所连接服务器;当请求终端检测到解析内容中不包含有共享定位辅助信息的需求时,则请求终端取消将定位请求传递给所连接服务器。
响应终端根据所连接服务器传递的定位请求,通过解析及对解析后的预设内容按照预设算法进行比较;该预设内容可以是定位辅助信息解析时间、星历解析时间、请求定位时间等;对应的预设算法可以是定位辅助信息解析时间比较、定位时间比较等。服务器接收到定请求终端发送的定位请求后,则将该定位请求同一时间传递给该服务器所记录的最新定位的一个或者多个已定位终端,也就是响应终端;当响应终端接收到服务器传递的定位请求时,该响应终端进行解析定位请求。当响应终端检测到所解析的定位请求内容包含有所预设的比较内容时,可以选择预设比较内容为定位辅助信息解析时间,则响应终端取其自身当前的定位辅助信息时间,并与请求终端的定位辅助信息时间进行比较;
例如,可以选择预设算法为比较请求终端和响应终端的卫星辅助时间的早与晚;当响应终端的定位辅助信息时间晚于请求终端的定位辅助信息时间,则将响应终端的定位辅助信息及其定位辅助信息时间传递给请求终端;当响
应终端的定位辅助信息时间早于请求终端的定位辅助信息时间,则响应终端取消传递其定位辅助信息给请求终端;并且不排除响应终端可以选择通过所解析的请求终端的定位辅助信息更新其自身的当前定位信息;当响应终端检测到解析定位请求内容不包含有请求终端的定位辅助信息时间时,则响应终端读取其自身当前定位辅助信息时间,并将其当前定位辅助信息及其定位辅助信息时间传递给请求终端。
请求终端根据响应终端传递的一个或者多个有效定位辅助信息的请求信息,通过解析及对解析后的预设内容按照预设算法进行比较,进而选择最优有效定位辅助信息进行定位。其中,请求终端对从发起定位请求开始,到接收到共享终端传递的有效定位辅助信息时的过程预设了等待时间;当请求终端发起定位请求时,则等待时间的进程开始运行倒计时任务;当请求终端检测等待时间进程未结束时,则一直打开接收共享终端发起传递有效定位辅助信息的请求通道;当请求终端检测到共享终端发起传递有效定位辅助信息请求时,则请求终端接收共享终端传递的有效定位辅助信息,并进行解析;当请求终端接收共享终端传递的有效定位辅助信息只有一个时,则请求终端解析并读取该有效定位辅助信息,进而实施定位;当请求终端接收共享终端传递的有效定位辅助信息有多个时,则请求终端逐一解析多个有效定位辅助信息,并读取解析内容中的定位辅助信息时间,进而与当前系统时间进行比较;请求终端根据时间比较值结果,判断请求终端所选用的最优定位辅助信息,进而实施定位。可以采用以下方式选择最优定位辅助信息:请求终端将接收到的多个有效定位辅助信息进行解析后,逐一读取多个定位辅助信息时间,并逐一与请求终端的当前系统时间进行比较;请求终端选择当前系统时间与所读取的解析后的定位辅助信息时间差值据绝对值最小的对应定位辅助信息,作为其自身所需要的最优定位辅助信息,进而实施定位;当终端检测等待时间进程已结束,则关闭接收共享终端发起传递有效定位辅助信息的请求通道;当终端检测等待时间进程已结束,且在该进程结束之前未接收到共享终端传递的有效定位辅助信息请求时,则终端退回到普通GPS卫星定位流程。
在本实施例中,响应终端可以是通过普通定位成功的终端,也可以是通过共享其它终端发送的共享定位辅助信息定位成功的终端。进行过定位的终
端通常根据自身的定位成功结果,向所连接服务器发送定位成功与否的标识。进行过定位的终端在定位成功后将定位成功标识信息传递所连接服务器,标识信息可以分为两类:一类标识代表未知定位或者过期定位;另一类标识代表最新定位。当进行过定位的终端判断其自身的定位信息有更新时,则向所连接服务器发送更新定位标识的请求通知;该定位信息除了包含有定位结果有更新,还包括定位过程中所使用的定位辅助信息。
当进行过定位的终端所连接服务器检测到该终端在一定有效时间内未发送更新定位标识的请求通知时,则该服务器自动将该终端所对应的标识信息更新为过期定位;
其中,终端所连接的服务器具有传递请求信息及存储进行过定位的终端的关键有用信息的功能,关键有用信息不排除包括终端的CellID信息、终端IMEI号、及定位标识等。该服务器通过在终端上进行配置,以提供终端与服务器连接的通道。
如图3所示,进一步说明本发明实施例的定位的方法,所述方法包括:
步骤301:请求终端在发起定位请求时并在终端所调用的显示模块上选择是否“共享定位辅助信息”,其所在请求终端上的GPS模块检测到定位请求,将开启传递定位请求进程Task_1,将该定位请求Request_1传递给请求终端上的检测更新模块;
步骤302:请求终端上的检测更新模块接收到Request_1消息时,进行解析并读取,检查其中的“共享定位辅助信息”Share_Info标识,可选地,检测更新模块中预设标识Share_Info=1为要求共享定位辅助信息,Share_Info=0为不要求共享定位辅助信息;
当请求终端上的检测更新模块读取Request_1消息中的Share_Info字段值为1时,则检测更新模块调用开启传递定位请求进程Task_2,用于将该Request_1消息传递给请求终端所连接服务器,并通过服务器传递到其上记录的“最新”已定位的响应终端;
在本实施例中,服务器可以是运营商搭建的简单服务器,并存储以下信
息:
(1)终端(请求终端和响应终端)通过网络注册,从基站上获取到的CellID信息;
(2)能唯一标识终端(请求终端和响应终端)的IMEI号;
(3)终端(请求终端和响应终端)所注册到的IP地址;
(4)终端(请求终端和响应终端)的定位标识Loc_Flag,分为两种:“未定位”或者“过期定位”,用0表示、“最新定位”或者“有效定位”,用1表示;
(5)序列号ID,用以区分在同一CellID下的不同终端(请求终端和响应终端)。
请求终端以及响应终端可以通过在其上配置所连接服务器地址,用以访问服务器,并将定位请求传递于服务器;
请求终端所连接服务器接收到请求终端所传递的Request_1消息时,服务器解析并读取,检测其中的字段信息:CellID信息、终端的IMEI号、终端的IP地址;进而对比服务器中所存储的请求终端和响应终端的信息。
当服务器查找结果中存在与该请求终端相同的CellID、且定位标识Loc_Flag为1的响应终端信息时,则服务器将定位请求重新打包成Request_2消息,并根据该响应终端所对应的IMEI号、IP地址传递给相关联的响应终端,该相关联的终端称为“响应终端”,该“响应终端”可以是一个,也可以是多个;
当进行过定位的终端接收到定位成功信息时,则该终端向服务器发出通知请求,将所连接服务器上记录的该终端的定位标识Loc_Flag进行更新;当所记录的定位标识Loc_Flag在更新前已经为1,则不进行更新;
步骤303:当请求终端上的检测更新模块读取定位请求中的Share_Info字段值为0时,请求终端上的检测更新模块取消将Request_1消息传递给请求终端所连接服务器,即不会调用开启传递定位请求进程Task_2;进而向请求终端上GPS模块发送一个实施常用定位方法定位流程;
步骤304:当响应终端接收到所连接服务器所传递的Request_2消息时,
终端上的解析对比模块开始工作,即解析对比模块顺序调用解析函数Parse_1()和对比函数Contrast_1(int p,int l);
当解析函数Parse_1()返回的结果中,其中字段标识parse_time_flag为1时,则表示包含有“定位辅助信息解析时间P”时,进而进行步骤305;
当解析函数Parse_1()返回的结果中,其中字段标识parse_time_flag为0时,则表示不包含有“定位辅助信息解析时间P”时,进而进行步骤306;
步骤305:因响应终端为所连接服务器上记录的最新已定位终端,所以该终端自身具有定位辅助信息;则响应终端读取其自身的定位辅助信息解析时间,该解析时间称为L;进而通过终端上的解析对比模块调用的对比函数Contrast_1(int p,int l)对P和L进行对比,当函数返回的结果为1时,则L晚于P;当函数结果反馈的结果为0时,则L早于P;
当L晚于P时,则终端执行步骤307;
当L早于P时,则终端执行步骤308;
步骤306:响应终端读取其终端自身具有的定位辅助信息及定位辅助信息时间,重新打包成Response_2_1消息,并根据解析函数Parse_1()返回的结果中,字段IMEI号和字段IP地址,将Request_3消息传递给请求终端;
步骤307:当响应终端定位辅助信息解析时间L晚于请求终端传递的定位辅助信息解析时间P时,即表示该响应终端的定位辅助信息对于请求终端而言,是有效定位辅助信息;则响应终端将该有效定位辅助信息及其定位辅助信息解析时间重新打包成Response_2_2消息,并根据解析函数Parse_1()返回的结果中,字段IMEI号和字段IP地址,传递给请求终端;
请求终端中预设有等待时间T,即请求终端表示从发起定位请求开始,到接收到有效定位辅助信息时这一个过程所可以使用的时间;
当请求终端开始发起定位请求,则检测更新模块调用等待时间进程Time_Task,该进程的作用是使等待时间T进入倒计时;
当请求终端中的检测更新模块检测到等待时间T进程未结束时,则执行步骤309;
当请求终端中的检测更新模块检测到等待时间T进程已结束时,检测更
新模块将调用Closed方法,用于关闭接收响应终端所传递的有效定位辅助信息的请求;
步骤308:当响应终端定位辅助信息解析时间L早于请求终端传递的定位辅助信息解析时间P时,即表示该响应终端的定位辅助信息对于请求终端而言,是无效定位辅助信息;则响应终端上的解析对比模块停止工作,即结束所有进程,回收相关程序运行资源;
步骤309:请求终端接收响应终端传递的Response消息,该消息可能是Response_2_1,也可能是Response_2_2;
当请求终端中的检测更新模块检测在“等待时间T”结束前,只接收到一个有效定位辅助信息的Response消息时,则将该Response消息传递给解析对比模块,进而由解析对比模块调用解析函数Parse_2(),并将解析的有效定位辅助信息用于请求终端,进而实施定位;
当请求终端中的检测更新模块检测在等待时间T结束前,接收到多个“有效定位辅助信息”的Response消息时,则将该多个Response消息传递给解析对比模块,进而由解析对比模块,开启顺序调用解析函数Parse_2()和对比函数Contrast_2(int[][]t1)的进程任务;解析函数Parse_2()逐一解析多个Response消息,并将解析结果按照列表或者数组的数据结构形式进行存储;可选地,选择列表的数据结构形式,命名为list1;多个有效定位辅助信息的定位辅助信息解析时间存放在列表list1中的第一列,即l1[][1]为多个有效定位辅助信息的“定位辅助信息解析时间”的存储结构;进而再将列表list1中的每条信息进行读取,将list1中的每个数据单元“定位辅助信息解析时间”l1[][1]和终端当前系统时间同时传递给对比函数Contrast_2(int[][1]t1);对比函数Contrast_2(int[][1]t1)用于首先将列表list1中的定位辅助信息解析时间l1[][1]与当前系统时间进行比较,接着再将t1[m][1]之间进行逐一对比,当对比结果t1[n][1]为最小值,则t1[m][1]为当对比函数Contrast_2(int[][1]t1)的返回值,即t1[n][1]所对应list1中的有效定位辅助信息作为请求终端的最优定位辅助信息;其中,t1[m][1]表示请求终端接收m个有效定位辅助信息,并将其在列表list1中第一列存储的定位辅助信息解析时间;t1[n][1]表示请求终端接收m个有效定位辅助信息中,第n个有效定位辅助信息解析时间最接近终端当前系
统时间,即第n个有效定位辅助信息是请求终端所需的最优定位辅助信息;
当请求终端中通过对比选择,具有了最优的定位辅助信息时,进而可实施定位;后续实施定位过程同常用定位方法流程中描述的GPS伪距测量,最终计算终端位置、速度和时间(PVT);
步骤310:终端的检测更新模块检测到GPS模块发送的定位成功信息时,向终端所连接服务器发送更新通知消息Update消息,用以更新该终端在服务器上所记录的定位标识;
实施例二
如图4所示,本发明实施例提供一种终端设备1,所述终端设备1包括:
请求模块11,设置为:发送定位请求,所述定位请求含有共享请求标识;
第一接收模块12,设置为:接收响应终端发送的共享定位辅助信息;
定位模块13,设置为:根据所述共享定位辅助信息进行定位;
其中,所述响应终端为根据所述定位请求确定的已定位终端,所述共享定位辅助信息是指用于进行GPS定位所使用的信息。
可选地,
所述共享定位辅助信息的个数为一个或者多个;
所述定位模块13是设置为:当第一接收模块12接收到的共享定位辅助信息为一个时,根据所述共享定位辅助信息进行定位;
当第一接收模块12接收到的共享定位辅助信息为多个时,从所述多个共享定位辅助信息中选择一个共享定位辅助信息,根据所述最佳共享定位辅助信息进行定位。
可选地,
所述定位模块13是设置为:
当第一接收模块12接收到的共享定位辅助信息为多个时,分别计算每个共享定位辅助信息的解析时间与所述终端设备上系统的当前时间的差值的绝对值;
选择所述差值的绝对值最小的共享定位辅助信息。
可选地,
所述接收模块12是设置为:
在所述定位请求发起时开始计时;
在预先设定的等待时间范围内接收所述响应终端发送的一个或多个共享定位辅助信息。
如图5所示,本发明实施例还提供一种终端设备2,所述终端设备2包括:
第二接收模块21,设置为:接收其它终端设备发送的定位请求;
响应模块22,设置为:根据所述定位请求反馈共享定位辅助信息,所述共享定位辅助信息是指用于进行GPS定位所使用的信息。
可选地,
所述定位请求携带有预设比较时间;
所述响应模块22是设置为:
将所述预设比较时间与本地每个所述辅助信息对应的时间进行比较;将对应的时间不早于所述预设比较时间的辅助信息作为共享定位辅助信息;
将所述共享定位辅助信息发送给所述终端设备。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。同时,上述实施例中的函数名称、消息名称、指令名称及符号等仅为了描述,本申请中不做具体限定,在其它实施例中还可以使用其它的名称及符号。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这
些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
本发明实施例通过共享其它终端设备的定位辅助信息进行GPS定位,解决了低端平台或者GPS性能差的终端上GPS定位难的问题,同时降低了维护成本,提高用户体验度。
Claims (13)
- 一种定位方法,应用于终端设备,所述方法包括:所述终端设备发送定位请求,所述定位请求含有共享请求标识;所述终端设备接收响应终端发送的共享定位辅助信息;根据所述共享定位辅助信息进行定位;其中,所述响应终端为根据所述定位请求确定的已定位终端,所述共享定位辅助信息是指用于进行全球定位系统GPS定位所使用的信息。
- 如权利要求1所述的方法,其中:所述共享定位辅助信息的个数为一个或者多个;所述根据所述共享定位辅助信息进行定位包括:当接收到的共享定位辅助信息为一个时,根据所述共享定位辅助信息进行定位;当接收到的共享定位辅助信息为多个时,从所述多个共享定位辅助信息中选择一个有效的共享定位辅助信息,根据所述有效的共享定位辅助信息进行定位。
- 如权利要求2所述的方法,其中:所述从所述多个共享定位辅助信息中选择一个有效的共享定位辅助信息包括:分别计算每个共享定位辅助信息的解析时间与所述终端设备上系统的当前时间的差值的绝对值;选择所述差值的绝对值最小的共享定位辅助信息。
- 如权利要求1所述的方法,其中:所述接收响应终端发送的共享定位辅助信息包括:所述终端设备在所述定位请求发起时开始计时;在预先设定的等待时间范围内接收所述响应终端发送的一个或多个共享定位辅助信息。
- 一种数据共享的方法,应用于终端设备,所述方法包括:接收其它终端设备发送的定位请求;根据所述定位请求反馈共享定位辅助信息,所述共享定位辅助信息是指用于进行GPS定位所使用的信息。
- 如权利要求5所述的方法,其中:所述定位请求携带有预设比较时间;所述根据所述定位请求反馈共享定位辅助信息包括:将所述预设比较时间与本地的辅助信息对应的时间进行比较;将对应的时间不早于所述预设比较时间的辅助信息作为共享定位辅助信息;将所述共享定位辅助信息发送给所述终端设备。
- 一种终端设备,所述终端设备包括:请求模块,设置为:发送定位请求,所述定位请求含有共享请求标识;第一接收模块,设置为:接收响应终端发送的共享定位辅助信息;定位模块,设置为:根据所述共享定位辅助信息进行定位;其中,所述响应终端为根据所述定位请求确定的已定位终端,所述共享定位辅助信息是指用于进行GPS定位所使用的信息。
- 如权利要求7所述的终端设备,其中:所述共享定位辅助信息的个数为一个或者多个;所述定位模块是设置为:当第一接收模块接收到的共享定位辅助信息为一个时,根据所述共享定位辅助信息进行定位;当第一接收模块接收到的共享定位辅助信息为多个时,从所述多个共享定位辅助信息中选择一个共享定位辅助信息,根据所述最佳共享定位辅助信息进行定位。
- 如权利要求8所述的终端设备,其中:所述定位模块是设置为:当第一接收模块接收到的共享定位辅助信息为多个时,分别计算每个共享定位辅助信息的解析时间与所述终端设备上系统的当前时间的差值的绝对值;选择所述差值的绝对值最小的共享定位辅助信息。
- 如权利要求7所述的终端设备,其中:所述第一接收模块是设置为:在所述定位请求发起时开始计时;在预先设定的等待时间范围内接收所述响应终端发送的一个或多个共享定位辅助信息。
- 一种终端设备,所述终端设备包括:第二接收模块,设置为:接收其它终端设备发送的定位请求;响应模块,设置为:根据所述定位请求反馈共享定位辅助信息,所述共享定位辅助信息是指用于进行GPS定位所使用的信息。
- 如权利要求11所述的终端设备,其中:所述定位请求携带有预设比较时间;所述响应模块是设置为:将所述预设比较时间与本地的辅助信息对应的时间进行比较;将对应的时间不早于所述预设比较时间的辅助信息作为共享定位辅助信息;将所述共享定位辅助信息发送给所述终端设备。
- 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-6任一项的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510444366.2A CN106707319A (zh) | 2015-07-24 | 2015-07-24 | 一种定位方法和终端设备 |
CN201510444366.2 | 2015-07-24 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016131335A1 true WO2016131335A1 (zh) | 2016-08-25 |
Family
ID=56688700
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/097912 WO2016131335A1 (zh) | 2015-07-24 | 2015-12-18 | 一种定位方法和终端设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106707319A (zh) |
WO (1) | WO2016131335A1 (zh) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107426693B (zh) * | 2017-06-01 | 2020-12-01 | 北京星选科技有限公司 | 定位方法和装置 |
CN110536234A (zh) | 2019-08-13 | 2019-12-03 | 中兴通讯股份有限公司 | 位置信息确定方法、装置、第一终端及第二终端 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050239480A1 (en) * | 2004-04-21 | 2005-10-27 | Samsung Electronics Co., Ltd. | Positioning apparatus and method of a mobile terminal using a positioning server independently constructed on a network |
CN102740228A (zh) * | 2012-06-21 | 2012-10-17 | 北京小米科技有限责任公司 | 一种位置信息共享方法、装置及系统 |
CN103760583A (zh) * | 2014-01-01 | 2014-04-30 | 深圳北斗国芯科技有限公司 | 一种导航终端定位方法 |
CN103792560A (zh) * | 2012-10-30 | 2014-05-14 | 中兴通讯股份有限公司 | 卫星定位方法、装置及系统 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7668554B2 (en) * | 2001-05-21 | 2010-02-23 | Sirf Technology, Inc. | Network system for aided GPS broadcast positioning |
EP2271950A1 (en) * | 2008-04-21 | 2011-01-12 | Nokia Corporation | Providing positioning assistance data |
CN101715163B (zh) * | 2009-11-24 | 2012-09-26 | 中兴通讯股份有限公司 | 一种获取辅助定位数据的方法及装置 |
CN103344976B (zh) * | 2013-07-05 | 2016-10-05 | 泰斗微电子科技有限公司 | 一种辅助卫星导航定位方法及相应的定位终端 |
CN103809187A (zh) * | 2014-02-19 | 2014-05-21 | 博彦科技股份有限公司 | 一种利用无线传感网分享卫星定位数据的方法 |
-
2015
- 2015-07-24 CN CN201510444366.2A patent/CN106707319A/zh active Pending
- 2015-12-18 WO PCT/CN2015/097912 patent/WO2016131335A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050239480A1 (en) * | 2004-04-21 | 2005-10-27 | Samsung Electronics Co., Ltd. | Positioning apparatus and method of a mobile terminal using a positioning server independently constructed on a network |
CN102740228A (zh) * | 2012-06-21 | 2012-10-17 | 北京小米科技有限责任公司 | 一种位置信息共享方法、装置及系统 |
CN103792560A (zh) * | 2012-10-30 | 2014-05-14 | 中兴通讯股份有限公司 | 卫星定位方法、装置及系统 |
CN103760583A (zh) * | 2014-01-01 | 2014-04-30 | 深圳北斗国芯科技有限公司 | 一种导航终端定位方法 |
Also Published As
Publication number | Publication date |
---|---|
CN106707319A (zh) | 2017-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8059032B2 (en) | Positioning control device and positioning control method | |
CN110933715B (zh) | 获取及提供定位辅助数据的方法、装置及设备 | |
US8412233B2 (en) | Method, location service apparatus and system for acquiring a cell position and locating a cell | |
CN108780155B (zh) | 一种定位方法、终端及服务器 | |
CN102057652A (zh) | 用于通过可拆装模块支持基于位置的服务的方法和装置 | |
CN102164342A (zh) | 用于物理地图辅助无线接入点定位的方法和系统 | |
EP2873255B1 (en) | Automated sharing of application data over a near field communication link | |
US12140682B2 (en) | Positioning processing method and related apparatus | |
US8260313B1 (en) | Apparatus and method for modifying service-access-point data within the apparatus | |
CN105629281A (zh) | 用于终端的辅助定位方法及辅助定位装置 | |
WO2017214979A1 (zh) | 移动终端及其定位方法 | |
CN102448166A (zh) | 一种定位的方法和系统、移动终端 | |
WO2016180124A1 (zh) | 一种基于定位数据的基站优化方法和装置 | |
US10405161B2 (en) | V2X cellular communication synchronization and initiation independent of a cellular base station | |
WO2016131335A1 (zh) | 一种定位方法和终端设备 | |
JP2002314477A (ja) | 情報提供システム、その方法及びそれに用いる利用者端末並びにそのプログラム | |
EP4101150A1 (en) | Digital assistant for emergency calling | |
CN106325914B (zh) | 一种安装应用程序的方法、服务器和终端 | |
WO2022144005A1 (zh) | 定位方法及系统、通信终端和计算机可读存储介质 | |
WO2016206459A1 (zh) | 一种终端定位方法及装置 | |
TWI462061B (zh) | 自動車輛位置監視方法與裝置及通訊系統 | |
CN105491631A (zh) | 一种移动终端定位方法、装置及移动终端 | |
CN105704781A (zh) | 一种移动终端定位方法、装置及移动终端 | |
US9354325B2 (en) | Apparatus and method for acquiring the position of a portable terminal | |
JP2002164834A (ja) | 偽位置情報検出装置および方法、ならびに、位置情報の送受信機能を備えた移動体通信システム |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15882474 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15882474 Country of ref document: EP Kind code of ref document: A1 |