技术领域technical field
本申请实施例涉及移动终端定位技术领域,尤其涉及定位模块的控制方法、装置、存储介质及终端。The embodiments of the present application relate to the technical field of positioning of mobile terminals, and in particular to a control method, device, storage medium and terminal of a positioning module.
背景技术Background technique
随着电子设备的不断发展,移动终端等电子设备能够为用户提供定位服务。手机厂商在移动终端中预先安装定位模块,定位模块通过全球导航卫星系统(GNSS,GlobalNavigation Satellite System)获取移动终端的定位信息。移动终端中基于位置服务(LBS,Location Based Service)的应用程序(APP,Application)通过定位模块提供的定位信息实现定位。With the continuous development of electronic devices, electronic devices such as mobile terminals can provide positioning services for users. A mobile phone manufacturer pre-installs a positioning module in a mobile terminal, and the positioning module obtains positioning information of the mobile terminal through a Global Navigation Satellite System (GNSS, Global Navigation Satellite System). An application program (APP, Application) based on a location service (LBS, Location Based Service) in a mobile terminal realizes positioning through the positioning information provided by the positioning module.
由于定位模块通常按照预先设置的频率获取定位信息,使得定位模块持续耗电,导致定位模块耗电量较高。Since the positioning module usually acquires positioning information according to a preset frequency, the positioning module consumes power continuously, resulting in high power consumption of the positioning module.
发明内容Contents of the invention
本申请实施例的目的是提供一种定位模块的控制方法、装置、存储介质及终端,可以定位模块的耗电量。The purpose of the embodiment of the present application is to provide a positioning module control method, device, storage medium and terminal, which can control the power consumption of the positioning module.
第一方面,本申请实施例提供了一种定位模块的控制方法,包括:In the first aspect, the embodiment of the present application provides a positioning module control method, including:
获取第一工作周期内至少一个第一卫星的信号质量,所述第一工作周期为当前信号周期;Acquiring the signal quality of at least one first satellite in a first working period, where the first working period is a current signal period;
根据所述信号质量确定定位模块的第一工作频率;determining a first operating frequency of the positioning module according to the signal quality;
根据所述第一工作频率控制所述定位模块获取定位信息。controlling the positioning module to acquire positioning information according to the first working frequency.
第二方面,本申请实施例提供了一种定位模块的控制装置,包括:In the second aspect, the embodiment of the present application provides a control device for a positioning module, including:
信号质量获取模块,用于获取第一工作周期内至少一个第一卫星的信号质量,所述第一工作周期为当前信号周期;A signal quality acquisition module, configured to acquire the signal quality of at least one first satellite in a first working period, where the first working period is the current signal period;
工作频率确定模块,用于根据所述信号质量获取模块获取的所述信号质量确定定位模块的第一工作频率;An operating frequency determination module, configured to determine the first operating frequency of the positioning module according to the signal quality acquired by the signal quality acquisition module;
控制模块,用于根据所述工作频率确定模块确定的所述第一工作频率控制所述定位模块获取定位信息。A control module, configured to control the positioning module to acquire positioning information according to the first working frequency determined by the working frequency determining module.
第三方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面所示的定位模块的控制方法。In a third aspect, the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method for controlling the positioning module as shown in the first aspect is implemented.
第四方面,本申请实施例提供了一种终端,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如第一方面所示的定位模块的控制方法。In a fourth aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, the computer program described in the first aspect is implemented. The control method of the positioning module is shown.
本申请实施例中提供的定位模块的控制方案,首先获取第一工作周期内至少一个第一卫星的信号质量,所述第一工作周期为当前信号周期;然后,根据所述信号质量确定定位模块的第一工作频率;最后,根据所述第一工作频率控制所述定位模块获取定位信息,能够降低定位模块的耗电量。The control scheme of the positioning module provided in the embodiment of the present application first obtains the signal quality of at least one first satellite in the first working period, and the first working period is the current signal period; then, determines the positioning module according to the signal quality The first working frequency; finally, controlling the positioning module to acquire positioning information according to the first working frequency can reduce the power consumption of the positioning module.
附图说明Description of drawings
图1为本申请实施例提供的一种定位模块的控制方法的流程示意图;FIG. 1 is a schematic flowchart of a method for controlling a positioning module provided in an embodiment of the present application;
图2为本申请实施例提供的另一种定位模块的控制方法的流程示意图;FIG. 2 is a schematic flowchart of another positioning module control method provided by the embodiment of the present application;
图3为本申请实施例提供的另一种定位模块的控制方法的流程示意图;FIG. 3 is a schematic flowchart of another positioning module control method provided by the embodiment of the present application;
图4为本申请实施例提供的另一种定位模块的控制方法的流程示意图;FIG. 4 is a schematic flowchart of another positioning module control method provided by the embodiment of the present application;
图5为本申请实施例提供的另一种定位模块的控制方法的流程示意图;FIG. 5 is a schematic flowchart of another positioning module control method provided by the embodiment of the present application;
图6为本申请实施例提供的一种定位模块的控制装置的结构框图;FIG. 6 is a structural block diagram of a control device for a positioning module provided in an embodiment of the present application;
图7为本申请实施例提供的一种移动终端的结构示意图。FIG. 7 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图并通过具体实施方式来进一步说明本申请的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The technical solution of the present application will be further described below in conjunction with the accompanying drawings and through specific implementation methods. It should be understood that the specific embodiments described here are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only some structures related to the present application are shown in the drawings but not all structures.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processing, many of the steps may be performed in parallel, concurrently, or simultaneously. Additionally, the order of steps may be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.
随着电子设备的发展,电子设备能够为用户提供定位服务。随着定位服务的产生安装在电子设备上的应用程序对提供定位信息的定位模块的使用也越来越频繁。目前,定位模块按照固定的频率进行工作。但是,在每个工作周期内,如果卫星定位信号质量较好,则定位模块在工作周期内会出现空闲,但是此时定位模块仍然会处于开启状态,造成额外耗电。本申请提供了一种基于定位信号的信号强度确定定位模块实际工作周期(工作时段),并根据该实际工作周期控制定位模块获取定位信息的方法,能够降低定位模块的功耗。具体方案如下所示:With the development of electronic devices, electronic devices can provide positioning services for users. With the generation of location services, applications installed on electronic devices use location modules that provide location information more and more frequently. Currently, the positioning module works at a fixed frequency. However, in each working cycle, if the quality of the satellite positioning signal is good, the positioning module will be idle during the working cycle, but the positioning module will still be turned on at this time, resulting in additional power consumption. The present application provides a method for determining the actual working cycle (working period) of the positioning module based on the signal strength of the positioning signal, and controlling the positioning module to obtain positioning information according to the actual working cycle, which can reduce the power consumption of the positioning module. The specific plan is as follows:
图1为本申请实施例提供的定位模块的控制方法的流程示意图,该方法可以由提供定位服务的装置执行,其中该装置可由软件和/或硬件实现,一般可集成在移动终端中,移动终端可以为智能手机、平板电脑、可穿戴设备等,如图1所示,该方法包括:Fig. 1 is a schematic flowchart of a control method of a positioning module provided by an embodiment of the present application. The method can be executed by a device that provides positioning services, wherein the device can be implemented by software and/or hardware, and can generally be integrated in a mobile terminal. The mobile terminal It can be a smart phone, a tablet computer, a wearable device, etc., as shown in Figure 1, the method includes:
步骤110、获取第一工作周期内至少一个第一卫星的信号质量。Step 110, acquire the signal quality of at least one first satellite in the first working period.
其中,所述第一工作周期为当前信号周期。定位模块的工作周期可以1次/秒。当前信号周期为检测时刻对应的信号周期。检测时刻可以为接收到定位请求的时刻。第一卫星为第一工作周期内获取到的任意一个卫星。Wherein, the first working period is a current signal period. The working cycle of the positioning module can be 1 time/second. The current signal period is the signal period corresponding to the detection moment. The detection moment may be the moment when a positioning request is received. The first satellite is any satellite acquired in the first working period.
GPS卫星系统采用24颗卫星为全球用户进行定位,北斗卫星系统采用35颗卫星为全球用户进行定位。GPS卫星系统和北斗卫星系统可以通过四颗卫星对终端进行定位,得到终端的坐标。通常,终端在进行定位时,首选需要通过搜星搜索可以通信的至少四颗卫星,然后在通过卫星获取定位信息。在进行搜星搜索时,可以获取到至少四颗卫星的信号,进而得到各个卫星的型号质量。The GPS satellite system uses 24 satellites to position users around the world, and the Beidou satellite system uses 35 satellites to position users around the world. The GPS satellite system and the Beidou satellite system can locate the terminal through four satellites and obtain the coordinates of the terminal. Usually, when the terminal performs positioning, it first needs to search for at least four satellites that can communicate through satellite search, and then obtain positioning information through the satellites. When searching for satellites, you can get the signals of at least four satellites, and then get the model quality of each satellite.
在一种实现方式中,当用户启动导航应用时,获取第一工作周期内至少一个第一卫星的信号质量。由于导航应用对于定位频率和准确性要求较高,因此在本实施方式中可以针对导航应用触发的位置信息获取指令进行响应,执行步骤110。In an implementation manner, when the user starts the navigation application, the signal quality of at least one first satellite in the first working period is acquired. Since the navigation application has high requirements on positioning frequency and accuracy, in this embodiment, step 110 may be executed in response to the location information acquisition instruction triggered by the navigation application.
步骤120、根据信号质量确定定位模块的第一工作频率。Step 120, determine the first operating frequency of the positioning module according to the signal quality.
如果信号质量低于预设强度,则使用默认的周期。可选的,如果信号质量高于预设强度,则可以缩短工作周期。缩短工作周期的方式可以为,提高工作频率,例如原工作频率为1次/秒,提高工作频率后工作频率可以为2次/秒。If the signal quality is lower than the preset strength, the default period is used. Optionally, the duty cycle can be shortened if the signal quality is higher than a preset strength. The way to shorten the working cycle can be to increase the working frequency, for example, the original working frequency is 1 time/second, and the working frequency can be 2 times/second after the working frequency is increased.
可选的,如果信号质量高于预设强度,则还可以将原工作周期进行划分,然后对定位模块的在一个工作周期内的实际工作时间进行划分,进而将工作周期划分为工作时段和休眠时段,在工作时段中定位模块进行定位操作,在休眠时段中定位模块停止定位操作。前提是,定位模块在工作时段能够完成该工作周期中需要执行的定位功能。例如,默认工作周期为1次/秒,如果信号质量高于预设强度,则将默认工作周期1秒划分为200ms的工作时段和800ms的休眠时段,在200ms的工作时段内定位模块进行工作。Optionally, if the signal quality is higher than the preset strength, the original working cycle can also be divided, and then the actual working time of the positioning module in a working cycle can be divided, and then the working cycle can be divided into working period and dormancy During the working period, the positioning module performs the positioning operation, and during the sleep period, the positioning module stops the positioning operation. The premise is that the positioning module can complete the positioning function that needs to be performed in the working cycle during the working period. For example, the default duty cycle is 1 time/second. If the signal quality is higher than the preset strength, the default duty cycle of 1 second is divided into 200ms working period and 800ms sleep period, and the positioning module works within the 200ms working period.
可选的,根据信号强度与定位的时间的对应关系确定预设强度。如果定位时间小于默认工作周期,则获取该定位时间对应的信号强度,将该信号强度确定为预设强度。可选的,选择小于800ms的定位时间对应的信号强度作为预设强度。Optionally, the preset strength is determined according to the corresponding relationship between signal strength and positioning time. If the positioning time is less than the default working period, the signal strength corresponding to the positioning time is obtained, and the signal strength is determined as the preset strength. Optionally, a signal strength corresponding to a positioning time shorter than 800 ms is selected as the preset strength.
步骤130、根据第一工作频率控制定位模块获取定位信息。Step 130: Control the positioning module to acquire positioning information according to the first working frequency.
定位模块可以为终端中用于进行定位的功能模组,该模组可以为GPS定位模块或者全球导航卫星系统GNSS定位模块等。根据第一工作频率在调整后的工作周期或者工作周期中的工作时段中,启动定位模块进行定位。The positioning module may be a functional module for positioning in the terminal, and the module may be a GPS positioning module or a global navigation satellite system (GNSS) positioning module. According to the first working frequency, the positioning module is started to perform positioning in the adjusted working cycle or in the working period in the working cycle.
本实施例提供的定位模块的控制方法,首先获取第一工作周期内至少一个第一卫星的信号质量,所述第一工作周期为当前信号周期;然后,根据所述信号质量确定定位模块的第一工作频率;最后,根据所述第一工作频率控制所述定位模块获取定位信息,根据卫星的信号强度对定位模块的工作频率进行调整,使得定位模块在在卫星信号强度较高,可以较快(不到1秒)的完成定位时,提前关闭定位模块,降低定位模块功耗。The control method of the positioning module provided in this embodiment first obtains the signal quality of at least one first satellite in the first working period, and the first working period is the current signal period; then, determines the first position of the positioning module according to the signal quality A working frequency; finally, control the positioning module to obtain positioning information according to the first working frequency, adjust the working frequency of the positioning module according to the signal strength of the satellite, so that the positioning module can be faster when the satellite signal strength is higher (less than 1 second) when the positioning is completed, the positioning module is turned off in advance to reduce the power consumption of the positioning module.
图2为本申请实施例提供的另一个定位模块的控制方法的流程示意图,作为对上述实施例的进一步说明,包括:Fig. 2 is a schematic flowchart of another positioning module control method provided by the embodiment of the present application, as a further description of the above embodiment, including:
步骤210、获取第一工作周期内至少一个第一卫星的信号质量。Step 210, acquire the signal quality of at least one first satellite in the first working period.
步骤220、如果信号强度大于预设强度,则将默认工作周期划分为工作时段和休眠时段,默认工作周期的时长与第一工作周期的时长相同。Step 220, if the signal strength is greater than the preset strength, divide the default working period into a working period and a sleeping period, and the duration of the default working period is the same as that of the first working period.
在确定工作时段和休眠时段后,后续每个工作周期中均在工作时段启动定位模块,在休眠时段关闭定位模块。但是,随着卫星信号强度的改变,终端当判断出预信号强度低于预设强度时,重新对工作时段和休眠时段进行划分。例如,当前将工作周期划分为200ms的工作时段和800ms的休眠时段,如果信号强度低于预设强度,则计算可以完成定位功能的时间,如果改时间小于默认周期时长,则将该完成定位功能的时间确定为工作时段,并根据工作时段确定休眠时段。例如,可以完成定位功能的时间为600ms,则新的工作时段为600ms,休眠时段为400ms,进而信号强度对工作时段和休眠时段进行动态的调整。After the working period and the sleeping period are determined, the positioning module is started during the working period in each subsequent working cycle, and the positioning module is turned off during the sleeping period. However, as the satellite signal strength changes, when the terminal determines that the pre-signal strength is lower than the preset strength, it re-divides the working period and the sleeping period. For example, the current working cycle is divided into 200ms working period and 800ms sleeping period, if the signal strength is lower than the preset strength, then calculate the time to complete the positioning function, if the changed time is less than the default cycle length, then the positioning function will be completed The time is determined as the working period, and the sleep period is determined according to the working period. For example, if the time required to complete the positioning function is 600ms, the new working period is 600ms, and the sleep period is 400ms, and then the signal strength is dynamically adjusted for the working period and the sleep period.
步骤230、根据工作时段确定第一工作频率。Step 230, determine the first working frequency according to the working period.
在工作时段中启动定位模块进行工作,在休眠时段关闭定位模块。如果工作时段为200ms,休眠时段为800ms,则第一工作频率为工作200ms、休息800ms。Start the positioning module to work during the working period, and close the positioning module during the sleep period. If the working period is 200ms and the sleeping period is 800ms, then the first working frequency is 200ms working and 800ms resting.
步骤240、根据第一工作频率控制定位模块获取定位信息。Step 240: Control the positioning module to acquire positioning information according to the first working frequency.
本实施例能够将定位模块的工作周期进行划分,得到工作时段和休眠时段,并在工作时段启动定位模块,实现对默认工作周期的合理利用,在休眠时段降低定位模块功耗,降低定位模块的耗电量。This embodiment can divide the working cycle of the positioning module to obtain the working period and sleep period, and start the positioning module during the working period to realize the reasonable use of the default working period, reduce the power consumption of the positioning module during the sleep period, and reduce the power consumption of the positioning module. power consumption.
图3为本申请实施例提供的另一个定位模块的控制方法的流程示意图,作为对上述实施例的进一步说明,包括:Fig. 3 is a schematic flowchart of another positioning module control method provided by the embodiment of the present application, as a further description of the above embodiment, including:
步骤310、获取第一工作周期内至少一个第一卫星的信号质量。Step 310, acquire the signal quality of at least one first satellite in the first working period.
步骤320、如果信号强度大于预设强度,则将默认工作周期划分为工作时段和休眠时段,默认工作周期的时长与第一工作周期的时长相同。Step 320, if the signal strength is greater than the preset strength, divide the default working period into a working period and a sleeping period, and the duration of the default working period is the same as that of the first working period.
步骤330、根据工作时段确定第一工作频率。Step 330. Determine the first working frequency according to the working period.
步骤340、在第二工作周期的工作时段中搜索第二卫星。Step 340, searching for the second satellite in the working period of the second working cycle.
第二工作周期可以为第一工作周期的下一个工作周期,也可以为为第一工作周期之后,经过预设时长对应的工作周期。预设时长可以为30分钟或1小时或多小时,优选为1小时。The second working cycle may be the next working cycle of the first working cycle, or may be a working cycle corresponding to a preset duration after the first working cycle. The preset duration can be 30 minutes or 1 hour or more, preferably 1 hour.
步骤350、如果第二卫星与第一卫星相同或部分相同,则将第一工作频率确定为后续至少一个工作周期的工作频率。Step 350: If the second satellite is identical or partially identical to the first satellite, determine the first working frequency as the working frequency for at least one subsequent working period.
如果第二卫星与第一卫星相同,则说明第二工作周期搜索到的卫星与第一工作周期搜索到的卫星完全相同,进而可以根据第一工作频率继续控制定位模块进行定位。If the second satellite is the same as the first satellite, it means that the satellites searched in the second working cycle are exactly the same as the satellites searched in the first working cycle, and then the positioning module can be continuously controlled to perform positioning according to the first working frequency.
终端可以搜索到的卫星包括信号强度较强的卫星以及信号强度较弱的卫星。随着终端位置的变化,搜索到的卫星可能不尽相同。而终端定位所使用的卫星往往只有信号较强的部分卫星,因此此时如果二卫星与第一卫星部分相同。Satellites that can be searched by the terminal include satellites with stronger signal strength and satellites with weaker signal strength. As the position of the terminal changes, the satellites searched may be different. The satellites used for terminal positioning are often only some satellites with strong signals, so if the second satellite is partly the same as the first satellite at this time.
示例性的,获取第一卫星中信号强度大于预设信号强度的第三卫星;获取第二卫星中信号强度大于预设信号强度的第四卫星;如果第三卫星与第四卫星相同,则将第一工作频率确定为后续至少一个工作周期的工作频率。Exemplarily, the third satellite whose signal strength is greater than the preset signal strength in the first satellite is acquired; the fourth satellite whose signal strength is greater than the preset signal strength in the second satellite is acquired; if the third satellite is the same as the fourth satellite, then the The first working frequency is determined as the working frequency of at least one subsequent working cycle.
第三卫星为第一工作周期中搜索到的强度大于预设信号强度的卫星。第四卫星为第二工作周期中搜索到的强度大于预设信号强度的卫星。预设信号强度对应的信噪比可以为38。The third satellite is a satellite whose strength is greater than a preset signal strength found in the first working cycle. The fourth satellite is a satellite whose strength is greater than a preset signal strength found in the second working cycle. The signal-to-noise ratio corresponding to the preset signal strength may be 38.
步骤360、根据第一工作频率控制定位模块获取定位信息。Step 360: Control the positioning module to acquire positioning information according to the first working frequency.
本实施例提供的定位模块的控制方法,可以根据搜索到的部分信号强度较强的卫星,确定终端所处的卫星信号环境,进而确定定位模块的工作频率,降低定位模块的耗电量。The control method of the positioning module provided in this embodiment can determine the satellite signal environment where the terminal is located according to the searched satellites with strong signal strength, and then determine the working frequency of the positioning module to reduce the power consumption of the positioning module.
图4为本申请实施例提供的另一个定位模块的控制方法的流程示意图,作为对上述实施例的进一步说明,包括:Fig. 4 is a schematic flowchart of another positioning module control method provided by the embodiment of the present application, as a further description of the above embodiment, including:
步骤410、获取第一工作周期内至少一个第一卫星的信号质量。Step 410, acquire the signal quality of at least one first satellite in the first working period.
其中,第一工作周期为当前信号周期;Wherein, the first working cycle is the current signal cycle;
步骤420、根据信号质量确定定位模块的第一工作频率。Step 420: Determine the first operating frequency of the positioning module according to the signal quality.
步骤430、判断当前剩余电量是否小于预设电量阈值。Step 430, judging whether the current remaining power is less than a preset power threshold.
可选的,根据终端当前耗电量预估耗电速率,根据该耗电速率计算终端剩余使用时间,如果该剩余使用时间小于预设时长,则确定当前剩余电量小于预设电量阈值。其中,预设时长可以为30分钟-2小时,可选为1小时。Optionally, the power consumption rate is estimated according to the current power consumption of the terminal, and the remaining usage time of the terminal is calculated according to the power consumption rate. If the remaining usage time is less than the preset duration, it is determined that the current remaining power is less than the preset power threshold. Wherein, the preset duration may be 30 minutes to 2 hours, and may be 1 hour as an option.
可选的,预设电量阈值可以为10-30%,获取终端当前剩余电量后,判断该电量是否小于预设电量阈值。Optionally, the preset power threshold may be 10-30%. After obtaining the current remaining power of the terminal, it is judged whether the power is less than the preset power threshold.
步骤440、如果当前剩余电量小于预设电量阈值,则根据第一工作频率控制定位模块获取定位信息。Step 440: If the current remaining power is less than the preset power threshold, control the positioning module to acquire positioning information according to the first operating frequency.
本实施例提供的定位模块的控制方法,可以在终端电量较低(小于预设电量阈值)时,在默认工作周期中划分出工作时段和休眠时段,使定位模块在工作时段工作,在休眠时段休息,进一步提高终端的使用时长降低定位模块的耗电量。The control method of the positioning module provided in this embodiment can divide the working period and the sleeping period in the default working cycle when the terminal power is low (less than the preset power threshold), so that the positioning module works during the working period and the sleeping period Take a break to further increase the service life of the terminal and reduce the power consumption of the positioning module.
当用户与另一用户一同行动时,如果两个用户的终端均进行定位,则造成资源浪费。图5为本申请实施例提供的另一个定位模块的控制方法的流程示意图,作为对上述实施例的进一步说明,包括:When a user is acting together with another user, if the terminals of both users perform positioning, resources will be wasted. Fig. 5 is a schematic flowchart of another positioning module control method provided by the embodiment of the present application, as a further description of the above embodiment, including:
步骤510、获取第一工作周期内至少一个第一卫星的信号质量。Step 510, acquire the signal quality of at least one first satellite in the first working period.
其中,第一工作周期为当前信号周期。Wherein, the first working period is the current signal period.
步骤520、根据信号质量确定定位模块的第一工作频率。Step 520, determine the first operating frequency of the positioning module according to the signal quality.
步骤530、根据第一工作频率控制定位模块获取定位信息。Step 530: Control the positioning module to acquire positioning information according to the first working frequency.
步骤540、将定位模块获取到的位置信息共享至另一终端。Step 540, share the position information acquired by the positioning module with another terminal.
首先,与另一终端建立位置共享连接,所述位置共享连接用于在所述当前设备和所述目标设备之间共享位置信息。然后,将定位信息共享至所述当前设备,最后,降低另一终端的定位模块的工作频率。First, establish a location sharing connection with another terminal, where the location sharing connection is used to share location information between the current device and the target device. Then, the positioning information is shared with the current device, and finally, the working frequency of the positioning module of the other terminal is reduced.
其中,位置共享连接可以为蓝牙(BT)连接;或者,近距离无线通讯(NFC)连接。Wherein, the location sharing connection may be a Bluetooth (BT) connection; or, a Near Field Communication (NFC) connection.
蓝牙连接中可以通过对象存储规范(Object Push Profile,OPP)协议,在当前设备与目标设备之间共享位置信息。In the Bluetooth connection, location information can be shared between the current device and the target device through an Object Push Profile (OPP) protocol.
在进行共享位置信息时,可以位置信息的发送方可以在当前设备和目标设备之间交替进行。例如当前设备的定位模块关闭预设时间,同时使用目标设备通过为止共享连接发送的位置信息。在预设时间后的下一个预设时间内,当前设备的定位模块启动,并为目标设备提供定位信息,同时目标设备关闭其定位信息。When sharing location information, the sender of the location information can alternate between the current device and the target device. For example, the positioning module of the current device is turned off for a preset time, and at the same time, the location information sent by the target device through the shared connection is used. Within the next preset time after the preset time, the positioning module of the current device is activated, and provides positioning information for the target device, and at the same time, the target device closes its positioning information.
可选的,根据当前设备和目标设备的当前电量确定位置信息的发送者。例如将剩余电量较高的设备确定为位置信息的发送者。可选的,根据充电状态确定位置信息的发送者。如果当前设备和目标设备之中一个正在充电另一个未充电,则将充电的设备确定为位置信息的发送者,另一个设备作为位置信息的接收者。位置信息的接收者降低自身的定位模块的工作频率。Optionally, the sender of the location information is determined according to the current power levels of the current device and the target device. For example, a device with a higher remaining power is determined as the sender of the location information. Optionally, the sender of the location information is determined according to the charging state. If one of the current device and the target device is charging and the other is not charging, the charged device is determined as the sender of the location information, and the other device as the receiver of the location information. The receiver of the location information reduces the working frequency of its own positioning module.
进一步的,在建立位置共享连接后,当同时需要传输位置信息、图片数据、多媒体数据等其他数据时,优选传输位置信息。Further, after the location sharing connection is established, when other data such as location information, picture data, and multimedia data need to be transmitted at the same time, the location information is preferably transmitted.
进一步的,位置共享连接还可以为无线保真WIFI连接或者移动蜂窝网络(如手机使用的2G、3G、4G或5G网络等)连接。例如,终端与另一终端通过访问服务器,建立位置共享连接。Further, the location sharing connection may also be a wireless fidelity WIFI connection or a mobile cellular network (such as a 2G, 3G, 4G or 5G network used by a mobile phone, etc.) connection. For example, the terminal establishes a location sharing connection with another terminal by accessing the server.
如果终端与另一终端建立位置共享连接,则可以按照预设时间间隔将目标设备的定位模块获取的定位信息共享至终端。预设时间间隔可以为1次/秒。If the terminal establishes a location sharing connection with another terminal, the positioning information obtained by the positioning module of the target device may be shared with the terminal at preset time intervals. The preset time interval can be 1 time/second.
降低定位模块的工作频率,可以为降低定位模块的信息获取频率。还可以为关闭定位模块。定位模块可以为终端中用于进行定位的功能模组,该模组可以为GPS定位模块或者全球导航卫星系统GNSS定位模块等。降低定位模块获取定位信息的频率,能够降低定位模块的功耗。暂时关闭定位模块时可缓存定位信息,当其他应用访问定位模块查询位置信息时,将缓存的定位信息发送至其他应用。Reducing the working frequency of the positioning module can reduce the information acquisition frequency of the positioning module. Modules can also be positioned for closure. The positioning module may be a functional module for positioning in the terminal, and the module may be a GPS positioning module or a global navigation satellite system (GNSS) positioning module. Reducing the frequency at which the positioning module acquires positioning information can reduce the power consumption of the positioning module. When the positioning module is temporarily closed, the positioning information can be cached, and when other applications access the positioning module to query the location information, the cached positioning information will be sent to other applications.
本实施例提供的定位模块的控制方法,能够将终端获取到的定位信息共享至另一终端,在两台终端之间实现位置信息的共享,进而降低其中一台终端的耗电,进一步降低定位模块的耗电。The control method of the positioning module provided in this embodiment can share the positioning information obtained by the terminal with another terminal, and realize the sharing of position information between the two terminals, thereby reducing the power consumption of one of the terminals and further reducing the positioning power consumption of the module.
图6为本申请实施例提供的一种定位模块的控制装置的结构示意图。如图6所示,该装置包括:信号质量获取模块610、工作频率确定模块620、控制模块630。FIG. 6 is a schematic structural diagram of a control device for a positioning module provided by an embodiment of the present application. As shown in FIG. 6 , the device includes: a signal quality acquisition module 610 , a working frequency determination module 620 , and a control module 630 .
信号质量获取模块610,用于获取第一工作周期内至少一个第一卫星的信号质量,所述第一工作周期为当前信号周期;A signal quality acquisition module 610, configured to acquire the signal quality of at least one first satellite in a first working period, where the first working period is the current signal period;
工作频率确定模块620,用于根据所述信号质量获取模块610获取的所述信号质量确定定位模块的第一工作频率;An operating frequency determining module 620, configured to determine the first operating frequency of the positioning module according to the signal quality acquired by the signal quality acquiring module 610;
控制模块630,用于根据所述工作频率确定模块620确定的所述第一工作频率控制所述定位模块获取定位信息。The control module 630 is configured to control the positioning module to obtain positioning information according to the first working frequency determined by the working frequency determining module 620 .
进一步的,所述信号质量获取模块610用于:Further, the signal quality acquisition module 610 is used for:
当用户启动导航应用时,获取第一工作周期内至少一个第一卫星的信号质量。When the user starts the navigation application, the signal quality of at least one first satellite in the first working period is acquired.
进一步的,所述工作频率确定模块620用于:Further, the working frequency determination module 620 is used for:
如果信号强度大于预设强度,则将默认工作周期划分为工作时段和休眠时段,所述默认工作周期的时长与所述第一工作周期的时长相同;If the signal strength is greater than the preset strength, the default duty cycle is divided into a work period and a sleep period, and the duration of the default duty cycle is the same as that of the first duty cycle;
根据工作时段确定第一工作频率。The first working frequency is determined according to the working period.
进一步的,所述工作频率确定模块620用于:在根据工作时段确定第一工作频率之后,在第二工作周期的工作时段中搜索第二卫星;Further, the working frequency determining module 620 is configured to: after determining the first working frequency according to the working period, search for the second satellite in the working period of the second working cycle;
如果所述第二卫星与所述第一卫星相同或部分相同,则将所述第一工作频率确定为后续至少一个工作周期的工作频率。If the second satellite is identical or partially identical to the first satellite, then determining the first working frequency as the working frequency for at least one subsequent working period.
进一步的,所述工作频率确定模块620用于:Further, the working frequency determination module 620 is used for:
如果所述第二卫星与所述第一卫星相同或部分相同,则将所述第一工作频率确定为后续至少一个工作周期的工作频率,包括:If the second satellite is identical or partially identical to the first satellite, determining the first operating frequency as the operating frequency of at least one subsequent operating cycle includes:
获取第一卫星中信号强度大于预设信号强度的第三卫星;Obtaining a third satellite whose signal strength is greater than a preset signal strength among the first satellites;
获取第二卫星中信号强度大于预设信号强度的第四卫星;Obtaining a fourth satellite whose signal strength is greater than a preset signal strength among the second satellites;
如果所述第三卫星与所述第四卫星相同,则将所述第一工作频率确定为后续至少一个工作周期的工作频率。If the third satellite is the same as the fourth satellite, then determining the first working frequency as the working frequency for at least one subsequent working period.
进一步的,所述控制模块630用于:Further, the control module 630 is used for:
判断当前剩余电量是否小于预设电量阈值;Determine whether the current remaining power is less than the preset power threshold;
如果当前剩余电量小于预设电量阈值,则根据所述第一工作频率控制所述定位模块获取定位信息。If the current remaining power is less than the preset power threshold, the positioning module is controlled to acquire positioning information according to the first operating frequency.
进一步的,还包括共享模块640,Further, it also includes a shared module 640,
共享模块640用于,将所述定位模块获取到的位置信息共享至另一终端。The sharing module 640 is configured to share the location information acquired by the positioning module with another terminal.
本实施例提供的定位模块的控制装置,首先信号质量获取模块610获取第一工作周期内至少一个第一卫星的信号质量,所述第一工作周期为当前信号周期;然后,工作频率确定模块620根据所述信号质量确定定位模块的第一工作频率;最后,控制模块630根据所述第一工作频率控制所述定位模块获取定位信息,根据卫星的信号强度对定位模块的工作频率进行调整,使得定位模块在在卫星信号强度较高,可以较快(不到1秒)的完成定位时,提前关闭定位模块,降低定位模块功耗。In the control device of the positioning module provided in this embodiment, first, the signal quality acquisition module 610 acquires the signal quality of at least one first satellite in the first working period, and the first working period is the current signal period; then, the working frequency determination module 620 Determine the first operating frequency of the positioning module according to the signal quality; finally, the control module 630 controls the positioning module to obtain positioning information according to the first operating frequency, and adjusts the operating frequency of the positioning module according to the signal strength of the satellite, so that The positioning module shuts down the positioning module in advance to reduce the power consumption of the positioning module when the satellite signal strength is high and the positioning can be completed quickly (less than 1 second).
上述装置可执行本申请前述所有实施例所提供的方法,具备执行上述方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请前述所有实施例所提供的方法。The above-mentioned device can execute the methods provided by all the foregoing embodiments of the present application, and has corresponding functional modules and beneficial effects for executing the above-mentioned methods. For technical details not exhaustively described in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present application.
图7是本申请实施例提供的另一种终端设备的结构示意图。如图7所示,该终端可以包括:壳体(图中未示出)、存储器701、中央处理器(Central Processing Unit,CPU)702(又称处理器,以下简称CPU)、存储在存储器701上并可在处理器702上运行的计算机程序、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU702和所述存储器701设置在所述电路板上;所述电源电路,用于为所述终端的各个电路或器件供电;所述存储器701,用于存储可执行程序代码;所述CPU702通过读取所述存储器701中存储的可执行程序代码来运行与所述可执行程序代码对应的程序。FIG. 7 is a schematic structural diagram of another terminal device provided by an embodiment of the present application. As shown in FIG. 7 , the terminal may include: a housing (not shown in the figure), a memory 701, a central processing unit (Central Processing Unit, CPU) 702 (also known as a processor, hereinafter referred to as CPU), and stored in the memory 701. A computer program running on the processor 702, a circuit board (not shown in the figure) and a power supply circuit (not shown in the figure). The circuit board is placed inside the space surrounded by the housing; the CPU 702 and the memory 701 are arranged on the circuit board; the power supply circuit is used to supply power to each circuit or device of the terminal; The memory 701 is used to store executable program codes; the CPU 702 runs programs corresponding to the executable program codes by reading the executable program codes stored in the memory 701 .
所述终端还包括:外设接口703、RF(Radio Frequency,射频)电路705、音频电路706、扬声器711、电源管理芯片708、输入/输出(I/O)子系统709、触摸屏712、其他输入/控制设备710以及外部端口704,这些部件通过一个或多个通信总线或信号线707来通信。The terminal also includes: peripheral interface 703, RF (Radio Frequency, radio frequency) circuit 705, audio circuit 706, speaker 711, power management chip 708, input/output (I/O) subsystem 709, touch screen 712, other input /control device 710 and external port 704 , these components communicate via one or more communication buses or signal lines 707 .
应该理解的是,图示终端设备700仅仅是终端的一个范例,并且终端设备700可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated terminal device 700 is only an example of a terminal, and that the terminal device 700 may have more or fewer components than shown in the figure, two or more components may be combined, or Different component configurations are possible. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
下面就本实施例提供的用于一种终端设备进行详细的描述,该终端设备以智能手机为例。The following describes a terminal device provided in this embodiment in detail, and the terminal device takes a smart phone as an example.
存储器701,所述存储器701可以被CPU702、外设接口703等访问,所述存储器701可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 701, the memory 701 can be accessed by the CPU 702, the peripheral interface 703, etc., the memory 701 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.
外设接口703,所述外设接口703可以将设备的输入和输出外设连接到CPU702和存储器701。Peripheral interface 703 , which can connect the input and output peripherals of the device to CPU 702 and memory 701 .
I/O子系统709,所述I/O子系统709可以将设备上的输入输出外设,例如触摸屏712和其他输入/控制设备710,连接到外设接口703。I/O子系统709可以包括显示控制器7091和用于控制其他输入/控制设备710的一个或多个输入控制器7092。其中,一个或多个输入控制器7092从其他输入/控制设备710接收电信号或者向其他输入/控制设备710发送电信号,其他输入/控制设备710可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器7092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。The I/O subsystem 709 , the I/O subsystem 709 can connect input and output peripherals on the device, such as a touch screen 712 and other input/control devices 710 , to the peripheral interface 703 . I/O subsystem 709 may include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710 . Among them, one or more input controllers 7092 receive electrical signals from or send electrical signals to other input/control devices 710, which may include physical buttons (push buttons, rocker buttons, etc.) ), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 7092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
其中,按照触摸屏的工作原理和传输信息的介质分类,触摸屏712可以为电阻式、电容感应式、红外线式或表面声波式。按照安装方式分类,触摸屏712可以为:外挂式、内置式或整体式。按照技术原理分类,触摸屏712可以为:矢量压力传感技术触摸屏、电阻技术触摸屏、电容技术触摸屏、红外线技术触摸屏或表面声波技术触摸屏。Wherein, according to the working principle of the touch screen and the classification of the medium for transmitting information, the touch screen 712 can be a resistive type, a capacitive sensing type, an infrared type or a surface acoustic wave type. Classified according to the installation method, the touch screen 712 can be: plug-in type, built-in type or integral type. Classified according to technical principles, the touch screen 712 can be: a touch screen with vector pressure sensing technology, a touch screen with resistive technology, a touch screen with capacitive technology, a touch screen with infrared technology or a touch screen with surface acoustic wave technology.
触摸屏712,所述触摸屏712是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。可选的,触摸屏712将用户在触屏幕上触发的电信号(如接触面的电信号),发送给处理器702。A touch screen 712. The touch screen 712 is an input interface and an output interface between the user terminal and the user, and displays visual output to the user. The visual output may include graphics, text, icons, videos, and the like. Optionally, the touch screen 712 sends the electrical signal triggered by the user on the touch screen (such as the electrical signal of the contact surface) to the processor 702 .
I/O子系统709中的显示控制器7091从触摸屏712接收电信号或者向触摸屏712发送电信号。触摸屏712检测触摸屏上的接触,显示控制器7091将检测到的接触转换为与显示在触摸屏712上的用户界面对象的交互,即实现人机交互,显示在触摸屏712上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。The display controller 7091 in the I/O subsystem 709 receives electrical signals from the touch screen 712 or sends electrical signals to the touch screen 712 . The touch screen 712 detects the contact on the touch screen, and the display controller 7091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 712, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 712 can be a running Icons for games, icons for networking to appropriate networks, etc. It is worth noting that the device may also include an optical mouse, which is a touch-sensitive surface that does not display visual output, or that is an extension of a touch-sensitive surface formed by a touchscreen.
RF电路705,主要用于建立智能音箱与无线网络(即网络侧)的通信,实现智能音箱与无线网络的数据接收和发送。例如收发短信息、电子邮件等。The RF circuit 705 is mainly used to establish communication between the smart speaker and the wireless network (that is, the network side), and realize data reception and transmission between the smart speaker and the wireless network. Such as sending and receiving short messages, e-mails, etc.
音频电路706,主要用于从外设接口703接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器711。The audio circuit 706 is mainly used to receive audio data from the peripheral interface 703 , convert the audio data into electrical signals, and send the electrical signals to the speaker 711 .
扬声器711,用于将智能音箱通过RF电路705从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 711 is used to restore the voice signal received by the smart speaker from the wireless network through the RF circuit 705 into sound and play the sound to the user.
电源管理芯片708,用于为CPU702、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 708 is used for power supply and power management for the hardware connected to the CPU 702 , the I/O subsystem and the peripheral interface.
在本实施例中,中央处理器702用于:In this embodiment, the central processing unit 702 is used for:
获取第一工作周期内至少一个第一卫星的信号质量,所述第一工作周期为当前信号周期;Acquiring the signal quality of at least one first satellite in a first working period, where the first working period is a current signal period;
根据所述信号质量确定定位模块的第一工作频率;determining a first operating frequency of the positioning module according to the signal quality;
根据所述第一工作频率控制所述定位模块获取定位信息。controlling the positioning module to acquire positioning information according to the first working frequency.
进一步的,所述获取第一工作周期内至少一个第一卫星的信号质量,包括:Further, the acquiring the signal quality of at least one first satellite in the first working period includes:
当用户启动导航应用时,获取第一工作周期内至少一个第一卫星的信号质量。When the user starts the navigation application, the signal quality of at least one first satellite in the first working period is acquired.
进一步的,所述根据所述信号质量确定定位模块的第一工作频率,包括:Further, the determining the first operating frequency of the positioning module according to the signal quality includes:
如果信号强度大于预设强度,则将默认工作周期划分为工作时段和休眠时段,所述默认工作周期的时长与所述第一工作周期的时长相同;If the signal strength is greater than the preset strength, the default duty cycle is divided into a work period and a sleep period, and the duration of the default duty cycle is the same as that of the first duty cycle;
根据工作时段确定第一工作频率。The first working frequency is determined according to the working period.
进一步的,在根据工作时段确定第一工作频率之后,还包括:Further, after determining the first working frequency according to the working period, it also includes:
在第二工作周期的工作时段中搜索第二卫星;searching for a second satellite during a working period of a second working cycle;
如果所述第二卫星与所述第一卫星相同或部分相同,则将所述第一工作频率确定为后续至少一个工作周期的工作频率。If the second satellite is identical or partially identical to the first satellite, then determining the first working frequency as the working frequency for at least one subsequent working period.
进一步的,如果所述第二卫星与所述第一卫星相同或部分相同,则将所述第一工作频率确定为后续至少一个工作周期的工作频率,包括:Further, if the second satellite is identical or partially identical to the first satellite, determining the first operating frequency as the operating frequency of at least one subsequent operating cycle includes:
获取第一卫星中信号强度大于预设信号强度的第三卫星;Obtaining a third satellite whose signal strength is greater than a preset signal strength among the first satellites;
获取第二卫星中信号强度大于预设信号强度的第四卫星;Obtaining a fourth satellite whose signal strength is greater than a preset signal strength among the second satellites;
如果所述第三卫星与所述第四卫星相同,则将所述第一工作频率确定为后续至少一个工作周期的工作频率。If the third satellite is the same as the fourth satellite, then determining the first working frequency as the working frequency for at least one subsequent working period.
进一步的,所述根据所述第一工作频率控制所述定位模块获取定位信息,包括:Further, the controlling the positioning module to acquire positioning information according to the first working frequency includes:
判断当前剩余电量是否小于预设电量阈值;Determine whether the current remaining power is less than the preset power threshold;
如果当前剩余电量小于预设电量阈值,则根据所述第一工作频率控制所述定位模块获取定位信息。If the current remaining power is less than the preset power threshold, the positioning module is controlled to acquire positioning information according to the first operating frequency.
进一步的,在根据所述第一工作频率控制所述定位模块获取定位信息之后,还包括:Further, after controlling the positioning module to acquire positioning information according to the first working frequency, the method further includes:
将所述定位模块获取到的位置信息共享至另一终端。Sharing the location information acquired by the positioning module with another terminal.
本申请实施例还提供一种包含终端设备可执行指令的存储介质,所述终端设备可执行指令在由终端设备处理器执行时用于执行一种定位模块的控制方法,该方法包括:The embodiment of the present application also provides a storage medium containing executable instructions of a terminal device, and the executable instructions of the terminal device are used to execute a control method of a positioning module when executed by a processor of the terminal device, and the method includes:
获取第一工作周期内至少一个第一卫星的信号质量,所述第一工作周期为当前信号周期;Acquiring the signal quality of at least one first satellite in a first working period, where the first working period is a current signal period;
根据所述信号质量确定定位模块的第一工作频率;determining a first operating frequency of the positioning module according to the signal quality;
根据所述第一工作频率控制所述定位模块获取定位信息。controlling the positioning module to acquire positioning information according to the first working frequency.
进一步的,所述获取第一工作周期内至少一个第一卫星的信号质量,包括:Further, the acquiring the signal quality of at least one first satellite in the first working period includes:
当用户启动导航应用时,获取第一工作周期内至少一个第一卫星的信号质量。When the user starts the navigation application, the signal quality of at least one first satellite in the first working period is acquired.
进一步的,所述根据所述信号质量确定定位模块的第一工作频率,包括:Further, the determining the first operating frequency of the positioning module according to the signal quality includes:
如果信号强度大于预设强度,则将默认工作周期划分为工作时段和休眠时段,所述默认工作周期的时长与所述第一工作周期的时长相同;If the signal strength is greater than the preset strength, the default duty cycle is divided into a work period and a sleep period, and the duration of the default duty cycle is the same as that of the first duty cycle;
根据工作时段确定第一工作频率。The first working frequency is determined according to the working period.
进一步的,在根据工作时段确定第一工作频率之后,还包括:Further, after determining the first working frequency according to the working period, it also includes:
在第二工作周期的工作时段中搜索第二卫星;searching for a second satellite during a working period of a second working cycle;
如果所述第二卫星与所述第一卫星相同或部分相同,则将所述第一工作频率确定为后续至少一个工作周期的工作频率。If the second satellite is identical or partially identical to the first satellite, then determining the first working frequency as the working frequency for at least one subsequent working period.
进一步的,如果所述第二卫星与所述第一卫星相同或部分相同,则将所述第一工作频率确定为后续至少一个工作周期的工作频率,包括:Further, if the second satellite is identical or partially identical to the first satellite, determining the first operating frequency as the operating frequency of at least one subsequent operating cycle includes:
获取第一卫星中信号强度大于预设信号强度的第三卫星;Obtaining a third satellite whose signal strength is greater than a preset signal strength among the first satellites;
获取第二卫星中信号强度大于预设信号强度的第四卫星;Obtaining a fourth satellite whose signal strength is greater than a preset signal strength among the second satellites;
如果所述第三卫星与所述第四卫星相同,则将所述第一工作频率确定为后续至少一个工作周期的工作频率。If the third satellite is the same as the fourth satellite, then determining the first working frequency as the working frequency for at least one subsequent working period.
进一步的,所述根据所述第一工作频率控制所述定位模块获取定位信息,包括:Further, the controlling the positioning module to acquire positioning information according to the first working frequency includes:
判断当前剩余电量是否小于预设电量阈值;Determine whether the current remaining power is less than the preset power threshold;
如果当前剩余电量小于预设电量阈值,则根据所述第一工作频率控制所述定位模块获取定位信息。If the current remaining power is less than the preset power threshold, the positioning module is controlled to acquire positioning information according to the first operating frequency.
进一步的,在根据所述第一工作频率控制所述定位模块获取定位信息之后,还包括:Further, after controlling the positioning module to acquire positioning information according to the first working frequency, the method further includes:
将所述定位模块获取到的位置信息共享至另一终端。Sharing the location information acquired by the positioning module with another terminal.
本申请实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium in the embodiments of the present application may use any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer readable storage media include: electrical connections with one or more leads, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including - but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本申请操作的计算机程序代码,程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如”C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present application may be written in one or more programming languages or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional procedural Programming language - such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的应用推荐操作,还可以执行本申请任意实施例所提供的应用推荐方法中的相关操作。Of course, in the storage medium containing computer-executable instructions provided in the embodiments of the present application, the computer-executable instructions are not limited to the above-mentioned application recommendation operations, and can also execute the application recommendation method provided in any embodiment of the application. related operations.
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments and technical principles used in this application. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present application, and the present application The scope is determined by the scope of the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711344190.9ACN108156650B (en) | 2017-12-13 | 2017-12-13 | Control method and device of positioning module, storage medium and terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711344190.9ACN108156650B (en) | 2017-12-13 | 2017-12-13 | Control method and device of positioning module, storage medium and terminal |
| Publication Number | Publication Date |
|---|---|
| CN108156650Atrue CN108156650A (en) | 2018-06-12 |
| CN108156650B CN108156650B (en) | 2021-08-27 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711344190.9AActiveCN108156650B (en) | 2017-12-13 | 2017-12-13 | Control method and device of positioning module, storage medium and terminal |
| Country | Link |
|---|---|
| CN (1) | CN108156650B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109239749A (en)* | 2018-08-22 | 2019-01-18 | 深圳普创天信科技发展有限公司 | Localization method, terminal and computer readable storage medium |
| CN114630271A (en)* | 2022-03-15 | 2022-06-14 | 北京小米移动软件有限公司 | Positioning method, positioning device, electronic equipment and storage medium |
| CN114759968A (en)* | 2022-03-04 | 2022-07-15 | 广州爱浦路网络技术有限公司 | Communication satellite energy-saving control method, computer device and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103516912A (en)* | 2013-03-07 | 2014-01-15 | 苏州海客科技有限公司 | Mobile terminal locating and power saving method |
| CN105446452A (en)* | 2014-09-18 | 2016-03-30 | 联发科技(新加坡)私人有限公司 | Electronic device with locating function and power saving management method of electronic device |
| US20160094939A1 (en)* | 2014-09-26 | 2016-03-31 | Wey-Yi W. Guy | Systems and methods for adjusting wireless scan rates |
| CN105866810A (en)* | 2016-03-23 | 2016-08-17 | 福州瑞芯微电子股份有限公司 | GPS low-power-consumption positioning method and device for electronic equipment |
| US20160291128A1 (en)* | 2015-03-30 | 2016-10-06 | Sony Corporation | Apparatus, systems and methods for mobile network positioning of mtc devices using partial power boosting |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103516912A (en)* | 2013-03-07 | 2014-01-15 | 苏州海客科技有限公司 | Mobile terminal locating and power saving method |
| CN105446452A (en)* | 2014-09-18 | 2016-03-30 | 联发科技(新加坡)私人有限公司 | Electronic device with locating function and power saving management method of electronic device |
| US20160094939A1 (en)* | 2014-09-26 | 2016-03-31 | Wey-Yi W. Guy | Systems and methods for adjusting wireless scan rates |
| US20160291128A1 (en)* | 2015-03-30 | 2016-10-06 | Sony Corporation | Apparatus, systems and methods for mobile network positioning of mtc devices using partial power boosting |
| CN105866810A (en)* | 2016-03-23 | 2016-08-17 | 福州瑞芯微电子股份有限公司 | GPS low-power-consumption positioning method and device for electronic equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109239749A (en)* | 2018-08-22 | 2019-01-18 | 深圳普创天信科技发展有限公司 | Localization method, terminal and computer readable storage medium |
| CN114759968A (en)* | 2022-03-04 | 2022-07-15 | 广州爱浦路网络技术有限公司 | Communication satellite energy-saving control method, computer device and storage medium |
| CN114630271A (en)* | 2022-03-15 | 2022-06-14 | 北京小米移动软件有限公司 | Positioning method, positioning device, electronic equipment and storage medium |
| Publication number | Publication date |
|---|---|
| CN108156650B (en) | 2021-08-27 |
| Publication | Publication Date | Title |
|---|---|---|
| US11636861B2 (en) | Electronic device and method of operation thereof | |
| CN108111974A (en) | Control method and device of positioning module, storage medium and terminal | |
| CN107835033B (en) | Antenna tuning switch control method and device, terminal equipment and storage medium | |
| US9743226B2 (en) | Method for short-range wireless communication and electronic device using the same | |
| CN108076507B (en) | Positioning mode control method, device, storage medium and mobile terminal | |
| US10897531B2 (en) | Message obtaining method and apparatus | |
| US20150052534A1 (en) | Method and device for executing scheduled tasks, computer-readable storage medium, graphical user interface and mobile terminal | |
| CN108681474B (en) | Application preloading method and device, storage medium and terminal | |
| CN108168569A (en) | Navigation method, navigation device, storage medium, mobile terminal and vehicle-mounted system | |
| CN107786424B (en) | Audio and video communication method, terminal and server | |
| US9921735B2 (en) | Apparatuses and methods for inputting a uniform resource locator | |
| CN108055635B (en) | Position information acquisition method and device, storage medium and terminal | |
| CN108874554B (en) | Information communication method and device | |
| WO2018006841A1 (en) | Qr code information transmission method, device and apparatus | |
| US20150066424A1 (en) | Electronic device and method for measuring position change | |
| CN108494970A (en) | Processing method, device, storage medium and the terminal of terminal's status information | |
| CN107066090B (en) | Method for controlling fingerprint identification module and mobile terminal | |
| CN108156650B (en) | Control method and device of positioning module, storage medium and terminal | |
| CN108072885A (en) | Collocation method, device, storage medium and the terminal of locating module | |
| CN108112061B (en) | Positioning control method, device, storage medium and terminal device | |
| CN109923506A (en) | Information processing method, positioning chip, and mobile terminal | |
| CN108093373B (en) | Positioning control method, device, storage medium and terminal device | |
| CN107809742A (en) | Positioning information processing method, device, storage medium and terminal | |
| MX2014008884A (en) | Mobile terminal resource processing method, device and apparatus. | |
| CN108432161A (en) | Interference control method and terminal for audio service |
| 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 OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. | |
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |