[go: up one dir, main page]

CN104980889A - Positioning device-based position acquisition method, proxy server and system - Google Patents

Positioning device-based position acquisition method, proxy server and system Download PDF

Info

Publication number
CN104980889A
CN104980889A CN201510373597.9A CN201510373597A CN104980889A CN 104980889 A CN104980889 A CN 104980889A CN 201510373597 A CN201510373597 A CN 201510373597A CN 104980889 A CN104980889 A CN 104980889A
Authority
CN
China
Prior art keywords
positioning device
information
positioning
proxy server
network
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
CN201510373597.9A
Other languages
Chinese (zh)
Other versions
CN104980889B (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 360 Zhiling Technology Co ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510373597.9A priority Critical patent/CN104980889B/en
Publication of CN104980889A publication Critical patent/CN104980889A/en
Application granted granted Critical
Publication of CN104980889B publication Critical patent/CN104980889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明涉及通信领域,公开了一种基于定位设备的位置获取方法、代理服务器及网络访问系统,以解决现有技术中定位设备访问网络需要耗费定位设备大量数据流量的技术问题。该方法包括:代理服务器接收定位设备通过移动通信运营商的网络发送的定位设备的当前位置信息;其中,定位设备进行访问网络过程中的数据传输标记有免流量标识,定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由移动网络运营商基于免流量标识将其计入指定服务商中。达到了降低定位设备向其他电子设备发送当前位置信息时所耗费的数据流量的技术效果。

The invention relates to the field of communication, and discloses a location acquisition method based on a positioning device, a proxy server and a network access system to solve the technical problem in the prior art that the positioning device needs to consume a large amount of data traffic for accessing the network. The method includes: the proxy server receives the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator; wherein, the data transmission in the process of accessing the network by the positioning device is marked with a flow-free mark, and the positioning device accesses the network through the proxy server All or part of the data traffic generated during the process will be counted by the mobile network operator to the designated service provider based on the traffic-free identification. The technical effect of reducing the data traffic consumed when the positioning device sends current position information to other electronic devices is achieved.

Description

一种基于定位设备的位置获取方法、代理服务器及系统A location acquisition method, proxy server and system based on a positioning device

技术领域technical field

本发明涉及通信领域,尤其涉及一种基于定位设备的位置获取方法、代理服务器及网络访问系统。The invention relates to the field of communication, in particular to a location acquisition method based on a positioning device, a proxy server and a network access system.

背景技术Background technique

现有技术中,定位设备可以采用多种定位方案,例如:基于基站定位、基于GPS(Global Positioning System:全球定位系统)定位等等。其中为了提高定位精度和速度,现有技术中推出了将基站定位和GPS定位相结合的AGPS(Assisted Global Positioning System:辅助全球卫星定位系统)定位,AGPS定位方案中,位置服务器首先需要确定出为定位设备提供定位的基站信息;然后通过基站信息确定出提供GPS定位服务的卫星信息,然后将卫星信息通过网络发送至定位设备,定位设备通过该卫星信息就可以实现GPS定位。In the prior art, a positioning device may adopt various positioning schemes, for example, positioning based on a base station, positioning based on a GPS (Global Positioning System: Global Positioning System), and the like. Among them, in order to improve the positioning accuracy and speed, AGPS (Assisted Global Positioning System: Assisted Global Positioning System) positioning that combines base station positioning and GPS positioning has been introduced in the prior art. In the AGPS positioning solution, the location server first needs to be determined as The positioning device provides the base station information for positioning; then determines the satellite information that provides GPS positioning services through the base station information, and then sends the satellite information to the positioning device through the network, and the positioning device can realize GPS positioning through the satellite information.

现有技术中,定位设备如果需要将确定出的当前位置信息发送其他电子设备的话,则需要访问网络,从而导致会存在消耗定位设备的大量数据流量的技术问题。In the prior art, if the positioning device needs to send the determined current location information to other electronic devices, it needs to access the network, which leads to the technical problem of consuming a large amount of data traffic of the positioning device.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的基于定位设备的位置获取方法、代理服务器及网络访问系统。In view of the above problems, the present invention is proposed to provide a position acquisition method based on a positioning device, a proxy server and a network access system that overcome the above problems or at least partially solve the above problems.

依据本发明的一个方面,提供一种用于定位设备的位置传输方法,包括:According to one aspect of the present invention, a location transmission method for a location device is provided, including:

确定出定位设备的当前位置信息;Determine the current location information of the positioning device;

通过移动通信运营商的网络向代理服务器发送所述定位设备的当前位置信息;Sending the current location information of the positioning device to the proxy server through the network of the mobile communication operator;

其中,所述定位设备进行访问网络过程中的数据传输标记有免流量标识,所述定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由所述移动网络运营商基于所述免流量标识将其计入指定服务商中。Wherein, the data transmission during the process of accessing the network by the positioning device is marked with a traffic-free flag, and all or part of the data traffic generated during the process of accessing the network by the positioning device through a proxy server is provided by the mobile network operator based on the traffic-free Logo will be credited to the designated service provider.

可选的,所述确定出定位设备的当前位置信息,具体包括:Optionally, the determining the current location information of the positioning device specifically includes:

接收所述代理服务器发送的位置获取请求,所述位置获取请求由另一电子设备发送至所述代理服务器;响应所述位置获取请求,进而获得所述当前位置信息,并且所述当前位置信息由所述代理服务器发送至所述电子设备;或者,receiving a location acquisition request sent by the proxy server, the location acquisition request is sent to the proxy server by another electronic device; responding to the location acquisition request, and then obtaining the current location information, and the current location information is obtained by the proxy server sends to the electronic device; or,

定期获取所述当前位置信息。The current location information is acquired periodically.

可选的,所述位置获取请求中包含所述电子设备的权限认证信息,所述响应所述位置获取请求,进而获得所述当前位置信息,具体包括:Optionally, the location acquisition request includes authority authentication information of the electronic device, and the response to the location acquisition request to obtain the current location information specifically includes:

基于所述权限认证信息判断所述电子设备是否存在获取所述当前位置信息的权限;judging whether the electronic device has the authority to obtain the current location information based on the authority authentication information;

在所述电子设备存在所述权限时,获取所述当前位置信息。Acquiring the current location information when the electronic device has the permission.

可选的,所述通过移动通信运营商的网络向代理服务器发送所述定位设备的当前位置信息,具体为:Optionally, the sending the current location information of the positioning device to the proxy server through the network of the mobile communication operator is specifically:

基于所述当前位置信息判断当前位置与预设位置之间的距离是否大于预设距离;judging based on the current location information whether the distance between the current location and the preset location is greater than the preset distance;

在所述距离大于所述预设距离时,向所述代理服务器发送所述当前位置信息。When the distance is greater than the preset distance, sending the current location information to the proxy server.

可选的,在所述距离大于所述预设距离时,所述方法还包括:Optionally, when the distance is greater than the preset distance, the method further includes:

向一预设通信标识发送报警信息,所述报警信息中携带所述当前位置信息。Sending alarm information to a preset communication identifier, the alarm information carrying the current location information.

可选的,所述确定出定位设备的当前位置信息,具体包括:Optionally, the determining the current location information of the positioning device specifically includes:

接收所述代理服务器通过所述移动通信运营商的网络发送至的所述定位信息,所述定位信息由所述位置服务器发送至所述代理服务器,且所述定位信息由所述位置服务器基于定位信号由所述定位设备发送至基站的发送时间及抵达时间来确定;receiving the positioning information sent by the proxy server through the network of the mobile communication operator, the positioning information is sent to the proxy server by the location server, and the positioning information is based on the positioning by the location server The signal is determined by the sending time and arrival time sent from the positioning device to the base station;

通过所述定位信息确定出所述定位设备的当前位置信息。The current location information of the positioning device is determined through the positioning information.

可选的,所述定位信息具体为:所述位置服务器基于所述发送时间和所述抵达时间所确定的所述定位设备的第一位置信息。Optionally, the positioning information specifically is: the first position information of the positioning device determined by the location server based on the sending time and the arrival time.

可选的,所述定位信息具体为:所述位置服务器基于所述发送时间及所述抵达时间确定的用于对所述定位设备进行GPS定位的卫星信息;Optionally, the positioning information is specifically: satellite information for GPS positioning of the positioning device determined by the location server based on the sending time and the arrival time;

所述通过所述定位信息确定出所述定位设备的当前位置信息,具体包括:The determining the current location information of the positioning device through the positioning information specifically includes:

基于所述卫星信息对所述定位设备进行GPS定位,进而确定出所述定位设备的第二位置信息。Performing GPS positioning on the positioning device based on the satellite information, and then determining the second position information of the positioning device.

可选的,所述通过所述定位信息确定出所述定位设备的当前位置信息,还包括:Optionally, the determining the current location information of the positioning device through the positioning information further includes:

将所述第二位置信息通过所述移动通信运营商的网络发送至所述代理服务器,所述第二位置信息由所述代理服务器发送至所述位置服务器,所述位置服务器用于综合所述第一位置信息和所述第二位置信息确定所述定位设备的当前位置信息;sending the second location information to the proxy server through the network of the mobile communication operator, the second location information is sent to the location server by the proxy server, and the location server is used to synthesize the The first location information and the second location information determine the current location information of the positioning device;

接收所述代理服务器通过所述移动通信运营商的网络发送的所述当前位置信息,所述当前位置信息由所述位置服务器发送至所述代理服务器。receiving the current location information sent by the proxy server through the network of the mobile communication operator, and the current location information is sent by the location server to the proxy server.

可选的,所述定位信息具体包括:所述位置服务器基于所述发送时间和所述抵达时间所确定的所述定位设备的第一位置信息;以及所述位置服务器基于所述发送时间及所述抵达时间确定的用于对所述定位设备进行GPS定位的卫星信息;Optionally, the positioning information specifically includes: the first position information of the positioning device determined by the location server based on the sending time and the arrival time; and the first location information of the positioning device determined by the location server based on the sending time and the The satellite information used for GPS positioning of the positioning device determined by the arrival time;

所述通过所述定位信息确定出所述定位设备的当前位置信息,具体包括:The determining the current location information of the positioning device through the positioning information specifically includes:

基于所述卫星信息对所述定位设备进行GPS定位,进而确定出所述定位设备的第二位置信息;performing GPS positioning on the positioning device based on the satellite information, and then determining second position information of the positioning device;

综合所述第一位置信息和所述第二位置信息确定出所述定位设备的当前位置信息。Combining the first location information and the second location information to determine the current location information of the positioning device.

可选的,在所述通过移动通信运营商的网络向代理服务器发送所述定位设备的当前位置信息之前,所述方法还包括:Optionally, before sending the current location information of the positioning device to the proxy server through the network of the mobile communication operator, the method further includes:

通过所述移动通信运营商的网络向分发服务器发送定位请求,所述定位请求中包含所述定位设备的标识信息和身份验证信息,以使所述分发服务器基于所述标识信息和身份验证信息确定所述标识信息具备免流量权限时,为所述定位设备分配用于所述定位设备以免流量方式访问网络的所述代理服务器。Send a positioning request to the distribution server through the network of the mobile communication operator, the positioning request includes the identification information and identity verification information of the positioning device, so that the distribution server determines based on the identification information and identity verification information When the identification information has the traffic-free permission, assigning the positioning device the proxy server for the positioning device to access the network in a traffic-free manner.

可选的,所述方法还包括:Optionally, the method also includes:

接收所述代理服务器发送的预设标签,在所述定位设备访问网络过程中进行数据传输时携带所述预设标签,所述预设标签为所述免流量标识;或者,receiving the preset tag sent by the proxy server, and carrying the preset tag when the positioning device performs data transmission during the process of accessing the network, and the preset tag is the traffic-free identifier; or,

所述代理服务器的IP地址为预设IP地址,所述预设IP地址为所述免流量标识。The IP address of the proxy server is a preset IP address, and the preset IP address is the traffic-free identifier.

可选的,所述定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由所述移动网络运营商基于所述免流量标识将其计入指定服务商中,具体为:Optionally, the mobile network operator counts all or part of the data traffic generated when the positioning device accesses the network through the proxy server into the designated service provider based on the traffic-free identifier, specifically:

在确定出所述定位设备访问网络过程中的数据中包含所述预设标签时,将所述定位设备访问网络过程中的全部或部分数据流量计入所述指定服务商中;或When it is determined that the data in the process of accessing the network by the positioning device includes the preset tag, counting all or part of the data traffic in the process of accessing the network by the positioning device into the designated service provider; or

所述定位设备访问网络过程中的数据传输经过所述预设IP地址的代理服务器,流经所述预设IP地址的全部或部分数据流量被计入所述所述指定服务商中。The data transmission in the process of the positioning device accessing the network passes through the proxy server with the preset IP address, and all or part of the data traffic flowing through the preset IP address is included in the designated service provider.

根据本发明另一方面,提供一种定位设备,包括:According to another aspect of the present invention, a positioning device is provided, including:

第一确定模块,用于确定出定位设备的当前位置信息;A first determining module, configured to determine the current location information of the positioning device;

第一发送模块,用于通过移动通信运营商的网络向代理服务器发送所述定位设备的当前位置信息;The first sending module is configured to send the current location information of the positioning device to the proxy server through the network of the mobile communication operator;

其中,所述定位设备进行访问网络过程中的数据传输标记有免流量标识,所述定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由所述移动网络运营商基于所述免流量标识将其计入指定服务商中。Wherein, the data transmission during the process of accessing the network by the positioning device is marked with a traffic-free flag, and all or part of the data traffic generated during the process of accessing the network by the positioning device through a proxy server is provided by the mobile network operator based on the traffic-free Logo will be credited to the designated service provider.

可选的,所述第一确定模块,具体包括:Optionally, the first determining module specifically includes:

第一接收单元,用于接收所述代理服务器发送的位置获取请求,所述位置获取请求由另一电子设备发送至所述代理服务器;响应单元,用于响应所述位置获取请求,进而获得所述当前位置信息,并且所述当前位置信息由所述代理服务器发送至所述电子设备;或者,The first receiving unit is configured to receive a location acquisition request sent by the proxy server, and the location acquisition request is sent to the proxy server by another electronic device; the response unit is configured to respond to the location acquisition request, and then obtain the location acquisition request. the current location information, and the current location information is sent to the electronic device by the proxy server; or,

所述第一确定模块,具体用于定期获取所述当前位置信息。The first determining module is specifically configured to periodically acquire the current location information.

可选的,所述位置获取请求中包含所述电子设备的权限认证信息,所述响应单元,具体包括:Optionally, the location acquisition request includes authority authentication information of the electronic device, and the response unit specifically includes:

判断子单元,用于基于所述权限认证信息判断所述电子设备是否存在获取所述当前位置信息的权限;A judging subunit, configured to judge whether the electronic device has the right to acquire the current location information based on the authority authentication information;

获取子单元,用于在所述电子设备存在所述权限时,获取所述当前位置信息。The acquiring subunit is configured to acquire the current location information when the electronic device has the permission.

可选的,所述第一发送模块,具体包括:Optionally, the first sending module specifically includes:

第一判断单元,用于基于所述当前位置信息判断当前位置与预设位置之间的距离是否大于预设距离;A first judging unit, configured to judge whether the distance between the current location and the preset location is greater than the preset distance based on the current location information;

第一发送单元,用于在所述距离大于所述预设距离时,向所述代理服务器发送所述当前位置信息。A first sending unit, configured to send the current location information to the proxy server when the distance is greater than the preset distance.

可选的,所述定位设备还包括:报警模块,用于在所述距离大于所述预设距离时,向一预设通信标识发送报警信息,所述报警信息中携带所述当前位置信息。Optionally, the positioning device further includes: an alarm module, configured to send an alarm message to a preset communication identifier when the distance is greater than the preset distance, the alarm message carrying the current location information.

可选的,所述第一确定模块,具体包括:Optionally, the first determining module specifically includes:

第二接收单元,用于接收所述代理服务器通过所述移动通信运营商的网络发送至的所述定位信息,所述定位信息由所述位置服务器发送至所述代理服务器,且所述定位信息由所述位置服务器基于定位信号由所述定位设备发送至基站的发送时间及抵达时间来确定;A second receiving unit, configured to receive the positioning information sent by the proxy server through the network of the mobile communication operator, the positioning information is sent by the location server to the proxy server, and the positioning information determined by the location server based on the sending time and arrival time of the positioning signal sent by the positioning device to the base station;

确定单元,用于通过所述定位信息确定出所述定位设备的当前位置信息。A determining unit, configured to determine the current location information of the positioning device through the positioning information.

可选的,所述定位信息具体为:所述位置服务器基于所述发送时间和所述抵达时间所确定的所述定位设备的第一位置信息。Optionally, the positioning information specifically is: the first position information of the positioning device determined by the location server based on the sending time and the arrival time.

可选的,所述定位信息具体为:所述位置服务器基于所述发送时间及所述抵达时间确定的用于对所述定位设备进行GPS定位的卫星信息;Optionally, the positioning information is specifically: satellite information for GPS positioning of the positioning device determined by the location server based on the sending time and the arrival time;

所述确定单元,包括:The determination unit includes:

第一定位子单元,用于基于所述卫星信息对所述定位设备进行GPS定位,进而确定出所述定位设备的第二位置信息。The first positioning subunit is configured to perform GPS positioning on the positioning device based on the satellite information, and then determine second position information of the positioning device.

可选的,所述确定单元,还包括:Optionally, the determining unit also includes:

发送子单元,用于将所述第二位置信息通过所述移动通信运营商的网络发送至所述代理服务器,所述第二位置信息由所述代理服务器发送至所述位置服务器,所述位置服务器用于综合所述第一位置信息和所述第二位置信息确定所述定位设备的当前位置信息;a sending subunit, configured to send the second location information to the proxy server through the network of the mobile communication operator, the second location information is sent to the location server by the proxy server, and the location The server is used to synthesize the first location information and the second location information to determine the current location information of the positioning device;

接收子单元,用于接收所述代理服务器通过所述移动通信运营商的网络发送的所述当前位置信息,所述当前位置信息由所述位置服务器发送至所述代理服务器。The receiving subunit is configured to receive the current location information sent by the proxy server through the network of the mobile communication operator, the current location information is sent to the proxy server by the location server.

可选的,所述定位信息具体包括:所述位置服务器基于所述发送时间和所述抵达时间所确定的所述定位设备的第一位置信息;以及所述位置服务器基于所述发送时间及所述抵达时间确定的用于对所述定位设备进行GPS定位的卫星信息;Optionally, the positioning information specifically includes: the first position information of the positioning device determined by the location server based on the sending time and the arrival time; and the first location information of the positioning device determined by the location server based on the sending time and the The satellite information used for GPS positioning of the positioning device determined by the arrival time;

所述确定单元,具体包括:The determining unit specifically includes:

第二定位子单元,用于基于所述卫星信息对所述定位设备进行GPS定位,进而确定出所述定位设备的第二位置信息;The second positioning subunit is configured to perform GPS positioning on the positioning device based on the satellite information, and then determine the second position information of the positioning device;

确定子单元,用于综合所述第一位置信息和所述第二位置信息确定出所述定位设备的当前位置信息。The determination subunit is configured to determine the current position information of the positioning device by synthesizing the first position information and the second position information.

可选的,所述定位设备还包括:Optionally, the positioning device also includes:

第二发送模块,用于在通过移动通信运营商的网络向代理服务器发送所述定位设备的当前位置信息之前,通过所述移动通信运营商的网络向分发服务器发送定位请求,所述定位请求中包含所述定位设备的标识信息和身份验证信息,以使所述分发服务器基于所述标识信息和身份验证信息确定所述标识信息具备免流量权限时,为所述定位设备分配用于所述定位设备以免流量方式访问网络的所述代理服务器。The second sending module is configured to send a positioning request to the distribution server through the network of the mobile communication operator before sending the current location information of the positioning device to the proxy server through the network of the mobile communication operator, in the positioning request Including the identification information and identity verification information of the positioning device, so that when the distribution server determines that the identification information has traffic-free permission based on the identification information and identity verification information, assign the positioning device to the positioning device. The device accesses said proxy server of the network in a traffic-free manner.

可选的,所述定位设备还包括:Optionally, the positioning device also includes:

第一接收模块,用于接收所述代理服务器发送的预设标签,在所述定位设备访问网络过程中进行数据传输时携带所述预设标签,所述预设标签为所述免流量标识;或者,The first receiving module is configured to receive the preset label sent by the proxy server, and carry the preset label when the positioning device performs data transmission during the process of accessing the network, and the preset label is the traffic-free identification; or,

所述代理服务器的IP地址为预设IP地址,所述预设IP地址为所述免流量标识。The IP address of the proxy server is a preset IP address, and the preset IP address is the traffic-free identifier.

可选的,所述定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由所述移动网络运营商基于所述免流量标识将其计入指定服务商中,具体为:Optionally, the mobile network operator counts all or part of the data traffic generated when the positioning device accesses the network through the proxy server into the designated service provider based on the traffic-free identifier, specifically:

在确定出所述定位设备访问网络过程中的数据中包含所述预设标签时,将所述定位设备访问网络过程中的全部或部分数据流量计入所述指定服务商中;或When it is determined that the data in the process of accessing the network by the positioning device includes the preset tag, counting all or part of the data traffic in the process of accessing the network by the positioning device into the designated service provider; or

所述定位设备访问网络过程中的数据传输经过所述预设IP地址的代理服务器,流经所述预设IP地址的全部或部分数据流量被计入所述所述指定服务商中。The data transmission in the process of the positioning device accessing the network passes through the proxy server with the preset IP address, and all or part of the data traffic flowing through the preset IP address is included in the designated service provider.

根据本发明另一方面,提供一种基于定位设备的位置获取方法,包括:According to another aspect of the present invention, a position acquisition method based on a positioning device is provided, including:

代理服务器接收定位设备通过移动通信运营商的网络发送的所述定位设备的当前位置信息;The proxy server receives the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator;

其中,所述定位设备进行访问网络过程中的数据传输标记有免流量标识,所述定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由所述移动网络运营商基于所述免流量标识将其计入指定服务商中。Wherein, the data transmission during the process of accessing the network by the positioning device is marked with a traffic-free flag, and all or part of the data traffic generated during the process of accessing the network by the positioning device through a proxy server is provided by the mobile network operator based on the traffic-free Logo will be credited to the designated service provider.

可选的,所述方法还包括:Optionally, the method also includes:

所述代理服务器将所述当前位置信息发送至一电子设备。The proxy server sends the current location information to an electronic device.

可选的,在所述接收定位设备通过移动通信运营商的网络发送的所述定位设备的当前位置信息之前,所述方法还包括:Optionally, before receiving the current location information of the positioning device sent by the positioning device through a network of a mobile communication operator, the method further includes:

所述代理服务器接收所述电子设备发送的位置获取请求;The proxy server receives the location acquisition request sent by the electronic device;

所述代理服务器将所述位置获取请求发送至所述定位设备,以使所述定位设备响应所述位置获取请求进而获取所述当前位置信息。The proxy server sends the position obtaining request to the positioning device, so that the positioning device responds to the position obtaining request and obtains the current position information.

可选的,在所述代理服务器将所述当前位置信息发送至一电子设备之前,所述方法还包括:Optionally, before the proxy server sends the current location information to an electronic device, the method further includes:

所述代理服务器接收到所述电子设备发送的位置获取请求;The proxy server receives the location acquisition request sent by the electronic device;

所述代理服务器响应所述位置获取请求,向所述电子设备发送所述当前位置信息。The proxy server sends the current location information to the electronic device in response to the location acquisition request.

可选的,所述位置获取请求中包含所述电子设备的权限认证信息,所述代理服务器响应所述位置获取请求,向所述电子设备发送所述当前位置信息,具体为:Optionally, the location acquisition request includes authority authentication information of the electronic device, and the proxy server sends the current location information to the electronic device in response to the location acquisition request, specifically:

所述代理服务器基于所述权限认证信息判断所述电子设备是否存在获取所述当前位置信息的权限;The proxy server determines whether the electronic device has the authority to acquire the current location information based on the authority authentication information;

在所述代理服务器确定出所述电子设备具备所述权限时,将所述当前位置信息发送至所述电子设备。When the proxy server determines that the electronic device has the authority, send the current location information to the electronic device.

可选的,所述代理服务器接收定位设备通过移动通信运营商的网络发送的所述定位设备的当前位置信息,具体为:Optionally, the proxy server receives the current location information of the positioning device sent by the positioning device through a network of a mobile communication operator, specifically:

接收所述定位设备定期获取的所述当前位置信息;或receiving the current location information periodically acquired by the positioning device; or

接收所述定位设备在基于所述当前位置信息确定出当前位置与预设位置之间的距离大于预设距离时,所发送的所述当前位置信息。receiving the current location information sent by the positioning device when it is determined based on the current location information that the distance between the current location and the preset location is greater than the preset distance.

可选的,在所述代理服务器接收定位设备通过移动通信运营商的网络发送的所述定位设备的当前位置信息之前,所述方法还包括:Optionally, before the proxy server receives the current location information of the positioning device sent by the positioning device through a network of a mobile communication operator, the method further includes:

所述代理服务器接收位置服务器发送的对定位设备进行定位的定位信息,其中,所述定位信息由所述位置服务器基于定位信号由定位设备发送至基站的发送时间及抵达时间来确定;The proxy server receives the positioning information sent by the location server to locate the positioning device, wherein the positioning information is determined by the location server based on the sending time and arrival time of the positioning signal sent by the positioning device to the base station;

所述代理服务器将所述定位信息通过述移动通信运营商的网络发送至所述定位设备,以使所述定位设备基于所述定位信息确定出所述定位设备的当前位置信息。The proxy server sends the positioning information to the positioning device through the network of the mobile communication operator, so that the positioning device determines the current position information of the positioning device based on the positioning information.

可选的,所述定位信息具体为:所述位置服务器基于所述发送时间和所述抵达时间所确定的所述定位设备的第一位置信息。Optionally, the positioning information specifically is: the first position information of the positioning device determined by the location server based on the sending time and the arrival time.

可选的,所述定位信息具体为:所述位置服务器基于所述发送时间及所述抵达时间确定的用于对所述定位设备进行GPS定位的卫星信息,所述卫星信息用于所述定位设备对所述定位设备进行GPS定位,从而确定出所述定位设备的第二位置信息。Optionally, the positioning information is specifically: satellite information for GPS positioning of the positioning device determined by the location server based on the sending time and the arrival time, and the satellite information is used for the positioning The device performs GPS positioning on the positioning device, so as to determine the second position information of the positioning device.

可选的,所述方法还包括:Optionally, the method also includes:

所述代理服务器接收所述定位设备通过所述移动通信运营商的网络发送的所述第二位置信息;The proxy server receives the second location information sent by the positioning device through the network of the mobile communication operator;

所述代理服务器将所述第二位置信息发送至所述位置服务器,以使所述位置服务器基于所述第二位置信息和第一位置信息确定出所述当前位置信息,所述第一位置信息具体为:所述位置服务器基于所述发送时间和所述抵达时间所确定的所述定位设备的第一位置信息。The proxy server sends the second location information to the location server, so that the location server determines the current location information based on the second location information and the first location information, and the first location information Specifically, the location server determines the first location information of the positioning device based on the sending time and the arrival time.

可选的,所述定位信息包括:所述位置服务器基于所述发送时间和所述抵达时间所确定的所述定位设备的第一位置信息;所述位置服务器基于所述发送时间及所述抵达时间确定的用于对所述定位设备进行GPS定位的卫星信息。Optionally, the positioning information includes: the first position information of the positioning device determined by the location server based on the sending time and the arrival time; The time-determined satellite information used for GPS positioning of the positioning device.

可选的,所述方法还包括:Optionally, the method also includes:

分发服务器接收所述定位设备通过所述移动通信运营商的网络发送的定位请求,所述定位请求中包含所述定位设备的标识信息和身份验证信息;The distribution server receives the positioning request sent by the positioning device through the network of the mobile communication operator, and the positioning request includes identification information and identity verification information of the positioning device;

所述分发服务器基于所述标识信息和所述身份验证信息判断所述标识信息是否具备免流量权限;The distribution server judges whether the identification information has traffic-free permission based on the identification information and the identity verification information;

所述分发服务器在所述标识信息具备所述免流量权限时,为所述定位设备分配用于所述定位设备以免流量方式访问网络的所述代理服务器。When the identification information has the traffic-free permission, the distribution server allocates the proxy server for the positioning device to access the network in a traffic-free manner for the positioning device.

可选的,所述代理服务器向所述定位设备发送预设标签,在所述定位设备访问网络过程中进行数据传输时携带所述预设标签,所述预设标签为所述免流量标识;或者,Optionally, the proxy server sends a preset tag to the positioning device, and the preset tag is carried when the positioning device performs data transmission during network access, and the preset tag is the traffic-free identifier; or,

所述代理服务器的IP地址为预设IP地址,所述预设IP地址为所述免流量标识。The IP address of the proxy server is a preset IP address, and the preset IP address is the traffic-free identifier.

可选的,所述定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由所述移动网络运营商基于所述免流量标识将其计入指定服务商中,具体为:Optionally, the mobile network operator counts all or part of the data traffic generated when the positioning device accesses the network through the proxy server into the designated service provider based on the traffic-free identifier, specifically:

在确定出所述定位设备访问网络过程中的数据中包含所述预设标签时,将所述定位设备访问网络过程中的全部或部分数据流量计入所述指定服务商中;或When it is determined that the data in the process of accessing the network by the positioning device includes the preset tag, counting all or part of the data traffic in the process of accessing the network by the positioning device into the designated service provider; or

所述定位设备访问网络过程中的数据传输经过所述预设IP地址的代理服务器,流经所述预设IP地址的全部或部分数据流量被计入所述所述指定服务商中。The data transmission in the process of the positioning device accessing the network passes through the proxy server with the preset IP address, and all or part of the data traffic flowing through the preset IP address is included in the designated service provider.

根据本发明另一方面,提供一种代理服务器,包括:According to another aspect of the present invention, a proxy server is provided, including:

第二接收模块,用于接收定位设备通过移动通信运营商的网络发送的所述定位设备的当前位置信息;The second receiving module is configured to receive the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator;

其中,所述定位设备进行访问网络过程中的数据传输标记有免流量标识,所述定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由所述移动网络运营商基于所述免流量标识将其计入指定服务商中。Wherein, the data transmission during the process of accessing the network by the positioning device is marked with a traffic-free flag, and all or part of the data traffic generated during the process of accessing the network by the positioning device through a proxy server is provided by the mobile network operator based on the traffic-free Logo will be credited to the designated service provider.

可选的,所述代理服务器还包括:Optionally, the proxy server also includes:

第三发送模块,用于将所述当前位置信息发送至一电子设备。A third sending module, configured to send the current location information to an electronic device.

可选的,所述代理服务器还包括:Optionally, the proxy server also includes:

第三接收模块,用于在接收定位设备通过移动通信运营商的网络发送的所述定位设备的当前位置信息之前,接收所述电子设备发送的位置获取请求;A third receiving module, configured to receive a location acquisition request sent by the electronic device before receiving the current location information of the positioning device sent by the positioning device through a network of a mobile communication operator;

第四发送模块,用于将所述位置获取请求发送至所述定位设备,以使所述定位设备响应所述位置获取请求进而获取所述当前位置信息。A fourth sending module, configured to send the position obtaining request to the positioning device, so that the positioning device responds to the position obtaining request and obtains the current position information.

可选的,所述代理服务器还包括:Optionally, the proxy server also includes:

第四接收模块,用于在代理服务器将所述当前位置信息发送至一电子设备之前,接收到所述电子设备发送的位置获取请求;A fourth receiving module, configured to receive a location acquisition request sent by the electronic device before the proxy server sends the current location information to the electronic device;

响应模块,用于响应所述位置获取请求,向所述电子设备发送所述当前位置信息。A response module, configured to send the current location information to the electronic device in response to the location acquisition request.

可选的,所述响应模块,具体包括:Optionally, the response module specifically includes:

第二判断单元,用于在所述位置获取请求中包含所述电子设备的权限认证信息时,基于所述权限认证信息判断所述电子设备是否存在获取所述当前位置信息的权限;A second judging unit, configured to judge whether the electronic device has permission to acquire the current location information based on the permission authentication information when the location acquisition request includes the permission authentication information of the electronic device;

第二发送单元,用于在确定出所述电子设备具备所述权限时,将所述当前位置信息发送至所述电子设备。A second sending unit, configured to send the current location information to the electronic device when it is determined that the electronic device has the authority.

可选的,所述第二接收模块,用于:Optionally, the second receiving module is configured to:

接收所述定位设备定期获取的所述当前位置信息;或receiving the current location information periodically acquired by the positioning device; or

接收所述定位设备在基于所述当前位置信息确定出当前位置与预设位置之间的距离大于预设距离时,所发送的所述当前位置信息。receiving the current location information sent by the positioning device when it is determined based on the current location information that the distance between the current location and the preset location is greater than the preset distance.

可选的,所述代理服务器,还包括:Optionally, the proxy server also includes:

第五接收模块,用于在代理服务器接收定位设备通过移动通信运营商的网络发送的所述定位设备的当前位置信息之前,接收位置服务器发送的对定位设备进行定位的定位信息,其中,所述定位信息由所述位置服务器基于定位信号由定位设备发送至基站的发送时间及抵达时间来确定;The fifth receiving module is configured to receive the positioning information sent by the location server for positioning the positioning device before the proxy server receives the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator, wherein the The positioning information is determined by the location server based on the sending time and arrival time of the positioning signal sent by the positioning device to the base station;

第五发送模块,用于将所述定位信息通过述移动通信运营商的网络发送至所述定位设备,以使所述定位设备基于所述定位信息确定出所述定位设备的当前位置信息。A fifth sending module, configured to send the positioning information to the positioning device through the network of the mobile communication operator, so that the positioning device determines the current position information of the positioning device based on the positioning information.

可选的,所述定位信息具体为:所述位置服务器基于所述发送时间和所述抵达时间所确定的所述定位设备的第一位置信息。Optionally, the positioning information specifically is: the first position information of the positioning device determined by the location server based on the sending time and the arrival time.

可选的,所述定位信息具体为:所述位置服务器基于所述发送时间及所述抵达时间确定的用于对所述定位设备进行GPS定位的卫星信息,所述卫星信息用于所述定位设备对所述定位设备进行GPS定位,从而确定出所述定位设备的第二位置信息。Optionally, the positioning information is specifically: satellite information for GPS positioning of the positioning device determined by the location server based on the sending time and the arrival time, and the satellite information is used for the positioning The device performs GPS positioning on the positioning device, so as to determine the second position information of the positioning device.

可选的,所述代理服务器还包括:第六接收模块,用于接收所述定位设备通过所述移动通信运营商的网络发送的所述第二位置信息;Optionally, the proxy server further includes: a sixth receiving module, configured to receive the second location information sent by the positioning device through the network of the mobile communication operator;

第六发送模块,用于将所述第二位置信息发送至所述位置服务器,以使所述位置服务器基于所述第二位置信息和第一位置信息确定出所述当前位置信息,所述第一位置信息具体为:所述位置服务器基于所述发送时间和所述抵达时间所确定的所述定位设备的第一位置信息。A sixth sending module, configured to send the second location information to the location server, so that the location server determines the current location information based on the second location information and the first location information, the second location information The location information is specifically: first location information of the positioning device determined by the location server based on the sending time and the arrival time.

可选的,所述定位信息包括:所述位置服务器基于所述发送时间和所述抵达时间所确定的所述定位设备的第一位置信息;所述位置服务器基于所述发送时间及所述抵达时间确定的用于对所述定位设备进行GPS定位的卫星信息。Optionally, the positioning information includes: the first position information of the positioning device determined by the location server based on the sending time and the arrival time; The time-determined satellite information used for GPS positioning of the positioning device.

根据本发明另一方面,提供一种网络访问系统,包括:本发明任一实施例所介绍的代理服务器及分发服务器,所述分发服务器包括:According to another aspect of the present invention, a network access system is provided, including: the proxy server and the distribution server introduced in any embodiment of the present invention, and the distribution server includes:

第七接收模块,用于接收所述定位设备通过所述移动通信运营商的网络发送的定位请求,所述定位请求中包含所述定位设备的标识信息和身份验证信息;A seventh receiving module, configured to receive a positioning request sent by the positioning device through the network of the mobile communication operator, where the positioning request includes identification information and identity verification information of the positioning device;

判断模块,用于基于所述标识信息和所述身份验证信息判断所述标识信息是否具备免流量权限;A judging module, configured to judge whether the identification information has traffic-free permission based on the identification information and the identity verification information;

分配模块,用于在所述标识信息具备所述免流量权限时,为所述定位设备分配用于所述定位设备以免流量方式访问网络的所述代理服务器。An allocation module, configured to allocate, to the positioning device, the proxy server for the positioning device to access the network in a traffic-free manner when the identification information has the traffic-free permission.

可选的,所述代理服务器向所述定位设备发送预设标签,在所述定位设备访问网络过程中进行数据传输时携带所述预设标签,所述预设标签为所述免流量标识;或者,Optionally, the proxy server sends a preset tag to the positioning device, and the preset tag is carried when the positioning device performs data transmission during network access, and the preset tag is the traffic-free identifier; or,

所述代理服务器的IP地址为预设IP地址,所述预设IP地址为所述免流量标识。The IP address of the proxy server is a preset IP address, and the preset IP address is the traffic-free identifier.

可选的,所述定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由所述移动网络运营商基于所述免流量标识将其计入指定服务商中,具体为:Optionally, the mobile network operator counts all or part of the data traffic generated when the positioning device accesses the network through the proxy server into the designated service provider based on the traffic-free identifier, specifically:

在确定出所述定位设备访问网络过程中的数据中包含所述预设标签时,将所述定位设备访问网络过程中的全部或部分数据流量计入所述指定服务商中;或When it is determined that the data in the process of accessing the network by the positioning device includes the preset tag, counting all or part of the data traffic in the process of accessing the network by the positioning device into the designated service provider; or

所述定位设备访问网络过程中的数据传输经过所述预设IP地址的代理服务器,流经所述预设IP地址的全部或部分数据流量被计入所述所述指定服务商中。The data transmission in the process of the positioning device accessing the network passes through the proxy server with the preset IP address, and all or part of the data traffic flowing through the preset IP address is included in the designated service provider.

可选的,所述系统还包括本发明任一实施例所介绍的定位设备。Optionally, the system further includes the positioning device introduced in any embodiment of the present invention.

根据本发明的用于定位设备的数据传输方法,代理服务器接收定位设备通过移动通信运营商的网络发送的定位设备的当前位置信息;其中,定位设备进行访问网络过程中的数据传输标记有免流量标识,定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由移动网络运营商基于免流量标识将其计入指定服务商中。也就是说,在定位设备向其他电子设备发送定位设备的当前位置信息时,能够全部或者部分耗费指定服务商所耗费的数据流量,而部分或者完全不需要耗费定位设备的数据流量,由此缓解了现有技术中定位设备向其他电子设备发送当前位置信息时需要耗费定位设备的流量的技术问题,达到了降低定位设备向其他电子设备发送当前位置信息时所耗费的数据流量的技术效果,且能够降低定位设备访问网络所耗费的数据流量。According to the data transmission method for a positioning device of the present invention, the proxy server receives the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator; wherein, the data transmission during the process of accessing the network by the positioning device is marked with traffic-free All or part of the data traffic generated during the process of accessing the network by the positioning device through the proxy server will be counted by the mobile network operator in the designated service provider based on the traffic-free logo. That is to say, when the positioning device sends the current location information of the positioning device to other electronic devices, all or part of the data traffic consumed by the designated service provider can be consumed, while part or all of the data traffic of the positioning device does not need to be consumed, thereby alleviating It solves the technical problem that the positioning device needs to consume the traffic of the positioning device when sending the current position information to other electronic devices in the prior art, and achieves the technical effect of reducing the data traffic consumed when the positioning device sends the current position information to other electronic devices, and The data traffic consumed by the positioning device to access the network can be reduced.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:

图1示出了根据本发明一个实施例的位置获取的交互方法的交互图;FIG. 1 shows an interactive diagram of an interactive method for position acquisition according to an embodiment of the present invention;

图2示出了根据本发明一个实施例的位置获取的交互方法中导航设备获取当前位置信息的流程图;Fig. 2 shows a flow chart of obtaining current position information by a navigation device in an interactive method for position acquisition according to an embodiment of the present invention;

图3示出了根据本发明一个实施例的用于定位设备的位置传输方法的流程图;Fig. 3 shows a flow chart of a position transmission method for a positioning device according to an embodiment of the present invention;

图4示出了根据本发明一个实施例的定位设备的示意图;Fig. 4 shows a schematic diagram of a positioning device according to an embodiment of the present invention;

图5示出了根据本发明一个实施例的网络访问系统的方框图。Fig. 5 shows a block diagram of a network access system according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

本发明实施例提供了一种基于定位设备的位置获取方法、代理服务器及系统及网络访问系统,用以解决现有技术的定位设备访问网络时需要耗费定位设备大量的数据流量的技术问题。Embodiments of the present invention provide a position acquisition method based on a positioning device, a proxy server and system, and a network access system to solve the technical problem that a large amount of data traffic of the positioning device needs to be consumed when the positioning device accesses the network in the prior art.

本发明实施例提供一种位置获取的交互方法,如图1所示,为该方法的交互图,该方法所涉及的设备包括:定位设备、分发服务器、代理服务器,定位设备例如为:手机、平板电脑等等,定位设备的使用者即为用户;分发服务器主要用于为定位设备提供身份验证、选择代理服务器;代理服务器主要是用于为具备上网免流量权限的定位设备提供网络访问服务。An embodiment of the present invention provides an interactive method for location acquisition. As shown in FIG. 1 , it is an interactive diagram of the method. The devices involved in the method include: a positioning device, a distribution server, and a proxy server. The positioning devices are, for example, mobile phones, Tablet PCs, etc., the user of the positioning device is the user; the distribution server is mainly used to provide identity verification for the positioning device and select a proxy server; the proxy server is mainly used to provide network access services for the positioning device with Internet traffic-free permission.

请参考1,该交互方法包括以下步骤:Please refer to 1, this interactive method includes the following steps:

步骤S110:定位设备确定出定位设备的当前位置信息;Step S110: the positioning device determines the current location information of the positioning device;

步骤S120:定位设备通过移动通信运营商的网络向代理服务器发送定位设备的当前位置信息;Step S120: the positioning device sends the current location information of the positioning device to the proxy server through the network of the mobile communication operator;

其中,定位设备进行访问网络过程中的数据传输标记有免流量标识,定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由移动网络运营商基于免流量标识将其计入指定服务商中。Among them, the data transmission during the process of accessing the network by the positioning device is marked with a traffic-free mark, and all or part of the data traffic generated during the process of accessing the network by the positioning device through a proxy server is counted by the mobile network operator based on the traffic-free mark to the designated service provider middle.

步骤S110中,定位设备可以基于多种时机获取定位设备的当前位置信息,下面列举其中的两种进行介绍,当然,在具体实施过程中,不限于以下两种时机。In step S110, the positioning device may obtain the current location information of the positioning device based on various opportunities, two of which are listed below for introduction, of course, in the specific implementation process, it is not limited to the following two opportunities.

第一种,定位设备在接收到另一电子设备通过代理服务器发送的位置获取请求之后,响应该位置获取请求,进而获得定位设备的当前位置信息;其中,在一种可选的实施例中,定位设备在接收到位置获取请求之后,直接获取当前位置信息;在另一种可选的实施例中,定位设备所接收到的位置获取请求中包含电子设备的权限认证信息,在这种情况下,定位设备可以基于权限认证信息判断电子设备是否存在获取当前位置信息的权限,在电子设备具备获取当前位置信息的权限时,定位设备才获取当前位置信息。In the first type, the positioning device responds to the position obtaining request sent by another electronic device through the proxy server after receiving the position obtaining request, and then obtains the current position information of the positioning device; wherein, in an optional embodiment, After receiving the location acquisition request, the positioning device directly obtains the current location information; in another optional embodiment, the location acquisition request received by the positioning device includes the authority authentication information of the electronic device, in this case , the positioning device can determine whether the electronic device has the permission to obtain the current location information based on the permission authentication information, and the positioning device only obtains the current location information when the electronic device has the permission to obtain the current location information.

在一种可选的实施例中,电子设备的权限认证信息为电子设备的标识信息(例如:通信标识、设备标识等等),电子设备可以首先在定位设备绑定其标识信息,进而定位设备如果检测到携带电子设备的标识信息的位置获取请求,则判断该标识信息与预存的标识信息是否匹配,如果匹配成功的话,则说明该电子设备存在获取定位设备的当前位置信息的权限,否则说明电子设备不存在获取定位设备的当前位置信息的权限。In an optional embodiment, the authority authentication information of the electronic device is the identification information of the electronic device (for example: communication identification, device identification, etc.), the electronic device can first bind its identification information to the positioning device, and then locate the device If a location acquisition request carrying the identification information of the electronic device is detected, it is judged whether the identification information matches the pre-stored identification information. If the match is successful, it means that the electronic device has the authority to obtain the current location information of the positioning device, otherwise Electronic devices do not have the right to obtain the current location information of the positioning device.

其中,电子设备的设备标识用于唯一表征该电子设备,例如为:IMEI(International Mobile Equipment Identity:移动设备国际身份码)、MAC(Media Access Control:介质访问控制)地址;通信标识用于电子设备接入移动通信运营商的网络,例如:USIM(Universal Subscriber Identity Module:全球用户识别卡)卡卡号、SIM(Subscriber Identity Module:客户识别模块)卡卡号等等。Among them, the device identification of the electronic device is used to uniquely represent the electronic device, for example: IMEI (International Mobile Equipment Identity: International Mobile Equipment Identity Code), MAC (Media Access Control: Media Access Control) address; communication identification is used for electronic equipment Access to the network of mobile communication operators, such as: USIM (Universal Subscriber Identity Module: Global Subscriber Identity Card) card number, SIM (Subscriber Identity Module: Customer Identification Module) card number, etc.

在另一种可选的实施例中,定位设备将其唯一标识(例如:二维码、设备标识等等)发送至代理服务器,电子设备如果需要获得定位设备的当前位置信息,则首先需要向代理服务器发送绑定申请,该绑定申请中包含定位设备的设备标识,代理服务器在接收到电子设备发送的绑定申请之后,就向定位设备确认是否许可电子设备获取其当前位置信息,如果定位设备反馈的信息表征许可电子设备获得其当前位置信息,则代理服务器生成一个权限认证信息,并且将电子设备的通信标识、权限认证信息发送至定位设备;且将权限认证信息发送至电子设备,电子设备向定位设备发送的位置获取请求中会包含权限认证信息以及通信标识,定位设备在接受到电子设备发送的位置获取请求之后,就将电子设备的通信标识所对应的权限认证信息与预存的权限认证信息进行匹配,如果匹配成功,则说明该电子设备具备获取当前位置信息的权限。In another optional embodiment, the positioning device sends its unique identification (for example: two-dimensional code, device identification, etc.) to the proxy server. If the electronic device needs to obtain the current location information of the positioning device, it first needs to send The proxy server sends a binding application, which contains the device identification of the positioning device. After receiving the binding application sent by the electronic device, the proxy server confirms to the positioning device whether to allow the electronic device to obtain its current location information. If the positioning The information fed back by the device indicates that the electronic device is permitted to obtain its current location information, and the proxy server generates an authority authentication information, and sends the electronic device’s communication identification and authority authentication information to the positioning device; and sends the authority authentication information to the electronic device, and the electronic The location acquisition request sent by the device to the positioning device will contain authority authentication information and communication identification. The authentication information is matched, and if the matching is successful, it means that the electronic device has the right to obtain the current location information.

第二种,定位设备可以定期获取当前位置信息,例如:定位设备每30min、1h就获取当前位置信息等等。The second type is that the positioning device can periodically obtain the current location information, for example, the positioning device obtains the current location information every 30 minutes, 1 hour, and so on.

步骤S110中,在一种可选的实施例方式中,定位设备可以直接通过GPS定位方式确定出当前位置信息。In step S110, in an optional embodiment, the positioning device may determine the current position information directly through GPS positioning.

在一种可选的实施例中,定位设备可以直接通过基站定位方式确定出当前位置信息。In an optional embodiment, the positioning device may directly determine the current position information through base station positioning.

在一种可选的实施例中,请参考图2,定位设备可以通过以下步骤确定出当前位置信息:In an optional embodiment, please refer to FIG. 2, the positioning device may determine the current location information through the following steps:

步骤S201:接收代理服务器通过移动通信运营商的网络发送至的定位信息,定位信息由位置服务器发送至代理服务器,且定位信息由位置服务器基于定位信号由定位设备发送至基站的发送时间及抵达时间来确定;Step S201: Receive the positioning information sent by the proxy server through the network of the mobile communication operator. The positioning information is sent by the location server to the proxy server, and the positioning information is sent by the location server to the base station based on the positioning signal. The transmission time and arrival time to make sure;

步骤S202:通过定位信息确定出定位设备的当前位置信息。Step S202: Determine the current location information of the positioning device through the positioning information.

步骤S201中,定位设备如果需要确定出当前位置信息的话,可以向其周围的多个基站(通常情况为3个)发送导频信号(该导频信号即为定位信号),并且所发送的导频信号中包含导频信号的发送时间;In step S201, if the positioning device needs to determine the current position information, it can send a pilot signal (the pilot signal is a positioning signal) to multiple base stations (usually 3) around it, and the sent pilot signal The transmission time of the pilot signal included in the frequency signal;

每个基站在接收到导频信号之后,分别记录该导频信号抵达基站的抵达时间,然后基站将基站信息(例如:基站位置)、导频信号的发送时间、抵达时间发送至位置服务器;After receiving the pilot signal, each base station records the arrival time of the pilot signal at the base station, and then the base station sends the base station information (for example: base station location), the transmission time and arrival time of the pilot signal to the location server;

位置服务器在接收到基站发送的基站信息、导频信号的发送时间、抵达时间之后,就可以确定出该定位设备与每个基站之间的距离,而基站位置又是固定的,故而可以基于该定位设备与每个基站之间的距离、以及基站位置,通过基站定位的方式确定出定位设备的第一位置信息。After the location server receives the base station information sent by the base station, the sending time of the pilot signal, and the arrival time, it can determine the distance between the positioning device and each base station, and the location of the base station is fixed, so it can be based on this The distance between the positioning device and each base station, and the position of the base station, and the first position information of the positioning device are determined by means of base station positioning.

另外,位置服务器还可以基于定位设备的第一位置信息大致确定出对定位设备进行GPS定位的卫星信息,例如:卫星的频段、方位、仰角等相关信息。In addition, the location server may roughly determine satellite information for GPS positioning of the positioning device based on the first location information of the positioning device, such as: satellite frequency band, azimuth, elevation angle and other related information.

从而步骤S201中位置服务器通过代理服务器向定位设备发送的定位信息可以分为多种情况,例如:①定位信息为第一位置信息;②定位信息为用于对定位设备进行GPS定位的卫星信息;③定位信息包含第一位置信息和卫星信息。Thus, in step S201, the positioning information sent by the location server to the positioning device through the proxy server can be divided into multiple situations, for example: 1. the positioning information is the first position information; 2. the positioning information is satellite information used for GPS positioning of the positioning device; ③ The positioning information includes first position information and satellite information.

步骤S202中,基于定位设备所接收到的定位信息的不同,确定出当前位置信息的方式也不同,下面列举其中的三种进行介绍,当然,在具体实施过程中,不限于以下三种情况。In step S202, based on the different positioning information received by the positioning device, there are different ways to determine the current location information. Three of them are listed below for introduction. Of course, the specific implementation process is not limited to the following three situations.

第一种,定位设备接收到的定位信息为第一位置信息,在这种情况下,则可以直接将第一位置信息作为定位设备的当前位置信息。In the first type, the positioning information received by the positioning device is the first position information. In this case, the first position information may be directly used as the current position information of the positioning device.

第二种,定位信息为用于对定位设备进行GPS定位的卫星信息,在这种情况下,则可以基于卫星信息对定位设备进行GPS定位,进而确定出定位设备的第二位置信息。In the second type, the positioning information is satellite information used for GPS positioning of the positioning device. In this case, the GPS positioning of the positioning device can be performed based on the satellite information, and then the second position information of the positioning device can be determined.

其中,在确定出第二位置信息之后,定位设备可以直接将第二位置信息作为当前位置信息,而作为另一种可选的实施例,方法还包括:Wherein, after determining the second location information, the positioning device may directly use the second location information as the current location information, and as another optional embodiment, the method further includes:

定位设备将第二位置信息通过移动通信运营商的网络发送至代理服务器,第二位置信息由代理服务器发送至位置服务器,位置服务器用于综合第一位置信息和第二位置信息确定定位设备的当前位置信息;The positioning device sends the second location information to the proxy server through the network of the mobile communication operator, and the second location information is sent by the proxy server to the location server, and the location server is used to determine the current location of the positioning device by integrating the first location information and the second location information. location information;

定位设备接收代理服务器通过移动通信运营商的网络发送的当前位置信息,当前位置信息由位置服务器发送至代理服务器。The positioning device receives the current location information sent by the proxy server through the network of the mobile communication operator, and the current location information is sent by the location server to the proxy server.

具体来说,也就是定位设备在通过GPS定位确定出其所在的第二位置信息之后,可以将其通过代理服务器再次发送至位置服务器,由位置服务器综合第一位置信息和第二位置信息获得更加准确的当前位置信息,例如:位置服务器可以取第一位置信息和第二位置信息的中点作为当前位置信息、位置服务器可以通过第一位置信息对第二位置信息进行微调获得当前位置信息等等。Specifically, after the positioning device has determined its second location information through GPS positioning, it can send it to the location server again through the proxy server, and the location server can synthesize the first location information and the second location information to obtain a more accurate location. Accurate current location information, for example: the location server can take the midpoint of the first location information and the second location information as the current location information, the location server can use the first location information to fine-tune the second location information to obtain the current location information, etc. .

第三种,定位信息包含第一位置信息和用于GPS定位的卫星信息,在这种情况下,定位设备可以首先基于卫星信息对定位设备进行GPS定位,进而确定出定位设备的第二位置信息;最后,综合第一位置信息和第二位置信息确定出定位设备的当前位置信息,定位设备基于第一位置信息和第二位置信息获取当前位置信息的方式与位置服务器类似,故而在此不再赘述。The third type is that the positioning information includes the first position information and the satellite information used for GPS positioning. In this case, the positioning device can first perform GPS positioning on the positioning device based on the satellite information, and then determine the second position information of the positioning device. ;Finally, the current location information of the positioning device is determined by integrating the first location information and the second location information. repeat.

在具体实施过程中,定位设备可以在多种时机向代理服务器发送当前位置信息,下面列举其中的两种时机进行介绍,当然,在具体实施过程中,不限于以下两种情况。During the specific implementation process, the positioning device may send the current location information to the proxy server at various timings, two of which are listed below for introduction, of course, during the specific implementation process, it is not limited to the following two situations.

第一种,定位设备在检测到当前位置信息之后,就向代理服务器发送当前位置信息;First, after the positioning device detects the current location information, it sends the current location information to the proxy server;

第二种,定位设备基于当前位置信息判断当前位置与预设位置之间的距离是否大于预设距离;在距离大于预设距离时,向代理服务器发送当前位置信息。In the second type, the positioning device judges whether the distance between the current location and the preset location is greater than the preset distance based on the current location information; when the distance is greater than the preset distance, the current location information is sent to the proxy server.

举例来说,预设位置例如为:学校所在的位置、居民小区所在位置等等,如果佩戴有该定位设备的老人或者小孩距离预设位置较远,则会存在走丢的危险,在这种情况下,定位设备将当前位置信息发送至代理服务器,以使代理服务器将其发送至另一电子设备(例如:老人或者小孩的监护人所在的电子设备),进而使监护人能够尽快得知佩戴该定位设备的用户的位置,通过上述方案能够保障佩戴定位设备的用户的安全。For example, the preset location is: the location of the school, the location of the residential area, etc. If the elderly or children wearing the positioning device are far away from the preset location, there is a risk of getting lost. Under certain circumstances, the positioning device sends the current location information to the proxy server, so that the proxy server can send it to another electronic device (for example: the electronic device where the guardian of the elderly or children is located), so that the guardian can learn to wear the positioning device as soon as possible. The location of the user of the device can ensure the safety of the user wearing the positioning device through the above solution.

在这种情况下,作为另一种可选的实施例,定位设备在确定出定位设备与预设位置的距离大于预设距离时,定位设备还可以向一预设通信标识发送报警信息,报警信息中携带当前位置信息。该预设通信标识例如为:佩戴定位设备的用户的监护人的通信标识、公共报警电话等等,其中该预设通信标识可以为电话号码、也可以为即时聊天软件的账户信息,对此本发明实施例不作限制。In this case, as another optional embodiment, when the positioning device determines that the distance between the positioning device and the preset position is greater than the preset distance, the positioning device may also send alarm information to a preset communication identifier, and the alarm The information carries the current location information. The preset communication identification is, for example: the communication identification of the guardian of the user wearing the positioning device, the public alarm telephone, etc., wherein the preset communication identification can be a phone number or the account information of instant chat software, to which the present invention Examples are not limiting.

在具体实施过程中,为了保证定位设备进行访问网络过程中的全部或部分数据流量被计入指定服务商中,则需要先给定位设备确定出为定位设备提供免流服务的代理服务器,请继续参考图1,可以通过以下步骤确定出代理服务器:In the specific implementation process, in order to ensure that all or part of the data traffic in the process of accessing the network by the positioning device is included in the designated service provider, it is necessary to first determine the proxy server for the positioning device to provide streaming services for the positioning device, please continue Referring to Figure 1, the proxy server can be determined through the following steps:

步骤S101:定位设备通过移动通信运营商的网络向分发服务器发送定位请求,定位请求中包含定位设备的标识信息和身份验证信息;Step S101: the positioning device sends a positioning request to the distribution server through the network of the mobile communication operator, and the positioning request includes identification information and identity verification information of the positioning device;

步骤S102:分发服务器基于标识信息和身份验证信息判断通信标识是否具备免流量权限;Step S102: the distribution server judges whether the communication identification has traffic-free authority based on the identification information and identity verification information;

步骤S103:分发服务器在确定出标识信息具备免流量权限时,为定位设备分配用于定位设备以免流量方式访问网络的代理服务器。Step S103: When the distribution server determines that the identification information has traffic-free authority, assign the positioning device a proxy server for the positioning device to access the network in a traffic-free manner.

举例来说,步骤S101之前,定位设备可以预先通过注册等方式在分发服务器绑定定位设备的标识信息(通信标识或者设备标识)例如:定位设备可以首先向分发服务器申请免流量服务,分发服务器在接收到定位设备的申请之后,根据一些预置条件(例如:该定位设备是否使用了预设软件、该定位设备的设备标识是否表征该定位设备由预定厂家制造等等)确定是否给该设备标识分发免流量权限,如果分发服务器确定给该设备标识分发免流量权限,则分发服务器会给定位设备发送一个UserKey(用户密码)作为身份验证信息;进一步的,分发服务器为了保证不存在其他用户冒用定位设备的通信标识申请免流量权限的情况,则可以首先给定位设备的通信标识发送一个验证码,定位设备的用户成功填写该验证码之后,才给定位设备分配身份验证信息访问网络过程。For example, before step S101, the positioning device can bind the identification information (communication identification or device identification) of the positioning device to the distribution server in advance through registration or other means. After receiving the application for the positioning device, determine whether to identify the device according to some preset conditions (for example: whether the positioning device uses preset software, whether the device identification of the positioning device indicates that the positioning device is manufactured by a predetermined manufacturer, etc.) Distribute the traffic-free permission, if the distribution server determines to distribute the traffic-free permission to the device ID, the distribution server will send a UserKey (user password) to the positioning device as authentication information; If the communication ID of the positioning device applies for traffic-free permission, you can first send a verification code to the communication ID of the positioning device. After the user of the positioning device successfully fills in the verification code, the identity verification information is assigned to the positioning device to access the network.

另外,分发服务器在为定位设备的访问网络过程提供免流服务时,可以不存在流量限制,也可以存在流量限制,其中不存在流量限制指的是,不管该定位设备在访问网络过程中累积使用多少流量,只要符合免流要求就给其提供免流量权限,例如:分发服务器可以为某些定位设备的设备标识(例如:特定厂家生产的定位设备、使用特定类型的操作系统的定位设备等等)设置VIP身份,进而提供给这些定位设备的设备标识无限量免流,又或者分发服务器可以针对采用特定移动通信运营商网络的通信标识设置VIP身份等等;而针对非VIP用户可以存在流量限制,存在流量限制指的是针对该定位设备每段预定时间内分配特定流量,如果定位设备在访问网络过程中累积使用的总流量没有超出该特定流量,则在其符合免流要求的情况下,给其分配免流量权限,而如果定位设备在访问网络过程中所使用的总流量超过特定流量,则不给其分配免流量权限,例如;针对定位设备可以一个月分配30M免费流量、50M免费流量等等。In addition, when the distribution server provides flow-free service for the positioning device to access the network, there may be no or no traffic restriction. The absence of traffic restriction means that regardless of the accumulative usage of the positioning device in the process of accessing the network How much traffic, as long as it meets the flow-free requirements, it will provide traffic-free permission. For example, the distribution server can identify certain positioning devices (for example: positioning devices produced by specific manufacturers, positioning devices using specific types of operating systems, etc. ) to set the VIP identity, and then provide unlimited traffic-free device identifiers for these positioning devices, or the distribution server can set the VIP identity for the communication identifiers using a specific mobile communication operator network, etc.; and there may be traffic restrictions for non-VIP users , the presence of traffic restrictions refers to the allocation of specific traffic to the positioning device every predetermined period of time. If the total traffic accumulated by the positioning device during the access to the network does not exceed the specific traffic, then if it meets the flow-free requirements, Allocate traffic-free permissions to it, and if the total traffic used by the positioning device in the process of accessing the network exceeds a specific traffic, it will not be allocated traffic-free permissions. For example, 30M free traffic and 50M free traffic can be allocated to positioning devices a month etc.

在一种可选的实施例中,如果分发服务器分配给定位设备的免费流量存在流量限制,则定位设备的用户还可以通过一些活动获得分发服务器奖励的数据流量,例如:定位设备点击预定广告、点击预定网页、下载预定APP等等,在这种情况下,分发服务器可以增加为定位设备分配的数据流量,例如:30M、40M等等。In an optional embodiment, if there is a traffic limit on the free traffic allocated by the distribution server to the positioning device, the user of the positioning device can also obtain the data traffic rewarded by the distribution server through some activities, for example: the positioning device clicks on a predetermined advertisement, Click on the reservation webpage, download the reservation APP, etc. In this case, the distribution server can increase the data flow allocated for the positioning device, for example: 30M, 40M and so on.

进而步骤S101中,如果定位设备需要访问网络,例如:检测到定位设备需要接收另一电子设备发送的位置获取请求、又或者检测到定位设备向基站发送定位信号以获取当前位置信息等等,则定位设备首先通过其通信标识接入网络,然后将自己的标识信息、身份验证信息发送至分发服务器等等。Further in step S101, if the positioning device needs to access the network, for example: it detects that the positioning device needs to receive a location acquisition request sent by another electronic device, or detects that the positioning device sends a positioning signal to the base station to obtain current location information, etc., then The positioning device first accesses the network through its communication identification, and then sends its own identification information and identity verification information to the distribution server and so on.

步骤S102中,分发服务器判断接收到的该设备标识信息的身份验证信息与预存的该标识信息的身份验证信息是否匹配,如果匹配的话,则说明对应的定位设备具备免流量权限,否则说明对应的定位设备不具备免流量权限。In step S102, the distribution server judges whether the received identity verification information of the device identification information matches the pre-stored identity verification information of the identification information. If they match, it means that the corresponding positioning device has traffic-free permission; otherwise, it means that the corresponding The positioning device does not have traffic-free permission.

步骤S103中,如果分发服务器为设备标识定位设备分配免流量权限时没有流量限制,则分发服务器在确定出设备标识定位设备的标识信息具备免流量权限之后,可以直接为其分配代理服务器,而如果分发服务器为设备标识定位设备分配免流量权限时存在流量限制,则分发服务器在确定出设备标识定位设备的标识信息具备免流量权限之后,还需要判断其剩余流量是否超过一个阈值,在超过这个阈值时才给设备标识定位设备分配代理服务器,其处理过程具体包括以下步骤:获取定位设备的标识信息采用指定服务商的计费方式进行计费的免费剩余流量信息;基于免费剩余流量信息判断标识信息的免费剩余流量是否大于预设量(如前面的阈值);在免费剩余流量大于预设量时,为标识信息分配代理服务器。In step S103, if there is no traffic limit when the distribution server assigns the traffic-free permission to the device identification and positioning device, the distribution server can directly assign a proxy server to it after determining that the identification information of the device identification and positioning device has the traffic-free permission, and if There is a traffic limit when the distribution server assigns the traffic-free permission to the device identification and positioning device. After the distribution server determines that the identification information of the device identification and positioning device has the traffic-free permission, it also needs to judge whether its remaining traffic exceeds a threshold. The proxy server is assigned to the device identification and positioning device when the device is identified. The processing process specifically includes the following steps: obtain the identification information of the positioning device and use the billing method of the designated service provider to charge the free remaining traffic information; judge the identification information based on the free remaining traffic information Whether the free remaining traffic is greater than the preset amount (such as the previous threshold); when the free remaining traffic is greater than the preset amount, assign a proxy server for the identification information.

通常情况下,分发服务器的作用之一就是统计标识信息的免费剩余流量信息,预设量例如为:0M、1M、512K等等,如果免费剩余流量大于预设量的话,则说明通常情况下,该免流剩余流量能够满足本次网络访问,故而可以给其分配代理服务器;而如果免费剩余流量不大于预设量的话,则说明通常情况下,该免费剩余流量不能够满足本次网络访问,故而不给其分配代理服务器。Usually, one of the functions of the distribution server is to count the free remaining traffic information of the identification information. The preset amount is, for example: 0M, 1M, 512K, etc. If the free remaining traffic is greater than the preset amount, it means that under normal circumstances, The free remaining traffic can satisfy this network access, so a proxy server can be assigned to it; and if the free remaining traffic is not greater than the preset amount, it means that under normal circumstances, the free remaining traffic cannot satisfy this network access, Therefore, no proxy server is assigned to it.

其中,分发服务器在给定位设备分配代理服务器时,可以从多个代理服务器中选择距离定位设备物理位置最近的代理服务器分配给定位设备、也可以选择网络负载最轻的代理服务器分配给定位设备、又或者选择网络延迟最低的代理服务器分配给定位设备等等,或者采用上述多个分发策略中的至少两种策略综合考虑来选择,对于分发服务器采用何种方式为定位设备分配代理服务器,本发明实施例不再详细列举,并且不作限制。Wherein, when the distribution server assigns a proxy server to the positioning device, it may select the proxy server closest to the physical location of the positioning device from multiple proxy servers to assign to the positioning device, or select the proxy server with the lightest network load to assign to the positioning device. Or choose the proxy server with the lowest network delay to assign to the positioning device, etc., or use at least two of the above-mentioned multiple distribution strategies to select comprehensively. For the method used by the distribution server to assign the proxy server to the positioning device, the present invention The examples are not listed in detail and are not limiting.

其中,作为一种可选的实施例,在分发服务器分配给定位设备的标识信息的免流量权限没有流量限制的情况下,如果定位设备的标识信息具备免流量权限,则分发服务器可以生成临时验证信息(token)用于定位设备本次访问网络过程;又或者,在在分发服务器分配给定位设备的标识信息的免流量权限有流量限制的情况下,如果该标识信息具备免流量权限且标识信息具备免费剩余流量,则分发服务器也可以生成临时验证信息。Wherein, as an optional embodiment, in the case that the distribution server assigns the traffic-free permission of the identification information of the positioning device without traffic restrictions, if the identification information of the positioning device has the traffic-free permission, the distribution server can generate a temporary verification The information (token) is used for the positioning device to access the network this time; or, in the case where the distribution server assigns the identification information of the positioning device to the location device, the traffic-free permission has traffic restrictions, if the identification information has the traffic-free permission and the identification information With free remaining traffic, the distribution server can also generate temporary verification information.

另外,为了保证后续定位设备能够连接至代理服务器,分发服务器需要将一些数据发送至代理服务器,下面列举其中的四种数据进行介绍,当然,在具体实施过程中,不限于以下四种情况。①分发服务器将定位设备的通信标识发送至代理服务器;②分发服务器将定位设备的通信标识、临时验证信息发送至代理服务器;③分发服务器将定位设备的通信标识、免费剩余流量发送至代理服务器;④分发服务器将定位设备的通信标识、免费剩余流量、临时验证信息发送至代理服务器。In addition, in order to ensure that the subsequent positioning device can connect to the proxy server, the distribution server needs to send some data to the proxy server. The following four types of data are listed for introduction. Of course, the specific implementation process is not limited to the following four situations. ①The distribution server sends the communication ID of the positioning device to the proxy server; ②The distribution server sends the communication ID of the positioning device and temporary verification information to the proxy server; ③The distribution server sends the communication ID of the positioning device and free remaining traffic to the proxy server; ④The distribution server sends the communication identification of the positioning device, free remaining traffic, and temporary verification information to the proxy server.

另外,代理服务器的地址信息也需要提供给定位设备,其中代理服务器的地址信息可以由分发服务器直接发送至定位设备;也可以由代理服务器在接收到定位设备的通信标识之后,通过定位设备的通信标识将其发送至定位设备。如图1所示的步骤S104,为由分发服务器将代理服务器的地址信息发送至的定位设备的过程。In addition, the address information of the proxy server also needs to be provided to the positioning device. The address information of the proxy server can be directly sent to the positioning device by the distribution server; ID is sent to the location device. Step S104 shown in FIG. 1 is a process in which the distribution server sends the address information of the proxy server to the positioning device.

在具体实施过程中,定位设备访问网络过程中的全部数据流量被计入指定服务商中指的是在本次访问网络过程中,不管定位设备耗费多少数据流量,都将其计入指定服务商所耗费的数据流量。In the specific implementation process, all the data traffic in the process of accessing the network by the positioning device is included in the designated service provider. Data traffic consumed.

而定位设备访问网络过程中的部分数据流量被计入指定服务商所耗费的数据流量,又可以分为多种情况,下面列举其中的两种进行介绍,当然,在具体实施过程中,不限于以下两种情况。Part of the data traffic in the process of accessing the network by the positioning device is included in the data traffic consumed by the designated service provider, which can be divided into many situations. Two of them are listed below for introduction. Of course, in the specific implementation process, it is not limited to The following two situations.

第一种,定位设备访问网络过程中特定比例的数据流量被计入指定服务商所耗费的数据流量中。In the first type, a certain percentage of data traffic during the process of accessing the network by the positioning device is included in the data traffic consumed by the designated service provider.

举例来说,特定比例例如为:50%、70%等等,其中,计费系统在确定出定位设备访问网络过程中具备免流量权限(例如:数据传输携带免流量标识)时,将其特定比例的计入指定服务商,而将其余比例计入该通信标识,例如:假设本次访问网络过程中定位设备共耗费10M的流量,特定比例为:50%,则计费系统在计费时,将5M的流量计入指定服务商,而将其余5M的流量计入该定位设备的通信标识。当然,以上数据仅仅作为举例,并不作为限制。For example, the specific ratio is: 50%, 70%, etc., wherein, when the billing system determines that the positioning device has the traffic-free permission (for example: data transmission carries a traffic-free logo), it will specify The proportion will be included in the designated service provider, and the remaining proportion will be included in the communication identification. For example: assuming that the positioning device consumes a total of 10M traffic during this access to the network, and the specific proportion is: 50%, the billing system will , the traffic of 5M is counted into the designated service provider, and the traffic of the remaining 5M is counted into the communication identification of the positioning device. Of course, the above data are only examples, not limitations.

第二种,定位设备访问网络过程中特定数量的数据流量被计入指定服务商所耗费的数据流量中。In the second type, a certain amount of data traffic during the process of accessing the network by the positioning device is included in the data traffic consumed by the designated service provider.

举例来说,特定数量例如为:10M、20M等等,其中,计费系统在确定出定位设备访问网络过程中具备免流量权限(例如:数据传输携带免流量标识)时,在本次访问网络过程结束之后,判断本次访问网络过程的数据流量是否超过该特定数量,如果没有超过的话,则将所有的数据流量都计入指定服务商;如果超过特定数量的话,则将没有超过部分的数据流量计入指定服务商,将超过部分计入该定位设备的通信标识。For example, the specific quantity is: 10M, 20M, etc., wherein, when the billing system determines that the positioning device has the traffic-free permission in the process of accessing the network (for example: data transmission carries a traffic-free logo), the current access network After the process ends, it is judged whether the data traffic of this visit to the network exceeds the specified amount, if not, all the data traffic will be included in the designated service provider; if it exceeds the specific amount, there will be no excess data The traffic is counted into the designated service provider, and the excess part is counted into the communication identification of the positioning device.

第三种,定位设备访问网络过程中特定内容的数据流量被计入指定服务商。In the third type, the data traffic of specific content during the process of accessing the network by the positioning device is counted to the designated service provider.

举例来说,特定内容例如为:文字、图片等等,其中,在定位设备访问网络过程中具备免流量权限时,对应网关(或者与对应网络相连的计费系统)获取访问网络过程所传输的数据,然后从访问网络过程所传输的数据中确定出文字、图片等数据,并将其对应的数据流量计入指定服务商中;而针对其他类型的内容,例如:视频,则将其对应的数据流量计入定位设备的通信标识中。For example, the specific content is: text, pictures, etc., wherein, when the positioning device has the traffic-free permission during the process of accessing the network, the corresponding gateway (or the billing system connected to the corresponding network) obtains the information transmitted during the process of accessing the network. data, and then determine text, pictures and other data from the data transmitted during the access to the network, and count the corresponding data traffic into the designated service provider; for other types of content, such as video, the corresponding The data traffic is counted in the communication identification of the positioning device.

步骤S120中,如果分发服务器在步骤S101~S103中并未为本次访问网络过程分配临时验证信息,则定位设备直接将当前位置信息发送至代理服务器;如果分发服务器在步骤S101~S103中为本次访问网络过程分配有临时验证信息,则定位设备将携带临时验证信息的当前位置信息发送至代理服务器。在代理服务器接收到定位设备发送的当前位置信息之后,代理服务器可以主动将当前位置信息发送至另一电子设备,代理服务器也可以响应电子设备发送的位置获取请求;然后基于位置获取请求向电子设备发送定位设备所采集的位置信息(可以为当前位置信息、也可以为历史位置信息),其中代理服务器在应电子设备的请求向电子设备发送当前位置信息时,可以先对位置获取请求进行一个权限认证,具体为:位置获取请求中包含电子设备的权限认证信息,代理服务器基于权限认证信息判断电子设备是否存在获取当前位置信息的权限;在代理服务器确定出电子设备具备权限时,将当前位置信息发送至电子设备。其中,代理服务器对电子设备进行权限认证的过程,与定位设备对电子设备进行权限认证的过程类似,故而在此不再赘述。In step S120, if the distribution server has not allocated temporary verification information for this network access process in steps S101-S103, the positioning device will directly send the current location information to the proxy server; If temporary verification information is assigned during the first access to the network, the positioning device sends the current location information carrying the temporary verification information to the proxy server. After the proxy server receives the current location information sent by the positioning device, the proxy server can actively send the current location information to another electronic device, and the proxy server can also respond to the location acquisition request sent by the electronic device; Send the location information collected by the positioning device (it can be current location information or historical location information). When the proxy server sends the current location information to the electronic device at the request of the electronic device, it can first grant a permission to the location acquisition request. Authentication, specifically: the location acquisition request includes the authority authentication information of the electronic device, and the proxy server judges whether the electronic device has the authority to obtain the current location information based on the authority authentication information; when the proxy server determines that the electronic device has authority, the current location information sent to an electronic device. Wherein, the process of the proxy server authenticating the electronic device's authority is similar to the process of the positioning device performing the authority authentication of the electronic device, so it will not be repeated here.

在具体实施过程中,代理服务器可以在接收到定位设备发送的当前位置信息之后,可以直接为其提供免流量服务,进而主动或者应另一电子设备的请求将其发送至另一电子设备或者存储于代理服务器,而基于分发服务器之前给代理服务器发送的不同信息,代理服务器也可以先进行一些验证过程,在验证通过之后才能定位设备提供免流量服务,下面列举其中的三种验证过程进行介绍,当然,在具体实施过程中,不限于以下三种情况。In the specific implementation process, after receiving the current location information sent by the positioning device, the proxy server can directly provide it with traffic-free service, and then send it to another electronic device or store it actively or at the request of another electronic device. Based on the different information sent by the distribution server to the proxy server, the proxy server can also perform some verification processes first. After the verification is passed, the device can be located to provide traffic-free services. The following three verification processes are listed below. Of course, in the specific implementation process, it is not limited to the following three situations.

①分发服务器发送至代理服务器的数据包括定位设备的通信标识和临时验证信息,在这种情况下,定位设备发送的当前位置信息也会包含临时验证信息,则代理服务器在通过临时验证信息验证该定位设备的免流量权限合法时,将当前位置信息存储于代理服务器或者发送至另一电子设备;其中,代理服务器将定位设备发送的临时验证信息与分发服务器发送的临时验证信息相匹配,如果匹配成功的话,则说明该数据访问请求合法,否则说明该数据访问请求不合法。通过上述方案能够保证本次访问网络过程的安全性。①The data sent by the distribution server to the proxy server includes the communication identification of the positioning device and temporary verification information. When the traffic-free permission of the positioning device is legal, the current location information is stored in the proxy server or sent to another electronic device; wherein, the proxy server matches the temporary verification information sent by the positioning device with the temporary verification information sent by the distribution server, and if it matches If it succeeds, it means that the data access request is legal; otherwise, it means that the data access request is not legal. Through the above solution, the security of the network access process can be guaranteed.

②分发服务器发送至代理服务器的数据包括定位设备的通信标识和免费剩余流量信息,则代理服务器在接收到当前位置信息之后,首先基于免费剩余流量信息判断通信标识的最新免费剩余流量是否大于预设量;在最新免费剩余流量信息大于预设量时,才为移动终端提供免流量服务器,例如:将当前位置信息存储于代理服务器或者发送至另一电子设备;而如果最新免费剩余流量信息不大于预设量,则告知定位设备,让定位设备通过别的访问路径将当前位置信息上传至网络或者发送至另一电子设备。通过上述方案,能够使指定服务商向定位设备提供特定量的免费数据流量。②The data sent by the distribution server to the proxy server includes the communication identification of the positioning device and the free remaining traffic information. After receiving the current location information, the proxy server first judges whether the latest free remaining traffic of the communication identification is greater than the preset value based on the free remaining traffic information. amount; when the latest free remaining traffic information is greater than the preset amount, the free traffic server is provided for the mobile terminal, for example: the current location information is stored in the proxy server or sent to another electronic device; and if the latest free remaining traffic information is not greater than If the preset amount is exceeded, the positioning device is informed to let the positioning device upload the current location information to the network or send it to another electronic device through another access path. Through the above solution, the designated service provider can provide a specific amount of free data traffic to the positioning device.

其中,如果在分发服务器判断过设备标识的免费剩余流量大于预设量,则代理服务器在首次接收到当前位置信息时,并不需要判断最新免费剩余流量(也即分发服务器发送的免费剩余流量)是否大于预设量;而是直接统计定位设备此次网络访问请求耗费的数据流量,然后将其从分发服务器发送的免费剩余流量中减去该数据流量,则可以得到最新免费数据流量;在后续中可以通过判断最新免费数据流量是否大于预设量来确定是否将数据访问请求发送至资源服务器。Wherein, if the distributing server has judged that the free remaining traffic identified by the device is greater than the preset amount, the proxy server does not need to judge the latest free remaining traffic (that is, the free remaining traffic sent by the distribution server) when receiving the current location information for the first time. Whether it is greater than the preset amount; instead, directly count the data traffic consumed by the network access request of the positioning device, and then subtract the data traffic from the free remaining traffic sent by the distribution server to obtain the latest free data traffic; in the follow-up It may be determined whether to send the data access request to the resource server by judging whether the latest free data traffic is greater than a preset amount.

另外,代理服务器也可以根据预设的统计周期统计通信标识所耗费的数据流量信息,获知定位设备具备免流量权限的最新免费剩余流量信息。In addition, the proxy server can also count the data traffic information consumed by the communication identifier according to the preset statistical cycle, and obtain the latest free remaining traffic information that the positioning device has the traffic-free permission.

举例来说,预设的统计周期例如为:预设的统计时间间隔,预设的统计时间间隔例如为30s、50s、1min等等,代理服务器可以设置定时器,每到预设时间间隔,就获取其统计的定位设备在当前时间间隔内所耗费的数据流量,并基于该数据流量统计获得定位设备的最新免费剩余流量信息。For example, the preset statistical period is, for example: a preset statistical time interval, the preset statistical time interval is, for example, 30s, 50s, 1min, etc., the proxy server can set a timer, and every time the preset time interval is reached, it will Obtain the data traffic consumed by the positioning device in the current time interval according to statistics, and obtain the latest free remaining traffic information of the positioning device based on the data traffic statistics.

预设的统计周期又例如为:预设的统计流量,预设的统计流量为512k、1M等等,代理服务器可以对该定位设备所耗费的数据流量进行监控,每耗费预设的统计流量,则根据该预设的统计流量确定出定位设备的最新免费剩余流量信息。The preset statistical cycle is, for example: preset statistical traffic, the preset statistical traffic is 512k, 1M, etc., the proxy server can monitor the data traffic consumed by the positioning device, and every time the preset statistical traffic is consumed, The latest free remaining traffic information of the positioning device is then determined according to the preset statistical traffic.

通过上述方案,能够保证及时获取定位设备的最新免费剩余流量信息。Through the foregoing solution, it is possible to ensure timely acquisition of the latest free remaining traffic information of the positioning device.

当然,代理服务器在统计周期统计出定位设备所耗费的数据流量信息之后,也可以将其发送分发服务器,由分发服务器来统计设备标识的最新免费剩余流量信息。其中,如果定位设备的标识信息为通信标识的话,则分发服务器直接将该通信标识之前的免费剩余流量减去该通信标识此次消耗数据流量,进而获得该通信标识的最新免费剩余流量信息。Certainly, after the proxy server counts the data traffic information consumed by the positioning device in the statistical period, it can also send it to the distribution server, and the distribution server counts the latest free remaining traffic information of the device identification. Wherein, if the identification information of the positioning device is a communication identification, the distribution server directly subtracts the current consumption data flow of the communication identification from the free remaining traffic before the communication identification, and then obtains the latest free remaining traffic information of the communication identification.

而如果定位设备的标识信息为设备标识的话,则分发服务器中存储有定位设备的通信标识和设备标识之间的对应关系,在分发服务器接收代理服务器发送的通信标识所耗费的数据流量信息之后,就将其对应到对应的设备标识,进而从设备标识的免费剩余流量信息中减去该通信标识所耗费的数据流量,进而获得该设备标识的最新免费剩余流量信息。And if the identification information of the positioning device is the device identification, the distribution server stores the correspondence between the communication identification of the positioning device and the equipment identification, and after the distribution server receives the data flow information consumed by the communication identification sent by the proxy server, Corresponding it to the corresponding device identifier, and then subtracting the data traffic consumed by the communication identifier from the free remaining traffic information of the device identifier, and then obtaining the latest free remaining traffic information of the device identifier.

其中,分发服务器获得定位设备所耗费的数据流量信息之后,还可以将其发送定位设备或者在定位设备查询时告知;又或者分发服务器在确定出设备标识的最新免费剩余流量信息之后,也可以将其发送至定位设备,进而使定位设备能够对当前流量使用情况进而一个了解,继而选择出较佳的网络访问策略。或者在定位设备查询时告知。Among them, after the distribution server obtains the data traffic information consumed by the positioning device, it can also send it to the positioning device or notify it when the positioning device inquires; or after the distribution server determines the latest free remaining traffic information of the device identification, it can also send It is sent to the positioning device, so that the positioning device can further understand the current traffic usage, and then choose a better network access strategy. Or notify when the positioning device queries.

③分发服务器发送至代理服务器的数据包括定位设备的标识信息、免费剩余流量信息和临时验证信息,在这种情况下,则代理服务器在通过临时验证信息验证本次数据访问请求合法、且最新免费剩余流量信息大于预设量,采用资源服务器获取被请求数据。通过该方案既能够保证本次访问网络过程的安全性,又能够保证指定服务商只向定位设备提供预设量的免费流量。③The data sent by the distribution server to the proxy server includes the identification information of the positioning device, free remaining traffic information and temporary verification information. In this case, the proxy server verifies that the data access request is legal and the latest free If the remaining traffic information is greater than the preset amount, the resource server is used to obtain the requested data. This solution can not only ensure the security of the network access process, but also ensure that the designated service provider only provides a preset amount of free traffic to the positioning device.

其中,免流量标识可以为多种不同形式的免流量标识,下面列举其中的两种进行介绍,当然,在具体实施过程中,不限于以下两种情况。Among them, the flow-free sign can be a variety of different forms of flow-free signs, and two of them are listed below for introduction. Of course, in the specific implementation process, it is not limited to the following two situations.

①代理服务器在接收到分发服务器发送的定位设备的通信标识之后、且在接收到定位设备发送的当前位置信息之前,向定位设备发送预设标签,在定位设备访问网络过程中进行数据传输时携带预设标签,预设标签为免流量标识。① After the proxy server receives the communication identifier of the positioning device sent by the distribution server and before receiving the current location information sent by the positioning device, the proxy server sends a preset tag to the positioning device, which is carried when the positioning device transmits data during the process of accessing the network. The default label, the default label is the traffic-free logo.

②分发服务器为定位设备分配的代理服务器的IP地址为预设IP地址,该预设IP地址即为该免流量标识。②The IP address of the proxy server assigned by the distribution server to the positioning device is a preset IP address, and the preset IP address is the traffic-free identifier.

在具体实施过程中,定位设备访问网络过程中的数据包含上行数据和下行数据,其中上行数据即为由定位设备发送至代理服务器的数据(例如:当前位置信息、第一位置信息等等),下行数据即为由代理服务器发送至定位设备的数据(例如:定位信息、位置服务器综合第一位置信息和第二位置信息确定的当前位置信息等等),其中,上行数据与下行数据中至少一种数据的数据流量被计入指定服务商中。In the specific implementation process, the data in the process of the positioning device accessing the network includes uplink data and downlink data, wherein the uplink data is the data sent by the positioning device to the proxy server (for example: current location information, first location information, etc.), The downlink data is the data sent by the proxy server to the positioning device (for example: positioning information, the current location information determined by the location server based on the first location information and the second location information, etc.), wherein at least one of the uplink data and the downlink data The data traffic of this kind of data is counted in the designated service provider.

其中,如果定位设备向代理服务器发送的上行数据(例如:当前位置信息、第一位置信息等等)中包含免流量标识,则上行数据所对应的数据流量被基于免流量标识计入指定服务商中;而如果代理服务器向定位设备发送下行数据中携带免流量标识,进而下行数据被基于免流量标识计入指定服务商中。Among them, if the uplink data sent by the positioning device to the proxy server (for example: current location information, first location information, etc.) contains the traffic-free identification, the data traffic corresponding to the uplink data will be counted into the designated service provider based on the traffic-free identification If the proxy server sends the downlink data to the positioning device to carry the traffic-free flag, then the downlink data will be counted into the designated service provider based on the traffic-free flag.

其中,如果免流量标识为预设标识,则上行数据由移动终端加上预设标签;下行数据由代理服务器机上预设标识;如果免流量标识为预设IP,则由于上行数据和下行数据都会经过包含预设IP的代理服务器,故而其免流量标识直接携带在其所经过的代理服务器的地址信息中。Among them, if the traffic-free logo is a preset logo, the uplink data will be tagged with a preset label by the mobile terminal; the downlink data will be pre-set on the proxy server; It passes through a proxy server that includes a preset IP, so its flow-free identifier is directly carried in the address information of the proxy server it passes through.

在具体实施过程中,可以通过设置于定位设备和代理服务器之间的网关统计定位设备访问网络过程中的数据流量。In a specific implementation process, the data traffic in the process of the positioning device accessing the network can be counted through the gateway set between the positioning device and the proxy server.

针对免流量标识为预设IP的情况,对应网关(或者与对应网络相连的计费系统)在接收到定位设备发送的上行数据之后,判断该数据访问请求所对应的下一个节点的IP是否为预设IP,如果为预设IP,则将其数据流量计入指定服务商中,对应网关(或者与对应网络相连的计费系统)在接收到代理服务器发送的下行数据之后,判断该代理服务器的IP是否为预设IP,如果为预设IP,则将其数据流量计入指定服务商的数据流量;针对免流量标识为预设标签的情况下,对应网关(或者与对应网络相连的计费系统)在接收到定位设备发送的上行数据(或者接收到代理服务器发送的下行数据)之后,就判断该上行数据(或者下行数据)中是否包含预设标签,如果包含预设标签,则将其数据流量计入指定服务商中。For the case where the traffic-free flag is the preset IP, the corresponding gateway (or the billing system connected to the corresponding network) judges whether the IP of the next node corresponding to the data access request is Default IP, if it is a preset IP, its data traffic will be included in the designated service provider, and the corresponding gateway (or the billing system connected to the corresponding network) will judge the proxy server after receiving the downlink data sent by the proxy server. Whether the IP is the default IP, if it is the default IP, its data traffic will be included in the data traffic of the designated service provider; for the case of free traffic identification as the default label, the corresponding gateway (or the computer connected to the corresponding network fee system) after receiving the uplink data sent by the positioning device (or the downlink data sent by the proxy server), it will judge whether the uplink data (or downlink data) contains the preset tag, and if it contains the preset tag, it will Its data traffic is included in the designated service provider.

作为一种可选的实施例,请继续参考图1,方法还包括:As an optional embodiment, please continue to refer to Figure 1, the method also includes:

步骤S130:判断在预设时间段内是否接收到定位设备的任一数据访问请求;Step S130: judging whether any data access request from the positioning device is received within a preset time period;

步骤S140:如果在预设时间段内没有接收到定位设备的任一数据访问请求,则提示定位设备已退出登录。Step S140: If no data access request from the positioning device is received within a preset time period, prompting that the positioning device has logged out.

举例来说,预设时间段例如为:10min、30min、40min等等,如果代理服务器在预设时间段内并未接收到定位设备发送的任意数据访问请求,则说明定位设备此次访问网络过程已经结束,故而可以产生一个对应的提示信息。进一步的,代理服务器在产生该提示信息之后,还可以将该提示信息发送至分发服务器。For example, the preset time period is: 10min, 30min, 40min, etc. If the proxy server does not receive any data access request sent by the positioning device within the preset time period, it means that the positioning device is accessing the network this time. has ended, so a corresponding prompt message can be generated. Further, after the proxy server generates the prompt information, it may also send the prompt information to the distribution server.

在这种情况下,如果之前分发服务器为本次访问网络过程分配过临时验证信息的话,则分发服务器基于代理服务器发送的提示信息注销临时验证信息,另外,代理服务器也注销临时验证信息。通过该方案,能够保证所分配的临时验证信息只能作为本次访问网络过程的验证信息,下次网络访问还是需要生成新的临时验证信息,从而提高网络访问的安全性。In this case, if the distribution server has allocated temporary verification information for this network access process before, the distribution server will cancel the temporary verification information based on the prompt information sent by the proxy server, and the proxy server will also cancel the temporary verification information. Through this scheme, it can be guaranteed that the allocated temporary verification information can only be used as the verification information of this network access process, and new temporary verification information needs to be generated for the next network access, thereby improving the security of network access.

作为一种可选的实施例,如果代理服务器提示定位设备已退出登录,请继续参考图1,方法还包括:As an optional embodiment, if the proxy server prompts that the positioning device has logged out, please continue to refer to Figure 1, the method further includes:

步骤S150:代理服务器将定位设备的起始上网时间、结束上网时间以及消耗的数据流量信息发送给分发服务器;Step S150: the proxy server sends the information about the initial access time, the end time and the consumed data flow of the positioning device to the distribution server;

步骤S160:分发服务器基于代理服务器发送的数据流量信息对定位设备的免费剩余流量进行统计。Step S160: The distribution server counts the free remaining traffic of the positioning device based on the data traffic information sent by the proxy server.

举例来说,代理服务器可以给分发服务器发送如表1所示的信息:For example, the proxy server can send the information shown in Table 1 to the distribution server:

表1Table 1

起始时间start time 结束时间End Time 消耗的数据流量信息Consumed data traffic information 2015-4-15 14:232015-4-15 14:23 2015-4-15 14:442015-4-15 14:44 1.6M1.6M

假设分发服务器为定位设备的标识信息分配的总的免费数据流量为:30M,并且该定位设备的设备标识在本次网络访问之前以及耗费了20M流量,则可以确定出该定位设备的标识信息在经过本次访问网络过程之后的免费剩余流量为:10M-1.6M=8.4M。当然,以上数据流量仅仅作为举例,并不作为限制。Assuming that the total free data traffic allocated by the distribution server for the identification information of the positioning device is: 30M, and the device identification of the positioning device consumes 20M traffic before this network access, it can be determined that the identification information of the positioning device is in The free remaining traffic after this access to the network is: 10M-1.6M=8.4M. Of course, the above data traffic is only an example, not a limitation.

本发明实施例所介绍的分发服务器和代理服务器可以为两个物理位置完全独立的服务器;也可以为同一服务器的两个不同功能模块,对此本发明实施例不作限制。The distribution server and the proxy server described in the embodiment of the present invention may be two completely independent servers in physical locations; they may also be two different functional modules of the same server, which is not limited in the embodiment of the present invention.

依据本发明实施例所提供的位置获取的交互方法,本发明实施例还提供一种用于定位设备的位置传输方法,请参考图3,包括:According to the interactive method of location acquisition provided by the embodiment of the present invention, the embodiment of the present invention also provides a location transmission method for a positioning device, please refer to FIG. 3 , including:

步骤S301:确定出定位设备的当前位置信息;Step S301: Determine the current location information of the positioning device;

步骤S302:通过移动通信运营商的网络向代理服务器发送定位设备的当前位置信息;Step S302: sending the current location information of the positioning device to the proxy server through the network of the mobile communication operator;

其中,定位设备进行访问网络过程中的数据传输标记有免流量标识,定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由移动网络运营商基于免流量标识将其计入指定服务商中。Among them, the data transmission during the process of accessing the network by the positioning device is marked with a traffic-free mark, and all or part of the data traffic generated during the process of accessing the network by the positioning device through a proxy server is counted by the mobile network operator based on the traffic-free mark to the designated service provider middle.

可选的,确定出定位设备的当前位置信息,具体包括:接收代理服务器发送的位置获取请求,位置获取请求由另一电子设备发送至代理服务器;响应位置获取请求,进而获得当前位置信息,并且当前位置信息由代理服务器发送至电子设备;或者,定期获取当前位置信息。Optionally, determining the current location information of the positioning device specifically includes: receiving a location acquisition request sent by a proxy server, and the location acquisition request is sent to the proxy server by another electronic device; responding to the location acquisition request, and then obtaining the current location information, and The current location information is sent to the electronic device by the proxy server; or, the current location information is obtained periodically.

可选的,位置获取请求中包含电子设备的权限认证信息,响应位置获取请求,进而获得当前位置信息,具体包括:基于权限认证信息判断电子设备是否存在获取当前位置信息的权限;在电子设备存在权限时,获取当前位置信息。Optionally, the location acquisition request includes authority authentication information of the electronic device, responds to the location acquisition request, and then obtains the current location information, specifically including: judging whether the electronic device has the authority to obtain the current location information based on the authority authentication information; Get the current location information when permission is granted.

可选的,通过移动通信运营商的网络向代理服务器发送定位设备的当前位置信息,具体为:基于当前位置信息判断当前位置与预设位置之间的距离是否大于预设距离;在距离大于预设距离时,向代理服务器发送当前位置信息。Optionally, send the current location information of the positioning device to the proxy server through the network of the mobile communication operator, specifically: judge whether the distance between the current location and the preset location is greater than the preset distance based on the current location information; When setting the distance, send the current location information to the proxy server.

可选的,在距离大于预设距离时,方法还包括:向一预设通信标识发送报警信息,报警信息中携带当前位置信息。Optionally, when the distance is greater than the preset distance, the method further includes: sending an alarm message to a preset communication identifier, where the alarm message carries current location information.

可选的,确定出定位设备的当前位置信息,具体包括:接收代理服务器通过移动通信运营商的网络发送至的定位信息,定位信息由位置服务器发送至代理服务器,且定位信息由位置服务器基于定位信号由定位设备发送至基站的发送时间及抵达时间来确定;通过定位信息确定出定位设备的当前位置信息。Optionally, determining the current location information of the positioning device specifically includes: receiving the positioning information sent by the proxy server through the network of the mobile communication operator, the positioning information is sent by the location server to the proxy server, and the positioning information is sent by the location server based on the positioning The signal is determined by the sending time and arrival time sent by the positioning device to the base station; the current position information of the positioning device is determined through the positioning information.

可选的,定位信息具体为:位置服务器基于发送时间和抵达时间所确定的定位设备的第一位置信息。Optionally, the positioning information is specifically: the first position information of the positioning device determined by the location server based on the sending time and the arrival time.

可选的,定位信息具体为:位置服务器基于发送时间及抵达时间确定的用于对定位设备进行GPS定位的卫星信息;通过定位信息确定出定位设备的当前位置信息,具体包括:基于卫星信息对定位设备进行GPS定位,进而确定出定位设备的第二位置信息。Optionally, the positioning information is specifically: the satellite information used for GPS positioning of the positioning device determined by the location server based on the sending time and the arrival time; the current position information of the positioning device is determined through the positioning information, specifically including: The positioning device performs GPS positioning, and then determines the second position information of the positioning device.

可选的,通过定位信息确定出定位设备的当前位置信息,还包括:将第二位置信息通过移动通信运营商的网络发送至代理服务器,第二位置信息由代理服务器发送至位置服务器,位置服务器用于综合第一位置信息和第二位置信息确定定位设备的当前位置信息;接收代理服务器通过移动通信运营商的网络发送的当前位置信息,当前位置信息由位置服务器发送至代理服务器。Optionally, determining the current location information of the positioning device through the positioning information also includes: sending the second location information to the proxy server through the network of the mobile communication operator, the second location information is sent by the proxy server to the location server, and the location server It is used to synthesize the first location information and the second location information to determine the current location information of the positioning device; receive the current location information sent by the proxy server through the network of the mobile communication operator, and the current location information is sent by the location server to the proxy server.

可选的,定位信息具体包括:位置服务器基于发送时间和抵达时间所确定的定位设备的第一位置信息;以及位置服务器基于发送时间及抵达时间确定的用于对定位设备进行GPS定位的卫星信息;通过定位信息确定出定位设备的当前位置信息,具体包括:基于卫星信息对定位设备进行GPS定位,进而确定出定位设备的第二位置信息;综合第一位置信息和第二位置信息确定出定位设备的当前位置信息。Optionally, the positioning information specifically includes: the first position information of the positioning device determined by the location server based on the sending time and arrival time; and the satellite information used for GPS positioning of the positioning device determined by the location server based on the sending time and arrival time ; Determining the current position information of the positioning device through the positioning information, specifically including: performing GPS positioning on the positioning device based on satellite information, and then determining the second position information of the positioning device; combining the first position information and the second position information to determine the positioning The current location information of the device.

可选的,在通过移动通信运营商的网络向代理服务器发送定位设备的当前位置信息之前,方法还包括:通过移动通信运营商的网络向分发服务器发送定位请求,定位请求中包含定位设备的标识信息和身份验证信息,以使分发服务器基于标识信息和身份验证信息确定标识信息具备免流量权限时,为定位设备分配用于定位设备以免流量方式访问网络的代理服务器。Optionally, before sending the current location information of the positioning device to the proxy server through the network of the mobile communication operator, the method further includes: sending a positioning request to the distribution server through the network of the mobile communication operator, where the positioning request includes the identification of the positioning device Information and identity verification information, so that when the distribution server determines that the identification information has traffic-free permission based on the identification information and identity verification information, it allocates a proxy server for the positioning device to access the network in a traffic-free manner for the positioning device.

可选的,方法还包括:接收代理服务器发送的预设标签,在定位设备访问网络过程中进行数据传输时携带预设标签,预设标签为免流量标识;或者,代理服务器的IP地址为预设IP地址,预设IP地址为免流量标识。Optionally, the method further includes: receiving a preset label sent by the proxy server, and carrying the preset label during data transmission during the process of accessing the network by the positioning device, and the preset label is a traffic-free identification; or, the IP address of the proxy server is the preset label. Set the IP address, and the default IP address is the traffic-free mark.

可选的,定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由移动网络运营商基于免流量标识将其计入指定服务商中,具体为:在确定出定位设备访问网络过程中的数据中包含预设标签时,将定位设备访问网络过程中的全部或部分数据流量计入指定服务商中;或定位设备访问网络过程中的数据传输经过预设IP地址的代理服务器,流经预设IP地址的全部或部分数据流量被计入指定服务商中。Optionally, all or part of the data traffic generated during the process of the positioning device accessing the network through the proxy server is counted by the mobile network operator in the designated service provider based on the traffic-free identifier, specifically: when the positioning device is determined to access the network When the data contains preset tags, all or part of the data traffic during the process of accessing the network by the positioning device is included in the designated service provider; or the data transmission during the process of accessing the network by the positioning device passes through a proxy server with a preset IP address and flows All or part of the data traffic of the preset IP address is counted to the designated service provider.

根据本发明实施例所提供的位置获取的交互方法,本发明实施例还提供一种定位设备,请参考图4,包括:According to the interaction method for obtaining a location provided by the embodiment of the present invention, the embodiment of the present invention also provides a positioning device, please refer to FIG. 4 , including:

第一确定模块40,用于确定出定位设备的当前位置信息;The first determining module 40 is configured to determine the current location information of the positioning device;

第一发送模块41,用于通过移动通信运营商的网络向代理服务器发送定位设备的当前位置信息;The first sending module 41 is configured to send the current location information of the positioning device to the proxy server through the network of the mobile communication operator;

其中,定位设备进行访问网络过程中的数据传输标记有免流量标识,定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由移动网络运营商基于免流量标识将其计入指定服务商中。Among them, the data transmission during the process of accessing the network by the positioning device is marked with a traffic-free mark, and all or part of the data traffic generated during the process of accessing the network by the positioning device through a proxy server is counted by the mobile network operator based on the traffic-free mark to the designated service provider middle.

可选的,第一确定模块40,具体包括:第一接收单元,用于接收代理服务器发送的位置获取请求,位置获取请求由另一电子设备发送至代理服务器;响应单元,用于响应位置获取请求,进而获得当前位置信息,并且当前位置信息由代理服务器发送至电子设备;或者,第一确定模块40,具体用于定期获取当前位置信息。Optionally, the first determination module 40 specifically includes: a first receiving unit, configured to receive a location acquisition request sent by a proxy server, and the location acquisition request is sent to the proxy server by another electronic device; a response unit, configured to respond to the location acquisition request Request, and then obtain the current location information, and the current location information is sent to the electronic device by the proxy server; or, the first determination module 40 is specifically configured to periodically obtain the current location information.

可选的,位置获取请求中包含电子设备的权限认证信息,响应单元,具体包括:判断子单元,用于基于权限认证信息判断电子设备是否存在获取当前位置信息的权限;获取子单元,用于在电子设备存在权限时,获取当前位置信息。Optionally, the location acquisition request includes authority authentication information of the electronic device, and the response unit specifically includes: a judging subunit for judging whether the electronic device has the authority to acquire current location information based on the authority authentication information; an acquisition subunit for When the electronic device has permission, obtain the current location information.

可选的,第一发送模块41,具体包括:第一判断单元,用于基于当前位置信息判断当前位置与预设位置之间的距离是否大于预设距离;第一发送单元,用于在距离大于预设距离时,向代理服务器发送当前位置信息。Optionally, the first sending module 41 specifically includes: a first judging unit, configured to judge whether the distance between the current location and the preset location is greater than the preset distance based on the current location information; When the distance is greater than the preset distance, send the current location information to the proxy server.

可选的,定位设备还包括:报警模块,用于在距离大于预设距离时,向一预设通信标识发送报警信息,报警信息中携带当前位置信息。Optionally, the positioning device further includes: an alarm module, configured to send an alarm message to a preset communication identifier when the distance is greater than the preset distance, and the alarm message carries current location information.

可选的,第一确定模块40,具体包括:第二接收单元,用于接收代理服务器通过移动通信运营商的网络发送至的定位信息,定位信息由位置服务器发送至代理服务器,且定位信息由位置服务器基于定位信号由定位设备发送至基站的发送时间及抵达时间来确定;确定单元,用于通过定位信息确定出定位设备的当前位置信息。Optionally, the first determining module 40 specifically includes: a second receiving unit configured to receive the positioning information sent by the proxy server through the network of the mobile communication operator, the positioning information is sent by the location server to the proxy server, and the positioning information is sent by the proxy server The location server determines based on the sending time and arrival time of the positioning signal sent by the positioning device to the base station; the determining unit is used to determine the current location information of the positioning device through the positioning information.

可选的,定位信息具体为:位置服务器基于发送时间和抵达时间所确定的定位设备的第一位置信息。Optionally, the positioning information is specifically: the first position information of the positioning device determined by the location server based on the sending time and the arrival time.

可选的,定位信息具体为:位置服务器基于发送时间及抵达时间确定的用于对定位设备进行GPS定位的卫星信息;确定单元,包括:第一定位子单元,用于基于卫星信息对定位设备进行GPS定位,进而确定出定位设备的第二位置信息。Optionally, the positioning information is specifically: satellite information for GPS positioning of the positioning device determined by the location server based on the sending time and arrival time; the determining unit includes: a first positioning subunit, used for positioning the positioning device based on the satellite information Perform GPS positioning, and then determine the second location information of the positioning device.

可选的,确定单元,还包括:发送子单元,用于将第二位置信息通过移动通信运营商的网络发送至代理服务器,第二位置信息由代理服务器发送至位置服务器,位置服务器用于综合第一位置信息和第二位置信息确定定位设备的当前位置信息;接收子单元,用于接收代理服务器通过移动通信运营商的网络发送的当前位置信息,当前位置信息由位置服务器发送至代理服务器。Optionally, the determining unit further includes: a sending subunit, configured to send the second location information to the proxy server through the network of the mobile communication operator, the second location information is sent by the proxy server to the location server, and the location server is used for integrating The first location information and the second location information determine the current location information of the positioning device; the receiving subunit is used to receive the current location information sent by the proxy server through the network of the mobile communication operator, and the current location information is sent by the location server to the proxy server.

可选的,定位信息具体包括:位置服务器基于发送时间和抵达时间所确定的定位设备的第一位置信息;以及位置服务器基于发送时间及抵达时间确定的用于对定位设备进行GPS定位的卫星信息;确定单元,具体包括:第二定位子单元,用于基于卫星信息对定位设备进行GPS定位,进而确定出定位设备的第二位置信息;确定子单元,用于综合第一位置信息和第二位置信息确定出定位设备的当前位置信息。Optionally, the positioning information specifically includes: the first position information of the positioning device determined by the location server based on the sending time and arrival time; and the satellite information used for GPS positioning of the positioning device determined by the location server based on the sending time and arrival time The determination unit specifically includes: a second positioning subunit, used to perform GPS positioning on the positioning device based on satellite information, and then determine the second position information of the positioning device; a determination subunit, used to synthesize the first position information and the second position information; The location information determines the current location information of the positioning device.

可选的,定位设备还包括:第二发送模块,用于在通过移动通信运营商的网络向代理服务器发送定位设备的当前位置信息之前,通过移动通信运营商的网络向分发服务器发送定位请求,定位请求中包含定位设备的标识信息和身份验证信息,以使分发服务器基于标识信息和身份验证信息确定标识信息具备免流量权限时,为定位设备分配用于定位设备以免流量方式访问网络的代理服务器。Optionally, the positioning device further includes: a second sending module, configured to send a positioning request to the distribution server through the network of the mobile communication operator before sending the current location information of the positioning device to the proxy server through the network of the mobile communication operator, The positioning request contains the identification information and authentication information of the positioning device, so that when the distribution server determines that the identification information has traffic-free permission based on the identification information and authentication information, the positioning device is assigned a proxy server for the positioning device to access the network in a traffic-free manner .

可选的,定位设备还包括:第一接收模块,用于接收代理服务器发送的预设标签,在定位设备访问网络过程中进行数据传输时携带预设标签,预设标签为免流量标识;或者,代理服务器的IP地址为预设IP地址,预设IP地址为免流量标识。Optionally, the positioning device further includes: a first receiving module, configured to receive a preset label sent by the proxy server, and carry the preset label when the positioning device performs data transmission during the process of accessing the network, and the preset label is a traffic-free identification; or , the IP address of the proxy server is the default IP address, and the default IP address is the traffic-free mark.

可选的,定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由移动网络运营商基于免流量标识将其计入指定服务商中,具体为:在确定出定位设备访问网络过程中的数据中包含预设标签时,将定位设备访问网络过程中的全部或部分数据流量计入指定服务商中;或定位设备访问网络过程中的数据传输经过预设IP地址的代理服务器,流经预设IP地址的全部或部分数据流量被计入指定服务商中。Optionally, all or part of the data traffic generated during the process of the positioning device accessing the network through the proxy server is counted by the mobile network operator in the designated service provider based on the traffic-free identifier, specifically: when the positioning device is determined to access the network When the data contains preset tags, all or part of the data traffic during the process of accessing the network by the positioning device is included in the designated service provider; or the data transmission during the process of accessing the network by the positioning device passes through a proxy server with a preset IP address and flows All or part of the data traffic of the preset IP address is counted to the designated service provider.

根据本发明实施例提供的位置获取的交互方法,本发明实施例还提供一种基于定位设备的位置获取方法,包括:According to the interactive method for obtaining a position provided by the embodiment of the present invention, the embodiment of the present invention also provides a method for obtaining a position based on a positioning device, including:

代理服务器接收定位设备通过移动通信运营商的网络发送的定位设备的当前位置信息;The proxy server receives the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator;

其中,定位设备进行访问网络过程中的数据传输标记有免流量标识,定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由移动网络运营商基于免流量标识将其计入指定服务商中。Among them, the data transmission during the process of accessing the network by the positioning device is marked with a traffic-free mark, and all or part of the data traffic generated during the process of accessing the network by the positioning device through a proxy server is counted by the mobile network operator based on the traffic-free mark to the designated service provider middle.

可选的,方法还包括:代理服务器将当前位置信息发送至一电子设备。Optionally, the method further includes: the proxy server sends the current location information to an electronic device.

可选的,在接收定位设备通过移动通信运营商的网络发送的定位设备的当前位置信息之前,方法还包括:代理服务器接收电子设备发送的位置获取请求;代理服务器将位置获取请求发送至定位设备,以使定位设备响应位置获取请求进而获取当前位置信息。Optionally, before receiving the current position information of the positioning device sent by the positioning device through the network of the mobile communication operator, the method further includes: the proxy server receives the position acquisition request sent by the electronic device; the proxy server sends the position acquisition request to the positioning device , so that the positioning device responds to the location acquisition request and obtains the current location information.

可选的,在代理服务器将当前位置信息发送至一电子设备之前,方法还包括:代理服务器接收到电子设备发送的位置获取请求;代理服务器响应位置获取请求,向电子设备发送当前位置信息。Optionally, before the proxy server sends the current location information to an electronic device, the method further includes: the proxy server receives a location acquisition request sent by the electronic device; the proxy server sends the current location information to the electronic device in response to the location acquisition request.

可选的,位置获取请求中包含电子设备的权限认证信息,代理服务器响应位置获取请求,向电子设备发送当前位置信息,具体为:代理服务器基于权限认证信息判断电子设备是否存在获取当前位置信息的权限;在代理服务器确定出电子设备具备权限时,将当前位置信息发送至电子设备。Optionally, the location acquisition request includes authority authentication information of the electronic device, and the proxy server responds to the location acquisition request and sends the current location information to the electronic device, specifically: the proxy server judges whether the electronic device has access to the current location information based on the authority authentication information. Authority; when the proxy server determines that the electronic device has authority, send the current location information to the electronic device.

可选的,代理服务器接收定位设备通过移动通信运营商的网络发送的定位设备的当前位置信息,具体为:接收定位设备定期获取的当前位置信息;或接收定位设备在基于当前位置信息确定出当前位置与预设位置之间的距离大于预设距离时,所发送的当前位置信息。Optionally, the proxy server receives the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator, specifically: receiving the current location information periodically obtained by the positioning device; or receiving the current location information determined by the positioning device based on the current location information. The current location information sent when the distance between the location and the preset location is greater than the preset distance.

可选的,在代理服务器接收定位设备通过移动通信运营商的网络发送的定位设备的当前位置信息之前,方法还包括:代理服务器接收位置服务器发送的对定位设备进行定位的定位信息,其中,定位信息由位置服务器基于定位信号由定位设备发送至基站的发送时间及抵达时间来确定;代理服务器将定位信息通过述移动通信运营商的网络发送至定位设备,以使定位设备基于定位信息确定出定位设备的当前位置信息。Optionally, before the proxy server receives the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator, the method further includes: the proxy server receives the positioning information for positioning the positioning device sent by the location server, wherein the positioning The information is determined by the location server based on the sending time and arrival time of the positioning signal sent by the positioning device to the base station; the proxy server sends the positioning information to the positioning device through the network of the mobile communication operator, so that the positioning device can determine the location based on the positioning information. The current location information of the device.

可选的,定位信息具体为:位置服务器基于发送时间和抵达时间所确定的定位设备的第一位置信息。Optionally, the positioning information is specifically: the first position information of the positioning device determined by the location server based on the sending time and the arrival time.

可选的,定位信息具体为:位置服务器基于发送时间及抵达时间确定的用于对定位设备进行GPS定位的卫星信息,卫星信息用于定位设备对定位设备进行GPS定位,从而确定出定位设备的第二位置信息。Optionally, the positioning information is specifically: satellite information for GPS positioning of the positioning device determined by the location server based on the sending time and arrival time, and the satellite information is used by the positioning device to perform GPS positioning of the positioning device, thereby determining the location of the positioning device. Second location information.

可选的,方法还包括:代理服务器接收定位设备通过移动通信运营商的网络发送的第二位置信息;代理服务器将第二位置信息发送至位置服务器,以使位置服务器基于第二位置信息和第一位置信息确定出当前位置信息,第一位置信息具体为:位置服务器基于发送时间和抵达时间所确定的定位设备的第一位置信息。Optionally, the method further includes: the proxy server receives the second location information sent by the positioning device through the network of the mobile communication operator; the proxy server sends the second location information to the location server, so that the location server can The current location information is determined by the location information, and the first location information is specifically: the first location information of the positioning device determined by the location server based on the sending time and the arrival time.

可选的,定位信息包括:位置服务器基于发送时间和抵达时间所确定的定位设备的第一位置信息;位置服务器基于发送时间及抵达时间确定的用于对定位设备进行GPS定位的卫星信息。Optionally, the positioning information includes: first position information of the positioning device determined by the location server based on the sending time and arrival time; satellite information for GPS positioning of the positioning device determined by the location server based on the sending time and arrival time.

可选的,方法还包括:分发服务器接收定位设备通过移动通信运营商的网络发送的定位请求,定位请求中包含定位设备的标识信息和身份验证信息;分发服务器基于标识信息和身份验证信息判断标识信息是否具备免流量权限;分发服务器在标识信息具备免流量权限时,为定位设备分配用于定位设备以免流量方式访问网络的代理服务器。Optionally, the method further includes: the distribution server receives a positioning request sent by the positioning device through a network of a mobile communication operator, and the positioning request includes identification information and identity verification information of the positioning device; the distribution server judges the identification information based on the identification information and identity verification information. Whether the information has traffic-free permission; when the distribution server identifies that the information has traffic-free permission, it allocates a proxy server for the positioning device to access the network in a traffic-free way for the positioning device.

可选的,代理服务器向定位设备发送预设标签,在定位设备访问网络过程中进行数据传输时携带预设标签,预设标签为免流量标识;或者,代理服务器的IP地址为预设IP地址,预设IP地址为免流量标识。Optionally, the proxy server sends a preset label to the positioning device, and carries the preset label when the positioning device transmits data during the process of accessing the network, and the preset label is a traffic-free identification; or, the IP address of the proxy server is the preset IP address , the default IP address is the traffic-free mark.

可选的,定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由移动网络运营商基于免流量标识将其计入指定服务商中,具体为:在确定出定位设备访问网络过程中的数据中包含预设标签时,将定位设备访问网络过程中的全部或部分数据流量计入指定服务商中;或定位设备访问网络过程中的数据传输经过预设IP地址的代理服务器,流经预设IP地址的全部或部分数据流量被计入指定服务商中。Optionally, all or part of the data traffic generated during the process of the positioning device accessing the network through the proxy server is counted by the mobile network operator in the designated service provider based on the traffic-free identifier, specifically: when the positioning device is determined to access the network When the data contains preset tags, all or part of the data traffic during the process of accessing the network by the positioning device is included in the designated service provider; or the data transmission during the process of accessing the network by the positioning device passes through a proxy server with a preset IP address and flows All or part of the data traffic of the preset IP address is counted to the designated service provider.

根据本发明实施例提供的位置获取的交互方法,本发明实施例还提供一种代理服务器,包括:According to the interaction method for location acquisition provided by the embodiment of the present invention, the embodiment of the present invention also provides a proxy server, including:

第二接收模块,用于接收定位设备通过移动通信运营商的网络发送的定位设备的当前位置信息;The second receiving module is used to receive the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator;

其中,定位设备进行访问网络过程中的数据传输标记有免流量标识,定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由移动网络运营商基于免流量标识将其计入指定服务商中。Among them, the data transmission during the process of accessing the network by the positioning device is marked with a traffic-free mark, and all or part of the data traffic generated during the process of accessing the network by the positioning device through a proxy server is counted by the mobile network operator based on the traffic-free mark to the designated service provider middle.

可选的,代理服务器还包括:第三发送模块,用于将当前位置信息发送至一电子设备。Optionally, the proxy server further includes: a third sending module, configured to send the current location information to an electronic device.

可选的,代理服务器还包括:第三接收模块,用于在接收定位设备通过移动通信运营商的网络发送的定位设备的当前位置信息之前,接收电子设备发送的位置获取请求;第四发送模块,用于将位置获取请求发送至定位设备,以使定位设备响应位置获取请求进而获取当前位置信息。Optionally, the proxy server further includes: a third receiving module, configured to receive the location acquisition request sent by the electronic device before receiving the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator; the fourth sending module , for sending a location acquisition request to the positioning device, so that the positioning device responds to the location acquisition request and obtains current location information.

可选的,代理服务器还包括:第四接收模块,用于在代理服务器将当前位置信息发送至一电子设备之前,接收到电子设备发送的位置获取请求;响应模块,用于响应位置获取请求,向电子设备发送当前位置信息。Optionally, the proxy server further includes: a fourth receiving module, configured to receive a location acquisition request sent by the electronic device before the proxy server sends the current location information to an electronic device; a response module, configured to respond to the location acquisition request, Send current location information to electronic devices.

可选的,响应模块,具体包括:第二判断单元,用于在位置获取请求中包含电子设备的权限认证信息时,基于权限认证信息判断电子设备是否存在获取当前位置信息的权限;第二发送单元,用于在确定出电子设备具备权限时,将当前位置信息发送至电子设备。Optionally, the response module specifically includes: a second judging unit, configured to judge whether the electronic device has permission to acquire current location information based on the permission authentication information when the location acquisition request includes the permission authentication information of the electronic device; the second sending A unit, configured to send the current location information to the electronic device when it is determined that the electronic device has permission.

可选的,第二接收模块,用于:接收定位设备定期获取的当前位置信息;或接收定位设备在基于当前位置信息确定出当前位置与预设位置之间的距离大于预设距离时,所发送的当前位置信息。Optionally, the second receiving module is configured to: receive the current location information periodically acquired by the positioning device; The current location information sent.

可选的,代理服务器,还包括:第五接收模块,用于在代理服务器接收定位设备通过移动通信运营商的网络发送的定位设备的当前位置信息之前,接收位置服务器发送的对定位设备进行定位的定位信息,其中,定位信息由位置服务器基于定位信号由定位设备发送至基站的发送时间及抵达时间来确定;第五发送模块,用于将定位信息通过述移动通信运营商的网络发送至定位设备,以使定位设备基于定位信息确定出定位设备的当前位置信息。Optionally, the proxy server further includes: a fifth receiving module, configured to receive the positioning device sent by the location server before the proxy server receives the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator. positioning information, wherein the positioning information is determined by the location server based on the sending time and arrival time of the positioning signal sent by the positioning device to the base station; the fifth sending module is used to send the positioning information to the positioning through the network of the mobile communication operator device, so that the positioning device determines the current location information of the positioning device based on the positioning information.

可选的,定位信息具体为:位置服务器基于发送时间和抵达时间所确定的定位设备的第一位置信息。Optionally, the positioning information is specifically: the first position information of the positioning device determined by the location server based on the sending time and the arrival time.

可选的,定位信息具体为:位置服务器基于发送时间及抵达时间确定的用于对定位设备进行GPS定位的卫星信息,卫星信息用于定位设备对定位设备进行GPS定位,从而确定出定位设备的第二位置信息。Optionally, the positioning information is specifically: satellite information for GPS positioning of the positioning device determined by the location server based on the sending time and arrival time, and the satellite information is used by the positioning device to perform GPS positioning of the positioning device, thereby determining the location of the positioning device. Second location information.

可选的,代理服务器还包括:第六接收模块,用于接收定位设备通过移动通信运营商的网络发送的第二位置信息;第六发送模块,用于将第二位置信息发送至位置服务器,以使位置服务器基于第二位置信息和第一位置信息确定出当前位置信息,第一位置信息具体为:位置服务器基于发送时间和抵达时间所确定的定位设备的第一位置信息。Optionally, the proxy server further includes: a sixth receiving module, configured to receive the second location information sent by the positioning device through a network of a mobile communication operator; a sixth sending module, configured to send the second location information to the location server, The location server is configured to determine the current location information based on the second location information and the first location information, specifically, the first location information is: the first location information of the positioning device determined by the location server based on the sending time and the arrival time.

可选的,定位信息包括:位置服务器基于发送时间和抵达时间所确定的定位设备的第一位置信息;位置服务器基于发送时间及抵达时间确定的用于对定位设备进行GPS定位的卫星信息。Optionally, the positioning information includes: first position information of the positioning device determined by the location server based on the sending time and arrival time; satellite information for GPS positioning of the positioning device determined by the location server based on the sending time and arrival time.

根据本发明实施例提供的位置获取的交互方法,本发明实施例还提供一种网络访问系统,请参考图5,包括:本发明任一实施例所介绍的代理服务器50及分发服务器51,分发服务器51包括:According to the interaction method of location acquisition provided by the embodiment of the present invention, the embodiment of the present invention also provides a network access system, please refer to FIG. Server 51 includes:

第七接收模块,用于接收定位设备52通过移动通信运营商的网络发送的定位请求,定位请求中包含定位设备52的标识信息和身份验证信息;判断模块,用于基于标识信息和身份验证信息判断标识信息是否具备免流量权限;分配模块,用于在标识信息具备免流量权限时,为定位设备52分配用于定位设备52以免流量方式访问网络的代理服务器50。The seventh receiving module is used to receive the positioning request sent by the positioning device 52 through the network of the mobile communication operator, and the positioning request includes the identification information and identity verification information of the positioning device 52; the judging module is used to Judging whether the identification information has the traffic-free permission; the allocation module is used to assign the positioning device 52 the proxy server 50 for the positioning device 52 to access the network in a traffic-free manner when the identification information has the traffic-free permission.

可选的,代理服务器50向定位设备52发送预设标签,在定位设备52访问网络过程中进行数据传输时携带预设标签,预设标签为免流量标识;或者,代理服务器50的IP地址为预设IP地址,预设IP地址为免流量标识。Optionally, the proxy server 50 sends a preset label to the positioning device 52, and carries the preset label when the positioning device 52 performs data transmission during access to the network, and the preset label is a flow-free identification; or, the IP address of the proxy server 50 is Default IP address, the default IP address is the traffic-free mark.

可选的,定位设备52通过代理服务器50访问网络过程中产生的全部或部分数据流量由移动网络运营商基于免流量标识将其计入指定服务商中,具体为:在确定出定位设备52访问网络过程中的数据中包含预设标签时,将定位设备52访问网络过程中的全部或部分数据流量计入指定服务商中;或定位设备52访问网络过程中的数据传输经过预设IP地址的代理服务器50,流经预设IP地址的全部或部分数据流量被计入指定服务商中。Optionally, all or part of the data traffic generated during the process of accessing the network by the positioning device 52 through the proxy server 50 is counted by the mobile network operator in the designated service provider based on the traffic-free identification, specifically: after determining that the positioning device 52 accesses the When the data in the network process contains preset tags, all or part of the data traffic in the process of accessing the network by the positioning device 52 is included in the designated service provider; or the data transmission in the process of accessing the network by the positioning device 52 passes through the preset IP address For the proxy server 50, all or part of the data traffic flowing through the preset IP address is included in the designated service provider.

可选的,系统还包括本发明任一实施例所介绍的定位设备52。Optionally, the system further includes the positioning device 52 described in any embodiment of the present invention.

本发明一个或多个实施例,至少具有以下有益效果:One or more embodiments of the present invention have at least the following beneficial effects:

由于在本发明实施例中,根据本发明的用于定位设备的数据传输方法,代理服务器接收定位设备通过移动通信运营商的网络发送的定位设备的当前位置信息;其中,定位设备进行访问网络过程中的数据传输标记有免流量标识,定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由移动网络运营商基于免流量标识将其计入指定服务商中。也就是说,在定位设备向其他电子设备发送定位设备的当前位置信息时,能够全部或者部分耗费指定服务商所耗费的数据流量,而部分或者完全不需要耗费定位设备的数据流量,由此缓解了现有技术中定位设备向其他电子设备发送当前位置信息时需要耗费定位设备的流量的技术问题,达到了降低定位设备向其他电子设备发送当前位置信息时所耗费的数据流量的技术效果。Because in the embodiment of the present invention, according to the data transmission method for the positioning device of the present invention, the proxy server receives the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator; wherein, the positioning device performs the process of accessing the network All or part of the data traffic generated during the process of accessing the network by the positioning device through the proxy server is counted by the mobile network operator in the designated service provider based on the free traffic logo. That is to say, when the positioning device sends the current location information of the positioning device to other electronic devices, all or part of the data traffic consumed by the designated service provider can be consumed, while part or all of the data traffic of the positioning device does not need to be consumed, thereby alleviating It solves the technical problem that the positioning device needs to consume the traffic of the positioning device when sending the current position information to other electronic devices in the prior art, and achieves the technical effect of reducing the data traffic consumed by the positioning device when sending the current position information to other electronic devices.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. And form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的定位设备、分发服务器、代理服务器及网络访问系统中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the components in the positioning device, the distribution server, the proxy server, and the network access system according to the embodiments of the present invention some or all of the features. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

本发明公开,A1、一种基于定位设备的位置获取方法,其特征在于,包括:The present invention discloses, A1, a location acquisition method based on a positioning device, characterized in that it includes:

代理服务器接收定位设备通过移动通信运营商的网络发送的所述定位设备的当前位置信息;The proxy server receives the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator;

其中,所述定位设备进行访问网络过程中的数据传输标记有免流量标识,所述定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由所述移动网络运营商基于所述免流量标识将其计入指定服务商中。Wherein, the data transmission during the process of accessing the network by the positioning device is marked with a traffic-free flag, and all or part of the data traffic generated during the process of accessing the network by the positioning device through a proxy server is provided by the mobile network operator based on the traffic-free Logo will be credited to the designated service provider.

A2、如权利要求A1所述的方法,其特征在于,所述方法还包括:A2. The method according to claim A1, further comprising:

所述代理服务器将所述当前位置信息发送至一电子设备。The proxy server sends the current location information to an electronic device.

A3、如权利要求A2所述的方法,其特征在于,在所述接收定位设备通过移动通信运营商的网络发送的所述定位设备的当前位置信息之前,所述方法还包括:A3. The method according to claim A2, wherein before receiving the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator, the method further comprises:

所述代理服务器接收所述电子设备发送的位置获取请求;The proxy server receives the location acquisition request sent by the electronic device;

所述代理服务器将所述位置获取请求发送至所述定位设备,以使所述定位设备响应所述位置获取请求进而获取所述当前位置信息。The proxy server sends the position obtaining request to the positioning device, so that the positioning device responds to the position obtaining request and obtains the current position information.

A4、如权利要求A2所述的方法,其特征在于,在所述代理服务器将所述当前位置信息发送至一电子设备之前,所述方法还包括:A4. The method according to claim A2, wherein before the proxy server sends the current location information to an electronic device, the method further comprises:

所述代理服务器接收到所述电子设备发送的位置获取请求;The proxy server receives the location acquisition request sent by the electronic device;

所述代理服务器响应所述位置获取请求,向所述电子设备发送所述当前位置信息。The proxy server sends the current location information to the electronic device in response to the location acquisition request.

A5、如权利要求A4所述的方法,其特征在于,所述位置获取请求中包含所述电子设备的权限认证信息,所述代理服务器响应所述位置获取请求,向所述电子设备发送所述当前位置信息,具体为:A5. The method according to claim A4, wherein the location acquisition request includes authority authentication information of the electronic device, and the proxy server sends the electronic device the electronic device in response to the location acquisition request. Current location information, specifically:

所述代理服务器基于所述权限认证信息判断所述电子设备是否存在获取所述当前位置信息的权限;The proxy server determines whether the electronic device has the authority to acquire the current location information based on the authority authentication information;

在所述代理服务器确定出所述电子设备具备所述权限时,将所述当前位置信息发送至所述电子设备。When the proxy server determines that the electronic device has the authority, send the current location information to the electronic device.

A6、如权利要求A1所述的方法,其特征在于,所述代理服务器接收定位设备通过移动通信运营商的网络发送的所述定位设备的当前位置信息,具体为:A6. The method according to claim A1, wherein the proxy server receives the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator, specifically:

接收所述定位设备定期获取的所述当前位置信息;或receiving the current location information periodically acquired by the positioning device; or

接收所述定位设备在基于所述当前位置信息确定出当前位置与预设位置之间的距离大于预设距离时,所发送的所述当前位置信息。receiving the current location information sent by the positioning device when it is determined based on the current location information that the distance between the current location and the preset location is greater than the preset distance.

A7、如权利要求A1-A6任一所述的方法,其特征在于,在所述代理服务器接收定位设备通过移动通信运营商的网络发送的所述定位设备的当前位置信息之前,所述方法还包括:A7. The method according to any one of claims A1-A6, characterized in that, before the proxy server receives the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator, the method further include:

所述代理服务器接收位置服务器发送的对定位设备进行定位的定位信息,其中,所述定位信息由所述位置服务器基于定位信号由定位设备发送至基站的发送时间及抵达时间来确定;The proxy server receives the positioning information sent by the location server to locate the positioning device, wherein the positioning information is determined by the location server based on the sending time and arrival time of the positioning signal sent by the positioning device to the base station;

所述代理服务器将所述定位信息通过述移动通信运营商的网络发送至所述定位设备,以使所述定位设备基于所述定位信息确定出所述定位设备的当前位置信息。The proxy server sends the positioning information to the positioning device through the network of the mobile communication operator, so that the positioning device determines the current position information of the positioning device based on the positioning information.

A8、如权利要求A7所述的方法,其特征在于,所述定位信息具体为:所述位置服务器基于所述发送时间和所述抵达时间所确定的所述定位设备的第一位置信息。A8. The method according to claim A7, wherein the positioning information is specifically: the first position information of the positioning device determined by the location server based on the sending time and the arrival time.

A9、如权利要求A7所述的方法,其特征在于,所述定位信息具体为:所述位置服务器基于所述发送时间及所述抵达时间确定的用于对所述定位设备进行GPS定位的卫星信息,所述卫星信息用于所述定位设备对所述定位设备进行GPS定位,从而确定出所述定位设备的第二位置信息。A9. The method according to claim A7, wherein the positioning information is specifically: the satellite used for GPS positioning of the positioning device determined by the location server based on the sending time and the arrival time information, the satellite information is used by the positioning device to perform GPS positioning on the positioning device, so as to determine the second position information of the positioning device.

A10、如权利要求A9所述的方法,其特征在于,所述方法还包括:A10, the method as claimed in claim A9, is characterized in that, described method also comprises:

所述代理服务器接收所述定位设备通过所述移动通信运营商的网络发送的所述第二位置信息;The proxy server receives the second location information sent by the positioning device through the network of the mobile communication operator;

所述代理服务器将所述第二位置信息发送至所述位置服务器,以使所述位置服务器基于所述第二位置信息和第一位置信息确定出所述当前位置信息,所述第一位置信息具体为:所述位置服务器基于所述发送时间和所述抵达时间所确定的所述定位设备的第一位置信息。The proxy server sends the second location information to the location server, so that the location server determines the current location information based on the second location information and the first location information, and the first location information Specifically, the location server determines the first location information of the positioning device based on the sending time and the arrival time.

A11、如权利要求A7所述的方法,其特征在于,所述定位信息包括:所述位置服务器基于所述发送时间和所述抵达时间所确定的所述定位设备的第一位置信息;所述位置服务器基于所述发送时间及所述抵达时间确定的用于对所述定位设备进行GPS定位的卫星信息。A11. The method according to claim A7, wherein the positioning information includes: the first position information of the positioning device determined by the location server based on the sending time and the arrival time; the The location server determines satellite information for GPS positioning of the positioning device based on the sending time and the arrival time.

A12、如权利要求A1-A6任一所述的方法,其特征在于,所述方法还包括:A12. The method according to any one of claims A1-A6, wherein the method further comprises:

分发服务器接收所述定位设备通过所述移动通信运营商的网络发送的定位请求,所述定位请求中包含所述定位设备的标识信息和身份验证信息;The distribution server receives the positioning request sent by the positioning device through the network of the mobile communication operator, and the positioning request includes identification information and identity verification information of the positioning device;

所述分发服务器基于所述标识信息和所述身份验证信息判断所述标识信息是否具备免流量权限;The distribution server judges whether the identification information has traffic-free permission based on the identification information and the identity verification information;

所述分发服务器在所述标识信息具备所述免流量权限时,为所述定位设备分配用于所述定位设备以免流量方式访问网络的所述代理服务器。When the identification information has the traffic-free permission, the distribution server allocates the proxy server for the positioning device to access the network in a traffic-free manner for the positioning device.

A13、如权利要求A12所述的方法,其特征在于,所述代理服务器向所述定位设备发送预设标签,在所述定位设备访问网络过程中进行数据传输时携带所述预设标签,所述预设标签为所述免流量标识;或者,A13. The method according to claim A12, wherein the proxy server sends a preset tag to the positioning device, and carries the preset tag during data transmission during the process of accessing the network by the positioning device, so The above-mentioned preset label is the above-mentioned traffic-free logo; or,

所述代理服务器的IP地址为预设IP地址,所述预设IP地址为所述免流量标识。The IP address of the proxy server is a preset IP address, and the preset IP address is the traffic-free identifier.

A14、如权利要求A13所述的方法,其特征在于,所述定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由所述移动网络运营商基于所述免流量标识将其计入指定服务商中,具体为:A14. The method according to claim A13, characterized in that all or part of the data traffic generated during the process of the positioning device accessing the network through the proxy server is counted by the mobile network operator based on the traffic-free identification Among the designated service providers, specifically:

在确定出所述定位设备访问网络过程中的数据中包含所述预设标签时,将所述定位设备访问网络过程中的全部或部分数据流量计入所述指定服务商中;或When it is determined that the data in the process of accessing the network by the positioning device includes the preset tag, counting all or part of the data traffic in the process of accessing the network by the positioning device into the designated service provider; or

所述定位设备访问网络过程中的数据传输经过所述预设IP地址的代理服务器,流经所述预设IP地址的全部或部分数据流量被计入所述所述指定服务商中。The data transmission in the process of the positioning device accessing the network passes through the proxy server with the preset IP address, and all or part of the data traffic flowing through the preset IP address is included in the designated service provider.

B15、一种代理服务器,其特征在于,包括:B15, a kind of proxy server, is characterized in that, comprises:

第二接收模块,用于接收定位设备通过移动通信运营商的网络发送的所述定位设备的当前位置信息;The second receiving module is configured to receive the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator;

其中,所述定位设备进行访问网络过程中的数据传输标记有免流量标识,所述定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由所述移动网络运营商基于所述免流量标识将其计入指定服务商中。Wherein, the data transmission during the process of accessing the network by the positioning device is marked with a traffic-free flag, and all or part of the data traffic generated during the process of accessing the network by the positioning device through a proxy server is provided by the mobile network operator based on the traffic-free Logo will be credited to the designated service provider.

B16、如权利要求B15所述的代理服务器,其特征在于,所述代理服务器还包括:B16, proxy server as claimed in claim B15, is characterized in that, described proxy server also comprises:

第三发送模块,用于将所述当前位置信息发送至一电子设备。A third sending module, configured to send the current location information to an electronic device.

B17、如权利要求B16所述的代理服务器,其特征在于,所述代理服务器还包括:B17, proxy server as claimed in claim B16, is characterized in that, described proxy server also comprises:

第三接收模块,用于在接收定位设备通过移动通信运营商的网络发送的所述定位设备的当前位置信息之前,接收所述电子设备发送的位置获取请求;A third receiving module, configured to receive a location acquisition request sent by the electronic device before receiving the current location information of the positioning device sent by the positioning device through a network of a mobile communication operator;

第四发送模块,用于将所述位置获取请求发送至所述定位设备,以使所述定位设备响应所述位置获取请求进而获取所述当前位置信息。A fourth sending module, configured to send the position obtaining request to the positioning device, so that the positioning device responds to the position obtaining request and obtains the current position information.

B18、如权利要求B16所述的代理服务器,其特征在于,所述代理服务器还包括:B18, proxy server as claimed in claim B16, is characterized in that, described proxy server also comprises:

第四接收模块,用于在代理服务器将所述当前位置信息发送至一电子设备之前,接收到所述电子设备发送的位置获取请求;A fourth receiving module, configured to receive a location acquisition request sent by the electronic device before the proxy server sends the current location information to the electronic device;

响应模块,用于响应所述位置获取请求,向所述电子设备发送所述当前位置信息。A response module, configured to send the current location information to the electronic device in response to the location acquisition request.

B19、如权利要求B18所述的代理服务器,其特征在于,所述响应模块,具体包括:B19, the proxy server as claimed in claim B18, is characterized in that, described response module specifically comprises:

第二判断单元,用于在所述位置获取请求中包含所述电子设备的权限认证信息时,基于所述权限认证信息判断所述电子设备是否存在获取所述当前位置信息的权限;A second judging unit, configured to judge whether the electronic device has permission to acquire the current location information based on the permission authentication information when the location acquisition request includes the permission authentication information of the electronic device;

第二发送单元,用于在确定出所述电子设备具备所述权限时,将所述当前位置信息发送至所述电子设备。A second sending unit, configured to send the current location information to the electronic device when it is determined that the electronic device has the authority.

B20、如权利要求B15所述的代理服务器,其特征在于,所述第二接收模块,用于:B20, proxy server as claimed in claim B15, is characterized in that, described second receiving module is used for:

接收所述定位设备定期获取的所述当前位置信息;或receiving the current location information periodically acquired by the positioning device; or

接收所述定位设备在基于所述当前位置信息确定出当前位置与预设位置之间的距离大于预设距离时,所发送的所述当前位置信息。receiving the current location information sent by the positioning device when it is determined based on the current location information that the distance between the current location and the preset location is greater than the preset distance.

B21、如权利要求B15-B20任一所述的代理服务器,其特征在于,所述代理服务器,还包括:B21, the proxy server as described in any one of claims B15-B20, is characterized in that, described proxy server also comprises:

第五接收模块,用于在代理服务器接收定位设备通过移动通信运营商的网络发送的所述定位设备的当前位置信息之前,接收位置服务器发送的对定位设备进行定位的定位信息,其中,所述定位信息由所述位置服务器基于定位信号由定位设备发送至基站的发送时间及抵达时间来确定;The fifth receiving module is configured to receive the positioning information sent by the location server for positioning the positioning device before the proxy server receives the current location information of the positioning device sent by the positioning device through the network of the mobile communication operator, wherein the The positioning information is determined by the location server based on the sending time and arrival time of the positioning signal sent by the positioning device to the base station;

第五发送模块,用于将所述定位信息通过述移动通信运营商的网络发送至所述定位设备,以使所述定位设备基于所述定位信息确定出所述定位设备的当前位置信息。A fifth sending module, configured to send the positioning information to the positioning device through the network of the mobile communication operator, so that the positioning device determines the current position information of the positioning device based on the positioning information.

B22、如权利要求B21所述的代理服务器,其特征在于,所述定位信息具体为:所述位置服务器基于所述发送时间和所述抵达时间所确定的所述定位设备的第一位置信息。B22. The proxy server according to claim B21, wherein the positioning information is specifically: the first position information of the positioning device determined by the location server based on the sending time and the arrival time.

B23、如权利要求B21所述的代理服务器,其特征在于,所述定位信息具体为:所述位置服务器基于所述发送时间及所述抵达时间确定的用于对所述定位设备进行GPS定位的卫星信息,所述卫星信息用于所述定位设备对所述定位设备进行GPS定位,从而确定出所述定位设备的第二位置信息。B23. The proxy server according to claim B21, wherein the positioning information is specifically: the location server determines the GPS location for the positioning device based on the sending time and the arrival time Satellite information, where the satellite information is used by the positioning device to perform GPS positioning on the positioning device, so as to determine the second position information of the positioning device.

B24、如权利要求B23所述的代理服务器,其特征在于,所述代理服务器还包括:第六接收模块,用于接收所述定位设备通过所述移动通信运营商的网络发送的所述第二位置信息;B24. The proxy server according to claim B23, characterized in that, the proxy server further comprises: a sixth receiving module, configured to receive the second location information sent by the positioning device through the network of the mobile communication operator. location information;

第六发送模块,用于将所述第二位置信息发送至所述位置服务器,以使所述位置服务器基于所述第二位置信息和第一位置信息确定出所述当前位置信息,所述第一位置信息具体为:所述位置服务器基于所述发送时间和所述抵达时间所确定的所述定位设备的第一位置信息。A sixth sending module, configured to send the second location information to the location server, so that the location server determines the current location information based on the second location information and the first location information, the second location information The location information is specifically: first location information of the positioning device determined by the location server based on the sending time and the arrival time.

B25、如权利要求B21所述的代理服务器,其特征在于,所述定位信息包括:所述位置服务器基于所述发送时间和所述抵达时间所确定的所述定位设备的第一位置信息;所述位置服务器基于所述发送时间及所述抵达时间确定的用于对所述定位设备进行GPS定位的卫星信息。B25. The proxy server according to claim B21, wherein the positioning information includes: the first position information of the positioning device determined by the location server based on the sending time and the arrival time; The satellite information used for GPS positioning of the positioning device determined by the location server based on the sending time and the arrival time.

C26、一种网络访问系统,其特征在于,包括:本发明任一实施例所介绍的代理服务器及分发服务器,所述分发服务器包括:C26. A network access system, characterized in that it includes: the proxy server and distribution server introduced in any embodiment of the present invention, and the distribution server includes:

第七接收模块,用于接收所述定位设备通过所述移动通信运营商的网络发送的定位请求,所述定位请求中包含所述定位设备的标识信息和身份验证信息;A seventh receiving module, configured to receive a positioning request sent by the positioning device through the network of the mobile communication operator, where the positioning request includes identification information and identity verification information of the positioning device;

判断模块,用于基于所述标识信息和所述身份验证信息判断所述标识信息是否具备免流量权限;A judging module, configured to judge whether the identification information has traffic-free permission based on the identification information and the identity verification information;

分配模块,用于在所述标识信息具备所述免流量权限时,为所述定位设备分配用于所述定位设备以免流量方式访问网络的所述代理服务器。An allocation module, configured to allocate, to the positioning device, the proxy server for the positioning device to access the network in a traffic-free manner when the identification information has the traffic-free permission.

C27、如权利要求C26所述的系统,其特征在于,所述代理服务器向所述定位设备发送预设标签,在所述定位设备访问网络过程中进行数据传输时携带所述预设标签,所述预设标签为所述免流量标识;或者,C27. The system according to claim C26, wherein the proxy server sends a preset tag to the positioning device, and the preset tag is carried when the positioning device performs data transmission during access to the network, so The above-mentioned preset label is the above-mentioned traffic-free logo; or,

所述代理服务器的IP地址为预设IP地址,所述预设IP地址为所述免流量标识。The IP address of the proxy server is a preset IP address, and the preset IP address is the traffic-free identifier.

C28、如权利要求C26所述的系统,其特征在于,所述定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由所述移动网络运营商基于所述免流量标识将其计入指定服务商中,具体为:C28. The system according to claim C26, characterized in that all or part of the data traffic generated during the process of the positioning device accessing the network through the proxy server is counted by the mobile network operator based on the traffic-free identification Among the designated service providers, specifically:

在确定出所述定位设备访问网络过程中的数据中包含所述预设标签时,将所述定位设备访问网络过程中的全部或部分数据流量计入所述指定服务商中;或When it is determined that the data in the process of accessing the network by the positioning device includes the preset tag, counting all or part of the data traffic in the process of accessing the network by the positioning device into the designated service provider; or

所述定位设备访问网络过程中的数据传输经过所述预设IP地址的代理服务器,流经所述预设IP地址的全部或部分数据流量被计入所述所述指定服务商中。The data transmission in the process of the positioning device accessing the network passes through the proxy server with the preset IP address, and all or part of the data traffic flowing through the preset IP address is included in the designated service provider.

C29、如权利要求C26所述的系统,其特征在于,所述系统还包括定位设备,所述定位设备包括:C29, the system as claimed in claim C26, is characterized in that, described system also comprises positioning equipment, and described positioning equipment comprises:

第一确定模块,用于确定出定位设备的当前位置信息;A first determining module, configured to determine the current location information of the positioning device;

第一发送模块,用于通过移动通信运营商的网络向代理服务器发送所述定位设备的当前位置信息;The first sending module is configured to send the current location information of the positioning device to the proxy server through the network of the mobile communication operator;

其中,所述定位设备进行访问网络过程中的数据传输标记有免流量标识,所述定位设备通过代理服务器访问网络过程中产生的全部或部分数据流量由所述移动网络运营商基于所述免流量标识将其计入指定服务商中。Wherein, the data transmission during the process of accessing the network by the positioning device is marked with a traffic-free flag, and all or part of the data traffic generated during the process of accessing the network by the positioning device through a proxy server is provided by the mobile network operator based on the traffic-free Logo will be credited to the designated service provider.

Claims (10)

1. A position acquisition method based on positioning equipment is characterized by comprising the following steps:
the method comprises the steps that a proxy server receives current position information of positioning equipment, which is sent by the positioning equipment through a network of a mobile communication operator;
the positioning device marks a flow-free identifier for data transmission in the process of accessing the network, and the mobile network operator counts all or part of data flow generated in the process of accessing the network through the proxy server into a specified service provider based on the flow-free identifier.
2. The method of claim 1, wherein the method further comprises:
and the proxy server sends the current position information to an electronic device.
3. The method of claim 2, wherein prior to said receiving the current location information of the positioning device sent by the positioning device over a network of a mobile communications carrier, the method further comprises:
the proxy server receives a position acquisition request sent by the electronic equipment;
and the proxy server sends the position acquisition request to the positioning equipment so that the positioning equipment responds to the position acquisition request to further acquire the current position information.
4. The method of claim 2, wherein prior to the proxy server sending the current location information to an electronic device, the method further comprises:
the proxy server receives a position acquisition request sent by the electronic equipment;
and the proxy server responds to the position acquisition request and sends the current position information to the electronic equipment.
5. The method according to claim 4, wherein the location acquisition request includes authorization authentication information of the electronic device, and the proxy server sends the current location information to the electronic device in response to the location acquisition request, specifically:
the proxy server judges whether the electronic equipment has the authority to acquire the current position information or not based on the authority authentication information;
and when the proxy server determines that the electronic equipment has the right, the current position information is sent to the electronic equipment.
6. The method according to claim 1, wherein the proxy server receives current location information of the positioning device sent by the positioning device through a network of a mobile communication operator, specifically:
receiving the current position information periodically acquired by the positioning equipment; or
And receiving the current position information sent by the positioning equipment when the positioning equipment determines that the distance between the current position and the preset position is greater than the preset distance based on the current position information.
7. The method of any of claims 1-6, wherein prior to the proxy server receiving current location information of the positioning device sent by the positioning device over a network of a mobile communications carrier, the method further comprises:
the proxy server receives positioning information which is sent by a position server and used for positioning the positioning equipment, wherein the positioning information is determined by the position server based on sending time and arrival time of a positioning signal sent to a base station by the positioning equipment;
and the proxy server sends the positioning information to the positioning equipment through the network of the mobile communication operator so that the positioning equipment determines the current position information of the positioning equipment based on the positioning information.
8. The method according to claim 7, wherein the positioning information is specifically: the location server determines first location information of the positioning device based on the transmission time and the arrival time.
9. A proxy server, comprising:
the second receiving module is used for receiving the current position information of the positioning equipment, which is sent by the positioning equipment through a network of a mobile communication operator;
the positioning device marks a flow-free identifier for data transmission in the process of accessing the network, and the mobile network operator counts all or part of data flow generated in the process of accessing the network through the proxy server into a specified service provider based on the flow-free identifier.
10. A network access system, comprising: the proxy server and the distribution server introduced in any embodiment of the present invention include:
a seventh receiving module, configured to receive a positioning request sent by the positioning device through a network of the mobile communications operator, where the positioning request includes identification information and authentication information of the positioning device;
the judging module is used for judging whether the identification information has the flow-free permission or not based on the identification information and the identity authentication information;
and the distribution module is used for distributing the proxy server for the positioning equipment to access the network in a flow-free mode when the identification information has the flow-free right.
CN201510373597.9A 2015-06-30 2015-06-30 A kind of location acquiring method based on positioning equipment, proxy server and system Active CN104980889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510373597.9A CN104980889B (en) 2015-06-30 2015-06-30 A kind of location acquiring method based on positioning equipment, proxy server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510373597.9A CN104980889B (en) 2015-06-30 2015-06-30 A kind of location acquiring method based on positioning equipment, proxy server and system

Publications (2)

Publication Number Publication Date
CN104980889A true CN104980889A (en) 2015-10-14
CN104980889B CN104980889B (en) 2016-11-23

Family

ID=54276870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510373597.9A Active CN104980889B (en) 2015-06-30 2015-06-30 A kind of location acquiring method based on positioning equipment, proxy server and system

Country Status (1)

Country Link
CN (1) CN104980889B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108709550A (en) * 2018-05-25 2018-10-26 北斗时空信息技术研究院(北京)有限公司 It is a kind of with trip assistant APP and connection method
CN110794821A (en) * 2019-01-25 2020-02-14 长城汽车股份有限公司 Vehicle-mounted control device, field end positioning device, vehicle control system and vehicle
WO2022242434A1 (en) * 2021-05-18 2022-11-24 华为技术有限公司 Positioning method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1638521A (en) * 2004-01-08 2005-07-13 华为技术有限公司 Method for processing position information request sent by user's device
CN102946446A (en) * 2012-12-10 2013-02-27 深圳市凯立德科技股份有限公司 Data download method and positioning and navigation terminal
CN103841204A (en) * 2014-03-14 2014-06-04 北京奇虎科技有限公司 Traffic-free downloading method, device and system based on mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1638521A (en) * 2004-01-08 2005-07-13 华为技术有限公司 Method for processing position information request sent by user's device
CN102946446A (en) * 2012-12-10 2013-02-27 深圳市凯立德科技股份有限公司 Data download method and positioning and navigation terminal
CN103841204A (en) * 2014-03-14 2014-06-04 北京奇虎科技有限公司 Traffic-free downloading method, device and system based on mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108709550A (en) * 2018-05-25 2018-10-26 北斗时空信息技术研究院(北京)有限公司 It is a kind of with trip assistant APP and connection method
CN110794821A (en) * 2019-01-25 2020-02-14 长城汽车股份有限公司 Vehicle-mounted control device, field end positioning device, vehicle control system and vehicle
WO2022242434A1 (en) * 2021-05-18 2022-11-24 华为技术有限公司 Positioning method and apparatus

Also Published As

Publication number Publication date
CN104980889B (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN104902454B (en) Method for controlling mobile terminal to acquire data, gateway and network access system
CN105323240A (en) Method for monitoring data traffic and mobile terminal
CN104954487B (en) A kind of method, proxy server and system being carried out by network positioning
CN104980889B (en) A kind of location acquiring method based on positioning equipment, proxy server and system
CN104994520A (en) Method for mobile terminal traffic sharing, and mobile terminals
CN104954488B (en) A kind of method for network access control, the distribution server and network access system
CN105120444B (en) A kind of image transfer method, proxy server and network access system
CN105142124B (en) A kind of Network Access Method and mobile terminal applied to mobile terminal
CN104980958B (en) A kind of method and mobile terminal carrying out network login
CN104954493B (en) A kind of method, proxy server and system accessing game server
CN105120445B (en) A kind of network access authority control method, the distribution server and network access system
CN104902453A (en) Mobile terminal and method for controlling network access permission of mobile terminal
CN109525991A (en) A kind of method, the distribution server and system carrying out network login
CN104933614B (en) It is a kind of applied to the purchase method of mobile terminal, proxy server and system
CN104968049B (en) A method for positioning a navigation device and the navigation device
CN105162754B (en) Access the method and mobile terminal of game server
CN105101079A (en) A location transmission method for positioning equipment and positioning equipment
CN104954489B (en) A method for accessing a network, a proxy server and a network access system
CN104980908B (en) The Network Access Method of wireless Internet card and wireless Internet card
CN105142123B (en) Method, Distributor and the system of network access are carried out based on wireless Internet card
CN109526009A (en) A kind of communication means, mobile terminal and system
CN105101144B (en) A kind of acquisition data method and mobile terminal for mobile terminal
CN104935979B (en) Image transmission method for digital camera and digital camera
CN105101286A (en) A traffic statistics method and gateway, method and system for accessing network
CN104994521A (en) Method for mobile terminals to share flow and mobile terminals

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220727

Address after: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee after: 3600 Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230712

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing Hongxiang Technical Service Co.,Ltd.

Address before: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee before: 3600 Technology Group Co.,Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing 360 Zhiling Technology Co.,Ltd.

Country or region after: China

Address before: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee before: Beijing Hongxiang Technical Service Co.,Ltd.

Country or region before: China