技术领域Technical field
本申请实施例涉及辅助定位技术领域,特别涉及一种AGPS定位启动方法、装置、设备、介质及程序产品。The embodiments of the present application relate to the field of assisted positioning technology, and in particular to an AGPS positioning startup method, device, equipment, medium and program product.
背景技术Background technique
辅助全球卫星定位系统(Assisted Global Positioning System,AGPS)是在全球卫星定位系统(Global Positioning System,GPS)通过卫星接收定位信号的基础上,同时结合移动运营商所提供的基站的定位信息来进行辅助定位,如此可以提高终端(UserEquipment,UE)定位的速度。The Assisted Global Positioning System (AGPS) is based on the Global Positioning System (GPS) receiving positioning signals through satellites, and is assisted by combining the positioning information of the base stations provided by mobile operators. Positioning, which can improve the speed of terminal (UserEquipment, UE) positioning.
终端发起AGPS定位时,获取安全用户平面定位(Secure User Plane Location,SUPL)域名,之后向域名系统(Domain Name System,DNS)服务器请求SUPL域名解析,获得网际互连协议(Internet Protocol,IP)地址,接入上述IP地址,启动AGPS定位。When the terminal initiates AGPS positioning, it obtains the Secure User Plane Location (SUPL) domain name, then requests the SUPL domain name resolution from the Domain Name System (DNS) server, obtains the Internet Protocol (IP) address, accesses the above IP address, and starts AGPS positioning.
在上述过程中存在解析得到的IP地址不可用的情况,导致终端接入IP地址失败,造成AGPS无法正常工作。In the above process, the IP address obtained by resolution may not be available, causing the terminal to fail to access the IP address and causing AGPS to fail to work properly.
发明内容Contents of the invention
本申请实施例提供了一种AGPS定位启动方法、装置、设备、介质及程序产品。所述技术方案如下:Embodiments of the present application provide an AGPS positioning startup method, device, equipment, media and program products. The technical solutions are as follows:
根据本申请的一方面内容,提供了一种AGPS定位启动方法,所述方法由终端执行,所述方法包括:According to one aspect of the present application, an AGPS positioning startup method is provided. The method is executed by a terminal. The method includes:
获取SUPL域名;Obtain SUPL domain name;
从所述终端的本地存储中查询到所述SUPL域名对应的本地IP地址;所述本地IP地址是所述终端在历史AGPS定位过程中,从DNS服务器中获得的且成功接入过的IP地址;The local IP address corresponding to the SUPL domain name is queried from the local storage of the terminal; the local IP address is the IP address that the terminal obtained from the DNS server and successfully accessed during the historical AGPS positioning process. ;
成功接入所述本地IP地址,启动AGPS定位。Successfully access the local IP address and start AGPS positioning.
根据本申请的另一方面内容,提供了一种AGPS定位启动装置,所述装置包括:According to another aspect of the present application, an AGPS positioning activation device is provided, and the device includes:
获取模块,用于获取SUPL域名;Obtain module, used to obtain SUPL domain name;
查询模块,用于从所述终端的本地存储中查询到所述SUPL域名对应的本地IP地址,所述本地IP地址是所述终端在历史AGPS定位过程中,从DNS服务器中获得的且成功接入过的IP地址;Query module, used to query the local IP address corresponding to the SUPL domain name from the local storage of the terminal. The local IP address is obtained by the terminal from the DNS server during the historical AGPS positioning process and successfully connected. Entered IP address;
接入模块,用于成功接入所述本地IP地址,启动AGPS定位。The access module is used to successfully access the local IP address and start AGPS positioning.
根据本申请的另一方面内容,提供了一种终端,所述终端包括处理器、与所述处理器相连的存储器,所述存储器上存储有程序指令,所述处理器执行所述程序指令时实现如本申请各个方面提供的AGPS定位启动方法。According to another aspect of the present application, a terminal is provided. The terminal includes a processor and a memory connected to the processor. Program instructions are stored on the memory. When the processor executes the program instructions, Implement the AGPS positioning startup method as provided in various aspects of this application.
根据本申请的另一方面内容,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有程序指令,所述程序指令被处理器执行时实现如本申请各个方面提供的AGPS定位启动方法。According to another aspect of the present application, a computer-readable storage medium is provided. Program instructions are stored in the computer-readable storage medium. When the program instructions are executed by a processor, the AGPS as provided in various aspects of the present application is implemented. Positioning startup method.
根据本申请的另一方面内容,提供了一种计算机程序产品(或计算机程序),所述计算机程序产品(或计算机程序)包括计算机指令,所述计算机指令存储在计算机可读存储介质中;计算机设备的处理器从所述计算机可读存储介质读取所述计算机指令,所述处理器执行所述计算机指令,使得所述计算机设备执行上述AGPS定位启动方法的各种可选实现方式中提供的方法。According to another aspect of the present application, a computer program product (or computer program) is provided. The computer program product (or computer program) includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; computer The processor of the device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps provided in various optional implementations of the above AGPS positioning startup method. method.
根据本申请的另一个方面内容,提供了一种芯片,所述芯片包括可编程逻辑电路和/或程序指令,当所述芯片运行时,用于实现如本申请各个方面提供的AGPS定位启动方法。According to another aspect of the present application, a chip is provided. The chip includes programmable logic circuits and/or program instructions. When the chip is run, it is used to implement the AGPS positioning startup method as provided in various aspects of the present application. .
本申请实施例提供的技术方案带来的有益效果可以包括:The beneficial effects brought by the technical solutions provided by the embodiments of this application may include:
终端在启动AGPS定位的过程中,可以从本地存储中查询是否存在SUPL域名对应的本地IP地址,在查询到SUPL域名对应的本地IP地址的情况下,直接接入本地IP地址,这一本地IP地址是终端在历史AGPS定位过程中从DNS服务器中获得的IP地址,且终端成功接入过本地IP地址,选择接入本地IP地址,能够成功接入SUPL服务器的成功率高,也即提高了终端一次接入SUPL的成功率,大概率地避免了多次尝试连接SUPL服务器的情况,进而提高了成功连接SUPL服务器的效率。且成功接入本地IP地址之后,不再需要向DNS服务器请求SUPL域名解析,节省了对SUPL域名解析获取IP地址的步骤,减少了AGPS定位所需花费的时间,进一步地提高成功连接SUPL服务器的效率。During the process of starting AGPS positioning, the terminal can query whether there is a local IP address corresponding to the SUPL domain name from the local storage. If the local IP address corresponding to the SUPL domain name is found, it can directly access the local IP address. This local IP The address is the IP address obtained by the terminal from the DNS server during the historical AGPS positioning process, and the terminal has successfully accessed the local IP address. If it chooses to access the local IP address, the success rate of successfully accessing the SUPL server is high, which means that the terminal has a high success rate. The success rate of a terminal accessing SUPL at one time can avoid multiple attempts to connect to the SUPL server with a high probability, thereby improving the efficiency of successfully connecting to the SUPL server. And after successfully accessing the local IP address, it is no longer necessary to request SUPL domain name resolution from the DNS server, which saves the steps of resolving the SUPL domain name to obtain the IP address, reduces the time required for AGPS positioning, and further improves the chance of successfully connecting to the SUPL server. efficiency.
附图说明Description of drawings
为了更清楚地介绍本申请实施例中的技术方案,下面将对本申请实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly introduce the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
图1示出了本申请一个示例性实施例提供的AGPS定位启动方法的流程图;Figure 1 shows a flow chart of an AGPS positioning startup method provided by an exemplary embodiment of the present application;
图2示出了本申请一个示例性实施例提供的通信系统的示意图;Figure 2 shows a schematic diagram of a communication system provided by an exemplary embodiment of the present application;
图3示出了本申请另一个示例性实施例提供的AGPS定位启动方法的流程图;FIG3 shows a flow chart of an AGPS positioning start method provided by another exemplary embodiment of the present application;
图4示出了本申请另一个示例性实施例提供的AGPS定位启动方法的流程图;Figure 4 shows a flow chart of an AGPS positioning startup method provided by another exemplary embodiment of the present application;
图5示出了本申请另一个示例性实施例提供的AGPS定位启动方法的流程图;Figure 5 shows a flow chart of an AGPS positioning startup method provided by another exemplary embodiment of the present application;
图6示出了本申请另一个示例性实施例提供的AGPS定位启动方法的流程图;Figure 6 shows a flow chart of an AGPS positioning startup method provided by another exemplary embodiment of the present application;
图7示出了本申请另一个示例性实施例提供的AGPS定位启动方法的流程图;Figure 7 shows a flow chart of an AGPS positioning startup method provided by another exemplary embodiment of the present application;
图8示出了本申请另一个示例性实施例提供的AGPS定位启动方法的流程图;Figure 8 shows a flow chart of an AGPS positioning startup method provided by another exemplary embodiment of the present application;
图9示出了本申请一个示例性实施例提供的AGPS定位启动装置的框图;FIG9 shows a block diagram of an AGPS positioning start device provided by an exemplary embodiment of the present application;
图10示出了本申请一个示例性实施例提供的计算机设备的结构示意图。Figure 10 shows a schematic structural diagram of a computer device provided by an exemplary embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the appended claims.
在本申请的描述中,需要理解的是,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。在本申请的描述中,需要说明的是,除非另有明确的规定和限定,术语“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。此外,在本申请的描述中,除非另有说明,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。In the description of the present application, it should be understood that the terms "first", "second", etc. are used for descriptive purposes only and shall not be understood as indicating or implying relative importance. In the description of this application, it should be noted that, unless otherwise clearly stated and limited, the terms "connected" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection. Ground connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood on a case-by-case basis. Furthermore, in the description of this application, "plurality" means two or more unless otherwise specified. "And/or" describes the relationship between related objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the related objects are in an "or" relationship.
终端发起AGPS定位时,需要将SUPL域名发送至DNS服务器,请求DNS服务器对SUPL域名进行解析,获得SUPL域名对应的多个IP地址,通过上述多个IP地址中的一个接入SUPL服务器。但是,在一些运营商网络下并非是解析后的所有IP地址均可用,如果接入不可用的IP地址,会造成AGPS无法正常工作。When the terminal initiates AGPS positioning, it needs to send the SUPL domain name to the DNS server, request the DNS server to resolve the SUPL domain name, obtain multiple IP addresses corresponding to the SUPL domain name, and access the SUPL server through one of the above multiple IP addresses. However, in some operator networks, not all resolved IP addresses are available. If unavailable IP addresses are accessed, AGPS will not work properly.
为了提高终端接入SUPL域名对应的IP地址的成功率与效率,本申请提出了一种AGPS定位启动方法,可以在终端中存储成功接入过的SUPL服务器的IP地址,后续的AGPS定位过程中,终端可以基于上述成功接入过的IP地址,去选择所要接入的SUPL服务器的IP地址。示例性的,如图1所示,示出了本申请一个示例性实施例提供的AGPS定位启动方法的流程图,该方法由终端执行,该方法包括:In order to improve the success rate and efficiency of the terminal accessing the IP address corresponding to the SUPL domain name, the present application proposes an AGPS positioning start method, which can store the IP address of the SUPL server that has been successfully accessed in the terminal. In the subsequent AGPS positioning process, the terminal can select the IP address of the SUPL server to be accessed based on the above-mentioned successfully accessed IP address. Exemplarily, as shown in FIG1, a flowchart of the AGPS positioning start method provided by an exemplary embodiment of the present application is shown, and the method is executed by the terminal, and the method includes:
步骤101,发起AGPS定位。Step 101: Initiate AGPS positioning.
示例性的,终端运行的应用程序请求定位服务,终端发起AGPS定位;或者,终端运行的操作系统请求定位服务,终端发起AGPS定位。For example, the application running on the terminal requests positioning services, and the terminal initiates AGPS positioning; or the operating system running on the terminal requests positioning services, and the terminal initiates AGPS positioning.
步骤102,连接DNS服务器。Step 102, connect to the DNS server.
终端在发起AGPS定位之后,连接DNS服务器;响应于终端成功连接DNS服务器,执行步骤103;响应于终端连接DNS服务器失败,执行步骤105。After initiating AGPS positioning, the terminal connects to the DNS server; in response to the terminal successfully connecting to the DNS server, step 103 is executed; in response to the terminal failing to connect to the DNS server, step 105 is executed.
步骤103,SUPL域名解析。Step 103, SUPL domain name resolution.
终端向DNS服务器发送域名解析请求,域名解析请求中携带有SUPL域名;由DNS服务器响应域名解析请求,对SUPL域名进行解析,得到至少两个IP地址;终端接收DNS服务器的反馈信息;响应于上述反馈信息包括SUPL域名对应的至少两个IP地址,终端确定SUPL域名解析成功,执行步骤104;响应于上述反馈信息指示SUPL域名解析失败,执行步骤105。The terminal sends a domain name resolution request to the DNS server, and the domain name resolution request carries the SUPL domain name; the DNS server responds to the domain name resolution request, parses the SUPL domain name, and obtains at least two IP addresses; the terminal receives feedback information from the DNS server; in response to the above The feedback information includes at least two IP addresses corresponding to the SUPL domain name. The terminal determines that the SUPL domain name resolution is successful and proceeds to step 104; in response to the feedback information indicating that the SUPL domain name resolution fails, the terminal proceeds to step 105.
步骤104,对比本地IP地址数据库。Step 104, compare with the local IP address database.
终端中设置有本地IP地址数据库,本地IP地址数据库中存储有IP列表,IP列表中SUPL域名与IP地址一一对应存储,其中,IP列表中存储的IP地址是终端在历史过程中从DNS服务器中获取的且成功接入过的IP地址;终端从IP列表中查询得到与上述一个SUPL域名对应的本地IP地址,将上述至少两个IP地址分别与上述本地IP地址进行匹配;响应于上述至少两个IP地址中存在上述本地IP地址,也即在上述至少两个IP地址中匹配到与本地IP地址相同的IP地址,优先接入至少两个IP地址中的本地IP地址,执行步骤108;响应于上述至少两个IP地址均与上述本地IP地址不同,执行步骤105。A local IP address database is set up in the terminal. An IP list is stored in the local IP address database. The SUPL domain name and IP address in the IP list are stored in one-to-one correspondence. Among them, the IP addresses stored in the IP list are obtained by the terminal from the DNS server in the historical process. The IP address obtained from and successfully accessed; the terminal queries the IP list to obtain the local IP address corresponding to the above-mentioned SUPL domain name, and matches the above-mentioned at least two IP addresses with the above-mentioned local IP address respectively; in response to the above-mentioned at least The above-mentioned local IP address exists in the two IP addresses, that is, the IP address that is the same as the local IP address is matched among the above-mentioned at least two IP addresses, and the local IP address among the at least two IP addresses is preferentially accessed, and step 108 is executed; In response to the at least two IP addresses being different from the local IP address, step 105 is performed.
步骤105,优先本地IP地址数据库。Step 105: Prioritize the local IP address database.
响应于本地IP地址数据库中存储有SUPL域名对应的本地IP地址,终端优先接入本地IP地址;终端接入本地IP地址成功,执行步骤108;终端接入本地IP地址失败,执行步骤106。In response to the local IP address corresponding to the SUPL domain name being stored in the local IP address database, the terminal preferentially accesses the local IP address; if the terminal successfully accesses the local IP address, perform step 108; if the terminal fails to access the local IP address, perform step 106.
步骤106,DNS服务器提供的第一IP地址。Step 106, the first IP address provided by the DNS server.
示例性的,在至少两个IP地址包括本地IP地址的情况下,第一IP地址是指至少两个IP地址中除本地IP地址之外的IP地址;在至少两个IP地址不包括本地IP地址的情况下,第一IP地址是指至少两个IP地址中的任意IP地址。终端接入第一IP地址;终端接入第一IP地址成功,执行步骤107和步骤108。For example, when at least two IP addresses include local IP addresses, the first IP address refers to the IP address other than the local IP address among the at least two IP addresses; when at least two IP addresses do not include local IP addresses, In the case of addresses, the first IP address refers to any IP address among at least two IP addresses. The terminal accesses the first IP address; the terminal accesses the first IP address successfully and executes steps 107 and 108.
示例性的,终端在接入本地IP地址失败的情况下,从剩余IP地址中选取一个第一IP地址接入,响应于成功接入第一IP地址,执行步骤107和步骤108;其中,剩余IP地址包括至少两个IP地址中除本地IP地址之外的至少一个IP地址。Exemplarily, when the terminal fails to access the local IP address, it selects a first IP address from the remaining IP addresses to access, and in response to successfully accessing the first IP address, performs steps 107 and 108; wherein, the remaining The IP address includes at least one IP address other than the local IP address among the at least two IP addresses.
在一些实施例中,第一IP地址可以包括至少两个,终端在接入一个第一IP地址失败的情况下,接入另一个第一IP地址。In some embodiments, the first IP address may include at least two, and when the terminal fails to access one first IP address, the terminal accesses another first IP address.
在一些实施例中,终端接入第一IP地址失败之后,还可以再次向DNS服务器发送域名解析请求,向DNS服务器重新请求SUPL域名对应的IP地址,直至终端成功接入SUPL服务器。比如,终端在第一IP地址接入失败的情况下,返回步骤103。In some embodiments, after the terminal fails to access the first IP address, it can send a domain name resolution request to the DNS server again, and re-request the IP address corresponding to the SUPL domain name from the DNS server until the terminal successfully accesses the SUPL server. For example, if the terminal fails to access the first IP address, it returns to step 103.
步骤107,更新本地IP地址数据库。Step 107: Update the local IP address database.
终端将SUPL域名与成功接入的第一IP地址对应更新至本地IP地址数据库。示例性的,终端将SUPL域名与成功接入的第一IP地址对应更新至本地存储的IP列表中。The terminal updates the correspondence between the SUPL domain name and the successfully accessed first IP address to the local IP address database. Exemplarily, the terminal updates the correspondence between the SUPL domain name and the successfully accessed first IP address into the locally stored IP list.
步骤108,启动AGPS。Step 108: Start AGPS.
示例性的,终端接入第一IP地址成功,启动AGPS。Exemplarily, the terminal successfully accesses the first IP address and starts AGPS.
或者,终端接入本地IP地址成功,启动AGPS。Or, the terminal successfully accesses the local IP address and starts AGPS.
综上所述,本实施例提供的AGPS定位启动方法,终端连接到DNS服务器,从DNS服务器中解析SUPL域名,得到至少两个IP地址;之后,在本地存储有上述SUPL域名对应的本地IP地址、且至少两个IP地址中存在本地IP地址的情况下,优先选择接入本地IP地址,由于本地IP地址是先前终端成功接入过的IP地址,这样能够提高终端连接SUPL服务器的成功率,大概率地避免了终端需要多次尝试连接SUPL服务器的情况,进一步地提高了成功连接SUPL服务器的效率。To sum up, in the AGPS positioning startup method provided by this embodiment, the terminal connects to the DNS server, parses the SUPL domain name from the DNS server, and obtains at least two IP addresses; then, the local IP address corresponding to the above SUPL domain name is stored locally. , and when there is a local IP address in at least two IP addresses, the local IP address is preferred. Since the local IP address is the IP address that the terminal has successfully accessed before, this can improve the success rate of the terminal connecting to the SUPL server. It is highly likely to avoid the situation where the terminal needs to try to connect to the SUPL server multiple times, further improving the efficiency of successfully connecting to the SUPL server.
其次,在无法连接到DNS服务器的情况下,或者在解析SUPL域名失败的情况下,终端还可以从本地存储中获得SUPL域名对应的本地IP地址,使得终端在无法通过解析SUPL域名获得IP地址的情况下,也存在成功接入SUPL服务器的可能,进一步提高了接入SUPL服务器的成功率。终端还在本地IP地址不可用的情况下及时对其更新,以进一步地保证本地IP地址的可用性。Secondly, when it cannot connect to the DNS server, or when it fails to resolve the SUPL domain name, the terminal can also obtain the local IP address corresponding to the SUPL domain name from local storage, so that the terminal cannot obtain the IP address by parsing the SUPL domain name. In this case, there is also the possibility of successfully accessing the SUPL server, further improving the success rate of accessing the SUPL server. The terminal also updates the local IP address in time when it is unavailable to further ensure the availability of the local IP address.
本申请提供的AGPS定位启动方法可以应用于计算机系统中。如图2,示出了本申请一个示例性实施例提供的计算机系统的框图,该计算机系统包括终端220、通信网络240和服务器260。The AGPS positioning start method provided by the present application can be applied to a computer system. As shown in FIG2 , a block diagram of a computer system provided by an exemplary embodiment of the present application is shown, and the computer system includes a terminal 220 , a communication network 240 and a server 260 .
终端220中安装有操作系统和至少一个应用程序。终端支持定位功能,示例性的,上述定位功能包括AGPS定位功能。AGPS定位功能可以由操作系统触发;和/或,上述AGPS定位功能可以由应用程序触发。示例性的,上述操作系统可以是安卓(Android)系统、或者苹果(iOS)系统、或者鸿蒙(HermaryOS)系统、或者微软(Windows)系统。上述应用程序可以包括即时通信类应用程序,新闻资讯类应用程序、生活服务类应用程序、金融服务类应用程序等。The terminal 220 is installed with an operating system and at least one application program. The terminal supports positioning function. For example, the above positioning function includes AGPS positioning function. The AGPS positioning function can be triggered by the operating system; and/or, the above AGPS positioning function can be triggered by the application program. For example, the above-mentioned operating system may be an Android system, an Apple (iOS) system, a Hongmeng (HermaryOS) system, or a Microsoft (Windows) system. The above-mentioned applications may include instant messaging applications, news information applications, life service applications, financial service applications, etc.
示例性的,终端支持SUPL,SUPL是一种基于标准、允许移动电话用户与定位服务器通信的协议。Exemplarily, the terminal supports SUPL, which is a standard-based protocol that allows mobile phone users to communicate with positioning servers.
示例性的,该终端220可以包括智能手机、平板电脑、智能手表、电子书阅读器、MP3(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机、笔记本电脑的至少一种。Exemplarily, the terminal 220 may include at least one of a smart phone, a tablet computer, a smart watch, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop computer, a desktop computer, and a notebook computer.
终端220与服务器260之间存在通信网络240,该通信网络240可以是有线网络或者无线网络。示例性的,有线网络可以是城域网、局域网、光纤网等;无线网络可以是移动通信网络、无线保真网络(Wireless Fidelity,WiFi)等。There is a communication network 240 between the terminal 220 and the server 260. The communication network 240 may be a wired network or a wireless network. For example, the wired network may be a metropolitan area network, a local area network, an optical fiber network, etc.; the wireless network may be a mobile communication network, a wireless fidelity network (Wireless Fidelity, WiFi), etc.
服务器260为终端220中操作系统和/或应用程序的运行提供后台服务。服务器260可以包括一台服务器260、多台服务器260、云计算平台和虚拟化中心中的至少一种。The server 260 provides background services for the operation of the operating system and/or application programs in the terminal 220 . The server 260 may include at least one of one server 260, multiple servers 260, a cloud computing platform, and a virtualization center.
示例性的,服务器260包括DNS服务器2602和SUPL服务器2604;终端220可以通过移动通信网络向DNS服务器2602请求解析SUPL域名;由DNS服务器2602在解析SUPL域名得到IP地址后,将解析得到的IP地址反馈给终端220;终端220通过IP地址接入到SUPL服务器2604,启动AGPS定位。Exemplarily, the server 260 includes a DNS server 2602 and a SUPL server 2604; the terminal 220 can request the DNS server 2602 to resolve the SUPL domain name through the mobile communication network; after the DNS server 2602 resolves the SUPL domain name to obtain the IP address, it will resolve the IP address obtained Feedback is given to the terminal 220; the terminal 220 accesses the SUPL server 2604 through the IP address and starts AGPS positioning.
示例性的,上述DNS服务器2602和SUPL服务器2604是由移动运营商提供的。比如,上述DNS服务器2602和SUPL服务器2604是由同一或者不同移动运营商提供的。其中,DNS服务器,即是域名服务器,用于进行域名与域名对应的IP地址之间的转换。SUPL服务器2604是用于支持SUPL定位平台(SUPL Location Platform,SLP)运行的计算机设备。Exemplarily, the DNS server 2602 and the SUPL server 2604 are provided by a mobile operator. For example, the DNS server 2602 and the SUPL server 2604 are provided by the same or different mobile operators. The DNS server, i.e., a domain name server, is used to convert between a domain name and an IP address corresponding to the domain name. The SUPL server 2604 is a computer device used to support the operation of a SUPL Location Platform (SLP).
本领域技术人员可以知晓,上述计算机系统中终端220的数量可以更多或更少。比如,上述计算机系统中终端220可以仅为一个,或者为几十个或几百个,或者更多数量,本申请实施例对计算机系统中终端220的数量和设备类型不加以限定。Those skilled in the art will know that the number of terminals 220 in the above computer system may be more or less. For example, there may be only one terminal 220 in the above computer system, or dozens or hundreds, or more. The embodiment of the present application does not limit the number and device types of terminals 220 in the computer system.
图3示出了本申请一个示例性实施例提供的AGPS定位启动方法的流程图,该方法可以应用于图1所示的终端中,该方法包括:Figure 3 shows a flow chart of the AGPS positioning startup method provided by an exemplary embodiment of the present application. This method can be applied to the terminal shown in Figure 1. The method includes:
步骤310,获取SUPL域名。Step 310: Obtain the SUPL domain name.
示例性的,上述SUPL域名是一个或者一组SUPL服务器的标识。终端中设置有SUPL服务器对应的SUPL域名;终端在AGPS定位的过程中,从SUPL域名的存储位置上读取SUPL域名,以基于SUPL域名解析得到SUPL服务器的IP地址,再接入上述SUPL服务器的IP地址,启动AGPS定位。Exemplarily, the SUPL domain name is an identifier of one or a group of SUPL servers. A SUPL domain name corresponding to the SUPL server is set in the terminal; during the AGPS positioning process, the terminal reads the SUPL domain name from the storage location of the SUPL domain name to obtain the IP address of the SUPL server based on the SUPL domain name resolution, and then accesses the IP address of the SUPL server to start AGPS positioning.
示例性的,上述SUPL域名是终端入网时自动设置的;或者,上述SUPL域名是由用户自主设置的。For example, the above-mentioned SUPL domain name is automatically set when the terminal accesses the network; or the above-mentioned SUPL domain name is set independently by the user.
示例性的,终端上运行的应用程序请求AGPS定位,终端从自身存储器上读取SUPL域名。或者,终端上运行的操作系统请求AGPS定位,终端从自身存储器上读取SUPL域名。Exemplarily, an application running on the terminal requests AGPS positioning, and the terminal reads the SUPL domain name from its own memory. Alternatively, an operating system running on the terminal requests AGPS positioning, and the terminal reads the SUPL domain name from its own memory.
步骤320,从终端的本地存储中查询到SUPL域名对应的本地IP地址;本地IP地址是终端在历史AGPS定位过程中,从DNS服务器中获得的且成功接入过的IP地址。Step 320: Query the local IP address corresponding to the SUPL domain name from the local storage of the terminal; the local IP address is the IP address that the terminal obtained from the DNS server and successfully accessed during the historical AGPS positioning process.
终端的本地存储中存储有IP列表,IP列表中一一对应存储有SUPL域名和IP地址;终端从本地存储的IP列表中查询到SUPL域名对应的本地IP地址。The local storage of the terminal stores an IP list, in which the SUPL domain name and the IP address are stored in a one-to-one correspondence; the terminal queries the local IP address corresponding to the SUPL domain name from the locally stored IP list.
步骤330,成功接入本地IP地址,启动AGPS定位。Step 330: Successfully access the local IP address and start AGPS positioning.
终端在获得本地IP地址之后,接入本地IP地址;响应接入本地IP地址成功,启动AGPS定位。After obtaining the local IP address, the terminal accesses the local IP address; in response to successful access to the local IP address, AGPS positioning is started.
综上所述,本实施例提供的AGPS定位启动方法,终端在启动AGPS定位的过程中,可以从本地存储中查询是否存在SUPL域名对应的本地IP地址,在查询到SUPL域名对应的本地IP地址的情况下,直接接入本地IP地址,这一本地IP地址是终端在历史AGPS定位过程中从DNS服务器中获得的IP地址,且终端成功接入过本地IP地址,选择接入本地IP地址,能够成功接入SUPL服务器的成功率高,也即提高了终端一次接入SUPL的成功率,大概率地避免了多次尝试连接SUPL服务器的情况,进而提高了成功连接SUPL服务器的效率。且成功接入本地IP地址之后,不再需要向DNS服务器请求SUPL域名解析,节省了对SUPL域名解析获取IP地址的步骤,减少了AGPS定位所需花费的时间,进一步地提高成功连接SUPL服务器的效率。In summary, in the AGPS positioning start method provided by the present embodiment, during the process of starting AGPS positioning, the terminal can query whether there is a local IP address corresponding to the SUPL domain name from the local storage, and directly access the local IP address when the local IP address corresponding to the SUPL domain name is queried. This local IP address is the IP address obtained by the terminal from the DNS server during the historical AGPS positioning process, and the terminal has successfully accessed the local IP address. Selecting to access the local IP address can increase the success rate of successfully accessing the SUPL server, that is, the success rate of the terminal accessing the SUPL once is improved, and the situation of multiple attempts to connect to the SUPL server is avoided with a high probability, thereby improving the efficiency of successfully connecting to the SUPL server. After successfully accessing the local IP address, it is no longer necessary to request the DNS server for SUPL domain name resolution, which saves the step of resolving the SUPL domain name to obtain the IP address, reduces the time required for AGPS positioning, and further improves the efficiency of successfully connecting to the SUPL server.
示例性的,存在终端接入本地IP地址失败的情况,在这种情况下,终端可以尝试接入从DNS服务器获取的SUPL域名对应的IP地址。For example, there may be a situation where the terminal fails to access the local IP address. In this case, the terminal may try to access the IP address corresponding to the SUPL domain name obtained from the DNS server.
示例性的,如图4所示,如果终端在向DNS服务器请求解析SUPL域名之前,直接尝试接入本地IP地址,终端在接入本地IP失败的情况下,可以执行如下步骤:For example, as shown in Figure 4, if the terminal directly attempts to access the local IP address before requesting the DNS server to resolve the SUPL domain name, and the terminal fails to access the local IP, it can perform the following steps:
步骤340,响应于接入本地IP地址失败,从DNS服务器中解析SUPL域名,获得至少一个IP地址。Step 340: In response to the failure to access the local IP address, resolve the SUPL domain name from the DNS server and obtain at least one IP address.
终端响应本地IP地址接入失败,向DNS服务器发送域名解析请求,域名解析请求中携带SUPL域名,用于请求DNS服务器对SUPL域名进行解析,以获得至少一个IP地址;接收DNS服务器反馈的至少一个IP地址。The terminal responds to the local IP address access failure and sends a domain name resolution request to the DNS server. The domain name resolution request carries the SUPL domain name and is used to request the DNS server to resolve the SUPL domain name to obtain at least one IP address; receive at least one feedback from the DNS server. IP address.
步骤350,成功接入至少一个IP地址中的第二IP地址,启动AGPS定位。Step 350: Successfully access the second IP address among at least one IP address and start AGPS positioning.
示例性的,终端从至少一个IP地址中随机选取一个第二IP地址接入;响应于接入第二IP地址成功,启动AGPS定位。Exemplarily, the terminal randomly selects a second IP address from at least one IP address to access; in response to successfully accessing the second IP address, AGPS positioning is initiated.
可选地,响应于成功接入第二IP地址,终端还将SUPL域名与第二IP地址对应更新至本地存储。Optionally, in response to successfully accessing the second IP address, the terminal also updates the correspondence between the SUPL domain name and the second IP address to the local storage.
示例性的,SUPL域名与IP地址对应存储在本地存储的IP列表中;终端在成功接入第二IP地址的情况下,将SUPL域名与第二IP地址对应更新至本地存储的IP列表中。比如,终端将IP列表中SUPL域名对应的本地IP地址更新为第二IP地址。For example, the SUPL domain name and the IP address are correspondingly stored in a locally stored IP list; when the terminal successfully accesses the second IP address, the SUPL domain name and the second IP address are updated to the locally stored IP list. For example, the terminal updates the local IP address corresponding to the SUPL domain name in the IP list to the second IP address.
综上所述,本实施例提供的AGPS定位启动方法,在AGPS定位启动方法启动过程中,在本地存储有SUPL域名对应的本地IP地址的情况下,优先接入本地IP地址,在接入本地IP地址失败后,再从DNS服务器中解析获取SUPL域名对应的IP地址。由于各个运营商的SUPL服务器IP地址不会经常性更换,因此,采用本地IP地址接入成功的概率高,一旦接入本地IP地址成功,则无需从DNS服务器获取SUPL域名对应的IP地址,能够节省AGPS定位启动所需花费的时间,提高了AGPS定位的效率。To sum up, in the AGPS positioning startup method provided by this embodiment, during the startup process of the AGPS positioning startup method, when the local IP address corresponding to the SUPL domain name is stored locally, the local IP address is given priority. After the IP address fails, the IP address corresponding to the SUPL domain name is obtained from the DNS server. Since the IP addresses of the SUPL servers of each operator do not change frequently, the probability of successful access using the local IP address is high. Once the access to the local IP address is successful, there is no need to obtain the IP address corresponding to the SUPL domain name from the DNS server. It saves the time required to start AGPS positioning and improves the efficiency of AGPS positioning.
其次,如果接入本地IP地址失败,且从DNS服务器中获取的IP地址接入成功,终端还将本次成功接入的IP地址与SUPL域名对应更新至IP列表,以保证SUPL域名对应的本地IP地址的可用性。Secondly, if access to the local IP address fails and the IP address obtained from the DNS server is successfully accessed, the terminal will also update the IP address corresponding to the SUPL domain name to the IP list to ensure that the local IP address corresponding to the SUPL domain name is successfully accessed. IP address availability.
还存在一种情况,终端在接入IP地址之前,向DNS服务器请求解析SUPL域名,获得至少两个IP地址;如果至少两个IP地址中存在本地IP地址,终端优先选择接入本地IP地址,如图5所示,这一AGPS定位启动方法的示例性实施例如下所示:There is also a situation where the terminal requests the DNS server to resolve the SUPL domain name before accessing the IP address to obtain at least two IP addresses; if there is a local IP address among the at least two IP addresses, the terminal preferentially chooses to access the local IP address, as shown in FIG5 . An exemplary embodiment of this AGPS positioning start method is as follows:
步骤410,获取SUPL域名。Step 410: Obtain the SUPL domain name.
示例性的,上述SUPL域名是一个或者一组SUPL服务器的标识。终端中设置有SUPL服务器对应的SUPL域名;终端在AGPS定位的过程中,读取SUPL域名,以基于SUPL域名解析得到SUPL服务器的IP地址,再接入上述SUPL服务器的IP地址,启动AGPS定位。For example, the above-mentioned SUPL domain name is the identifier of one or a group of SUPL servers. The terminal is set with the SUPL domain name corresponding to the SUPL server; during the AGPS positioning process, the terminal reads the SUPL domain name to obtain the IP address of the SUPL server based on SUPL domain name resolution, and then accesses the IP address of the above-mentioned SUPL server to start AGPS positioning.
示例性的,上述SUPL域名是终端入网时自动设置的;或者,上述SUPL域名是由用户自主设置的。For example, the above-mentioned SUPL domain name is automatically set when the terminal accesses the network; or the above-mentioned SUPL domain name is set independently by the user.
示例性的,终端上运行的应用程序请求AGPS定位,终端从自身存储器上读取SUPL域名。或者,终端上运行的操作系统请求AGPS定位,终端从自身存储器上读取SUPL域名。For example, the application running on the terminal requests AGPS positioning, and the terminal reads the SUPL domain name from its own memory. Or, the operating system running on the terminal requests AGPS positioning, and the terminal reads the SUPL domain name from its own memory.
步骤420,从DNS服务器中解析SUPL域名,获得至少两个IP地址。Step 420: Resolve the SUPL domain name from the DNS server to obtain at least two IP addresses.
终端向DNS服务器发送域名解析请求,域名解析请求中携带有SUPL域名;之后由DNS服务器对SUPL域名进行解析,获得SUPL域名对应的至少两个IP地址,将至少两个SUPL域名反馈给终端;终端接收DNS服务器反馈的至少两个SUPL域名。The terminal sends a domain name resolution request to the DNS server, and the domain name resolution request carries the SUPL domain name; the DNS server then parses the SUPL domain name, obtains at least two IP addresses corresponding to the SUPL domain name, and feeds back at least two SUPL domain names to the terminal; the terminal Receive at least two SUPL domain names fed back by the DNS server.
示例性的,DNS服务器中存储有SUPL域名与IP地址的对应关系表;终端向DNS服务器发送域名解析请求之后,由DNS服务器基于上述对应关系表对SUPL域名进行解析,解析出与SUPL域名对应的至少两个IP地址,将上述至少两个IP地址返回给终端,则终端即可获得SUPL域名对应的至少两个IP地址。For example, the DNS server stores a correspondence table between the SUPL domain name and the IP address; after the terminal sends a domain name resolution request to the DNS server, the DNS server parses the SUPL domain name based on the above correspondence table and parses out the IP address corresponding to the SUPL domain name. At least two IP addresses, return the above at least two IP addresses to the terminal, then the terminal can obtain at least two IP addresses corresponding to the SUPL domain name.
步骤430,从终端的本地存储中查询到SUPL域名对应的本地IP地址;本地IP地址是终端在历史AGPS定位过程中,从DNS服务器中获得的且成功接入过的IP地址。Step 430, query the local IP address corresponding to the SUPL domain name from the local storage of the terminal; the local IP address is the IP address that the terminal has successfully accessed and obtained from the DNS server during the historical AGPS positioning process.
终端的本地存储中存储有IP列表,IP列表中一一对应存储有SUPL域名和IP地址;终端从本地存储的IP列表中查询到SUPL域名对应的本地IP地址。An IP list is stored in the local storage of the terminal, and the SUPL domain name and IP address are stored in one-to-one correspondence in the IP list; the terminal queries the local IP address corresponding to the SUPL domain name from the locally stored IP list.
步骤440,响应于至少两个IP地址中存在本地IP地址,优先接入本地IP地址。Step 440: In response to the local IP address being present in the at least two IP addresses, the local IP address is preferentially accessed.
终端确定至少两个IP地址中存在与本地IP地址相同的IP地址,优先接入本地IP地址。The terminal determines that at least two IP addresses have the same IP address as the local IP address, and accesses the local IP address first.
示例性的,终端本地存储有IP列表,该IP列表中一一对应存储有SUPL域名与IP地址。终端获得至少两个IP地址之后,将至少两个IP地址分别与本地IP地址进行匹配;在至少两个IP地址中存在本地IP地址的情况下,优先接入本地IP地址。For example, the terminal locally stores an IP list, and the IP list stores SUPL domain names and IP addresses in one-to-one correspondence. After the terminal obtains at least two IP addresses, it matches the at least two IP addresses with the local IP address respectively; if there is a local IP address in the at least two IP addresses, the local IP address is given priority.
比如,终端遍历至少两个IP地址,确定至少两个IP地址中是否存在本地IP地址;在至少两个IP地址中存在本地IP地址的情况下,优先接入本地IP地址。或者,终端将至少两个IP地址依次与本地IP地址进行匹配;直至匹配到与本地IP地址相同的IP地址,优先接入本地IP地址。For example, the terminal traverses at least two IP addresses to determine whether there is a local IP address in at least two IP addresses; if there is a local IP address in at least two IP addresses, the local IP address is given priority. Or, the terminal matches at least two IP addresses with the local IP address in sequence; until an IP address that is the same as the local IP address is matched, the local IP address is given priority.
比如,上述至少两个IP地址包括“XX.XXX.XXX.xx”、“XX.XXX.XXX.yy”和“XX.XXX.XXX.zz”这三个IP地址;在本地存储的IP列表中与SUPL域名对应存储的本地IP地址为“XX.XXX.XXX.yy”;终端与上述三个IP地址依次匹配,在匹配到与第2个IP地址“XX.XXX.XXX.yy”相同时,不再继续与第三个IP地址匹配,选择优先接入本地IP地址“XX.XXX.XXX.yy”。For example, the above-mentioned at least two IP addresses include the three IP addresses of "XX.XXX.XXX.xx", "XX.XXX.XXX.yy" and "XX.XXX.XXX.zz"; the locally stored IP list The local IP address stored corresponding to the SUPL domain name is "XX.XXX.XXX.yy"; the terminal matches the above three IP addresses in sequence, and then matches the second IP address "XX.XXX.XXX.yy" At the same time, it will no longer continue to match the third IP address, and choose to access the local IP address "XX.XXX.XXX.yy" first.
示例性的,本地存储的本地IP地址的数据结构如下所示:By way of example, the data structure of a locally stored local IP address is as follows:
步骤450,响应于成功接入本地IP地址,启动AGPS定位。Step 450, in response to successfully accessing the local IP address, start AGPS positioning.
终端在成功接入本地IP地址的情况下,启动AGPS定位。When the terminal successfully accesses the local IP address, it starts AGPS positioning.
需要说明的是,本申请中对步骤420与步骤430的执行顺序不加以限定,本实施例中仅以顺序执行步骤420和步骤430为例进行说明;在另一些实施例中,还可以按照先步骤430后步骤420的顺序执行,或者,同时执行步骤420和步骤430。It should be noted that the execution order of step 420 and step 430 is not limited in this application. In this embodiment, only the sequential execution of step 420 and step 430 is used as an example for explanation; in other embodiments, the sequence may also be performed as follows. Step 430 and step 420 are executed sequentially, or step 420 and step 430 are executed simultaneously.
综上所述,本实施例提供的AGPS定位启动方法,终端在启动AGPS定位的过程中,连接到DNS服务器,请求对SUPL域名进行解析,得到SUPL域名对应的多个IP地址;之后,终端在本地存储有上述SUPL域名对应的本地IP地址的情况下,确定多个IP地址中的第一IP地址与本地IP地址相同,则在多个IP地址中选择优先接入第一IP地址,由于本地IP地址是先前终端成功接入过的IP地址,优先选择接入第一IP地址,能够提高终端连接SUPL服务器的成功率,大概率地避免了多次尝试连接SUPL服务器的情况,进一步地提高了成功连接SUPL服务器的效率。To sum up, in the AGPS positioning startup method provided in this embodiment, during the process of starting AGPS positioning, the terminal connects to the DNS server, requests to parse the SUPL domain name, and obtains multiple IP addresses corresponding to the SUPL domain name; after that, the terminal When the local IP address corresponding to the above SUPL domain name is stored locally and it is determined that the first IP address among the multiple IP addresses is the same as the local IP address, then the first IP address among the multiple IP addresses is selected to access first. Since the local The IP address is the IP address that the terminal has successfully accessed before. The first IP address is given priority, which can improve the success rate of the terminal connecting to the SUPL server and avoid multiple attempts to connect to the SUPL server with a high probability, further improving the The efficiency of successfully connecting to the SUPL server.
如果从DNS服务器解析SUPL域名得到的IP地址中,不存在SUPL域名对应的本地IP地址,终端仍可以选择优先接入本地IP地址,示例性的,如图6所示,在图5所示实施例的基础上,增加一个步骤460,如下所示:If there is no local IP address corresponding to the SUPL domain name in the IP address obtained by parsing the SUPL domain name from the DNS server, the terminal can still choose to give priority to the local IP address. For example, as shown in Figure 6, the implementation is shown in Figure 5 Based on the example, add a step 460 as follows:
步骤460,响应于至少两个IP地址均与本地IP地址不同,优先接入本地IP地址。Step 460: In response to at least two IP addresses being different from the local IP address, access the local IP address first.
终端确定至少两个IP地址均与本地IP地址不同,优先接入本地IP地址。The terminal determines that at least two IP addresses are different from the local IP address, and accesses the local IP address first.
示例性的,终端本地存储有IP列表,该IP列表中一一对应存储有SUPL域名与IP地址。终端获得至少两个IP地址之后,将至少两个IP地址分别与本地IP地址进行匹配;在至少两个IP地址均与本地IP地址不同的情况下,优先接入本地IP地址。Exemplarily, the terminal locally stores an IP list, in which the SUPL domain name and the IP address are stored in a one-to-one correspondence. After obtaining at least two IP addresses, the terminal matches the at least two IP addresses with the local IP address respectively; when the at least two IP addresses are different from the local IP address, the local IP address is preferentially accessed.
比如,终端遍历至少两个IP地址,确定至少两个IP地址中是否存在本地IP地址;在至少两个IP地址中不存在本地IP地址的情况下,优先接入本地IP地址。For example, the terminal traverses at least two IP addresses to determine whether a local IP address exists in the at least two IP addresses; if the local IP address does not exist in the at least two IP addresses, the local IP address is preferentially accessed.
比如,上述至少两个IP地址包括“YY.YYY.YYY.xx”、“YY.YYY.YYY.yy”和“YY.YYY.YYY.zz”这三个IP地址;在本地存储的IP列表中与SUPL域名对应存储的本地IP地址为“YY.YYY.YYY.qq”;终端与上述三个IP地址依次匹配,在确定上述三个IP地址均与本地IP地址不同时,选择优先接入本地IP地址“YY.YYY.YYY.qq”。For example, the above-mentioned at least two IP addresses include the three IP addresses of "YY.YYY.YYY.xx", "YY.YYY.YYY.yy" and "YY.YYY.YYY.zz"; the locally stored IP list The local IP address stored corresponding to the SUPL domain name is "YY.YYY.YYY.qq"; the terminal matches the above three IP addresses in sequence. When it is determined that the above three IP addresses are different from the local IP address, select priority access Local IP address "YY.YYY.YYY.qq".
示例性的,终端优先接入本地IP地址成功的情况下,执行步骤450。For example, if the terminal successfully accesses the local IP address preferentially, step 450 is performed.
综上所述,本实施例提供的AGPS定位启动方法,在解析SUPL域名得到的多个IP地址中不存在任何IP地址与本地IP地址相同,这时终端优先选择接入本地IP地址,由于本地IP地址是先前终端成功接入过的IP地址,优先选择接入本地IP地址,能够提高终端连接SUPL服务器的成功率,大概率地避免了多次尝试连接SUPL服务器的情况,进一步地提高了成功连接SUPL服务器的效率。In summary, in the AGPS positioning startup method provided by the present embodiment, there is no IP address that is the same as the local IP address among the multiple IP addresses obtained by resolving the SUPL domain name. At this time, the terminal preferentially chooses to access the local IP address. Since the local IP address is an IP address that the terminal has successfully accessed before, the local IP address is preferentially selected to access, which can improve the success rate of the terminal connecting to the SUPL server, and avoids the situation of multiple attempts to connect to the SUPL server with a high probability, and further improves the efficiency of successfully connecting to the SUPL server.
在图5和图6所示的实施例中,存在终端接入本地IP地址失败的情况下,此时,终端会从DNS服务器提供的非本地IP地址中选取一个IP地址进行接入。以图6所示的实施例为例,增加步骤470和步骤480,如图7所示:In the embodiments shown in FIG5 and FIG6, if the terminal fails to access the local IP address, the terminal will select an IP address from the non-local IP addresses provided by the DNS server for access. Taking the embodiment shown in FIG6 as an example, steps 470 and 480 are added, as shown in FIG7:
步骤470,响应于接入本地IP地址失败,接入至少两个IP地址中的第一IP地址。Step 470: In response to failure to access the local IP address, access a first IP address among the at least two IP addresses.
示例性的,在至少两个IP地址包括本地IP地址的情况下,第一IP地址是指至少两个IP地址中除本地IP地址之外的IP地址;在至少两个IP地址不包括本地IP地址的情况下,第一IP地址是指至少两个IP地址中的任意IP地址。For example, when at least two IP addresses include local IP addresses, the first IP address refers to the IP address other than the local IP address among the at least two IP addresses; when at least two IP addresses do not include local IP addresses, In the case of addresses, the first IP address refers to any IP address among at least two IP addresses.
终端在接入本地IP地址失败的情况下,从至少两个IP地址中选取第一IP地址接入。When the terminal fails to access the local IP address, it selects the first IP address from at least two IP addresses to access.
步骤480,响应于成功接入第一IP地址,启动AGPS定位。Step 480, in response to successfully accessing the first IP address, starting AGPS positioning.
可选地,终端还响应于成功接入所述第一IP地址,将SUPL域名与第一IP地址对应更新至终端的本地存储。示例性的,终端在成功接入第一IP地址的情况下,将SUPL域名与第一IP地址对应更新至终端在本地存储的IP列表。需要说明的是,终端可以响应第一IP地址接入成功,顺序执行启动AGPS定位与IP列表更新的步骤,也可以响应第一IP地址接入成功,同时执行启动AGPS定位与IP列表更新的步骤。Optionally, in response to successfully accessing the first IP address, the terminal updates the correspondence between the SUPL domain name and the first IP address to the local storage of the terminal. For example, when the terminal successfully accesses the first IP address, the terminal updates the correspondence between the SUPL domain name and the first IP address to the terminal's locally stored IP list. It should be noted that the terminal can respond to the successful access of the first IP address and sequentially perform the steps of initiating AGPS positioning and IP list update, or it can respond to the successful access of the first IP address and simultaneously perform the steps of initiating AGPS positioning and IP list update. .
示例性的,第一IP地址包括至少两个,在一个第一IP地址接入失败的情况下,选取另一个第一IP地址接入,直至终端成功接入SUPL服务器,还将接入成功的第一IP地址与SUPL域名对应更新至本地存储的IP列表。Exemplarily, the first IP addresses include at least two. When one first IP address fails to access, another first IP address is selected for access until the terminal successfully accesses the SUPL server, and the correspondence between the successfully accessed first IP address and the SUPL domain name is updated to the locally stored IP list.
在一些实施例中,终端接入本地IP地址与第一IP地址均失败的情况下,终端重新向DNS服务器请求解析SUPL域名,之后再次执行步骤440至步骤470。In some embodiments, when the terminal fails to access both the local IP address and the first IP address, the terminal requests the DNS server to resolve the SUPL domain name again, and then performs steps 440 to 470 again.
综上所述,本实施例提供的AGPS定位启动方法,终端在本地IP地址不可用的情况下,从解析SUPL域名得到的IP地址中选取接入,在成功接入一个IP地址后,将成功接入的IP地址对应SUPL域名更新到本地存储的IP列表中,为下一次的APGS定位提供可用的本地IP地址。In summary, with the AGPS positioning startup method provided in this embodiment, when the local IP address is unavailable, the terminal selects access from the IP addresses obtained by parsing the SUPL domain name. After successfully accessing an IP address, the terminal will successfully The accessed IP address corresponds to the SUPL domain name and is updated to the locally stored IP list to provide available local IP addresses for the next APGS positioning.
上述各个实施例中,是以终端本地存储有SUPL域名对应的本地IP地址为前提,还存在终端本地存储中不存在本地IP地址的情况,如图8所示,这种情况下,AGPS定位启动方法的实现步骤如下:In the above embodiments, it is premised that the local IP address corresponding to the SUPL domain name is stored locally in the terminal. There is also a situation where the local IP address does not exist in the local storage of the terminal. As shown in Figure 8, in this case, AGPS positioning is started. The implementation steps of the method are as follows:
步骤510,获取SUPL域名。Step 510: Obtain the SUPL domain name.
示例性的,终端在AGPS定位的过程中,从自身存储器中读取SUPL域名,以基于SUPL域名解析得到SUPL服务器的IP地址,再接入上述SUPL服务器的IP地址,启动AGPS定位。Exemplarily, during the AGPS positioning process, the terminal reads the SUPL domain name from its own memory to obtain the IP address of the SUPL server based on the SUPL domain name resolution, and then accesses the IP address of the SUPL server to start the AGPS positioning.
步骤520,从DNS服务器中解析SUPL域名,获得至少一个IP地址。Step 520: Parse the SUPL domain name from the DNS server and obtain at least one IP address.
示例性的,终端向DNS服务器发送域名解析请求,域名解析请求中携带有SUPL域名;之后由DNS服务器对SUPL域名进行解析,获得SUPL域名对应的至少两个IP地址,将至少两个SUPL域名反馈给终端;终端接收DNS服务器反馈的至少两个SUPL域名。For example, the terminal sends a domain name resolution request to the DNS server, and the domain name resolution request carries the SUPL domain name; then the DNS server parses the SUPL domain name, obtains at least two IP addresses corresponding to the SUPL domain name, and feeds back the at least two SUPL domain names. To the terminal; the terminal receives at least two SUPL domain names fed back by the DNS server.
可选地,响应于终端的本地存储中不存在本地IP地址,终端从DNS服务器中解析SUPL域名,获得至少一个IP地址。Optionally, in response to the fact that the local IP address does not exist in the local storage of the terminal, the terminal resolves the SUPL domain name from the DNS server and obtains at least one IP address.
示例性的,终端从本地存储中查询SUPL域名对应的本地IP地址;在确定本地存储中不存在SUPL域名对应的本地IP地址的情况下,从DNS服务器中解析SUPL域名,获得至少一个IP地址;选择接入至少一个IP地址中的第二IP地址。Exemplarily, the terminal queries the local IP address corresponding to the SUPL domain name from the local storage; when it is determined that the local IP address corresponding to the SUPL domain name does not exist in the local storage, parses the SUPL domain name from the DNS server and obtains at least one IP address; Select a second IP address to access at least one IP address.
可选地,终端从DNS服务器中解析SUPL域名,获得至少一个IP地址;响应于终端的本地存储中不存在本地IP地址,选择接入至少一个IP地址中的第二IP地址。Optionally, the terminal resolves the SUPL domain name from the DNS server and obtains at least one IP address; in response to the fact that the local IP address does not exist in the local storage of the terminal, selects to access the second IP address of the at least one IP address.
示例性的,终端从DNS服务器中解析SUPL域名,获得至少一个IP地址;之后从本地存储中查询SUPL域名对应的本地IP地址;在确定本地存储中不存在SUPL域名对应的本地IP地址的情况下,选择接入至少一个IP地址中的第二IP地址。Exemplarily, the terminal resolves the SUPL domain name from the DNS server and obtains at least one IP address; then queries the local storage for the local IP address corresponding to the SUPL domain name; when it is determined that the local IP address corresponding to the SUPL domain name does not exist in the local storage , select to access the second IP address among at least one IP address.
示例性的,终端从至少一个IP地址中随机第二IP地址接入。Exemplarily, the terminal accesses a second IP address randomly from at least one IP address.
步骤530,成功接入至少一个IP地址中的第二IP地址,启动AGPS定位。Step 530: Successfully access the second IP address of at least one IP address and start AGPS positioning.
终端在接入第二IP地址成功的情况下,启动AGPS定位;以及将成功接入的第二IP地址与SUPL域名对应存储至本地存储中。When the terminal successfully accesses the second IP address, it starts AGPS positioning; and stores the successfully accessed second IP address and the SUPL domain name in local storage.
综上所述,本实施例提供的AGPS定位启动方法,终端在本地存储中不存在本地IP地址的情况下,从解析SUPL域名得到的IP地址中选取接入,在成功接入一个IP地址后,将成功接入的IP地址对应SUPL域名更新到本地存储的IP列表中,为下一次的APGS定位提供可用的本地IP地址。To sum up, in the AGPS positioning startup method provided in this embodiment, when the terminal does not have a local IP address in the local storage, it selects access from the IP address obtained by parsing the SUPL domain name. After successfully accessing an IP address , update the SUPL domain name corresponding to the successfully connected IP address to the locally stored IP list, and provide available local IP addresses for the next APGS positioning.
在一些实施例中,DNS服务器对SUPL域名解析后得到一个IP地址,也称为第三IP地址。终端接收到DNS反馈的第三IP地址,将第三IP地址与本地IP地址匹配。In some embodiments, the DNS server resolves the SUPL domain name and obtains an IP address, which is also called a third IP address. The terminal receives the third IP address fed back by the DNS and matches the third IP address with the local IP address.
在第三IP地址与本地IP地址相同的情况下,接入第三IP地址;在接入第三IP地址成功的情况下,启动AGPS定位;在接入第三IP地址失败的情况下,重新从DNS服务器获取SUPL域名对应的IP地址。When the third IP address is the same as the local IP address, access the third IP address; when access to the third IP address is successful, start AGPS positioning; when access to the third IP address fails, restart Obtain the IP address corresponding to the SUPL domain name from the DNS server.
在第三IP地址与本地IP地址不同的情况下,接入本地IP地址;在接入本地IP地址成功的情况下,启动AGPS定位;在接入本地IP地址失败的情况下,接入第三IP地址。在接入第三IP地址成功的情况下,启动AGPS定位;在接入第三IP地址失败的情况下,重新从DNS服务器获取SUPL域名对应的IP地址。When the third IP address is different from the local IP address, the local IP address is accessed; when the local IP address is successfully accessed, AGPS positioning is started; when the local IP address fails to be accessed, the third IP address is accessed. IP address. If access to the third IP address is successful, AGPS positioning is started; if access to the third IP address fails, the IP address corresponding to the SUPL domain name is obtained from the DNS server again.
在一些实施例中,DNS服务器在向终端反馈至少两个IP地址的同时,每个IP地址还标记有当前使用率;终端在接入本地IP地址失败的情况下,可以按照当前使用率由低到高的顺序选择第一IP地址接入。或者,终端在本地存储中不存在本地IP地址的情况下,可以按照当前使用率由低到高的顺序选择第二IP地址接入。比如,第二IP地址1的使用率为0.1,第二IP地址2的使用率为0.6,则终端选择接入第二IP地址1,这是因为使用率高的IP地址,接入的用户终端较多,可能存在接入困难的情况,进而提高了终端接入的成功率与效率。In some embodiments, while the DNS server feeds back at least two IP addresses to the terminal, each IP address is also marked with a current usage rate; if the terminal fails to access the local IP address, it can use the current usage rate from low to low. Select the first IP address in order to access. Alternatively, if the terminal does not have a local IP address in the local storage, the terminal may select the second IP address for access in order of current usage from low to high. For example, if the usage rate of the second IP address 1 is 0.1 and the usage rate of the second IP address 2 is 0.6, then the terminal chooses to access the second IP address 1. This is because the IP address with the high usage rate is connected to the user terminal. If there are too many, access difficulties may occur, thereby improving the success rate and efficiency of terminal access.
综上所述,本实施例提供的AGPS定位启动方法,在解析SUPL域名得到一个IP地址的情况下,仍优先选择接入本地IP地址,以保证成功接入SUPL服务器的概率。To sum up, the AGPS positioning startup method provided in this embodiment still prefers to access the local IP address when parsing the SUPL domain name to obtain an IP address to ensure the probability of successful access to the SUPL server.
需要说明的是,以上实施例中从DNS服务器中获取SUPL域名对应的IP地址,与从终端本地存储中获取SUPL域名对应的本地IP地址,这两个步骤的执行顺序不加以限定,可以按照先后顺序执行,也可以同时执行。It should be noted that in the above embodiment, the execution order of obtaining the IP address corresponding to the SUPL domain name from the DNS server and obtaining the local IP address corresponding to the SUPL domain name from the local storage of the terminal is not limited and can be performed in sequence. Executed sequentially or simultaneously.
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following are device embodiments of the present application, which can be used to execute method embodiments of the present application. For details not disclosed in the device embodiments of this application, please refer to the method embodiments of this application.
图9示出了本申请一个示例性实施例提供的AGPS定位启动装置的结构框图。该AGPS定位启动装置可以通过软件、硬件或者两者的结合实现成为终端的全部或一部分。该装置包括:FIG9 shows a block diagram of an AGPS positioning start device provided by an exemplary embodiment of the present application. The AGPS positioning start device can be implemented as all or part of the terminal through software, hardware or a combination of both. The device includes:
获取模块610,用于获取SUPL域名;An acquisition module 610, configured to acquire a SUPL domain name;
查询模块620,用于从所述终端的本地存储中查询到所述SUPL域名对应的本地IP地址,所述本地IP地址是所述终端在历史AGPS定位过程中,从DNS服务器中获得的且成功接入过的IP地址;The query module 620 is used to query the local IP address corresponding to the SUPL domain name from the local storage of the terminal. The local IP address is obtained by the terminal from the DNS server during the historical AGPS positioning process and is successful. IP address that has been accessed;
接入模块630,用于成功接入所述本地IP地址,启动AGPS定位。The access module 630 is used to successfully access the local IP address and start AGPS positioning.
在一些实施例中,获取模块610,用于从所述DNS服务器中解析所述SUPL域名,获得至少两个IP地址;In some embodiments, the acquisition module 610 is configured to parse the SUPL domain name from the DNS server and obtain at least two IP addresses;
接入模块630,用于响应于所述至少两个IP地址中存在所述本地IP地址,优先接入所述本地IP地址;Access module 630, configured to respond to the presence of the local IP address in the at least two IP addresses, giving priority to access the local IP address;
接入模块630,用于响应于成功接入所述本地IP地址,启动AGPS定位。The access module 630 is used to start AGPS positioning in response to successfully accessing the local IP address.
在一些实施例中,接入模块630,用于:In some embodiments, access module 630 is used to:
将所述至少两个IP地址依次与所述本地IP地址进行匹配;Matching the at least two IP addresses with the local IP address in sequence;
直至匹配到与所述本地IP地址相同的IP地址,优先接入所述本地IP地址。Until an IP address identical to the local IP address is matched, the local IP address is preferentially accessed.
在一些实施例中,获取模块610,用于从所述DNS服务器中解析所述SUPL域名,获得至少两个IP地址;In some embodiments, the acquisition module 610 is configured to parse the SUPL domain name from the DNS server and obtain at least two IP addresses;
接入模块630,用于响应于所述至少两个IP地址均与所述本地IP地址不同,优先接入所述本地IP地址;Access module 630, configured to respond to the at least two IP addresses being different from the local IP address, giving priority to access the local IP address;
接入模块630,用于响应于成功接入所述本地IP地址,启动AGPS定位。The access module 630 is configured to start AGPS positioning in response to successful access to the local IP address.
在一些实施例中,接入模块630,用于:In some embodiments, access module 630 is used to:
响应于接入所述本地IP地址失败,接入所述至少两个IP地址中的第一IP地址;In response to the failure to access the local IP address, access the first IP address of the at least two IP addresses;
响应于成功接入所述第一IP地址,启动AGPS定位。In response to successfully accessing the first IP address, AGPS positioning is initiated.
在一些实施例中,该装置包括:更新模块640;In some embodiments, the apparatus includes: an update module 640;
更新模块640,用于响应于成功接入所述第一IP地址,将所述SUPL域名与所述第一IP地址对应更新至所述终端的本地存储。The updating module 640 is configured to update the correspondence between the SUPL domain name and the first IP address to the local storage of the terminal in response to successfully accessing the first IP address.
在一些实施例中,获取模块610,用于响应于接入所述本地IP地址失败,从所述DNS服务器中解析所述SUPL域名,获得至少一个IP地址;In some embodiments, the acquisition module 610 is configured to resolve the SUPL domain name from the DNS server to obtain at least one IP address in response to failure to access the local IP address;
接入模块630,用于成功接入所述至少一个IP地址中的第二IP地址,启动AGPS定位。The access module 630 is used to successfully access the second IP address among the at least one IP address and start AGPS positioning.
在一些实施例中,获取模块610,用于响应于所述终端的本地存储中不存在所述本地IP地址,从所述DNS服务器中解析所述SUPL域名,获得至少一个IP地址;In some embodiments, the acquisition module 610 is configured to respond to the local IP address not existing in the local storage of the terminal, parse the SUPL domain name from the DNS server, and obtain at least one IP address;
接入模块630,用于成功接入所述至少一个IP地址中的第二IP地址,启动AGPS定位。The access module 630 is configured to successfully access the second IP address among the at least one IP address and start AGPS positioning.
在一些实施例中,该装置包括:更新模块640;In some embodiments, the apparatus includes: an update module 640;
更新模块640,用于响应于成功接入所述第二IP地址,将所述SUPL域名与所述第二IP地址对应更新至所述终端的本地存储。The update module 640 is configured to update the correspondence between the SUPL domain name and the second IP address to the local storage of the terminal in response to successful access to the second IP address.
综上所述,本实施例提供的AGPS定位启动装置,在启动AGPS定位的过程中,可以从本地存储中查询是否存在SUPL域名对应的本地IP地址,在查询到SUPL域名对应的本地IP地址的情况下,直接接入本地IP地址,这一本地IP地址是终端在历史AGPS定位过程中从DNS服务器中获得的IP地址,且终端成功接入过本地IP地址,选择接入本地IP地址,能够成功接入SUPL服务器的成功率高,也即提高了终端一次接入SUPL的成功率,大概率地避免了多次尝试连接SUPL服务器的情况,进而提高了成功连接SUPL服务器的效率。且成功接入本地IP地址之后,不再需要向DNS服务器请求SUPL域名解析,节省了对SUPL域名解析获取IP地址的步骤,减少了AGPS定位所需花费的时间,进一步地提高成功连接SUPL服务器的效率。To sum up, the AGPS positioning startup device provided in this embodiment can query whether there is a local IP address corresponding to the SUPL domain name from the local storage during the process of starting AGPS positioning. After querying the local IP address corresponding to the SUPL domain name, In this case, directly access the local IP address. This local IP address is the IP address obtained by the terminal from the DNS server during the historical AGPS positioning process, and the terminal has successfully accessed the local IP address. If you choose to access the local IP address, you can The success rate of successfully connecting to the SUPL server is high, which means that the success rate of the terminal's one-time access to the SUPL is improved, and multiple attempts to connect to the SUPL server are avoided with a high probability, thereby improving the efficiency of successfully connecting to the SUPL server. And after successfully accessing the local IP address, there is no need to request SUPL domain name resolution from the DNS server, which saves the steps of resolving the SUPL domain name to obtain the IP address, reduces the time required for AGPS positioning, and further improves the chance of successfully connecting to the SUPL server. efficiency.
需要说明的是:上述实施例提供的AGPS定位启动装置在执行AGPS定位启动方法时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的AGPS定位启动装置与AGPS定位启动方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the AGPS positioning startup device provided in the above embodiment performs the AGPS positioning startup method, only the division of the above functional modules is used as an example. In actual applications, the above functions can be allocated to different functions as needed. Module completion means dividing the internal structure of the device into different functional modules to complete all or part of the functions described above. In addition, the AGPS positioning startup device provided in the above embodiments and the AGPS positioning startup method embodiments belong to the same concept. Please refer to the method embodiments for the specific implementation process, which will not be described again here.
图10示出了本申请一个示例性实施例提供的计算机设备的结构示意图。该计算机设备可以是执行如本申请提供的AGPS定位启动方法的终端。具体来讲:Figure 10 shows a schematic structural diagram of a computer device provided by an exemplary embodiment of the present application. The computer device may be a terminal that executes the AGPS positioning startup method as provided in this application. Specifically:
计算机设备700包括中央处理单元(CPU,Central Processing Unit)701、包括随机存取存储器(RAM,Random Access Memory)702和只读存储器(ROM,Read Only Memory)703的系统存储器704,以及连接系统存储器704和中央处理单元701的系统总线705。计算机设备700还包括帮助计算机内的各个器件之间传输信息的基本输入/输出系统(I/O系统,Input Output System)706,和用于存储操作系统713、应用程序714和其他程序模块715的大容量存储设备707。The computer device 700 includes a central processing unit (CPU) 701, a system memory 704 including a random access memory (RAM) 702 and a read only memory (ROM) 703, and a connected system memory. 704 and the system bus 705 of the central processing unit 701. The computer device 700 also includes a basic input/output system (I/O system, Input Output System) 706 that helps transfer information between various devices within the computer, and an I/O system for storing an operating system 713, application programs 714, and other program modules 715. Mass storage device 707.
基本输入/输出系统706包括有用于显示信息的显示器708和用于用户输入信息的诸如鼠标、键盘之类的输入设备709。其中显示器708和输入设备709都通过连接到系统总线705的输入输出控制器710连接到中央处理单元701。基本输入/输出系统706还可以包括输入输出控制器710以用于接收和处理来自键盘、鼠标、或电子触控笔等多个其他设备的输入。类似地,输入输出控制器710还提供输出到显示屏、打印机或其他类型的输出设备。The basic input/output system 706 includes a display 708 for displaying information and input devices 709 such as a mouse and a keyboard for the user to input information. The display 708 and the input device 709 are both connected to the central processing unit 701 through the input and output controller 710 connected to the system bus 705 . Basic input/output system 706 may also include an input/output controller 710 for receiving and processing input from a variety of other devices such as a keyboard, mouse, or electronic stylus. Similarly, input and output controller 710 also provides output to a display screen, printer, or other type of output device.
大容量存储设备707通过连接到系统总线705的大容量存储控制器(未示出)连接到中央处理单元701。大容量存储设备707及其相关联的计算机可读介质为计算机设备700提供非易失性存储。也就是说,大容量存储设备707可以包括诸如硬盘或者紧凑型光盘只读存储器(CD-ROM,Compact Disc Read Only Memory)驱动器之类的计算机可读介质(未示出)。Mass storage device 707 is connected to central processing unit 701 through a mass storage controller (not shown) connected to system bus 705 . Mass storage device 707 and its associated computer-readable media provide non-volatile storage for computer device 700 . That is, the mass storage device 707 may include a computer-readable medium (not shown) such as a hard disk or a Compact Disc Read Only Memory (CD-ROM) drive.
计算机可读介质可以包括计算机存储介质和通信介质。计算机存储介质包括以用于存储诸如计算机可读指令、数据结构、程序模块或其他数据等信息的任何方法或技术实现的易失性和非易失性、可移动和不可移动介质。计算机存储介质包括RAM、ROM、可擦除可编程只读存储器(EPROM,Erasable Programmable Read Only Memory)、带电可擦可编程只读存储器(EEPROM,Electrically Erasable Programmable Read Only Memory)、闪存或其他固态存储其技术,CD-ROM、数字通用光盘(DVD,Digital Versatile Disc)或固态硬盘(SSD,Solid State Drives)、其他光学存储、磁带盒、磁带、磁盘存储或其他磁性存储设备。其中,随机存取记忆体可以包括电阻式随机存取记忆体(ReRAM,Resistance RandomAccess Memory)和动态随机存取存储器(DRAM,Dynamic Random Access Memory)。当然,本领域技术人员可知计算机存储介质不局限于上述几种。上述的系统存储器704和大容量存储设备707可以统称为存储器。Computer readable media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, Erasable Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash memory or other solid-state storage technologies, CD-ROM, Digital Versatile Disc (DVD) or Solid State Drive (SSD), other optical storage, cassettes, tapes, disk storage or other magnetic storage devices. Among them, random access memory may include resistance random access memory (ReRAM) and dynamic random access memory (DRAM). Of course, those skilled in the art will know that computer storage media are not limited to the above. The above-mentioned system memory 704 and mass storage device 707 can be collectively referred to as memory.
根据本申请的各种实施例,计算机设备700还可以通过诸如因特网等网络连接到网络上的远程计算机运行。也即计算机设备700可以通过连接在系统总线705上的网络接口单元711连接到网络712,或者说,也可以使用网络接口单元711来连接到其他类型的网络或远程计算机系统(未示出)。According to various embodiments of the present application, the computer device 700 may also operate on a remote computer connected to a network such as the Internet. That is, the computer device 700 can be connected to the network 712 through the network interface unit 711 connected to the system bus 705, or the network interface unit 711 can also be used to connect to other types of networks or remote computer systems (not shown).
上述存储器还包括一个或者一个以上的程序,一个或者一个以上程序存储于存储器中,被配置由CPU执行,以实现如上所述的AGPS定位启动方法。The above-mentioned memory also includes one or more programs. The one or more programs are stored in the memory and are configured to be executed by the CPU to implement the AGPS positioning startup method as described above.
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有至少一条指令,所述至少一条指令由处理器加载并执行以实现如上各个实施例所述的AGPS定位启动方法。Embodiments of the present application also provide a computer-readable storage medium that stores at least one instruction. The at least one instruction is loaded and executed by the processor to implement AGPS positioning startup as described in the above embodiments. method.
可选地,该计算机可读存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、固态硬盘(SSD,Solid State Drives)或光盘等。其中,随机存取记忆体可以包括电阻式随机存取记忆体(ReRAM,Resistance RandomAccess Memory)和动态随机存取存储器(DRAM,Dynamic Random Access Memory)。Optionally, the computer-readable storage medium may include: Read Only Memory (ROM), Random Access Memory (RAM), Solid State Drives (SSD), optical disks, etc. Among them, random access memory may include resistive random access memory (ReRAM, Resistance Random Access Memory) and dynamic random access memory (DRAM, Dynamic Random Access Memory).
本申请实施例还提供了一种计算机程序产品(或计算机程序),所述计算机程序产品(或计算机程序)包括计算机指令,所述计算机指令存储在计算机可读存储介质中;计算机设备的处理器从所述计算机可读存储介质读取所述计算机指令,所述处理器执行所述计算机指令,使得所述计算机设备执行如上各个实施例中提供的上述AGPS定位启动方法。Embodiments of the present application also provide a computer program product (or computer program). The computer program product (or computer program) includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; the processor of the computer device The computer instructions are read from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned AGPS positioning startup method provided in the above embodiments.
根据本申请的另一个方面内容,提供了一种芯片,所述芯片包括可编程逻辑电路和/或程序指令,当所述芯片运行时,用于实现如上各个实施例所述的AGPS定位启动方法。According to another aspect of the present application, a chip is provided. The chip includes programmable logic circuits and/or program instructions. When the chip is running, it is used to implement the AGPS positioning startup method as described in the above embodiments. .
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The above serial numbers of the embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage media mentioned can be read-only memory, magnetic disks or optical disks, etc.
以上所述仅为本申请的能够实现的示例性的实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only exemplary embodiments that can be implemented in this application, and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this application shall be included in within the protection scope of this application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210663586.4ACN115102923B (en) | 2022-06-09 | 2022-06-09 | AGPS positioning activation method, device, equipment, medium and program product |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210663586.4ACN115102923B (en) | 2022-06-09 | 2022-06-09 | AGPS positioning activation method, device, equipment, medium and program product |
| Publication Number | Publication Date |
|---|---|
| CN115102923A CN115102923A (en) | 2022-09-23 |
| CN115102923Btrue CN115102923B (en) | 2024-04-02 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210663586.4AActiveCN115102923B (en) | 2022-06-09 | 2022-06-09 | AGPS positioning activation method, device, equipment, medium and program product |
| Country | Link |
|---|---|
| CN (1) | CN115102923B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102215449A (en)* | 2010-04-02 | 2011-10-12 | 中兴通讯股份有限公司 | Secure user plane location (SUPL)-enabled terminal (SET) positioning method, device and system |
| US8712378B1 (en)* | 2011-07-29 | 2014-04-29 | Cellco Partnership | Authorization method for location based services |
| CN107396423A (en)* | 2017-07-26 | 2017-11-24 | 腾讯科技(深圳)有限公司 | Method for network access and device, storage medium and electronic installation |
| CN113452808A (en)* | 2021-06-29 | 2021-09-28 | 百果园技术(新加坡)有限公司 | Domain name resolution method, device, equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7254642B2 (en)* | 2003-01-30 | 2007-08-07 | International Business Machines Corporation | Method and apparatus for local IP address translation |
| WO2006111822A2 (en)* | 2005-04-18 | 2006-10-26 | Nokia Corporation | Network entity, method and computer program product for dynamically changing a request for location information |
| US9094784B2 (en)* | 2006-10-10 | 2015-07-28 | Qualcomm Incorporated | Registration of a terminal with a location server for user plane location |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102215449A (en)* | 2010-04-02 | 2011-10-12 | 中兴通讯股份有限公司 | Secure user plane location (SUPL)-enabled terminal (SET) positioning method, device and system |
| US8712378B1 (en)* | 2011-07-29 | 2014-04-29 | Cellco Partnership | Authorization method for location based services |
| CN107396423A (en)* | 2017-07-26 | 2017-11-24 | 腾讯科技(深圳)有限公司 | Method for network access and device, storage medium and electronic installation |
| CN113452808A (en)* | 2021-06-29 | 2021-09-28 | 百果园技术(新加坡)有限公司 | Domain name resolution method, device, equipment and storage medium |
| Publication number | Publication date |
|---|---|
| CN115102923A (en) | 2022-09-23 |
| Publication | Publication Date | Title |
|---|---|---|
| CN112118184B (en) | Gateway automatic routing method and device, storage medium and computer equipment | |
| KR102166589B1 (en) | Method and apparatus for realizing communication between web page and native application, and electronic device | |
| US9519654B2 (en) | Method, device, processing center and system for desktop synchronization | |
| CN110532123B (en) | Fault transfer method and device of HBase system | |
| WO2021109640A1 (en) | Registration method and apparatus | |
| EP3163946A1 (en) | Information transmission method and apparatus, device, computer program and recording medium | |
| WO2022048069A1 (en) | Device cross-area access method and apparatus, electronic device, and storage medium | |
| CN110580305B (en) | Method, apparatus, system and medium for generating identifier | |
| WO2021051747A1 (en) | Data update method, system and device, electronic device, and computer storage medium | |
| US20100332532A1 (en) | Distributed directory environment using clustered ldap servers | |
| CN114745413A (en) | Access control method, device, computer equipment and storage medium for server | |
| CN111694639A (en) | Method and device for updating address of process container and electronic equipment | |
| US20170171357A1 (en) | Apparatus and method for assisting in downloading file successfully | |
| CN115102923B (en) | AGPS positioning activation method, device, equipment, medium and program product | |
| CN111522567B (en) | Program upgrading method, device, system and medium | |
| CN117806664A (en) | Service installation method, device and system, electronic equipment and storage medium | |
| CN117255018A (en) | Network configuration method and device for bare metal instance and computer equipment | |
| CN108733382B (en) | Application software installation method, device and system | |
| CN113810463B (en) | Method and system for configuring delivery CDN server | |
| CN112835527A (en) | Expansion method and device based on MINIO cloud storage and electronic equipment | |
| CN115580614A (en) | Data downloading method, device and equipment and computer readable storage medium | |
| CN114157663A (en) | Cloud data access method and cloud server | |
| CN117082533A (en) | Mesh networking method, equipment and storage medium | |
| CN114237682A (en) | OTA upgrade method, device, electronic device and storage medium | |
| CN115633011A (en) | Service request method and device based on dynamic domain name |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |