技术领域technical field
本发明涉及通信技术领域,尤其涉及一种全球定位系统启动方法及用户终端。The invention relates to the field of communication technology, in particular to a method for starting a global positioning system and a user terminal.
背景技术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 standard for most of the earth's surface. With the maturity of GPS technology, more and more user terminals (such as smart phones) are equipped with GPS modules, which brings great convenience to users' lives. However, it has been found in practice that when the user turns on the GPS module in the user terminal for navigation, the GPS often loses satellites during the navigation process. For example, the number of satellites searched by the GPS module drops from 10 to 0. The GPS module cannot locate the user terminal, usually the user needs to manually restart the GPS module before positioning can be realized. If during the navigation process, there are a lot of GPS star drop times, the user needs to manually restart the GPS module many times to achieve positioning, which makes the efficiency of GPS positioning low.
发明内容Contents of the invention
本发明实施例提供了一种全球定位系统启动方法及用户终端,可以提高全球定位系统定位的效率。Embodiments of the present invention provide a global positioning system startup method and a user terminal, which can improve the positioning efficiency of the global positioning system.
本发明实施例第一方面公开了一种全球定位系统启动方法,包括:The first aspect of the embodiment 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 open state, 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 satellite signal information;
根据所述第一卫星信号信息,判断所述GPS模块当前是否处于无效定位状态;According to the first satellite signal information, it is judged 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 the first possible implementation of the first aspect, when the GPS module of the global positioning system is turned on, after searching for satellites through the GPS module and obtaining the first GPS satellite list, The method also includes:
获取第二GPS卫星列表,所述第二GPS卫星列表用于存储第二卫星信号信息;Obtaining a second GPS satellite list, the second GPS satellite list is used to store second satellite signal information;
判断所述第一卫星信号信息包括的卫星是否均存在于所述第二卫星信号信息包括的卫星集合中;judging whether all the satellites included in the first satellite signal information exist in the set of satellites 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 of the first aspect, in the second possible implementation 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 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 includes the first The number of satellites and the signal strength value of the signal sent by each of the satellites. According to the first satellite signal information, judging whether the GPS module is currently in an invalid positioning state includes:
判断所述第一卫星数量是否大于或等于最小卫星数量阈值;judging whether the first number of satellites is greater than or equal to a minimum number of satellites threshold;
若是,确定信号强度值大于最小信号强度阈值的卫星的第二卫星数量;if so, determining a second number of satellites with signal strength values greater than a minimum signal strength threshold;
判断所述第二卫星数量是否小于所述最小卫星数量阈值;judging whether the second number of satellites is less than the minimum number of satellites threshold;
若是,确定所述GPS模块当前处于无效定位状态。If yes, determine that the GPS module is currently in an invalid positioning state.
结合第一方面至第一方面的第二种中的任一种可能的实现方式,在第一方面的第四种可能的实现方式中,所述方法还包括:In combination with any 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 a minimum invalid time threshold;
若是,则执行所述重启所述GPS模块的步骤。If yes, then execute the step of restarting the GPS module.
本发明实施例第二方面公开了一种用户终端,包括:The second aspect of the embodiment of the present invention discloses a user terminal, including:
搜索单元,用于在全球定位系统GPS模块处于开启状态的情况下,通过所述GPS模块搜索卫星,获得第一GPS卫星列表,所述第一GPS卫星列表用于存储第一卫星信号信息;The search unit is used to search for satellites through the GPS module to obtain a first GPS satellite list when the GPS module of the global positioning system is in an open state, and 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 restart 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卫星列表用于存储第二卫星信号信息;The acquisition unit is used to search for satellites through the GPS module when the search unit is in the open state of the global positioning system GPS module, and obtain the second GPS satellite list after obtaining the first GPS satellite list, the second The GPS satellite list is used to store the second satellite signal information;
第二判断单元,用于判断所述第一卫星信号信息包括的卫星是否均存在于所述第二卫星信号信息包括的卫星集合中;A second judging unit, configured to judge whether all the satellites included in the first satellite signal information exist in the set of satellites included in the second satellite signal information;
所述第一判断单元,具体用于当所述第二判断单元判断所述第一卫星信号信息包括的卫星均存在于所述第二卫星信号信息包括的卫星集合中时,根据所述第一卫星信号信息,判断所述GPS模块当前是否处于无效定位状态。The first judging unit is specifically configured to, when the second judging unit judges that all the satellites included in the first satellite signal information exist in the satellite set included in the second satellite signal information, according to the first Satellite signal information to determine whether the GPS module is currently in an invalid positioning state.
结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述获取单元获取第二GPS卫星列表的方式具体为:With reference to the first possible implementation of the second aspect, in the second possible implementation of the second aspect, the acquisition unit acquires the second GPS satellite list specifically as follows:
从所述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 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 includes the first The number of satellites and the signal strength value of the signal sent by each satellite, the first judging unit includes:
判断子单元,用于判断所述第一卫星数量是否大于或等于最小卫星数量阈值;A judging subunit, configured to judge whether the first number of satellites is greater than or equal to a minimum satellite number threshold;
确定子单元,用于若所述判断子单元判断所述第一卫星数量大于或等于最小卫星数量阈值,确定信号强度值大于最小信号强度阈值的卫星的第二卫星数量;A determining subunit, configured to determine a second satellite number of satellites whose signal strength values are greater than the minimum signal strength threshold if the judging subunit judges that the first satellite number is greater than or equal to the minimum satellite number threshold;
所述判断子单元,还用于判断所述第二卫星数量是否小于所述最小卫星数量阈值;The judging subunit is further configured to judge whether the second number of satellites is less than the minimum satellite number threshold;
所述确定子单元,还用于若所述判断子单元判断所述第二卫星数量小于所述最小卫星数量阈值,确定所述GPS模块当前处于无效定位状态。The determining subunit is further configured to determine that the GPS module is currently in an invalid positioning state if the judging subunit judges that the second satellite number is smaller than the minimum satellite number threshold.
结合第二方面至第二方面的第二种中的任一种可能的实现方式,在第二方面的第四种可能的实现方式中,所述第一判断单元还用于若所述GPS模块当前处于无效定位状态,判断所述无效定位状态的持续时间是否大于最小无效时间阈值;In combination with any 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 if the GPS module Currently in an invalid positioning state, judging whether the duration of the invalid positioning state is greater than a minimum invalid time threshold;
所述重启单元,具体用于若所述第一判断单元判断所述无效定位状态的持续时间大于最小无效时间阈值,重启所述GPS模块。The restart 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 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 satellite signal information; Furthermore, 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 in real time. If the GPS module is currently in an invalid positioning state, it indicates that there is currently a GPS missing In some cases, the user terminal can automatically restart the GPS module without the user manually restarting, so that the positioning of the user terminal can be realized, thereby improving the efficiency of positioning by the global positioning system.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.
图1是本发明实施例公开的一种定位系统的架构示意图;FIG. 1 is a schematic diagram of a positioning system disclosed in an embodiment of the present invention;
图2是本发明实施例公开的一种全球定位系统启动方法的流程示意图;FIG. 2 is a schematic flow diagram of a method for starting a global positioning system disclosed in an embodiment of the present invention;
图3是本发明实施例公开的另一种全球定位系统启动方法的流程示意图;Fig. 3 is a schematic flow chart of another global positioning system starting method disclosed in an embodiment of the present invention;
图4是本发明实施例公开的一种用户终端的结构示意图;FIG. 4 is a schematic structural diagram of a user terminal disclosed in an embodiment of the present invention;
图5是本发明实施例公开的另一种用户终端的结构示意图;FIG. 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 description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例公开了一种全球定位系统启动方法及用户终端,可以提高全球定位系统定位的效率。以下分别进行详细说明。The embodiment of the invention discloses a global positioning system starting method and a user terminal, which can improve the positioning efficiency of the global positioning system. Each will be described in detail below.
为了更好的理解本发明实施例公开的一种全球定位系统启动方法,下面对本发明实施例适用的网络架构进行描述。In order to better understand a method for starting a global positioning system disclosed in the embodiment of the present invention, the network architecture applicable to the embodiment of the present invention is described below.
请参见图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 Fig. 1, the positioning system includes a user terminal and multiple satellites. Wherein, the user terminal may include but not limited to smart phones, notebook computers, personal computers (Personal Computer, PC), personal digital assistants (Personal Digital Assistant, PDA), mobile Internet devices (Mobile Internet Device, MID), smart wearable devices (such as Smart watches, smart bracelets) and other user terminals. Among them, the user terminal is installed with a Global Positioning System (Global Positioning System, GPS) module and an Assisted Global Positioning System (Assisted Global Positioning System, AGPS) module. celestial body. It should be noted that the number of satellites shown in FIG. 1 is not limited to four, and may include more or fewer 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, operating in a near-circular orbit with a radius of 26,560 kilometers, and the operation period is 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 the GPS navigation signals continuously broadcast by the radio transmitter carried by the satellites can be received. The user terminal can capture the satellites to be measured 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-range and distance change rate from the receiving antenna to the satellite, and demodulate the satellite orbit parameters and other data (namely 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 of the user terminal.
其中,用户终端也可以通过AGPS模块获取到星历数据。具体的,可以通过AGPS服务器与用户终端的交互获得用户终端的参考位置,然后通过移动网络(如GSM/GPRS、WCDMA和CDMA2000网络)将该用户终端需要的星历数据和时钟等辅助数据发送给用户终端,以辅助用户终端的GPS模块进行定位。Wherein, the user terminal can also obtain the 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 send the ephemeris data and clock and other auxiliary data required by the user terminal to the mobile network (such as GSM/GPRS, WCDMA and CDMA2000 network) to The user terminal is used to assist the GPS module of the user terminal in positioning.
然而,用户在开启用户终端中的GPS模块进行导航时,在导航过程中,经常会出现GPS掉星的情况,比如:GPS模块搜索到的卫星数量从10掉到0,这种情况下GPS模块无法对用户终端进行定位,通常需要用户手动重启GPS模块后才可以实现定位,这使得GPS定位的效率较低。However, when the user turns on the GPS module in the user terminal for navigation, during the navigation process, the GPS often loses satellites. 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 positioning can only be realized after the user manually restarts the GPS module, which makes the efficiency of GPS positioning low.
在图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 the first GPS satellite list, which is used to store the first GPS satellite list. Satellite signal information; further, the user terminal can judge 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 in real time. If the GPS module is currently in an invalid positioning state, it indicates that there is currently a GPS missing In some cases, the user terminal can automatically restart the GPS module without the user manually restarting, so that the positioning of the user terminal can be realized, thereby improving the efficiency of positioning by the global positioning system.
基于图1所示的架构,本发明实施例公开了一种全球定位系统启动方法。请参见图2,图2是本发明实施例公开的一种全球定位系统启动方法的流程示意图。如图2所示,该方法可以包括以下步骤。Based on the architecture shown in FIG. 1 , the embodiment of the present invention discloses a global positioning system startup method. Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of a method for starting a global positioning system disclosed in an embodiment of the present invention. As shown in Fig. 2, the method may include the following steps.
201、在全球定位系统GPS模块处于开启状态的情况下,用户终端通过GPS模块搜索卫星,获得第一GPS卫星列表。201. When the GPS module of the global positioning system is turned on, the user terminal searches for satellites through the GPS module, and obtains a first GPS satellite list.
本发明实施例中,用户终端可以通过GPS模块搜索用户终端上空的卫星,接收搜索到的卫星所发送的信号,并分析每颗卫星的发送信号的频率、编号、运行轨迹,最终锁定卫星,获得第一GPS卫星列表,该第一GPS卫星列表用于存储第一卫星信号信息,该第一卫星信号信息可以包括卫星的标识、卫星的数量、每颗卫星所发送的信号强度值等信息。In the embodiment of the present invention, the user terminal can search for satellites above the user terminal through the GPS module, receive the signals sent by the searched satellites, and analyze the frequency, serial number, and running track of each satellite's sent signal, and finally lock the satellite to obtain A first GPS satellite list, the first GPS satellite list is used to store first satellite signal information, and the first satellite signal information may include information such as satellite identification, number of satellites, and signal strength value sent by each satellite.
202、用户终端根据第一卫星信号信息,判断GPS模块当前是否处于无效定位状态,若是,执行步骤203,若否,结束本流程。202. The user terminal judges whether the GPS module is currently in an invalid positioning state according to the first satellite signal information. If yes, execute step 203. If not, end this process.
本发明实施例中,第一卫星信号信息包括搜索到卫星的第一卫星数量以及每个卫星发出信号的信号强度值。In the embodiment of the present invention, the first satellite signal information includes the first number of satellites that have been 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 as follows:
判断第一卫星数量是否大于或等于最小卫星数量阈值;judging whether the first number of satellites is greater than or equal to the minimum number of satellites threshold;
若是,确定信号强度值大于最小信号强度阈值的卫星的第二卫星数量;if so, determining a second number of satellites with signal strength values greater than a minimum signal strength threshold;
判断第二卫星数量是否小于最小卫星数量阈值;judging whether the second number of satellites is less than the minimum number of satellites threshold;
若是,确定GPS模块当前处于无效定位状态。If yes, determine that the GPS module is currently in an invalid positioning state.
在该可选的实施方式中,GPS模块对用户终端进行定位时至少需要4颗卫星,故最小卫星数量阈值可以为4,当用户终端判断第一卫星数量大于或等于最小卫星数量阈值时,用户终端可以统计信号强度值大于最小信号强度阈值(如8)的卫星的第二卫星数量,并进一步判断第二卫星数量是否小于最小卫星数量阈值,若是,表明信号强度较大的卫星比较少,不足以用于GPS模块对用户终端进行定位,此时,用户终端可以确定GPS模块当前处于无效定位状态。其中,可选额,若判断第一卫星数量小于最小卫星数量阈值,也可以确定GPS模块当前处于无效定位状态。In this optional implementation, the GPS module needs at least 4 satellites when positioning the user terminal, so the minimum satellite number threshold can be 4. When the user terminal judges that the first satellite number is greater than or equal to the minimum satellite number threshold, the user The terminal can count the number of second satellites whose signal strength value is greater than the minimum signal strength threshold (such as 8), and further determine whether the number of second satellites is less than the minimum satellite number threshold. If so, it indicates that there are fewer satellites with higher signal strength. 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 judged that the number of the first satellites is less than the threshold of the minimum number of satellites, it may 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 judges that the GPS module is currently in an invalid positioning state according to the first satellite signal information, indicating that the GPS module is currently out of order, and the user terminal can automatically restart the GPS module instead of manually restarting the user. 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 Satellite signal information; further, the user terminal can judge 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 in real time. If the GPS module is currently in an invalid positioning state, it indicates that there is currently a GPS missing In some cases, the user terminal can automatically restart the GPS module without the user manually restarting, so that the positioning of the user terminal can be realized, thereby improving the efficiency of positioning by the global positioning system.
基于图1所示的架构,本发明实施例公开了一种全球定位系统启动方法。请参见图3,图3是本发明实施例公开的另一种全球定位系统启动方法的流程示意图。如图2所示,该方法可以包括以下步骤。Based on the architecture shown in FIG. 1 , the embodiment of the present invention discloses a global positioning system startup method. Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of another method for starting a global positioning system disclosed in an embodiment of the present invention. As shown in Fig. 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, and obtains a first GPS satellite list.
302、用户终端获取第二GPS卫星列表。302. The user terminal acquires a second GPS satellite list.
本发明实施例中,第二GPS卫星列表用于存储第二卫星信号信息。该第二GPS卫星列表用于存储第二卫星信号信息,该第二卫星信号信息可以包括卫星的标识、卫星的数量、每颗卫星所发送的信号强度值等信息。In the embodiment of the present invention, the second GPS satellite list is used to store the second satellite signal information. The second GPS satellite list is used to store second satellite signal information, and the second satellite signal information may include information such as satellite identification, number of satellites, and signal strength value sent by each satellite.
可选的,用户终端获取第二GPS卫星列表的方式具体可以为:Optionally, the manner in which the user terminal acquires the second GPS satellite list may specifically be:
从GPS模块中获取第二GPS卫星列表;或,Obtain a list of second 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 the AGPS.
在该可选的实施方式中,一旦GPS模块定位成功,在的内存中就会保存短效星历数据,即:定位的经纬度、海拔、定位位置上空卫星的数量和轨迹以及预测四小时之内这些卫星的位置。当用户终端在下一次需要定位时,就可以直接从GPS模块中读取这些短效星历数据,就可以不用计算卫星的轨道,只需要简单的分析处理这些短效星历数据,就可以锁定卫星,从而可以缩小搜索定位卫星的范围而加快搜索到对应的定位卫星,缩短搜索卫星的时间,加快定位速度。In this optional implementation, once the GPS module is positioned successfully, the short-term ephemeris data will be saved in the memory of the GPS module, that is: the longitude and latitude of the positioning, the altitude, the number and trajectory of the satellites above the positioning position, and the prediction within four hours. the positions of these satellites. When the user terminal needs to locate next time, it can directly read the short-term ephemeris data from the GPS module, without calculating the orbit of the satellite, and only need to simply analyze and process the short-term ephemeris data to lock the satellite , so that the scope of searching for positioning satellites can be narrowed to speed up searching for corresponding positioning satellites, shortening the time of searching for satellites, and speeding up the positioning speed.
然而,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 short-term ephemeris data saved by the GPS module The short-term ephemeris data will become invalid, and at this time, the GPS module will 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 perform positioning. 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 ephemeris data and clock and other auxiliary data 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 judges whether all the satellites included in the first satellite signal information exist in the satellite set included in the second satellite signal information. If yes, execute step 304 ; if not, execute 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 has successfully positioned and saved 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, if not, it indicates that the current The first satellite signal information obtained by the GPS module is invalid information, and the GPS module is currently lost, and the user terminal can restart the GPS module immediately.
304、用户终端根据第一卫星信号信息,判断GPS模块当前是否处于无效定位状态,若是,执行步骤305,若否,结束本流程。304. The user terminal judges whether the GPS module is currently in an invalid positioning state according to the first satellite signal information. If yes, execute step 305. If not, end this process.
305、用户终端判断无效定位状态的持续时间是否大于最小无效时间阈值,若是,执行步骤306,若否,返回继续执行步骤301。305 , the user terminal judges whether the duration of the invalid positioning state is greater than the minimum invalid time threshold, if yes, execute step 306 , if not, return to continue to execute step 301 .
本发明实施例中,当用户终端被遮挡物(如建筑物)遮挡时,用户终端将接收不到卫星发送的信号,一般在短时间内,用户会携带用户终端离开该遮挡物,用户终端就可以接收到卫星发送的信号,并恢复对用户终端的定位,这种情况不属于掉星的情况。可以设定一个最小无效时间阈值,如3min,用户终端可以判断无效定位状态的持续时间是否大于最小无效时间阈值,若是,表明当前确实是发生了掉星的情况,用户终端需要重启GPS模块,若否,表明用户终端当前处于短暂的无效定位状态,用户终端可以继续搜索卫星,重新定位。In the embodiment of the present invention, when the user terminal is blocked by an obstruction (such as a building), the user terminal will not be able to receive the signal sent by the satellite. Generally, within a short period of time, the user will carry 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 restored. This situation is not a case of star loss. A minimum invalid time threshold can be set, such as 3 minutes, and the user terminal can judge whether the duration of the invalid positioning state is greater than the minimum invalid time threshold. 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 this process.
307、用户终端重启GPS模块,并结束本流程。307. The user terminal restarts the GPS module, and ends this process.
在图3所描述的方法流程中,用户终端可以通过多种方式来确定当前是否出现了掉星情况而使得GPS模块无法对用户终端进行定位,若出现了掉星情况,用户终端立即重启GPS模块,而不用用户手动重启,从而可以提高全球定位系统定位的效率。In the method flow described in FIG. 3 , the user terminal can determine whether there is currently a star-dropping situation in various ways so that the GPS module cannot locate the user terminal. If a star-dropping situation occurs, the user terminal immediately restarts the GPS module. , instead of manually restarting by the user, 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, wherein 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 user terminal 400 may include:
搜索单元401,用于在全球定位系统GPS模块处于开启状态的情况下,通过所述GPS模块搜索卫星,获得第一GPS卫星列表,所述第一GPS卫星列表用于存储第一卫星信号信息;The search unit 401 is used to search for satellites through the GPS module to obtain a first GPS satellite list when the global positioning system GPS module is in an open state, and the first GPS satellite list is used to store first satellite signal information;
第一判断单元402,用于根据所述第一卫星信号信息,判断所述GPS模块当前是否处于无效定位状态;The first judging unit 402 is configured to judge whether the GPS module is currently in an invalid positioning state according to the first satellite signal information;
重启单元403,用于若所述第一判断单元402判断所述GPS模块当前处于无效定位状态,重启所述GPS模块。The restart unit 403 is configured to restart the GPS module if the first judging unit 402 judges that the GPS module is currently in an invalid positioning state.
请参见图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, wherein the user terminal is used to execute all or part of a global positioning system startup method disclosed in FIG. 2 and FIG. 3 step, the user terminal shown in Figure 5 is further optimized on the basis of the user terminal shown in Figure 4, compared with the user terminal shown in Figure 4, the user terminal shown in Figure 5 includes the user terminal shown in Figure 4 In addition to all units of the user terminal, it may also include:
获取单元404,用于在所述搜索单元401在全球定位系统GPS模块处于开启状态的情况下,通过所述GPS模块搜索卫星,获得第一GPS卫星列表之后,获取第二GPS卫星列表,所述第二GPS卫星列表用于存储第二卫星信号信息;The acquisition unit 404 is used to search for satellites through the GPS module when the search unit 401 is in the open state of the GPS module of the global positioning system, and obtain the second GPS satellite list after obtaining the first GPS satellite list. The second GPS satellite list is used to store the second satellite signal information;
第二判断单元405,用于判断所述第一卫星信号信息包括的卫星是否均存在于所述第二卫星信号信息包括的卫星集合中;The second judging unit 405 is configured to judge whether all the satellites included in the first satellite signal information exist in the satellite set included in the second satellite signal information;
所述第一判断单元402,具体用于当所述第二判断单元405判断所述第一卫星信号信息包括的卫星均存在于所述第二卫星信号信息包括的卫星集合中时,根据所述第一卫星信号信息,判断所述GPS模块当前是否处于无效定位状态。The first judging unit 402 is specifically configured to, when the second judging unit 405 judges that all the satellites included in the first satellite signal information exist in the satellite set included in the second satellite signal information, according to the The first satellite signal information determines whether the GPS module is currently in an invalid positioning state.
可选的,所述获取单元404获取第二GPS卫星列表的方式具体为:Optionally, the manner in which the acquiring unit 404 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.
其中,所述第一卫星信号信息包括搜索到卫星的第一卫星数量以及每个所述卫星发出信号的信号强度值,所述第一判断单元402包括:Wherein, the first satellite signal information includes the first number of satellites searched for satellites and the signal strength value of the signal sent by each satellite, and the first judging unit 402 includes:
判断子单元4021,用于判断所述第一卫星数量是否大于或等于最小卫星数量阈值;A judging subunit 4021, configured to judge whether the first number of satellites is greater than or equal to the threshold of the minimum number of satellites;
确定子单元4022,用于若所述判断子单元4021判断所述第一卫星数量大于或等于最小卫星数量阈值,确定信号强度值大于最小信号强度阈值的卫星的第二卫星数量;The determining subunit 4022 is configured to determine a second satellite number of satellites whose signal strength values are greater than the minimum signal strength threshold if the judging subunit 4021 judges that the first satellite number is greater than or equal to the minimum satellite number threshold;
所述判断子单元4021,还用于判断所述第二卫星数量是否小于所述最小卫星数量阈值;The judging subunit 4021 is further configured to judge whether the second number of satellites is less than the minimum satellite number threshold;
所述确定子单元4022,还用于若所述判断子单元4021判断所述第二卫星数量小于所述最小卫星数量阈值,确定所述GPS模块当前处于无效定位状态。The determining subunit 4022 is further configured to determine that the GPS module is currently in an invalid positioning state if the judging subunit 4021 judges that the second satellite number is less than the minimum satellite number threshold.
可选的,所述第一判断单元402还用于若所述GPS模块当前处于无效定位状态,判断所述无效定位状态的持续时间是否大于最小无效时间阈值;Optionally, the first judging unit 402 is further configured to judge whether the duration of the invalid positioning state is greater than a minimum invalid time threshold if the GPS module is currently in an invalid positioning state;
所述重启单元403,具体用于若所述第一判断单元402判断所述无效定位状态的持续时间大于最小无效时间阈值,重启所述GPS模块。The restart unit 403 is specifically configured to restart the GPS module if the first judging unit 402 judges that the duration of the invalid positioning state is greater than a minimum invalid time threshold.
在图4和图5所描述的用户终端400中,在全球定位系统GPS模块处于开启状态的情况下,搜索单元401可以通过GPS模块搜索卫星,获得第一GPS卫星列表,该第一GPS卫星列表用于存储第一卫星信号信息;进一步地,第一判断单元402可以根据第一卫星信号信息,判断GPS模块当前是否处于无效定位状态;若GPS模块当前处于无效定位状态,重启单元403可以重启GPS模块。可见,通过本发明实施例,用户终端可以实时根据接收到的卫星的卫星信号信息来自动判断GPS模块当前是否处于无效定位状态,若GPS模块当前处于无效定位状态,表明当前出现了GPS掉星的情况,用户终端可以自动重启GPS模块,而不用用户手动重启,就可以实现对用户终端的定位,从而可以提高全球定位系统定位的效率。In the user terminal 400 described in FIG. 4 and FIG. 5 , when the GPS module of the global positioning system is in an open state, the search unit 401 can search for satellites through the GPS module to obtain a first GPS satellite list, the first GPS satellite list For storing the first satellite signal information; further, the first judging unit 402 can judge 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 restart unit 403 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 in real time. If the GPS module is currently in an invalid positioning state, it indicates that there is currently a GPS missing In some cases, the user terminal can automatically restart the GPS module without the user manually restarting, so that the positioning of the user terminal can be realized, thereby improving the efficiency of global positioning system positioning.
请参见图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, wherein the user terminal is used to execute all or part of a global positioning system startup method 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 . Wherein, 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 Figure 6 does not constitute a limitation to the embodiment of the present invention, it can be either a bus structure or a star structure, and it can also include more or fewer components, or combining 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 programs and/or modules stored in the memory 603, and calling 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 multiple packaged ICs connected with the same function or different functions. For example, the processor 601 may only include a central processing unit (Central Processing Unit, referred to as CPU), and may also be a CPU, a digital signal processor (digital signal processor, referred to as DSP), and a graphics processing unit (Graphic Processing Unit, referred to as GPU). And a combination of various control chips. In the embodiments 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 (non-volatile memory), such as at least one disk memory. Optionally, the memory 603 may 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, application programs, and the like. In the embodiment of the present invention, the operating system may be an Android system, an iOS system, or a Windows operating system and the like.
具体地,处理器601调用存储在存储器603中的应用程序,用于执行以下操作:Specifically, the processor 601 invokes an 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 open state, 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 satellite signal information;
根据所述第一卫星信号信息,判断所述GPS模块当前是否处于无效定位状态;According to the first satellite signal information, it is judged 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 turned on, 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卫星列表用于存储第二卫星信号信息;Obtaining a second GPS satellite list, the second GPS satellite list is used to store second satellite signal information;
判断所述第一卫星信号信息包括的卫星是否均存在于所述第二卫星信号信息包括的卫星集合中;judging whether all the satellites included in the first satellite signal information exist in the set of satellites 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, said 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 first number of satellites that have been searched for satellites and the signal strength value of the signal sent by each satellite, and according to the first satellite signal information, it is judged whether the GPS module is currently in Invalid targeting states include:
判断所述第一卫星数量是否大于或等于最小卫星数量阈值;judging whether the first number of satellites is greater than or equal to a minimum number of satellites threshold;
若是,确定信号强度值大于最小信号强度阈值的卫星的第二卫星数量;if so, determining a second number of satellites with signal strength values greater than a minimum signal strength threshold;
判断所述第二卫星数量是否小于所述最小卫星数量阈值;judging whether the second number of satellites is less than the minimum number of satellites threshold;
若是,确定所述GPS模块当前处于无效定位状态。If yes, determine that the GPS module is currently in an invalid positioning state.
可选的,处理器601还调用存储在存储器603中的应用程序,用于执行以下操作:Optionally, the processor 601 also invokes an application program stored in the memory 603 to perform 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 a minimum invalid time threshold;
若是,则执行所述重启所述GPS模块的步骤。If yes, then 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 judge whether the GPS module is currently in an invalid positioning state according to the received satellite signal information in real time. If the GPS module is currently in an invalid positioning state, it indicates that there is currently a GPS outage. In the case of satellites, the user terminal can automatically restart the GPS module, instead of manually restarting by the user, the positioning of the user terminal can be realized, thereby improving the efficiency of global positioning system positioning.
需要说明的是,对于前述的各个方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某一些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和单元并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are 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 according to the application, certain steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and units involved are not necessarily required by this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to 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 through computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, 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) and the like.
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and certainly cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.
| 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 | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610177515.8ACN105842712B (en) | 2016-03-25 | 2016-03-25 | Global positioning system starting method and user terminal |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710847896.0ADivisionCN107678045B (en) | 2016-03-25 | 2016-03-25 | Global positioning system starting method, user terminal and related medium product |
| Publication Number | Publication Date |
|---|---|
| CN105842712A CN105842712A (en) | 2016-08-10 |
| CN105842712Btrue CN105842712B (en) | 2017-09-19 |
| 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 |
|---|---|---|---|
| CN201710847896.0AActiveCN107678045B (en) | 2016-03-25 | 2016-03-25 | Global positioning system starting method, user terminal and related medium product |
| 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 |
|---|---|---|---|---|
| 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 |
| CN101424731B (en)* | 2007-10-31 | 2011-11-23 | 中国科学院微电子研究所 | Method for quick recapture and positioning under condition of global positioning system receiver signal loss |
| 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 |
| CN103777215B (en)* | 2014-02-12 | 2018-05-22 | 厦门雅迅网络股份有限公司 | A kind of detection method of malice shielding GPS antenna |
| CN103983994A (en)* | 2014-05-22 | 2014-08-13 | 深圳市益光实业有限公司 | GPS locating and tracking device and system |
| Publication number | Publication date |
|---|---|
| CN105842712A (en) | 2016-08-10 |
| CN107678045B (en) | 2020-02-14 |
| CN107678045A (en) | 2018-02-09 |
| Publication | Publication Date | Title |
|---|---|---|
| CN105842712B (en) | Global positioning system starting method and user terminal | |
| JP5631963B2 (en) | Multi-mode GPS enabled camera | |
| JP6385651B2 (en) | On-vehicle device and spoofing detection method | |
| JP5663621B2 (en) | Navigation bit boundary determination device and method therefor | |
| JP5453722B2 (en) | POSITIONING SYSTEM, POSITIONING DEVICE, SERVER, AND POSITIONING METHOD | |
| US20140002304A1 (en) | Method and apparatus for locating terminal device | |
| JP6377161B2 (en) | Cloud off-road global satellite positioning | |
| CN102047139A (en) | Method and apparatus for use with mode switchable navigation radios | |
| CN109343092B (en) | Performance test method and device, electronic equipment and storage medium | |
| US11209555B2 (en) | Positioning method and apparatus for mobile terminal, and mobile terminal | |
| JP2015014474A (en) | On-vehicle device and spoofing detection method | |
| EP3812796A1 (en) | Recovery from position and time outliers in positioning | |
| CN116559915B (en) | Satellite ephemeris injection method for mine satellite navigation and positioning | |
| JP2013518260A (en) | Navigation data bit synchronization system, method and computer program for GNSS receiver | |
| CN104350784A (en) | A device net searching method and a device | |
| US9939531B2 (en) | Method and apparatus for position measuring of portable electronic device | |
| CN110023778B (en) | Positioning method and device | |
| JP5740961B2 (en) | Satellite signal capture suitability determination method and satellite signal capture suitability determination device | |
| US8494094B2 (en) | Demodulation of data collected prior to bit edge detection | |
| CN102478656B (en) | Related judgment method and by mistake correlated judgment device by mistake | |
| US20120112960A1 (en) | Access point, mobile terminal, global navigation satellite system using the access point, and method of providing position information using the access point | |
| US8330652B2 (en) | Methods and apparatuses for reducing time to estimate a position using a satellite positioning system | |
| CN112904372A (en) | Auxiliary satellite navigation system and positioning method thereof | |
| JP5078352B2 (en) | Partial almanac collection system | |
| CN109001761A (en) | A kind of implementation method of AGPS, device and equipment |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP01 | Change in the name or title of a patent holder | ||
| CP01 | Change in the name or title of a patent holder | Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. | |
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20170919 |