




技术领域technical field
本发明涉及通信技术领域,尤其涉及一种全球定位系统启动方法及用户终端和相关介质产品。The present invention relates to the field of communication technologies, in particular to a method for starting a global positioning system, a user terminal and related media products.
背景技术Background technique
全球定位系统(Global Positioning System,GPS)是一个中距离圆型轨道卫星导航系统。GPS可以为地球表面大部分地区提供准确的定位、测速和高精度的时间标准。随着GPS技术的成熟,越来越多的用户终端(如智能手机)上设置有GPS模块,这给用户的生活带来了极大的方便。然而实践中发现,用户在开启用户终端中的GPS模块进行导航时,在导航过程中,经常会出现GPS掉星的情况,比如:GPS模块搜索到的卫星数量从10掉到0,这种情况下GPS模块无法对用户终端进行定位,通常需要用户手动重启GPS模块后才可以实现定位。如果在导航过程中,出现GPS掉星的次数很多,用户就需要多次手动重启GPS模块以实现定位,这使得GPS定位的效率较低。The Global Positioning System (GPS) is a medium-distance circular orbit satellite navigation system. GPS can provide accurate positioning, speed measurement and high-precision time standards for most of the earth's surface. With the maturity of GPS technology, more and more user terminals (such as smart phones) are provided with GPS modules, which brings great convenience to the life of users. However, in practice, it is found that when the user turns on the GPS module in the user terminal for navigation, the GPS satellite often occurs during the navigation process. For example, the number of satellites searched by the GPS module drops from 10 to 0. This situation The GPS module cannot locate the user terminal. Usually, the user needs to manually restart the GPS module to realize the positioning. If there are many GPS star drops during the navigation process, the user needs to manually restart the GPS module many times to achieve positioning, which makes the GPS positioning inefficient.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种全球定位系统启动方法及用户终端和相关介质产品,可以提高全球定位系统定位的效率。The embodiments of the present invention provide a method for starting a global positioning system, a user terminal, and related media products, which can improve the efficiency of positioning the global positioning system.
本发明实施例第一方面公开了一种全球定位系统启动方法,包括:A first aspect of the embodiments of the present invention discloses a method for starting a global positioning system, including:
在全球定位系统GPS模块处于开启状态的情况下,通过所述GPS模块搜索卫星,获得第一GPS卫星列表,所述第一GPS卫星列表用于存储第一卫星信号信息;When the GPS module of the global positioning system is in an on state, searching for satellites through the GPS module to obtain a first GPS satellite list, where the first GPS satellite list is used to store first satellite signal information;
根据所述第一卫星信号信息,判断所述GPS模块当前是否处于无效定位状态;According to the first satellite signal information, determine whether the GPS module is currently in an invalid positioning state;
若所述GPS模块当前处于无效定位状态,重启所述GPS模块。If the GPS module is currently in an invalid positioning state, restart the GPS module.
结合第一方面,在第一方面的第一种可能的实现方式中,所述在全球定位系统GPS模块处于开启状态的情况下,通过所述GPS模块搜索卫星,获得第一GPS卫星列表之后,所述方法还包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, when the GPS module of the global positioning system is in an on state, the GPS module is used to search for satellites, and after obtaining the first GPS satellite list, The method also includes:
获取第二GPS卫星列表,所述第二GPS卫星列表用于存储第二卫星信号信息;acquiring a second GPS satellite list, where the second GPS satellite list is used to store second satellite signal information;
判断所述第一卫星信号信息包括的卫星是否均存在于所述第二卫星信号信息包括的卫星集合中;judging whether the satellites included in the first satellite signal information all exist in the satellite set included in the second satellite signal information;
若是,执行所述根据所述第一卫星信号信息,判断所述GPS模块当前是否处于无效定位状态的步骤。If yes, execute the step of judging whether the GPS module is currently in an invalid positioning state according to the first satellite signal information.
结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述获取第二GPS卫星列表包括:With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the acquiring the second GPS satellite list includes:
从所述GPS模块中获取第二GPS卫星列表;或,Obtain a second GPS satellite list from the GPS module; or,
向辅助全球定位系统AGPS模块发送第二GPS卫星列表获取请求,并接收所述AGPS发送的第二GPS卫星列表。Send a second GPS satellite list acquisition request to the Assisted Global Positioning System AGPS module, and receive the second GPS satellite list sent by the AGPS.
结合第一方面至第一方面的第二种中的任一种可能的实现方式,在第一方面的第三种可能的实现方式中,所述第一卫星信号信息包括搜索到卫星的第一卫星数量以及每个所述卫星发出信号的信号强度值,所述根据所述第一卫星信号信息,判断所述GPS模块当前是否处于无效定位状态包括:With reference to any one possible implementation manner of the first aspect to the second aspect of the first aspect, in a third possible implementation manner of the first aspect, the first satellite signal information The number of satellites and the signal strength value of the signal sent by each of the satellites, and determining whether the GPS module is currently in an invalid positioning state according to the first satellite signal information includes:
判断所述第一卫星数量是否大于或等于最小卫星数量阈值;Judging whether the first number of satellites is greater than or equal to the minimum number of satellites threshold;
若是,确定信号强度值大于最小信号强度阈值的卫星的第二卫星数量;If so, determine the second satellite number of satellites whose signal strength value is greater than the minimum signal strength threshold;
判断所述第二卫星数量是否小于所述最小卫星数量阈值;judging whether the second number of satellites is less than the threshold of the minimum number of satellites;
若是,确定所述GPS模块当前处于无效定位状态。If so, it is determined that the GPS module is currently in an invalid positioning state.
结合第一方面至第一方面的第二种中的任一种可能的实现方式,在第一方面的第四种可能的实现方式中,所述方法还包括:With reference to any one possible implementation manner of the first aspect to the second aspect of the first aspect, in a fourth possible implementation manner of the first aspect, the method further includes:
若所述GPS模块当前处于无效定位状态,判断所述无效定位状态的持续时间是否大于最小无效时间阈值;If the GPS module is currently in an invalid positioning state, determine whether the duration of the invalid positioning state is greater than the minimum invalid time threshold;
若是,则执行所述重启所述GPS模块的步骤。If so, execute the step of restarting the GPS module.
本发明实施例第二方面公开了一种用户终端,包括:A second aspect of the embodiments of the present invention discloses a user terminal, including:
搜索单元,用于在全球定位系统GPS模块处于开启状态的情况下,通过所述GPS模块搜索卫星,获得第一GPS卫星列表,所述第一GPS卫星列表用于存储第一卫星信号信息;a search unit, configured to search for satellites through the GPS module when the GPS module of the global positioning system is in an on state, and obtain a first GPS satellite list, where the first GPS satellite list is used to store first satellite signal information;
第一判断单元,用于根据所述第一卫星信号信息,判断所述GPS模块当前是否处于无效定位状态;a first judging unit, configured to judge whether the GPS module is currently in an invalid positioning state according to the first satellite signal information;
重启单元,用于若所述第一判断单元判断所述GPS模块当前处于无效定位状态,重启所述GPS模块。A restarting unit, configured to restart the GPS module if the first judging unit judges that the GPS module is currently in an invalid positioning state.
结合第二方面,在第二方面的第一种可能的实现方式中,所述用户终端还包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, the user terminal further includes:
获取单元,用于在所述搜索单元在全球定位系统GPS模块处于开启状态的情况下,通过所述GPS模块搜索卫星,获得第一GPS卫星列表之后,获取第二GPS卫星列表,所述第二GPS卫星列表用于存储第二卫星信号信息;an obtaining unit, configured to search for satellites through the GPS module and obtain a second GPS satellite list after the first GPS satellite list is obtained when the search unit is in an on state of the GPS module of the global positioning system, and the second GPS satellite list is obtained. The GPS satellite list is used to store the second satellite signal information;
第二判断单元,用于判断所述第一卫星信号信息包括的卫星是否均存在于所述第二卫星信号信息包括的卫星集合中;a second judging unit, configured to judge whether the satellites included in the first satellite signal information all exist in the satellite set included in the second satellite signal information;
所述第一判断单元,具体用于当所述第二判断单元判断所述第一卫星信号信息包括的卫星均存在于所述第二卫星信号信息包括的卫星集合中时,根据所述第一卫星信号信息,判断所述GPS模块当前是否处于无效定位状态。The first judging unit is specifically configured to, when the second judging unit judges that the satellites included in the first satellite signal information all exist in the satellite set included in the second satellite signal information, according to the first The satellite signal information is used to determine whether the GPS module is currently in an invalid positioning state.
结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述获取单元获取第二GPS卫星列表的方式具体为:In combination with the first possible implementation manner of the second aspect, in the second possible implementation manner of the second aspect, the manner in which the acquiring unit acquires the second GPS satellite list is specifically:
从所述GPS模块中获取第二GPS卫星列表;或,Obtain a second GPS satellite list from the GPS module; or,
向辅助全球定位系统AGPS模块发送第二GPS卫星列表获取请求,并接收所述AGPS发送的第二GPS卫星列表。Send a second GPS satellite list acquisition request to the Assisted Global Positioning System AGPS module, and receive the second GPS satellite list sent by the AGPS.
结合第二方面至第二方面的第二种中的任一种可能的实现方式,在第二方面的第三种可能的实现方式中,所述第一卫星信号信息包括搜索到卫星的第一卫星数量以及每个所述卫星发出信号的信号强度值,所述第一判断单元包括:With reference to any one possible implementation manner of the second aspect to the second aspect of the second aspect, in a third possible implementation manner of the second aspect, the first satellite signal information The number of satellites and the signal strength value of the signal sent by each of the satellites, and the first judging unit includes:
判断子单元,用于判断所述第一卫星数量是否大于或等于最小卫星数量阈值;A judging subunit for judging whether the first number of satellites is greater than or equal to the minimum number of satellites threshold;
确定子单元,用于若所述判断子单元判断所述第一卫星数量大于或等于最小卫星数量阈值,确定信号强度值大于最小信号强度阈值的卫星的第二卫星数量;A determination subunit, configured to determine the second satellite number of satellites whose signal strength value is greater than the minimum signal strength threshold if the judgment subunit determines that the first satellite quantity is greater than or equal to the minimum satellite quantity threshold;
所述判断子单元,还用于判断所述第二卫星数量是否小于所述最小卫星数量阈值;The judging subunit is also used for judging whether the second number of satellites is less than the threshold of the minimum number of satellites;
所述确定子单元,还用于若所述判断子单元判断所述第二卫星数量小于所述最小卫星数量阈值,确定所述GPS模块当前处于无效定位状态。The determining subunit is further configured to determine that the GPS module is currently in an invalid positioning state if the determining subunit determines that the second satellite quantity is less than the minimum satellite quantity threshold.
结合第二方面至第二方面的第二种中的任一种可能的实现方式,在第二方面的第四种可能的实现方式中,所述第一判断单元还用于若所述GPS模块当前处于无效定位状态,判断所述无效定位状态的持续时间是否大于最小无效时间阈值;With reference to any one possible implementation manner of the second aspect to the second aspect of the second aspect, in a fourth possible implementation manner of the second aspect, the first judging unit is further configured to be used if the GPS module Currently in an invalid positioning state, judging whether the duration of the invalid positioning state is greater than the minimum invalid time threshold;
所述重启单元,具体用于若所述第一判断单元判断所述无效定位状态的持续时间大于最小无效时间阈值,重启所述GPS模块。The restarting unit is specifically configured to restart the GPS module if the first judging unit judges that the duration of the invalid positioning state is greater than a minimum invalid time threshold.
本发明实施例中,在全球定位系统GPS模块处于开启状态的情况下,用户终端可以通过GPS模块搜索卫星,获得第一GPS卫星列表,该第一GPS卫星列表用于存储第一卫星信号信息;进一步地,用户终端可以根据第一卫星信号信息,判断GPS模块当前是否处于无效定位状态;若GPS模块当前处于无效定位状态,用户终端可以重启GPS模块。可见,通过本发明实施例,用户终端可以实时根据接收到的卫星的卫星信号信息来自动判断GPS模块当前是否处于无效定位状态,若GPS模块当前处于无效定位状态,表明当前出现了GPS掉星的情况,用户终端可以自动重启GPS模块,而不用用户手动重启,就可以实现对用户终端的定位,从而可以提高全球定位系统定位的效率。In the embodiment of the present invention, when the GPS module of the global positioning system is in an on state, the user terminal can search for satellites through the GPS module to obtain a first GPS satellite list, where the first GPS satellite list is used to store the first satellite signal information; Further, the user terminal can determine whether the GPS module is currently in an invalid positioning state according to the first satellite signal information; if the GPS module is currently in an invalid positioning state, the user terminal can restart the GPS module. It can be seen that through the embodiment of the present invention, the user terminal can automatically determine whether the GPS module is currently in an invalid positioning state according to the received satellite signal information of the satellites in real time. In some cases, the user terminal can automatically restart the GPS module without the need for the user to manually restart the user terminal, so that the user terminal can be positioned, thereby improving the positioning efficiency of the global positioning system.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1是本发明实施例公开的一种定位系统的架构示意图;1 is a schematic structural diagram of a positioning system disclosed in an embodiment of the present invention;
图2是本发明实施例公开的一种全球定位系统启动方法的流程示意图;2 is a schematic flowchart of a method for starting a global positioning system disclosed in an embodiment of the present invention;
图3是本发明实施例公开的另一种全球定位系统启动方法的流程示意图;3 is a schematic flowchart of another global positioning system startup method disclosed in an embodiment of the present invention;
图4是本发明实施例公开的一种用户终端的结构示意图;4 is a schematic structural diagram of a user terminal disclosed in an embodiment of the present invention;
图5是本发明实施例公开的另一种用户终端的结构示意图;5 is a schematic structural diagram of another user terminal disclosed in an embodiment of the present invention;
图6是本发明实施例公开的另一种用户终端的结构示意图。FIG. 6 is a schematic structural diagram of another user terminal disclosed in an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明实施例公开了一种全球定位系统启动方法及用户终端,可以提高全球定位系统定位的效率。以下分别进行详细说明。The embodiment of the invention discloses a method for starting a global positioning system and a user terminal, which can improve the positioning efficiency of the global positioning system. Each of them will be described in detail below.
为了更好的理解本发明实施例公开的一种全球定位系统启动方法,下面对本发明实施例适用的网络架构进行描述。In order to better understand the method for starting a global positioning system disclosed by the embodiments of the present invention, the following describes the network architecture to which the embodiments of the present invention are applicable.
请参见图1,图1是本发明实施例公开的一种定位系统的架构示意图。如图1所示,该定位系统包括用户终端以及多个卫星。其中,用户终端可以包括但不限于智能手机、笔记本电脑、个人计算机(Personal Computer,PC)、个人数字助理(Personal DigitalAssistant,PDA)、移动互联网设备(Mobile Internet Device,MID)、智能穿戴设备(如智能手表、智能手环)等各类用户终端。其中,该用户终端上安装有全球定位系统(GlobalPositioning System,GPS)模块和辅助全球定位系统(Assisted Global PositioningSystem,AGPS)模块,卫星是指围绕一颗行星轨道并按闭合轨道做周期性运行的人造天体。需要说明的是,图1所示的卫星的数量并不局限于4颗,还可以包括比图1所示的更多或更少的卫星。Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of a positioning system disclosed in an embodiment of the present invention. As shown in Figure 1, the positioning system includes a user terminal and a plurality of satellites. Wherein, the user terminal may include, but is not limited to, a smart phone, a notebook computer, a personal computer (PC), a personal digital assistant (PDA), a mobile internet device (Mobile Internet Device, MID), a smart wearable device (such as Smart watches, smart bracelets) and other user terminals. The user terminal is equipped with a Global Positioning System (Global Positioning System, GPS) module and an Assisted Global Positioning System (AGPS) module, and a satellite refers to a man-made orbit that orbits a planet and runs periodically in a closed orbit. celestial body. It should be noted that the number of satellites shown in FIG. 1 is not limited to 4, and may also include more or less satellites than those shown in FIG. 1 .
图1所示的定位系统通常由24颗卫星组成。其中,工作卫星21颗,备用卫星3颗,平均分布在6个轨道上,每个轨道4颗卫星,在半径26560千米的近圆形轨道上运行,运行周期11小时58分钟。空间卫星系统保证地面上任何地点,任何时间都可以观测到4颗以上的卫星,并接受到卫星携带的无线电发射机连续播放的GPS导航信号。用户终端可以通过GPS模块捕获到按一定卫星截止角所选择的待测卫星,并跟踪这些卫星的运行。当用户终端捕获到跟踪的卫星信号后,即可测量出接收天线至卫星的伪距离和距离的变化率,解调出卫星轨道参数等数据(即星历数据)。根据这些数据,用户终端中的处理器就可按定位解算方法进行定位计算,计算出用户终端所在地理位置的经纬度、高度、速度、时间等信息。The positioning system shown in Figure 1 usually consists of 24 satellites. Among them, there are 21 working satellites and 3 spare satellites, which are evenly distributed in 6 orbits, with 4 satellites in each orbit, running in a near-circular orbit with a radius of 26,560 kilometers, with an operation period of 11 hours and 58 minutes. The space satellite system ensures that more than 4 satellites can be observed at any place on the ground at any time, and receive GPS navigation signals continuously broadcast by the radio transmitters carried by the satellites. The user terminal can capture the satellites to be tested selected according to a certain satellite cut-off angle through the GPS module, and track the operation of these satellites. After the user terminal captures the tracked satellite signal, it can measure the pseudo-distance from the receiving antenna to the satellite and the rate of change of the distance, and demodulate the satellite orbit parameters and other data (ie ephemeris data). According to these data, the processor in the user terminal can perform positioning calculation according to the positioning solution method, and calculate the longitude, latitude, altitude, speed, time and other information of the geographic location where the user terminal is located.
其中,用户终端也可以通过AGPS模块获取到星历数据。具体的,可以通过AGPS服务器与用户终端的交互获得用户终端的参考位置,然后通过移动网络(如GSM/GPRS、WCDMA和CDMA2000网络)将该用户终端需要的星历数据和时钟等辅助数据发送给用户终端,以辅助用户终端的GPS模块进行定位。The user terminal may also acquire ephemeris data through the AGPS module. Specifically, the reference position of the user terminal can be obtained through the interaction between the AGPS server and the user terminal, and then auxiliary data such as ephemeris data and clock required by the user terminal are sent to the mobile network (such as GSM/GPRS, WCDMA and CDMA2000 networks). The user terminal performs positioning by assisting the GPS module of the user terminal.
然而,用户在开启用户终端中的GPS模块进行导航时,在导航过程中,经常会出现GPS掉星的情况,比如:GPS模块搜索到的卫星数量从10掉到0,这种情况下GPS模块无法对用户终端进行定位,通常需要用户手动重启GPS模块后才可以实现定位,这使得GPS定位的效率较低。However, when the user turns on the GPS module in the user terminal for navigation, GPS satellites often drop during the navigation process. For example, the number of satellites searched by the GPS module drops from 10 to 0. In this case, the GPS module The user terminal cannot be positioned, and the user usually needs to manually restart the GPS module before the positioning can be achieved, which makes the GPS positioning inefficient.
在图1所描述的定位系统中,在全球定位系统GPS模块处于开启状态的情况下,用户终端可以通过GPS模块搜索卫星,获得第一GPS卫星列表,该第一GPS卫星列表用于存储第一卫星信号信息;进一步地,用户终端可以根据第一卫星信号信息,判断GPS模块当前是否处于无效定位状态;若GPS模块当前处于无效定位状态,用户终端可以重启GPS模块。可见,通过本发明实施例,用户终端可以实时根据接收到的卫星的卫星信号信息来自动判断GPS模块当前是否处于无效定位状态,若GPS模块当前处于无效定位状态,表明当前出现了GPS掉星的情况,用户终端可以自动重启GPS模块,而不用用户手动重启,就可以实现对用户终端的定位,从而可以提高全球定位系统定位的效率。In the positioning system described in FIG. 1 , when the GPS module of the global positioning system is turned on, the user terminal can search for satellites through the GPS module to obtain a first GPS satellite list, and the first GPS satellite list is used to store the first GPS satellite list. satellite signal information; further, the user terminal can determine whether the GPS module is currently in an invalid positioning state according to the first satellite signal information; if the GPS module is currently in an invalid positioning state, the user terminal can restart the GPS module. It can be seen that through the embodiment of the present invention, the user terminal can automatically determine whether the GPS module is currently in an invalid positioning state according to the received satellite signal information of the satellites in real time. In some cases, the user terminal can automatically restart the GPS module without the need for the user to manually restart the user terminal, so that the user terminal can be positioned, thereby improving the positioning efficiency of the global positioning system.
基于图1所示的架构,本发明实施例公开了一种全球定位系统启动方法。请参见图2,图2是本发明实施例公开的一种全球定位系统启动方法的流程示意图。如图2所示,该方法可以包括以下步骤。Based on the architecture shown in FIG. 1 , an embodiment of the present invention discloses a method for starting a global positioning system. Please refer to FIG. 2 , which is a schematic flowchart of a method for starting a global positioning system disclosed in an embodiment of the present invention. As shown in Figure 2, the method may include the following steps.
201、在全球定位系统GPS模块处于开启状态的情况下,用户终端通过GPS模块搜索卫星,获得第一GPS卫星列表。201. When the GPS module of the global positioning system is in an on state, the user terminal searches for satellites through the GPS module to obtain a first list of GPS satellites.
本发明实施例中,用户终端可以通过GPS模块搜索用户终端上空的卫星,接收搜索到的卫星所发送的信号,并分析每颗卫星的发送信号的频率、编号、运行轨迹,最终锁定卫星,获得第一GPS卫星列表,该第一GPS卫星列表用于存储第一卫星信号信息,该第一卫星信号信息可以包括卫星的标识、卫星的数量、每颗卫星所发送的信号强度值等信息。In the embodiment of the present invention, the user terminal can search for satellites over the user terminal through the GPS module, receive the signals sent by the searched satellites, analyze the frequency, number, and running track of the signals sent by each satellite, and finally lock the satellites to obtain A first GPS satellite list, where the first GPS satellite list is used to store first satellite signal information, where the first satellite signal information may include information such as the identifier of the satellite, the number of satellites, the signal strength value sent by each satellite, and the like.
202、用户终端根据第一卫星信号信息,判断GPS模块当前是否处于无效定位状态,若是,执行步骤203,若否,结束本流程。202. The user terminal determines, according to the first satellite signal information, whether the GPS module is currently in an invalid positioning state, and if so, executes
本发明实施例中,第一卫星信号信息包括搜索到卫星的第一卫星数量以及每个卫星发出信号的信号强度值。In this embodiment of the present invention, the first satellite signal information includes the number of the first satellites searched for and the signal strength value of the signal sent by each satellite.
作为一种可选的实施方式,用户终端根据第一卫星信号信息,判断GPS模块当前是否处于无效定位状态的方式可以为:As an optional implementation manner, the method for the user terminal to determine whether the GPS module is currently in an invalid positioning state according to the first satellite signal information may be:
判断第一卫星数量是否大于或等于最小卫星数量阈值;Determine whether the first number of satellites is greater than or equal to the minimum number of satellites threshold;
若是,确定信号强度值大于最小信号强度阈值的卫星的第二卫星数量;If so, determine the second satellite number of satellites whose signal strength value is greater than the minimum signal strength threshold;
判断第二卫星数量是否小于最小卫星数量阈值;Judging whether the number of the second satellites is less than the minimum number of satellites threshold;
若是,确定GPS模块当前处于无效定位状态。If so, it is determined that the GPS module is currently in an invalid positioning state.
在该可选的实施方式中,GPS模块对用户终端进行定位时至少需要4颗卫星,故最小卫星数量阈值可以为4,当用户终端判断第一卫星数量大于或等于最小卫星数量阈值时,用户终端可以统计信号强度值大于最小信号强度阈值(如8)的卫星的第二卫星数量,并进一步判断第二卫星数量是否小于最小卫星数量阈值,若是,表明信号强度较大的卫星比较少,不足以用于GPS模块对用户终端进行定位,此时,用户终端可以确定GPS模块当前处于无效定位状态。其中,可选额,若判断第一卫星数量小于最小卫星数量阈值,也可以确定GPS模块当前处于无效定位状态。In this optional embodiment, the GPS module needs at least 4 satellites to locate the user terminal, so the minimum satellite quantity threshold may be 4. When the user terminal determines that the first satellite quantity is greater than or equal to the minimum satellite quantity threshold, the user The terminal can count the number of second satellites of satellites whose signal strength value is greater than the minimum signal strength threshold (for example, 8), and further judge whether the second satellite number is less than the minimum satellite number threshold. The GPS module is used to locate the user terminal. At this time, the user terminal can determine that the GPS module is currently in an invalid positioning state. Wherein, optionally, if it is determined that the first number of satellites is less than the threshold of the minimum number of satellites, it can also be determined that the GPS module is currently in an invalid positioning state.
203、用户终端重启GPS模块。203. The user terminal restarts the GPS module.
本发明实施例中,用户终端根据第一卫星信号信息,判断GPS模块当前处于无效定位状态,表明当前出现了GPS掉星的情况,用户终端可以自动重启GPS模块,而不用用户手动重启,就可以实现对用户终端的定位。In the embodiment of the present invention, the user terminal determines that the GPS module is currently in an invalid positioning state according to the first satellite signal information, indicating that the GPS satellite is currently in a situation of falling off. Realize the positioning of the user terminal.
在图2所描述的方法流程中,在全球定位系统GPS模块处于开启状态的情况下,用户终端可以通过GPS模块搜索卫星,获得第一GPS卫星列表,该第一GPS卫星列表用于存储第一卫星信号信息;进一步地,用户终端可以根据第一卫星信号信息,判断GPS模块当前是否处于无效定位状态;若GPS模块当前处于无效定位状态,用户终端可以重启GPS模块。可见,通过本发明实施例,用户终端可以实时根据接收到的卫星的卫星信号信息来自动判断GPS模块当前是否处于无效定位状态,若GPS模块当前处于无效定位状态,表明当前出现了GPS掉星的情况,用户终端可以自动重启GPS模块,而不用用户手动重启,就可以实现对用户终端的定位,从而可以提高全球定位系统定位的效率。In the method flow described in FIG. 2 , when the GPS module of the global positioning system is turned on, the user terminal can search for satellites through the GPS module to obtain a first GPS satellite list, and the first GPS satellite list is used to store the first GPS satellite list. satellite signal information; further, the user terminal can determine whether the GPS module is currently in an invalid positioning state according to the first satellite signal information; if the GPS module is currently in an invalid positioning state, the user terminal can restart the GPS module. It can be seen that through the embodiment of the present invention, the user terminal can automatically determine whether the GPS module is currently in an invalid positioning state according to the received satellite signal information of the satellites in real time. In some cases, the user terminal can automatically restart the GPS module without the need for the user to manually restart the user terminal, so that the user terminal can be positioned, thereby improving the positioning efficiency of the global positioning system.
基于图1所示的架构,本发明实施例公开了一种全球定位系统启动方法。请参见图3,图3是本发明实施例公开的另一种全球定位系统启动方法的流程示意图。如图2所示,该方法可以包括以下步骤。Based on the architecture shown in FIG. 1 , an embodiment of the present invention discloses a method for starting a global positioning system. Please refer to FIG. 3 , which is a schematic flowchart of another method for starting a global positioning system disclosed in an embodiment of the present invention. As shown in Figure 2, the method may include the following steps.
301、用户终端在全球定位系统GPS模块处于开启状态的情况下,通过GPS模块搜索卫星,获得第一GPS卫星列表。301. When the GPS module of the global positioning system is turned on, the user terminal searches for satellites through the GPS module to obtain a first list of GPS satellites.
302、用户终端获取第二GPS卫星列表。302. The user terminal acquires a second GPS satellite list.
本发明实施例中,第二GPS卫星列表用于存储第二卫星信号信息。该第二GPS卫星列表用于存储第二卫星信号信息,该第二卫星信号信息可以包括卫星的标识、卫星的数量、每颗卫星所发送的信号强度值等信息。In this embodiment of the present invention, the second GPS satellite list is used to store second satellite signal information. The second GPS satellite list is used to store second satellite signal information, where the second satellite signal information may include information such as the identifier of the satellite, the number of satellites, the signal strength value sent by each satellite, and the like.
可选的,用户终端获取第二GPS卫星列表的方式具体可以为:Optionally, the specific manner in which the user terminal obtains the second GPS satellite list may be:
从GPS模块中获取第二GPS卫星列表;或,obtain a second list of GPS satellites from the GPS module; or,
向辅助全球定位系统AGPS模块发送第二GPS卫星列表获取请求,并接收AGPS发送的第二GPS卫星列表。Send a second GPS satellite list acquisition request to the Assisted Global Positioning System AGPS module, and receive the second GPS satellite list sent by AGPS.
在该可选的实施方式中,一旦GPS模块定位成功,在的内存中就会保存短效星历数据,即:定位的经纬度、海拔、定位位置上空卫星的数量和轨迹以及预测四小时之内这些卫星的位置。当用户终端在下一次需要定位时,就可以直接从GPS模块中读取这些短效星历数据,就可以不用计算卫星的轨道,只需要简单的分析处理这些短效星历数据,就可以锁定卫星,从而可以缩小搜索定位卫星的范围而加快搜索到对应的定位卫星,缩短搜索卫星的时间,加快定位速度。In this optional embodiment, once the GPS module is successfully positioned, the short-term ephemeris data will be stored in the memory of the location of these satellites. When the user terminal needs to locate the next time, it can directly read these short-term ephemeris data from the GPS module, and it is not necessary to calculate the orbit of the satellite, but simply analyze and process these short-term ephemeris data to lock the satellite. , so that the scope of searching for positioning satellites can be narrowed and the corresponding positioning satellites can be searched faster, the time for searching satellites can be shortened, and the positioning speed can be accelerated.
然而,GPS模块保存的短效星历数据并不是长期有效,当时间超过最小时间阈值(如4小时),或者距离上一次定位的距离超过最小距离阈值(如1000公里),GPS模块保存的短效星历数据就失效了,此时,GPS模块也会自动清空保存的短效星历数据。However, the short-term ephemeris data saved by the GPS module is not valid for a long time. When the time exceeds the minimum time threshold (such as 4 hours), or the distance from the last positioning exceeds the minimum distance threshold (such as 1000 kilometers), the GPS module saves the short-term ephemeris data. The valid ephemeris data will be invalid. At this time, the GPS module will also automatically clear the saved short-term ephemeris data.
AGPS模块可以辅助用户终端的GPS模块进行定位。A-GPS技术是一种结合了网络基站信息和GPS信息对移动台进行定位的技术,可以在GSM/GPRS、WCDMA和CDMA2000网络中使用。AGPS模块可以通过AGPS服务器与用户终端的交互获得用户终端的参考位置,然后通过移动网络将该用户终端需要的星历数据和时钟等辅助数据发送给用户终端,以辅助用户终端的GPS模块进行定位。The AGPS module can assist the GPS module of the user terminal to locate. A-GPS technology is a technology that combines network base station information and GPS information to locate mobile stations, and can be used in GSM/GPRS, WCDMA and CDMA2000 networks. The AGPS module can obtain the reference position of the user terminal through the interaction between the AGPS server and the user terminal, and then send the auxiliary data such as ephemeris data and clock required by the user terminal to the user terminal through the mobile network to assist the GPS module of the user terminal in positioning. .
303、用户终端判断第一卫星信号信息包括的卫星是否均存在于第二卫星信号信息包括的卫星集合中,若是,执行步骤304,若否,执行步骤307。303. The user terminal determines whether the satellites included in the first satellite signal information all exist in the satellite set included in the second satellite signal information, and if so, go to step 304, and if not, go to step 307.
本发明实施例中,第二卫星信号信息为GPS模块预先对用户终端成功定位并保存的信息,或者,该第二卫星信号信息为AGPS模块通过移动网络获取的信息,该第二卫星信号信息属于有效信息,而第一卫星信号信息是当前用户终端通过GPS模块搜索卫星而获得的信息,有可能是无效信息。故用户终端可以判断第一卫星信号信息包括的卫星是否均存在于第二卫星信号信息包括的卫星集合中,若是,表明当前GPS模块获得的第一卫星信号信息为有效信息,若否,表明当前GPS模块获得的第一卫星信号信息是无效信息,当前出现了GPS掉星的情况,用户终端可以立即重启GPS模块。In the embodiment of the present invention, the second satellite signal information is the information that the GPS module successfully locates and saves the user terminal in advance, or the second satellite signal information is the information obtained by the AGPS module through the mobile network, and the second satellite signal information belongs to Valid information, and the first satellite signal information is the information obtained by the current user terminal searching for satellites through the GPS module, and may be invalid information. Therefore, the user terminal can judge whether the satellites included in the first satellite signal information all exist in the satellite set included in the second satellite signal information. If so, it indicates that the first satellite signal information obtained by the current GPS module is valid information. The first satellite signal information obtained by the GPS module is invalid information. If the GPS satellite is dropped at present, the user terminal can restart the GPS module immediately.
304、用户终端根据第一卫星信号信息,判断GPS模块当前是否处于无效定位状态,若是,执行步骤305,若否,结束本流程。304. The user terminal determines whether the GPS module is currently in an invalid positioning state according to the first satellite signal information, and if so, executes
305、用户终端判断无效定位状态的持续时间是否大于最小无效时间阈值,若是,执行步骤306,若否,返回继续执行步骤301。305. The user terminal determines whether the duration of the invalid positioning state is greater than the minimum invalid time threshold, and if so, executes
本发明实施例中,当用户终端被遮挡物(如建筑物)遮挡时,用户终端将接收不到卫星发送的信号,一般在短时间内,用户会携带用户终端离开该遮挡物,用户终端就可以接收到卫星发送的信号,并恢复对用户终端的定位,这种情况不属于掉星的情况。可以设定一个最小无效时间阈值,如3min,用户终端可以判断无效定位状态的持续时间是否大于最小无效时间阈值,若是,表明当前确实是发生了掉星的情况,用户终端需要重启GPS模块,若否,表明用户终端当前处于短暂的无效定位状态,用户终端可以继续搜索卫星,重新定位。In this embodiment of the present invention, when the user terminal is blocked by an obstruction (such as a building), the user terminal cannot receive the signal sent by the satellite. Generally, in a short period of time, the user will take the user terminal away from the obstruction, and the user terminal will The signal sent by the satellite can be received, and the positioning of the user terminal can be recovered, which is not the case of a lost satellite. A minimum invalid time threshold can be set, such as 3min. The user terminal can determine whether the duration of the invalid positioning state is greater than the minimum invalid time threshold. If so, it indicates that a star drop has indeed occurred. The user terminal needs to restart the GPS module. No, it indicates that the user terminal is currently in a temporary invalid positioning state, and the user terminal can continue to search for satellites and reposition.
306、用户终端重启GPS模块,并结束本流程。306. The user terminal restarts the GPS module, and ends the process.
307、用户终端重启GPS模块,并结束本流程。307. The user terminal restarts the GPS module, and ends the process.
在图3所描述的方法流程中,用户终端可以通过多种方式来确定当前是否出现了掉星情况而使得GPS模块无法对用户终端进行定位,若出现了掉星情况,用户终端立即重启GPS模块,而不用用户手动重启,从而可以提高全球定位系统定位的效率。In the method flow described in FIG. 3 , the user terminal can determine whether there is a star drop situation in various ways, so that the GPS module cannot locate the user terminal. If the star drop situation occurs, the user terminal immediately restarts the GPS module , without the user's manual restart, so that the efficiency of GPS positioning can be improved.
请参见图4,图4是本发明实施例公开的一种用户终端的结构示意图,其中,该用户终端用于执行图2和图3所公开的一种全球定位系统启动方法的全部或部分步骤,如图4所示,该用户终端400可以包括:Please refer to FIG. 4. FIG. 4 is a schematic structural diagram of a user terminal disclosed in an embodiment of the present invention, where the user terminal is used to execute all or part of the steps of a global positioning system startup method disclosed in FIG. 2 and FIG. 3 , as shown in FIG. 4 , the
搜索单元401,用于在全球定位系统GPS模块处于开启状态的情况下,通过所述GPS模块搜索卫星,获得第一GPS卫星列表,所述第一GPS卫星列表用于存储第一卫星信号信息;A
第一判断单元402,用于根据所述第一卫星信号信息,判断所述GPS模块当前是否处于无效定位状态;A
重启单元403,用于若所述第一判断单元402判断所述GPS模块当前处于无效定位状态,重启所述GPS模块。The restarting
请参见图5,图5是本发明实施例公开的另一种用户终端的结构示意图,其中,该用户终端用于执行图2和图3所公开的一种全球定位系统启动方法的全部或部分步骤,图5所示的用户终端是在图4所示的用户终端的基础上进一步优化得到的,与图4所示的用户终端相比,图5所示的用户终端除了包括图4所示的用户终端的所有单元外,还可以包括:Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of another user terminal disclosed in an embodiment of the present invention, where the user terminal is used to execute all or part of the method for starting a global positioning system disclosed in FIG. 2 and FIG. 3 Steps, the user terminal shown in FIG. 5 is further optimized on the basis of the user terminal shown in FIG. 4 . Compared with the user terminal shown in FIG. 4 , the user terminal shown in FIG. In addition to all units of the user terminal, it can also include:
获取单元404,用于在所述搜索单元401在全球定位系统GPS模块处于开启状态的情况下,通过所述GPS模块搜索卫星,获得第一GPS卫星列表之后,获取第二GPS卫星列表,所述第二GPS卫星列表用于存储第二卫星信号信息;The obtaining
第二判断单元405,用于判断所述第一卫星信号信息包括的卫星是否均存在于所述第二卫星信号信息包括的卫星集合中;A
所述第一判断单元402,具体用于当所述第二判断单元405判断所述第一卫星信号信息包括的卫星均存在于所述第二卫星信号信息包括的卫星集合中时,根据所述第一卫星信号信息,判断所述GPS模块当前是否处于无效定位状态。The
可选的,所述获取单元404获取第二GPS卫星列表的方式具体为:Optionally, the manner in which the acquiring
从所述GPS模块中获取第二GPS卫星列表;或,Obtain a second GPS satellite list from the GPS module; or,
向辅助全球定位系统AGPS模块发送第二GPS卫星列表获取请求,并接收所述AGPS发送的第二GPS卫星列表。Send a second GPS satellite list acquisition request to the Assisted Global Positioning System AGPS module, and receive the second GPS satellite list sent by the AGPS.
其中,所述第一卫星信号信息包括搜索到卫星的第一卫星数量以及每个所述卫星发出信号的信号强度值,所述第一判断单元402包括:Wherein, the first satellite signal information includes the number of the first satellites searched for and the signal strength value of the signal sent by each of the satellites, and the
判断子单元4021,用于判断所述第一卫星数量是否大于或等于最小卫星数量阈值;Judging
确定子单元4022,用于若所述判断子单元4021判断所述第一卫星数量大于或等于最小卫星数量阈值,确定信号强度值大于最小信号强度阈值的卫星的第二卫星数量;Determining
所述判断子单元4021,还用于判断所述第二卫星数量是否小于所述最小卫星数量阈值;The judging
所述确定子单元4022,还用于若所述判断子单元4021判断所述第二卫星数量小于所述最小卫星数量阈值,确定所述GPS模块当前处于无效定位状态。The determining
可选的,所述第一判断单元402还用于若所述GPS模块当前处于无效定位状态,判断所述无效定位状态的持续时间是否大于最小无效时间阈值;Optionally, the
所述重启单元403,具体用于若所述第一判断单元402判断所述无效定位状态的持续时间大于最小无效时间阈值,重启所述GPS模块。The restarting
在图4和图5所描述的用户终端400中,在全球定位系统GPS模块处于开启状态的情况下,搜索单元401可以通过GPS模块搜索卫星,获得第一GPS卫星列表,该第一GPS卫星列表用于存储第一卫星信号信息;进一步地,第一判断单元402可以根据第一卫星信号信息,判断GPS模块当前是否处于无效定位状态;若GPS模块当前处于无效定位状态,重启单元403可以重启GPS模块。可见,通过本发明实施例,用户终端可以实时根据接收到的卫星的卫星信号信息来自动判断GPS模块当前是否处于无效定位状态,若GPS模块当前处于无效定位状态,表明当前出现了GPS掉星的情况,用户终端可以自动重启GPS模块,而不用用户手动重启,就可以实现对用户终端的定位,从而可以提高全球定位系统定位的效率。In the
请参见图6,图6是本发明实施例公开的另一种用户终端的结构示意图,其中,该用户终端用于执行图2和图3所公开的一种全球定位系统启动方法的全部或部分步骤,如图6所示,该用户终端600可以包括:至少一个处理器601、接收器602、存储器603以及至少一个通信总线604。其中,通信总线604用于实现这些组件之间的通信连接。本领域技术人员可以理解,图6中示出的用户终端的结构并不构成对本发明实施例的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:Please refer to FIG. 6. FIG. 6 is a schematic structural diagram of another user terminal disclosed in an embodiment of the present invention, where the user terminal is used to execute all or part of the method for starting a global positioning system disclosed in FIG. 2 and FIG. 3 Steps, as shown in FIG. 6 , the user terminal 600 may include: at least one processor 601 , a receiver 602 , a memory 603 and at least one communication bus 604 . Among them, the communication bus 604 is used to realize the communication connection between these components. Those skilled in the art can understand that the structure of the user terminal shown in FIG. 6 does not constitute a limitation on the embodiments of the present invention, and it may be a bus-shaped structure or a star-shaped structure, and may also include more than shown in the figure. or fewer components, or a combination of certain components, or a different arrangement of components. in:
处理器601为用户终端的控制中心,利用各种接口和线路连接整个用户终端的各个部分,通过运行或执行存储在存储器603内的程序和/或模块,以及调用存储在存储器603内的数据,以执行用户终端的各种功能和处理数据。处理器601可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器601可以仅包括中央处理器(Central Processing Unit,简称CPU),也可以是CPU、数字信号处理器(digital signalprocessor,简称DSP)、图形处理器(Graphic Processing Unit,简称GPU)及各种控制芯片的组合。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。The processor 601 is the control center of the user terminal, using various interfaces and lines to connect various parts of the entire user terminal, by running or executing the programs and/or modules stored in the memory 603, and calling the data stored in the memory 603, To perform various functions of the user terminal and process data. The processor 601 may be composed of an integrated circuit (Integrated Circuit, IC for short), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs with the same function or different functions. For example, the processor 601 may only include a central processing unit (Central Processing Unit, CPU for short), or may be a CPU, a digital signal processor (DSP), a graphics processor (Graphic Processing Unit, GPU for short) And a combination of various control chips. In the embodiment of the present invention, the CPU may be a single computing core, or may include multiple computing cores.
存储器603可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatilememory),例如至少一个磁盘存储器。存储器603可选的还可以是至少一个位于远离前述处理器601的存储装置。如图6所示,作为一种计算机存储介质的存储器603中可以包括操作系统、网络通信模块以及应用程序等。在本发明实施例中,操作系统可以是Android系统、iOS系统或Windows操作系统等等。The memory 603 may be a high-speed RAM memory, or a non-volatile memory, such as at least one disk memory. The memory 603 can optionally also be at least one storage device located away from the aforementioned processor 601 . As shown in FIG. 6 , the memory 603 as a computer storage medium may include an operating system, a network communication module, an application program, and the like. In this embodiment of the present invention, the operating system may be an Android system, an iOS system, a Windows operating system, or the like.
具体地,处理器601调用存储在存储器603中的应用程序,用于执行以下操作:Specifically, the processor 601 invokes the application program stored in the memory 603 to perform the following operations:
在全球定位系统GPS模块处于开启状态的情况下,通过所述GPS模块搜索卫星,获得第一GPS卫星列表,所述第一GPS卫星列表用于存储第一卫星信号信息;When the GPS module of the global positioning system is in an on state, searching for satellites through the GPS module to obtain a first GPS satellite list, where the first GPS satellite list is used to store first satellite signal information;
根据所述第一卫星信号信息,判断所述GPS模块当前是否处于无效定位状态;According to the first satellite signal information, determine whether the GPS module is currently in an invalid positioning state;
若所述GPS模块当前处于无效定位状态,重启所述GPS模块。If the GPS module is currently in an invalid positioning state, restart the GPS module.
可选的,所述在全球定位系统GPS模块处于开启状态的情况下,通过所述GPS模块搜索卫星,获得第一GPS卫星列表之后,处理器601还调用存储在存储器603中的应用程序,用于执行以下操作:Optionally, when the GPS module of the global positioning system is in an on state, after searching for satellites through the GPS module and obtaining the first list of GPS satellites, the processor 601 also calls the application program stored in the memory 603 to use to do the following:
获取第二GPS卫星列表,所述第二GPS卫星列表用于存储第二卫星信号信息;acquiring a second GPS satellite list, where the second GPS satellite list is used to store second satellite signal information;
判断所述第一卫星信号信息包括的卫星是否均存在于所述第二卫星信号信息包括的卫星集合中;judging whether the satellites included in the first satellite signal information all exist in the satellite set included in the second satellite signal information;
若是,执行所述根据所述第一卫星信号信息,判断所述GPS模块当前是否处于无效定位状态的步骤。If yes, execute the step of judging whether the GPS module is currently in an invalid positioning state according to the first satellite signal information.
其中,所述获取第二GPS卫星列表包括:Wherein, the obtaining the second GPS satellite list includes:
从所述GPS模块中获取第二GPS卫星列表;或,Obtain a second GPS satellite list from the GPS module; or,
向辅助全球定位系统AGPS模块发送第二GPS卫星列表获取请求,通过接收器602接收所述AGPS发送的第二GPS卫星列表。Send a second GPS satellite list acquisition request to the Assisted Global Positioning System AGPS module, and receive the second GPS satellite list sent by the AGPS through the receiver 602 .
其中,所述第一卫星信号信息包括搜索到卫星的第一卫星数量以及每个所述卫星发出信号的信号强度值,所述根据所述第一卫星信号信息,判断所述GPS模块当前是否处于无效定位状态包括:Wherein, the first satellite signal information includes the number of the first satellites searched for and the signal strength value of the signal sent by each of the satellites, and according to the first satellite signal information, it is determined whether the GPS module is currently in Invalid targeting states include:
判断所述第一卫星数量是否大于或等于最小卫星数量阈值;Judging whether the first number of satellites is greater than or equal to the minimum number of satellites threshold;
若是,确定信号强度值大于最小信号强度阈值的卫星的第二卫星数量;If so, determine the second satellite number of satellites whose signal strength value is greater than the minimum signal strength threshold;
判断所述第二卫星数量是否小于所述最小卫星数量阈值;judging whether the second number of satellites is less than the threshold of the minimum number of satellites;
若是,确定所述GPS模块当前处于无效定位状态。If so, it is determined that the GPS module is currently in an invalid positioning state.
可选的,处理器601还调用存储在存储器603中的应用程序,用于执行以下操作:Optionally, the processor 601 also calls the application program stored in the memory 603 for performing the following operations:
若所述GPS模块当前处于无效定位状态,判断所述无效定位状态的持续时间是否大于最小无效时间阈值;If the GPS module is currently in an invalid positioning state, determine whether the duration of the invalid positioning state is greater than the minimum invalid time threshold;
若是,则执行所述重启所述GPS模块的步骤。If so, execute the step of restarting the GPS module.
在图6所描述的方法流程中,用户终端可以实时根据接收到的卫星的卫星信号信息来自动判断GPS模块当前是否处于无效定位状态,若GPS模块当前处于无效定位状态,表明当前出现了GPS掉星的情况,用户终端可以自动重启GPS模块,而不用用户手动重启,就可以实现对用户终端的定位,从而可以提高全球定位系统定位的效率。In the method flow described in FIG. 6 , the user terminal can automatically determine whether the GPS module is currently in an invalid positioning state according to the received satellite signal information of the satellites in real time. If the GPS module is currently in an invalid positioning state, it indicates that there is a GPS failure In the case of a satellite, the user terminal can automatically restart the GPS module without the need for the user to manually restart the user terminal, so that the positioning of the user terminal can be realized, thereby improving the positioning efficiency of the global positioning system.
需要说明的是,对于前述的各个方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某一些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和单元并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and units involved are not necessarily required by the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and the program is During execution, it may include the processes of the embodiments of the above-mentioned methods. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like.
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and of course, the scope of the rights of the present invention cannot be limited by this. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710847896.0ACN107678045B (en) | 2016-03-25 | 2016-03-25 | Global positioning system starting method, user terminal and related medium product |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610177515.8ACN105842712B (en) | 2016-03-25 | 2016-03-25 | Global positioning system starting method and user terminal |
| CN201710847896.0ACN107678045B (en) | 2016-03-25 | 2016-03-25 | Global positioning system starting method, user terminal and related medium product |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610177515.8ADivisionCN105842712B (en) | 2016-03-25 | 2016-03-25 | Global positioning system starting method and user terminal |
| Publication Number | Publication Date |
|---|---|
| CN107678045A CN107678045A (en) | 2018-02-09 |
| CN107678045Btrue CN107678045B (en) | 2020-02-14 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610177515.8AExpired - Fee RelatedCN105842712B (en) | 2016-03-25 | 2016-03-25 | Global positioning system starting method and user terminal |
| CN201710847896.0AActiveCN107678045B (en) | 2016-03-25 | 2016-03-25 | Global positioning system starting method, user terminal and related medium product |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610177515.8AExpired - Fee RelatedCN105842712B (en) | 2016-03-25 | 2016-03-25 | Global positioning system starting method and user terminal |
| Country | Link |
|---|---|
| CN (2) | CN105842712B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2018028522A (en)* | 2016-08-19 | 2018-02-22 | 東芝テック株式会社 | Information processor, positioning system and program |
| CN108151743B (en)* | 2017-12-13 | 2021-11-16 | 联想(北京)有限公司 | Indoor and outdoor position identification method and system |
| CN108563177A (en)* | 2018-07-18 | 2018-09-21 | 兖州煤业股份有限公司 | A kind of coal yard loading machine vehicle-mounted integral terminal based on DGPS |
| CN109343092B (en)* | 2018-08-31 | 2021-01-05 | 深圳市广和通无线股份有限公司 | Performance test method and device, electronic equipment and storage medium |
| CN109597108A (en)* | 2018-12-20 | 2019-04-09 | 上海微小卫星工程中心 | Global navigation satellite system receiver and its operating method |
| CN111366954B (en)* | 2018-12-26 | 2023-11-24 | 成都鼎桥通信技术有限公司 | GPS star searching control method and device in Android system |
| CN111148031B (en)* | 2019-04-24 | 2022-05-03 | 广东小天才科技有限公司 | A method for saving GPS positioning power consumption and wearable device |
| CN110366233B (en)* | 2019-06-24 | 2021-07-13 | 诺领科技(南京)有限公司 | Low-power-consumption positioning method and device for Internet of things |
| CN110324780B (en)* | 2019-06-24 | 2021-07-13 | 诺领科技(南京)有限公司 | Simplified GNSS positioning method and device for terminal of Internet of things |
| CN113534202A (en)* | 2020-04-21 | 2021-10-22 | 深圳市万普拉斯科技有限公司 | Satellite positioning system detection method, device, computer equipment and storage medium |
| CN112600610B (en)* | 2020-12-09 | 2023-03-24 | 内蒙古电力(集团)有限责任公司内蒙古电力科学研究院分公司 | Beidou communication module testing method, device, equipment and storage medium |
| CN113589345B (en)* | 2021-08-03 | 2024-04-30 | 北京小米移动软件有限公司 | Positioning method, positioning device and storage medium |
| CN113848071B (en)* | 2021-09-24 | 2024-05-28 | 上汽通用五菱汽车股份有限公司 | Positioning fault testing method, device, vehicle and computer readable storage medium |
| CN114143718B (en)* | 2021-11-03 | 2023-06-20 | 珠海格力电器股份有限公司 | Target positioning method, device, system, storage medium and electronic equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101424731A (en)* | 2007-10-31 | 2009-05-06 | 中国科学院微电子研究所 | Method for fast recapture and positioning in case of lack of GPS receiver signal |
| CN103777215A (en)* | 2014-02-12 | 2014-05-07 | 厦门雅迅网络股份有限公司 | Detection method for GPS antenna malicious shielding |
| CN103983994A (en)* | 2014-05-22 | 2014-08-13 | 深圳市益光实业有限公司 | GPS locating and tracking device and system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7053824B2 (en)* | 2001-11-06 | 2006-05-30 | Global Locate, Inc. | Method and apparatus for receiving a global positioning system signal using a cellular acquisition signal |
| CN101493511B (en)* | 2008-01-23 | 2011-08-31 | 中国科学院微电子研究所 | Global positioning system satellite search scheduling method |
| CN101672909A (en)* | 2009-09-24 | 2010-03-17 | 安凯(广州)微电子技术有限公司 | GPS fast relocation method |
| CN103033821B (en)* | 2011-09-30 | 2016-02-17 | 中国电信股份有限公司 | Localization method and locating device, mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101424731A (en)* | 2007-10-31 | 2009-05-06 | 中国科学院微电子研究所 | Method for fast recapture and positioning in case of lack of GPS receiver signal |
| CN103777215A (en)* | 2014-02-12 | 2014-05-07 | 厦门雅迅网络股份有限公司 | Detection method for GPS antenna malicious shielding |
| CN103983994A (en)* | 2014-05-22 | 2014-08-13 | 深圳市益光实业有限公司 | GPS locating and tracking device and system |
| Publication number | Publication date |
|---|---|
| CN105842712A (en) | 2016-08-10 |
| CN107678045A (en) | 2018-02-09 |
| CN105842712B (en) | 2017-09-19 |
| Publication | Publication Date | Title |
|---|---|---|
| CN107678045B (en) | Global positioning system starting method, user terminal and related medium product | |
| JP6377161B2 (en) | Cloud off-road global satellite positioning | |
| JP5663621B2 (en) | Navigation bit boundary determination device and method therefor | |
| US20090216447A1 (en) | Position calculation method and position calculation system | |
| JP2013085264A (en) | Multimode gps-enabled camera | |
| CN109343092B (en) | Performance test method and device, electronic equipment and storage medium | |
| CN105182385A (en) | Geographic position monitoring method and equipment | |
| JP2013518260A (en) | Navigation data bit synchronization system, method and computer program for GNSS receiver | |
| CN116559915B (en) | Satellite ephemeris injection method for mine satellite navigation and positioning | |
| CN110023778B (en) | Positioning method and device | |
| CN112505735A (en) | Method, device and storage medium for positioning terminal | |
| US20160011315A1 (en) | Method and apparatus for position measuring of portable electronic device | |
| US8866671B2 (en) | Methods and apparatuses using mixed navigation system constellation sources for time setting | |
| US20120206297A1 (en) | Adaptive positioning signal search strategy for a mobile device | |
| US8494094B2 (en) | Demodulation of data collected prior to bit edge detection | |
| JP5740961B2 (en) | Satellite signal capture suitability determination method and satellite signal capture suitability determination device | |
| CN102478656B (en) | Related judgment method and by mistake correlated judgment device by mistake | |
| CN102246056A (en) | Satellite positioning system signal searching methods and apparatuses | |
| US8330652B2 (en) | Methods and apparatuses for reducing time to estimate a position using a satellite positioning system | |
| CN103558621B (en) | A kind of method and device carrying out positioning | |
| CN103852767B (en) | Satellite positioning receiver and satellite positioning method thereof | |
| CN107462902B (en) | positioning method and positioning equipment | |
| JP5078352B2 (en) | Partial almanac collection system | |
| US9091756B2 (en) | Receiving method and receiving apparatus | |
| JP2013190335A (en) | Position calculation method and position calculation device |
| 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 | ||
| CB02 | Change of applicant information | Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after:OPPO Guangdong Mobile Communications Co., Ltd. Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before:Guangdong Opel Mobile Communications Co., Ltd. | |
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |