Movatterモバイル変換


[0]ホーム

URL:


CN108008423B - Control method and device based on positioning module, storage medium and mobile terminal - Google Patents

Control method and device based on positioning module, storage medium and mobile terminal
Download PDF

Info

Publication number
CN108008423B
CN108008423BCN201711327142.9ACN201711327142ACN108008423BCN 108008423 BCN108008423 BCN 108008423BCN 201711327142 ACN201711327142 ACN 201711327142ACN 108008423 BCN108008423 BCN 108008423B
Authority
CN
China
Prior art keywords
mobile terminal
mode
module
preset
gnss module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711327142.9A
Other languages
Chinese (zh)
Other versions
CN108008423A (en
Inventor
林华秋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711327142.9ApriorityCriticalpatent/CN108008423B/en
Publication of CN108008423ApublicationCriticalpatent/CN108008423A/en
Application grantedgrantedCritical
Publication of CN108008423BpublicationCriticalpatent/CN108008423B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the application discloses a control method and device based on a positioning module, a storage medium and a mobile terminal. The method comprises the following steps: when a GNSS module in a mobile terminal is in a normal working mode, acquiring a first identification result of an AR unit at the bottom layer through an application layer, wherein the AR unit is arranged in a sensor assisted positioning SAP module; determining whether the mobile terminal is in a first preset behavior mode according to the first identification result, wherein the first preset behavior mode comprises a static mode; and when the mobile terminal is determined to be in the first preset behavior mode, controlling the GNSS module to enter a low-power-consumption working mode. By adopting the technical scheme, the embodiment of the application can reduce the power consumption of the mobile terminal and prolong the standby time.

Description

Translated fromChinese
基于定位模块的控制方法、装置、存储介质及移动终端Control method, device, storage medium and mobile terminal based on positioning module

技术领域technical field

本申请实施例涉及定位技术领域,尤其涉及基于定位模块的控制方法、装置、存储介质及移动终端。The embodiments of the present application relate to the field of positioning technology, and in particular, to a control method, device, storage medium, and mobile terminal based on a positioning module.

背景技术Background technique

目前,多数移动终端均具备定位功能,能够向用户提供很多基于位置的服务,为用户带来了便利。At present, most mobile terminals have a positioning function, which can provide users with many location-based services, which brings convenience to users.

移动终端的定位方式主要包括全球导航卫星系统(Global NavigationSatellite System,GNSS)定位、网络定位以及基站定位等。其中,GNSS定位方式具有定位精度高以及不需要使用移动数据网络等优点,但定位过程功耗很大,影响移动终端的续航时间。此外,GNSS定位方式需要搜索卫星信号,当移动终端处于比较封闭的环境或者周围存在遮挡物等情况时,可能导致卫星信号不稳定或信号强度差等,定位结果不理想。The positioning methods of the mobile terminal mainly include Global Navigation Satellite System (Global Navigation Satellite System, GNSS) positioning, network positioning, and base station positioning. Among them, the GNSS positioning method has the advantages of high positioning accuracy and does not need to use a mobile data network, etc., but the positioning process consumes a lot of power, which affects the battery life of the mobile terminal. In addition, the GNSS positioning method needs to search for satellite signals. When the mobile terminal is in a relatively closed environment or there are obstacles around it, the satellite signal may be unstable or the signal strength is poor, and the positioning result is not ideal.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种基于定位模块的控制方法、装置、存储介质及移动终端,可以优化移动终端中的基于GNSS定位模块的控制方案。The embodiments of the present application provide a positioning module-based control method, device, storage medium, and mobile terminal, which can optimize the control scheme based on the GNSS positioning module in the mobile terminal.

第一方面,本申请实施例提供了一种基于定位模块的控制方法,包括:In a first aspect, an embodiment of the present application provides a control method based on a positioning module, including:

在移动终端中的全球卫星导航系统GNSS模块处于正常工作模式时,通过应用层获取底层的行为识别AR单元的第一识别结果,其中,所述AR单元设置于传感器辅助定位SAP模块中;When the GNSS module of the global satellite navigation system in the mobile terminal is in the normal working mode, the first recognition result of the underlying behavior recognition AR unit is obtained through the application layer, wherein the AR unit is arranged in the sensor-assisted positioning SAP module;

根据所述第一识别结果确定所述移动终端是否处于第一预设行为模式,所述第一预设行为模式包括静止模式;determining whether the mobile terminal is in a first preset behavior mode according to the first identification result, where the first preset behavior mode includes a static mode;

当确定所述移动终端处于所述第一预设行为模式时,控制所述GNSS模块进入低功耗工作模式。When it is determined that the mobile terminal is in the first preset behavior mode, the GNSS module is controlled to enter a low power consumption working mode.

第二方面,本申请实施例提供了一种基于定位模块的控制装置,包括:In a second aspect, an embodiment of the present application provides a positioning module-based control device, including:

第一识别结果获取模块,用于在移动终端中的全球卫星导航系统GNSS模块处于正常工作模式时,通过应用层获取底层的行为识别AR单元的第一识别结果,其中,所述AR单元设置于传感器辅助定位SAP模块中;The first recognition result acquisition module is used to acquire the first recognition result of the bottom behavior recognition AR unit through the application layer when the global navigation satellite system GNSS module in the mobile terminal is in the normal working mode, wherein the AR unit is set in the Sensor-assisted positioning in the SAP module;

行为模式判断模块,用于根据所述第一识别结果确定所述移动终端是否处于第一预设行为模式,所述第一预设行为模式包括静止模式;a behavior mode judgment module, configured to determine whether the mobile terminal is in a first preset behavior mode according to the first identification result, and the first preset behavior mode includes a static mode;

定位控制模块,用于当确定所述移动终端处于所述第一预设行为模式时,控制所述GNSS模块进入低功耗工作模式。A positioning control module, configured to control the GNSS module to enter a low power consumption working mode when it is determined that the mobile terminal is in the first preset behavior mode.

第三方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例所述的基于定位模块的控制方法。In a third aspect, an 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, implements the positioning module-based control method described in the embodiment of the present application.

第四方面,本申请实施例提供了一种移动终端,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例所述的基于定位模块的控制方法。In a fourth aspect, an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executed by the processor, and the processor executes the computer program to achieve the same implementation as the present application The control method based on the positioning module described in the example.

本申请实施例中提供的基于定位模块的控制方案,在移动终端中的GNSS模块处于正常工作模式时,通过应用层获取底层SAP模块中AR单元的第一识别结果,若根据第一识别结果确定移动终端处于包含静止模式的第一预设行为模式,则控制GNSS模块进入低功耗工作模式。本申请实施例通过采用上述技术方案,移动终端中系统应用层无需获取如运动传感器的运动数据等用于识别移动终端的运动状态,而是可直接快速地从内置的底层AR单元中获取行为模式的识别结果,当识别结果中包含移动终端处于静止模式时,控制GNSS模块进入低功耗工作模式,可降低移动终端的功耗,延长待机时间。In the control scheme based on the positioning module provided in the embodiment of the present application, when the GNSS module in the mobile terminal is in the normal working mode, the first identification result of the AR unit in the underlying SAP module is obtained through the application layer, if the first identification result is determined according to the first identification result When the mobile terminal is in the first preset behavior mode including the stationary mode, the GNSS module is controlled to enter the low power consumption working mode. By adopting the above technical solutions in the embodiments of the present application, the system application layer in the mobile terminal does not need to acquire motion data such as motion sensors for identifying the motion state of the mobile terminal, but can directly and quickly acquire behavior patterns from the built-in underlying AR unit When the identification result includes that the mobile terminal is in the stationary mode, the GNSS module is controlled to enter the low power consumption working mode, which can reduce the power consumption of the mobile terminal and prolong the standby time.

附图说明Description of drawings

图1为本申请实施例提供的一种基于定位模块的控制方法的流程示意图;1 is a schematic flowchart of a control method based on a positioning module provided by an embodiment of the present application;

图2为本申请实施例提供的一种检测当前场景是否适合GNSS模块工作的流程示意图;2 is a schematic flowchart of detecting whether a current scene is suitable for a GNSS module to work according to an embodiment of the present application;

图3为本申请实施例提供的另一种基于定位模块的控制方法的流程示意图;3 is a schematic flowchart of another control method based on a positioning module provided by an embodiment of the present application;

图4为本申请实施例提供的一种获取AR识别结果的流程示意图;FIG. 4 is a schematic flowchart of obtaining an AR recognition result according to an embodiment of the present application;

图5为本申请实施例提供的一种具体实现的架构示意图;FIG. 5 is a schematic structural diagram of a specific implementation provided by an embodiment of the present application;

图6为本申请实施例提供的一种基于定位模块的控制装置的结构框图;6 is a structural block diagram of a control device based on a positioning module provided by an embodiment of the present application;

图7为本申请实施例提供的一种移动终端的结构示意图;FIG. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;

图8为本申请实施例提供的又一种移动终端的结构示意图。FIG. 8 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application.

具体实施方式Detailed ways

下面结合附图并通过具体实施方式来进一步说明本申请的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The technical solutions of the present application will be further described below with reference to the accompanying drawings and through specific embodiments. It should be understood that the specific embodiments described herein 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, the drawings only show some but not all the structures related to the present application.

在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart depicts the steps as a sequential process, many of the steps may be performed in parallel, concurrently, or concurrently. Furthermore, the order of the steps can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, subroutines, and the like.

图1为本申请实施例提供的一种基于定位模块的控制方法的流程示意图,该方法可以由基于定位模块的控制装置执行,其中该装置可由软件和/或硬件实现,一般可集成在移动终端中。如图1所示,该方法包括:1 is a schematic flowchart of a control method based on a positioning module provided by an embodiment of the present application. The method can be executed by a control device based on a positioning module, wherein the device can be implemented by software and/or hardware, and can generally be integrated in a mobile terminal middle. As shown in Figure 1, the method includes:

步骤101、在移动终端中的GNSS模块处于正常工作模式时,通过应用层获取底层的AR单元的第一识别结果。Step 101: When the GNSS module in the mobile terminal is in the normal working mode, obtain the first identification result of the AR unit at the bottom layer through the application layer.

其中,行为识别(ActivityRecognition,AR)单元设置于传感器辅助定位(SensorAssisted Positioning,SAP)模块中。Wherein, an activity recognition (Activity Recognition, AR) unit is set in a sensor-assisted positioning (SensorAssisted Positioning, SAP) module.

示例性的,本申请实施例中的移动终端可包括手机以及平板电脑等设置有GNSS定位模块(简称GNSS模块)的移动设备。本申请实施例对GNSS模块的具体类型不作限定,可以包括全球定位系统(Global Positioning System,GPS)、北斗卫星导航系统以及伽利略卫星导航系统(GALILEO)等。Exemplarily, the mobile terminals in the embodiments of the present application may include mobile devices such as mobile phones and tablet computers, which are provided with a GNSS positioning module (GNSS module for short). The embodiments of the present application do not limit the specific type of the GNSS module, which may include a global positioning system (Global Positioning System, GPS), a Beidou satellite navigation system, and a Galileo satellite navigation system (GALILEO).

目前,随着定位技术的快速发展,对定位精度以及定位准确度的要求越来越高,由于GNSS模块在定位过程中会存在一些局限性,如当移动终端处于比较封闭的环境或者周围存在遮挡物等情况时,可能导致卫星信号不稳定或信号强度差等,定位结果不理想。为了辅助GNSS模块的定位工作,定位芯片供应商(如高通)为GNSS模块配置了辅助定位模块,如SAP模块。当系统启动GNSS模块后,SAP模块也会一起启动,SAP模块中的AR单元会不断地识别用户处于何种行为状态,例如可包括VEHICLE(开车)、BICYCLE(自行车或骑行)、WALKING(步行)、RUNNING(跑步)以及STILL(静止)等,并将识别的结果用于对GNSS模块的定位辅助,且在相关技术中,AR单元的识别结果仅供GNSS模块使用,并没有提供公开的标准接口,也即其他程序或模块不会去获取AR单元的识别结果。At present, with the rapid development of positioning technology, the requirements for positioning accuracy and positioning accuracy are getting higher and higher, because the GNSS module will have some limitations in the positioning process, such as when the mobile terminal is in a relatively closed environment or there is obstruction around In the case of objects, etc., it may lead to unstable satellite signals or poor signal strength, etc., and the positioning results are not ideal. In order to assist the positioning work of the GNSS module, the positioning chip supplier (such as Qualcomm) configures the GNSS module with an auxiliary positioning module, such as the SAP module. When the system starts the GNSS module, the SAP module will also be started together, and the AR unit in the SAP module will constantly identify the user's behavior status, such as VEHICLE (driving), BICYCLE (biking or cycling), WALKING (walking) ), RUNNING (running), STILL (stationary), etc., and the recognition results are used for positioning assistance to the GNSS module, and in the related art, the recognition results of the AR unit are only used by the GNSS module, and no public standard is provided. The interface, that is, other programs or modules will not obtain the recognition result of the AR unit.

GNSS模块在定位过程中功耗很大,影响移动终端的续航时间。一般的,移动终端中会装载很多基于位置服务(Location Based Service,LBS)应用,如电子地图类应用(如百度地图等)、外卖类应用(如美团外卖等)、社交类应用(如微信等)、信息服务类应用(如大众点评等)以及旅游类应用(如携程等)等等。当LBS应用需要使用定位服务时,会发送对GNSS模块的调用请求(也即LBS应用发起GNSS定位方式的定位请求),若同意该调用请求(即若同意该定位请求),那么GNSS模块就会启动并处于正常工作模式,搜索卫星信号以及获取其他用于定位的相关数据,进而计算出移动终端的位置信息(又称定位信息),提供给LBS应用,LBS应用再根据位置信息向用户提供更加丰富的服务,当LBS应用取消调用后,GNSS模块才会关闭。GNSS模块的工作状态是否合理,依赖于LBS应用是否合理使用GNSS模块,相关技术中移动终端并不会对处于LBS应用调用状态中的GNSS模块的工作状态进行管控,使得GNSS模块出现一些因使用不当而造成的功耗过多的情况。The GNSS module consumes a lot of power during the positioning process, which affects the battery life of the mobile terminal. Generally, many Location Based Service (LBS) applications are loaded in mobile terminals, such as electronic map applications (such as Baidu Maps, etc.), takeaway applications (such as Meituan Takeout, etc.), social applications (such as WeChat, etc.) etc.), information service applications (such as Dianping, etc.) and travel applications (such as Ctrip, etc.), etc. When the LBS application needs to use the positioning service, it will send a call request to the GNSS module (that is, the LBS application initiates the positioning request of the GNSS positioning method). Start up and be in normal working mode, search for satellite signals and obtain other relevant data for positioning, and then calculate the location information (also known as positioning information) of the mobile terminal and provide it to the LBS application, which then provides users with more information based on the location information. Rich services, the GNSS module will not be closed until the LBS application cancels the call. Whether the working state of the GNSS module is reasonable depends on whether the LBS application uses the GNSS module reasonably. In the related art, the mobile terminal does not control the working state of the GNSS module in the LBS application calling state, which makes the GNSS module appear some problems due to improper use. Caused by excessive power consumption.

本申请实施例中,为了合理控制GNSS模块的工作,可根据移动终端的运动状态来决定GNSS模块的工作模式。相关技术中,移动终端系统中应用层需要获取各种运动传感器(如陀螺仪以及加速度传感器等等)检测到的运动数据,并基于运动数据进行积分等各种复杂的运算操作,最终计算得到移动终端的运动状态,计算过程繁琐费时,且增加了移动终端系统开发人员的负担。而在本申请实施例中,直接通过应用层快速获取底层的AR单元的识别结果,省去了大量数据获取及计算的过程,且节省了运动数据存储或缓存空间,避免对操作系统中的运算资源及存储资源的占用,设计人员无需关心具体的识别过程,降低系统开发难度,可缩短开发周期。此外,由于SAP模块会随着GNSS模块的启动而启动,因此,本申请实施例的方案无需主动开启SAP模块,且不会引入额外的功耗。In the embodiment of the present application, in order to reasonably control the operation of the GNSS module, the working mode of the GNSS module may be determined according to the motion state of the mobile terminal. In the related art, the application layer in the mobile terminal system needs to obtain the motion data detected by various motion sensors (such as gyroscopes and acceleration sensors, etc.), and perform various complex operations such as integration based on the motion data, and finally calculate the motion data. The motion state of the terminal is cumbersome and time-consuming in the calculation process, and increases the burden on the mobile terminal system developer. In the embodiment of the present application, however, the recognition result of the underlying AR unit is quickly obtained directly through the application layer, which saves a large number of data acquisition and calculation processes, saves motion data storage or cache space, and avoids the need for operations in the operating system. The occupation of resources and storage resources, the designer does not need to care about the specific identification process, which reduces the difficulty of system development and shortens the development cycle. In addition, since the SAP module will be activated with the activation of the GNSS module, the solution of the embodiment of the present application does not need to actively activate the SAP module, and does not introduce additional power consumption.

可选的,当移动终端的屏幕处于亮屏状态时,可保持GNSS模块处于正常工作模式,即在移动终端中的GNSS模块处于正常工作模式时,若移动终端的屏幕处于熄灭状态,则通过应用层获取底层的AR单元的第一识别结果。这样设置的好处在于,亮屏状态下,说明用户正在使用移动终端,用户的行为模式随时可能变化,为了保证定位的实时性,保持GNSS模块处于正常工作模式。Optionally, when the screen of the mobile terminal is in the bright screen state, the GNSS module can be kept in the normal working mode, that is, when the GNSS module in the mobile terminal is in the normal working mode, if the screen of the mobile terminal is in the off state, the application The layer obtains the first recognition result of the AR unit of the bottom layer. The advantage of this setting is that when the screen is on, it means that the user is using the mobile terminal, and the user's behavior pattern may change at any time. To ensure the real-time positioning, keep the GNSS module in the normal working mode.

步骤102、根据所述第一识别结果确定所述移动终端是否处于第一预设行为模式,所述第一预设行为模式包括静止模式。Step 102: Determine whether the mobile terminal is in a first preset behavior mode according to the first identification result, where the first preset behavior mode includes a static mode.

示例性的,第一识别结果可以是如上述的“VEHICLE”等字符串形式,也可以是数字代码形式,如“0”表示静止,“1”表示开车,“2”表示骑行等,本申请实施例不做限定。Exemplarily, the first recognition result may be in the form of a string such as the above-mentioned "VEHICLE", or may be in the form of a digital code, such as "0" for standing still, "1" for driving, "2" for riding, etc. The application examples are not limited.

当根据第一识别结果确定移动终端处于静止模式时,说明移动终端所处的地理位置并未发生变化,或变化非常小。而GNSS模块在正常工作模式下,会不停地进行卫星信号搜索以及其他相关定位操作,产生较大的功耗,然而得到的定位结果并未发生变化。When it is determined according to the first identification result that the mobile terminal is in the stationary mode, it means that the geographic location where the mobile terminal is located has not changed, or has changed very little. In the normal working mode, the GNSS module will continuously perform satellite signal search and other related positioning operations, resulting in large power consumption, but the obtained positioning results have not changed.

步骤103、当确定所述移动终端处于所述第一预设行为模式时,控制所述GNSS模块进入低功耗工作模式。Step 103: When it is determined that the mobile terminal is in the first preset behavior mode, control the GNSS module to enter a low power consumption working mode.

本申请实施例中,在确定移动终端处于静止模式时,位置未发生变化,或变化非常小,若定位模块仍保持高效的正常运行状态,功耗较高,因此,可控制GNSS模块进入低功耗工作模式,省去不必要的定位操作,降低移动终端的系统功耗。In the embodiment of the present application, when it is determined that the mobile terminal is in the static mode, the position does not change, or the change is very small. If the positioning module still maintains an efficient and normal operation state, the power consumption is high. Therefore, the GNSS module can be controlled to enter a low-power state. The power consumption work mode can save unnecessary positioning operations and reduce the system power consumption of the mobile terminal.

本申请实施例中,控制所述GNSS模块进入低功耗工作模式的具体实现方式可以有很多种,本申请实施例不做限定。示例性的,可关闭GNSS模块,例如停止对GNSS模块进行供电,这样设置的好处在于,可将定位功能彻底关闭,避免GNSS模块所产生的功耗;还可控制GNSS模块进入休眠状态,可停止搜索卫星信号等相关操作,这样设置的好处在于,GNSS模块停止工作,可降低GNSS模块因定位所产生的功耗,并在需要进行定位时,能够快速恢复到正常的工作状态;还可控制GNSS模块降低执行定位相关操作的频率,例如可以降低搜索卫星信号的频率,也可以降低向应用层上报位置信息的频率等,这样设置的好处在于,定位功能仍然可用,当移动终端发生移动时,可以及时对移动终端进行定位,同时还能够减少功耗。此外,还可采用如降低定位精度等方式来实现低功耗工作模式,本申请不做限定。In the embodiment of the present application, there may be many specific implementation manners for controlling the GNSS module to enter the low power consumption working mode, which is not limited in the embodiment of the present application. Exemplarily, the GNSS module can be turned off, for example, power supply to the GNSS module can be stopped. The advantage of this setting is that the positioning function can be completely turned off to avoid the power consumption generated by the GNSS module; the GNSS module can also be controlled to enter a sleep state, which can be stopped. Searching for satellite signals and other related operations, the advantage of this setting is that when the GNSS module stops working, the power consumption of the GNSS module due to positioning can be reduced, and when positioning is required, it can quickly return to a normal working state; it can also control GNSS The module reduces the frequency of performing positioning-related operations. For example, it can reduce the frequency of searching for satellite signals, and it can also reduce the frequency of reporting location information to the application layer. The advantage of this setting is that the positioning function is still available. When the mobile terminal moves, it can The mobile terminal can be positioned in time, and the power consumption can also be reduced. In addition, a low power consumption working mode may also be implemented by means such as reducing the positioning accuracy, which is not limited in this application.

本申请实施例中提供的基于定位模块的控制方法,在移动终端中的GNSS模块处于正常工作模式时,通过应用层获取底层SAP模块中AR单元的第一识别结果,若根据第一识别结果确定移动终端处于包含静止模式的第一预设行为模式,则控制GNSS模块进入低功耗工作模式。本申请实施例通过采用上述技术方案,移动终端中系统应用层无需获取如运动传感器的运动数据等用于识别移动终端的运动状态,而是可直接快速地从内置的底层AR单元中获取行为模式的识别结果,当识别结果中包含移动终端处于静止模式时,控制GNSS模块进入低功耗工作模式,可降低移动终端的功耗,延长待机时间。In the control method based on the positioning module provided in the embodiment of the present application, when the GNSS module in the mobile terminal is in the normal working mode, the first identification result of the AR unit in the underlying SAP module is obtained through the application layer. When the mobile terminal is in the first preset behavior mode including the stationary mode, the GNSS module is controlled to enter the low power consumption working mode. By adopting the above technical solutions in the embodiments of the present application, the system application layer in the mobile terminal does not need to acquire motion data such as motion sensors for identifying the motion state of the mobile terminal, but can directly and quickly acquire behavior patterns from the built-in underlying AR unit When the identification result includes that the mobile terminal is in the stationary mode, the GNSS module is controlled to enter the low power consumption working mode, which can reduce the power consumption of the mobile terminal and prolong the standby time.

在一些实施例中,所述当确定所述移动终端处于所述第一预设行为模式时,控制所述GNSS模块进入低功耗工作模式,包括:当确定所述移动终端处于所述第一预设行为模式时,判断当前场景是否适合所述GNSS模块工作;若不适合,则控制所述GNSS模块进入低功耗工作模式。这样设置的好处在于,当移动终端处于静止模式时,也可能随时转变到运动模式,为了保证定位功能的时效性,可对移动终端所处的当前场景进行判定,若当前场景不适合GNSS模块工作,说明即使GNSS模块处于正常工作模式,也很可能无法定位,或者定位结果不可信,因此,可控制GNSS模块进入低功耗工作模式,如关闭GNSS模块。In some embodiments, when it is determined that the mobile terminal is in the first preset behavior mode, controlling the GNSS module to enter a low power consumption working mode includes: when it is determined that the mobile terminal is in the first preset behavior mode When the behavior mode is preset, it is judged whether the current scene is suitable for the GNSS module to work; if it is not suitable, the GNSS module is controlled to enter a low power consumption working mode. The advantage of this setting is that when the mobile terminal is in the stationary mode, it may change to the motion mode at any time. In order to ensure the timeliness of the positioning function, the current scene where the mobile terminal is located can be determined. If the current scene is not suitable for the GNSS module to work , indicating that even if the GNSS module is in the normal working mode, it is likely that the positioning cannot be performed, or the positioning result is unreliable. Therefore, the GNSS module can be controlled to enter the low-power working mode, such as turning off the GNSS module.

示例性的,不适合GNSS模块工作的场景可以包括如室内环境,或其他封闭或半封闭环境中,如隧道内及高架桥下等等。可选的,判断当前场景是否适合所述GNSS模块工作,可包括判断当前场景是否为室内场景,若为室内场景,则确定不适合GNSS模块工作。判断是否为室内场景的方式有很多,本申请实施例不做具体限定。例如,通过GNSS模块或其他定位方式(如基站定位方式或网络定位方式)定位当前位置,根据当前位置获取对应的天气信息,通过移动终端中的预设传感器采集天气相关数据,将所采集的天气相关数据与所述天气信息进行比对,根据比对结果判断所述移动终端是否处于室内环境。进一步的,所述将所采集的天气相关数据与所述天气信息进行比对,包括:获取所采集的天气相关数据中的预设项目的采样值;将所述采样值与所述天气信息中对应所述预设项目的标准值进行比对;其中,所述预设项目包括气温、湿度、光照强度、紫外线强度、风力以及空气质量中的任意一个或多个。以预设项目包括气温为例,天气信息中包含的气温值为室外温度的标准值,移动终端可通过内置的温度传感器采集环境温度作为气温的采样值。一般的,由于墙壁的隔离效果的存在,使得室内外温度存在差别,尤其在夏季和冬季,或者室外天气比较恶劣时(如阴雨天或风比较大等),室内外的温度差别较大,因为天气较热或较冷时,可利用空调或供暖设备等对温度进行调节,会使得室内温度不同于室外温度,若采样值与标准值相差较大,可说明移动终端处于室内环境。例如,定位的当前位置为天津市和平区,获取到天津市和平区的气温为4摄氏度,则标准值为4,而移动终端若在室内,室内环境比较温暖,采样值可能是20,可见采样值与标准值差别较大,可确定移动终端处于室内。Exemplarily, scenarios that are not suitable for the GNSS module to work may include, for example, an indoor environment, or other closed or semi-closed environments, such as inside a tunnel and under a viaduct, and so on. Optionally, judging whether the current scene is suitable for the GNSS module to work may include judging whether the current scene is an indoor scene, and if it is an indoor scene, determining that it is not suitable for the GNSS module to work. There are many ways to determine whether it is an indoor scene, which is not specifically limited in this embodiment of the present application. For example, locate the current position through a GNSS module or other positioning methods (such as base station positioning methods or network positioning methods), obtain the corresponding weather information according to the current position, collect weather-related data through preset sensors in the mobile terminal, and use the collected weather information. The relevant data is compared with the weather information, and it is determined whether the mobile terminal is in an indoor environment according to the comparison result. Further, the comparing the collected weather-related data with the weather information includes: acquiring sampling values of preset items in the collected weather-related data; comparing the sampling values with the weather information. The comparison is performed corresponding to the standard value of the preset item; wherein, the preset item includes any one or more of air temperature, humidity, light intensity, ultraviolet intensity, wind power, and air quality. Taking the preset item including air temperature as an example, the air temperature value included in the weather information is the standard value of the outdoor temperature, and the mobile terminal can collect the ambient temperature as the sampling value of the air temperature through the built-in temperature sensor. In general, due to the isolation effect of the wall, there is a difference in indoor and outdoor temperature, especially in summer and winter, or when the outdoor weather is relatively bad (such as rainy days or relatively strong wind, etc.), the indoor and outdoor temperature difference is large, because When the weather is hot or cold, air conditioners or heating equipment can be used to adjust the temperature, which will make the indoor temperature different from the outdoor temperature. For example, if the current location of the positioning is Heping District, Tianjin, and the temperature obtained in Heping District is 4 degrees Celsius, the standard value is 4. If the mobile terminal is indoors and the indoor environment is relatively warm, the sampling value may be 20. It can be seen that the sampling value is 20. If the value is quite different from the standard value, it can be determined that the mobile terminal is indoors.

示例性的,还可根据GNSS模块当前搜索到的卫星数量以及卫星信号强度判断当前场景是否适合GNSS模块工作。可选的,判断GNSS模块当前获取的卫星信息中卫星数量是否满足定位所需数量,卫星的信号强度是否满足定位所需强度,若其中任意一个不满足,则可认为当前场景不适合GNSS模块工作。具体的,当判断出GNSS模块当前获取的卫星信息中卫星个数小于预设最小卫星数,或卫星信号的CN值小于预设信号强度阈值时,可认为当前场景不适合GNSS模块工作。其中,CN值指载波与噪声的功率之比,用于衡量卫星信号的强度。可选的,最小卫星数为4,预设信号强度阈值为8。Exemplarily, it can also be determined whether the current scene is suitable for the GNSS module to work according to the number of satellites currently searched by the GNSS module and the signal strength of the satellites. Optionally, determine whether the number of satellites in the satellite information currently obtained by the GNSS module meets the required number for positioning, and whether the signal strength of the satellites meets the required strength for positioning. If any of them are not satisfied, it can be considered that the current scene is not suitable for the GNSS module to work. . Specifically, when it is determined that the number of satellites in the satellite information currently obtained by the GNSS module is less than the preset minimum number of satellites, or the CN value of the satellite signal is less than the preset signal strength threshold, it may be considered that the current scene is not suitable for the GNSS module to work. Among them, the CN value refers to the ratio of the power of the carrier to the noise, which is used to measure the strength of the satellite signal. Optionally, the minimum number of satellites is 4, and the preset signal strength threshold is 8.

示例性的,可定时获取所述GNSS模块采集的卫星信息,并在当前获取的卫星信息与上一次获取的卫星信息相同时,将预先设置的环境参数的取值加1,所述环境参数的初始取值为0;在预设时间内得到的环境参数的取值大于预设环境参数阈值时,确定当前场景不适合GNSS模块工作。进一步的,在当前获取的卫星信息与上一次获取的卫星信息不相同时,若当前获取的卫星信息中卫星信号的强度值小于预设信号强度阈值,且当前获取的卫星信息中的卫星个数小于预设数值,则将环境参数的取值加1;否则,确定当前场景适合GNSS模块工作。Exemplarily, the satellite information collected by the GNSS module can be acquired regularly, and when the currently acquired satellite information is the same as the last acquired satellite information, the value of the preset environmental parameter is increased by 1, and the value of the environmental parameter is equal to 1. The initial value is 0; when the value of the environment parameter obtained within the preset time is greater than the preset environment parameter threshold, it is determined that the current scene is not suitable for the GNSS module to work. Further, when the currently acquired satellite information is different from the last acquired satellite information, if the strength value of the satellite signal in the currently acquired satellite information is less than the preset signal strength threshold, and the number of satellites in the currently acquired satellite information is If it is less than the preset value, add 1 to the value of the environment parameter; otherwise, determine that the current scene is suitable for the GNSS module to work.

在一些实施例中,可通过如下方式确定当前场景是否适合GNSS模块工作。图2为本申请实施例提供的一种检测当前场景是否适合GNSS模块工作的流程示意图,如图2所示,检测当前场景是否适合GNSS模块工作具体包括如下步骤:In some embodiments, whether the current scenario is suitable for the GNSS module to work can be determined as follows. FIG. 2 is a schematic flowchart of detecting whether the current scene is suitable for the GNSS module work provided by the embodiment of the present application. As shown in FIG. 2 , detecting whether the current scene is suitable for the GNSS module work specifically includes the following steps:

步骤201、初始化环境参数变量STimer=0。Step 201, initialize the environment parameter variable STimer=0.

步骤202、获取GNSS模块采集的卫星信息。Step 202: Acquire satellite information collected by the GNSS module.

步骤203、判断当前获取的卫星信息与上一次获取的卫星信息是否相同,若是,则执行步骤205;否则,执行步骤204。Step 203: Determine whether the satellite information currently acquired is the same as the satellite information acquired last time, and if so, go to step 205; otherwise, go to step 204.

步骤204、判断是否当前获取的卫星信息中卫星信号的CN值小于预设信号强度阈值MIN_VALUE,且卫星个数小于预设最小卫星数MIN_NUM,若是,则执行步骤205;否则,执行步骤207。Step 204: Determine whether the CN value of the satellite signal in the currently acquired satellite information is less than the preset signal strength threshold MIN_VALUE, and the number of satellites is less than the preset minimum number of satellites MIN_NUM, if so, go to step 205; otherwise, go to step 207.

步骤205、STimer取值加1。Step 205, the value of STimer is incremented by 1.

步骤206、判断STimer是否大于预设环境参数阈值MAX_NUM,若是,则执行步骤208,结束流程;否则,返回执行步骤202。Step 206 , determine whether the STimer is greater than the preset environmental parameter threshold MAX_NUM, if so, go toStep 208 to end the process; otherwise, return toStep 202 .

其中,MAX_NUM的具体数值不做限定,例如可以是5。The specific value of MAX_NUM is not limited, for example, it may be 5.

步骤207、重新初始化STimer=0,并返回执行步骤202。Step 207 , re-initialize STimer=0, and return to step 202 .

示例性的,说明此时的GNSS模块能够实现定位,所以当前场景适合GNSS模块工作。Exemplarily, it is explained that the GNSS module at this time can realize positioning, so the current scene is suitable for the GNSS module to work.

步骤208、确定当前场景不适合GNSS模块工作。Step 208: Determine that the current scene is not suitable for the GNSS module to work.

通过图2所示的上述步骤,可准确地确定出当前场景是否适合GNSS模块工作。Through the above steps shown in Figure 2, it can be accurately determined whether the current scene is suitable for the GNSS module to work.

在一些实施例中,在控制所述GNSS模块进入低功耗工作模式之后,还包括:获取所述AR单元的第二识别结果;当根据所述第二识别结果确定所述移动终端处于第二预设行为模式时,控制所述GNSS模块进入正常工作模式,所述第二预设行为模式包括开车模式、骑行模式、跑步模式和步行模式中的至少一个。这样设置的好处在于,在控制GNSS模块进入低功耗工作模式后,继续获取AR单元的识别结果,进而实时掌握移动终端运动状态的变化,当从静止模式切换至其他运动模式时,说明移动终端发生了移动,位置改变,无需用户手动操作,自动恢复GNSS模块的正常工作模式,以便保证定位结果的精度及准确度。In some embodiments, after controlling the GNSS module to enter the low power consumption working mode, the method further includes: acquiring a second identification result of the AR unit; when it is determined according to the second identification result that the mobile terminal is in the second When the behavior mode is preset, the GNSS module is controlled to enter a normal working mode, and the second preset behavior mode includes at least one of a driving mode, a riding mode, a running mode and a walking mode. The advantage of this setting is that after the GNSS module is controlled to enter the low-power working mode, it continues to obtain the recognition results of the AR unit, and then grasps the changes in the motion state of the mobile terminal in real time. When switching from the static mode to other motion modes, the mobile terminal In case of movement or position change, the normal working mode of the GNSS module is automatically restored without manual operation by the user, so as to ensure the accuracy and accuracy of the positioning result.

进一步的,所述当确定所述移动终端处于所述第一预设行为模式时,判断当前场景是否适合所述GNSS模块工作,包括:当确定所述移动终端处于所述第一预设行为模式的第一时长达到第一预设时长阈值时,判断当前场景是否适合所述GNSS模块工作。所述当根据所述第二识别结果确定所述移动终端处于第二预设行为模式时,控制所述GNSS模块进入正常工作模式,包括:当根据所述第二识别结果确定所述移动终端处于第二预设行为模式的第二时长达到第二预设时长阈值时,控制所述GNSS模块进入正常工作模式。其中,所述第一预设时长阈值大于所述第二预设时长阈值。这样设置的好处在于,当用户处于匀速运动状态下,如开车状态下,由于加速度等因素在短时间内变化不明显,容易被误识别为进入静止模式,因此可将第一预设时长阈值设置的长一些,而当用户从静止状态变为运动状态时,加速度等因素在短时间内变化明显,可快速识别出进入运动模式,因此可将第二预设时长阈值设置的短一些,使得GNSS模块能够及时恢复到正常工作模式。示例性的,第一预设时长阈值为60秒,第二预设时长阈值为5秒。可选的,第一预设时长阈值以及第二预设时长阈值可根据当前时刻的上一个行为模式的类别来确定。例如,上一个行为模式为开车模式,第一预设时长阈值可以为60秒,上一个行为模式为跑步模式,第一预设时长阈值可以为20秒等等。Further, when it is determined that the mobile terminal is in the first preset behavior mode, judging whether the current scene is suitable for the GNSS module to work includes: when determining that the mobile terminal is in the first preset behavior mode When the first duration reaches the first preset duration threshold, it is determined whether the current scene is suitable for the GNSS module to work. The controlling the GNSS module to enter the normal working mode when it is determined according to the second identification result that the mobile terminal is in the second preset behavior mode includes: when it is determined according to the second identification result that the mobile terminal is in the normal working mode. When the second duration of the second preset behavior mode reaches the second preset duration threshold, the GNSS module is controlled to enter the normal working mode. Wherein, the first preset duration threshold is greater than the second preset duration threshold. The advantage of this setting is that when the user is moving at a constant speed, such as driving, the acceleration and other factors do not change significantly in a short period of time, and it is easy to be mistakenly identified as entering the stationary mode. Therefore, the first preset duration threshold can be set When the user changes from a static state to a moving state, the acceleration and other factors change significantly in a short period of time, and it is possible to quickly identify entering the sports mode. Therefore, the second preset duration threshold can be set to a shorter time, so that the GNSS The module can return to normal working mode in time. Exemplarily, the first preset duration threshold is 60 seconds, and the second preset duration threshold is 5 seconds. Optionally, the first preset duration threshold and the second preset duration threshold may be determined according to the category of the last behavior pattern at the current moment. For example, the last behavior mode is the driving mode, the first preset duration threshold may be 60 seconds, the last behavior mode is the running mode, and the first preset duration threshold may be 20 seconds, and so on.

在一些实施例中,在所述通过应用层获取底层的AR单元的第一识别结果的同时,还包括:当所述GNSS模块搜索到的卫星信号满足预设条件时,通过所述GNSS模块获取所述移动终端的运动速度。在所述通过应用层获取底层的AR单元的第一识别结果之后,还包括:根据所述运动速度对所述第一识别结果进行修正。这样设置的好处在于,可提高行为模式识别结果的准确度。如上文所述,当用户处于匀速运动状态下,如开车状态下,由于加速度等因素在短时间内变化不明显,容易被误识别为进入静止模式,因此,本申请实施例可在GNSS的卫星信息可信度较高时,可对AR单元的识别结果进行修正。其中,预设条件可以是CN值大于18的卫星个数大于4个。In some embodiments, while obtaining the first identification result of the AR unit of the bottom layer through the application layer, the method further includes: when the satellite signal searched by the GNSS module meets a preset condition, obtaining through the GNSS module The movement speed of the mobile terminal. After acquiring the first identification result of the bottom AR unit through the application layer, the method further includes: correcting the first identification result according to the movement speed. The advantage of this setting is that the accuracy of the behavior pattern recognition results can be improved. As mentioned above, when the user is moving at a constant speed, such as driving, the acceleration and other factors do not change significantly in a short time, and it is easy to be mistakenly identified as entering the stationary mode. Therefore, the embodiment of the present application can be used in GNSS satellites. When the information reliability is high, the recognition result of the AR unit can be corrected. The preset condition may be that the number of satellites with a CN value greater than 18 is greater than 4.

进一步的,所述根据所述运动速度对所述第一识别结果进行修正,包括:当所述运动速度小于预设速度阈值时,若所述第一识别结果不是所述第一预设行为模式,则将所述第一识别结果修正为所述第一预设行为模式;当所述运动速度大于或等于所述预设速度阈值时,若所述第一识别结果是所述第一预设行为模式,则将所述第一识别结果修正为其他预设行为模式。基于预设速度阈值判定是否对第一识别结果进行修正,可提高判定速度。示例性的,预设速度阈值可以是2km/h。进一步的,还可基于其他速度阈值对第一识别结果进行修正,例如,将上述预设速度阈值记为第一预设速度阈值,还存在第二预设速度阈值,如20km/h,可基于第二预设速度阈值判定用户是否处于导航状态,当运动速度大于第二预设速度阈值时,将第一识别结果修正为开车模式。为了提高修正结果的可靠性,还可增加关于时长的判定条件,例如,当运动速度大于第二预设速度阈值,且持续时间超过第三预设时长阈值(如30秒)时,将第一识别结果修正为开车模式。Further, the modifying the first recognition result according to the motion speed includes: when the motion speed is less than a preset speed threshold, if the first recognition result is not the first preset behavior pattern , the first recognition result is revised to the first preset behavior mode; when the movement speed is greater than or equal to the preset speed threshold, if the first recognition result is the first preset behavior mode, the first recognition result is corrected to other preset behavior modes. It is determined whether to modify the first recognition result based on the preset speed threshold, which can improve the determination speed. Exemplarily, the preset speed threshold may be 2km/h. Further, the first recognition result can also be corrected based on other speed thresholds, for example, the above preset speed threshold is recorded as the first preset speed threshold, and there is also a second preset speed threshold, such as 20km/h, which can be based on The second preset speed threshold determines whether the user is in a navigation state, and when the movement speed is greater than the second preset speed threshold, the first recognition result is corrected to the driving mode. In order to improve the reliability of the correction result, the determination condition about the duration can also be added. For example, when the movement speed is greater than the second preset speed threshold and the duration exceeds the third preset duration threshold (eg 30 seconds), the first The recognition result is corrected to the driving mode.

在一些实施例中,所述在所述通过应用层获取底层的AR单元的第一识别结果,包括:通过应用层的位置管理LocationManager类在底层AR单元的行为识别代理ActivityRecognitionProxy中添加的监听器获取AR单元的第一识别结果。这样设置的好处在于,能够快速准确地获取到AR单元的识别结果。以安卓Android系统为例,定位服务提供给应用程的应用程序编程接口(ApplicationProgramming Interface,API)一般位于android.location包中,LocationManager是其中包含的最重要的类之一,是整个定位服务的入口类。然而,在目前的GNSS模块与SAP模块共存的Android平台中,AR单元对应的进程与LocationManager等定位相关进程是相互独立的,与应用层的LocationManager对应的框架层的LocationManagerService与AR单元对应的进程也是独立的,LocationManagerService不持有AR相关Provider变量,没有任何的交互接口和途径,也就是说,LocationManager无法启动AR单元检测,AR单元对应的进程也无法将识别结果数据上报给LocationManager。本申请实施例中,创新性的通过拓展ActivityRecognitionProxy的功能,来允许LocationManager添加AR行为监听器,从而实现从AR单元中获取识别结果数据。进一步的,还可拓展LocationManager接口,向第三方提供注册AR行为监听器接口,使得AR单元的行为识别结果不局限于用于辅助定位,还可以存在其他用途,如本申请实施例中的用于对GNSS模块工作模式的控制。In some embodiments, the obtaining the first recognition result of the underlying AR unit through the application layer includes: obtaining the listener added in the behavior recognition proxy ActivityRecognitionProxy of the underlying AR unit through the location management LocationManager class of the application layer. The first recognition result of the AR unit. The advantage of this setting is that the recognition result of the AR unit can be obtained quickly and accurately. Taking the Android system as an example, the Application Programming Interface (API) provided by the location service to the application is generally located in the android.location package. kind. However, in the current Android platform where the GNSS module and the SAP module coexist, the process corresponding to the AR unit and the positioning-related processes such as LocationManager are independent of each other, and the process corresponding to the LocationManagerService of the framework layer corresponding to the LocationManager of the application layer and the process corresponding to the AR unit are also Independently, the LocationManagerService does not hold AR-related Provider variables, and does not have any interactive interfaces and methods. That is to say, the LocationManager cannot start AR unit detection, and the process corresponding to the AR unit cannot report the identification result data to the LocationManager. In the embodiment of the present application, the function of ActivityRecognitionProxy is innovatively extended to allow the LocationManager to add an AR behavior listener, thereby realizing the acquisition of recognition result data from the AR unit. Further, the LocationManager interface can also be expanded to provide third parties with an interface for registering AR behavior listeners, so that the behavior recognition result of the AR unit is not limited to being used for assisting positioning, and can also be used for other purposes, such as the one used in the embodiments of the present application. Control of the working mode of the GNSS module.

图3为本申请实施例提供的另一种基于定位模块的控制方法的流程示意图,该方法包括:3 is a schematic flowchart of another positioning module-based control method provided by an embodiment of the present application, and the method includes:

步骤301、接收到LBS应用对GNSS模块的调用请求,启动GNSS模块和SAP模块,控制GNSS模块进入正常工作模式。Step 301: Receive a call request for the GNSS module from the LBS application, start the GNSS module and the SAP module, and control the GNSS module to enter a normal working mode.

步骤302、通过应用层获取底层SAP模块中AR单元的第一识别结果。Step 302: Obtain the first identification result of the AR unit in the underlying SAP module through the application layer.

步骤303、判断GNSS模块搜索到的卫星信号是否满足预设条件,若是,则执行步骤304;否则,执行步骤305。Step 303 , determine whether the satellite signal searched by the GNSS module satisfies the preset condition, if yes, go to step 304 ; otherwise, go to step 305 .

步骤304、通过GNSS模块获取移动终端的运动速度,根据运动速度对第一识别结果进行修正。Step 304: Obtain the motion speed of the mobile terminal through the GNSS module, and correct the first recognition result according to the motion speed.

步骤305、根据第一识别结果确定移动终端是否处于第一预设行为模式,若是,则执行步骤306;否则,返回执行步骤302。Step 305: Determine whether the mobile terminal is in the first preset behavior mode according to the first identification result, if yes, go toStep 306; otherwise, go back toStep 302.

其中,第一预设行为模式包括静止模式。可选的,本步骤中,在确定移动终端处于第一预设行为模式时,还对处于第一预设行为模式的持续时长进行判定,若持续时长达到第一预设时长阈值,则执行步骤306。Wherein, the first preset behavior mode includes a static mode. Optionally, in this step, when it is determined that the mobile terminal is in the first preset behavior mode, the duration of being in the first preset behavior mode is also determined, and if the duration reaches the first preset duration threshold, the step is performed. 306.

步骤306、判断当前场景是否适合GNSS模块工作,若是,则返回执行步骤302;否则,执行步骤307。Step 306 , determine whether the current scene is suitable for the GNSS module to work, if so, return to step 302 ; otherwise, executestep 307 .

可选的,若当前场景适合GNSS模块工作,由于移动终端处于静止状态,那么也可控制GNSS模块进入低功耗工作模式,此时的低功耗工作模式不包括关闭GNSS模块。Optionally, if the current scene is suitable for the GNSS module to work, because the mobile terminal is in a stationary state, the GNSS module can also be controlled to enter a low-power working mode, and the low-power working mode at this time does not include turning off the GNSS module.

步骤307、关闭GNSS模块。Step 307, close the GNSS module.

步骤308、获取AR单元的第二识别结果。Step 308: Obtain the second identification result of the AR unit.

步骤309、根据第二识别结果确定移动终端是否处于第二预设行为模式,若是,则执行步骤310;否则,返回执行步骤308。Step 309: Determine whether the mobile terminal is in the second preset behavior mode according to the second identification result, if so, go toStep 310; otherwise, return toStep 308.

其中,第二预设行为模式包括开车模式、骑行模式、跑步模式和步行模式。可选的,本步骤中,在确定移动终端处于第二预设行为模式时,还对处于第二预设行为模式的持续时长进行判定,若持续时长达到第二预设时长阈值,则执行步骤310。Wherein, the second preset behavior mode includes a driving mode, a riding mode, a running mode and a walking mode. Optionally, in this step, when it is determined that the mobile terminal is in the second preset behavior mode, the duration of the mobile terminal in the second preset behavior mode is also determined, and if the duration reaches the second preset duration threshold, the step is performed. 310.

步骤310、控制GNSS模块进入正常工作模式。Step 310: Control the GNSS module to enter the normal working mode.

本申请实施例提供的基于定位模块的控制方法,移动终端中系统应用层可直接快速地从内置的底层AR单元中获取行为模式的识别结果,当识别结果中包含移动终端处于静止模式且当前场景不适合GNSS模块工作时,控制GNSS模块关闭,可降低移动终端的功耗,延长待机时间,在关闭GNSS模块后,继续获取AR单元的识别结果,当识别结果中包含移动终端切换至运动模式时,重新开启GNSS模块,使GNSS模块及时恢复正常的工作模式,为LBS应用提供准确的定位信息。In the control method based on the positioning module provided by the embodiment of the present application, the system application layer in the mobile terminal can directly and quickly obtain the recognition result of the behavior pattern from the built-in bottom layer AR unit. When the recognition result includes that the mobile terminal is in the static mode and the current scene When it is not suitable for the GNSS module to work, control the GNSS module to turn off, which can reduce the power consumption of the mobile terminal and prolong the standby time. After the GNSS module is turned off, continue to obtain the recognition result of the AR unit. When the recognition result includes that the mobile terminal switches to the sports mode , and restart the GNSS module, so that the GNSS module can return to the normal working mode in time, and provide accurate positioning information for LBS applications.

为了更好的理解本申请的技术方案,下面以Android系统为例进行进一步的说明。In order to better understand the technical solution of the present application, the Android system is taken as an example for further description below.

图4为本申请实施例提供的一种获取AR识别结果的流程示意图,如图4所示,参见路径①,通过框架层(Framework)的LocationManagerService经由在AR单元的ActivityRecognitionProxy中添加的监听器向OppoARService请求识别结果;参见路径②,OppoARService接收到请求后,依次通过框架层中的ActivityRecognitionProviderClient、ActivityRecognitionProvider、ActivityRecognitionHardware以及库(Libraries)中的Java本地接口(Java NativeInterface)调用库文件activity_recognition.so,得到识别结果后,利用路径③,将识别结果返回给ActivityRecognitionProxy中添加的监听器,LocationManagerService获得识别结果后,上报给应用层的LocationManager类,从而完成AR识别结果的获取。其中,ActivityRecognitionHardware是IActivityRecognitionHardware的实现类,用于与AR HAL(硬件抽象)层进行交互和数据通信,IActivityRecognitionHardware是AR硬件提供的程序接口,该接口可用于实现基于硬件的行为识别;ActivityRecognitionProvider是IActivityRecognitionHardware功能的公开类,方便其他进程调用AR功能;ActivityRecognitionProviderClient是客户端类,用于将ActivityRecognitionProvider与IActivityRecognitionHardware相连。Fig. 4 is a schematic flowchart of obtaining an AR recognition result provided by an embodiment of the present application. As shown in Fig. 4, referring to path ①, the LocationManagerService of the framework layer (Framework) passes the listener added in the ActivityRecognitionProxy of the AR unit to the OppoARService Request the recognition result; see path ②, after OppoARService receives the request, it calls the library file activity_recognition.so through ActivityRecognitionProviderClient, ActivityRecognitionProvider, ActivityRecognitionHardware in the framework layer and the Java NativeInterface in the library (Libraries) in turn, and gets the recognition result. , Using path ③, the recognition result is returned to the listener added in ActivityRecognitionProxy. After the LocationManagerService obtains the recognition result, it is reported to the LocationManager class of the application layer, thereby completing the acquisition of the AR recognition result. Among them, ActivityRecognitionHardware is the implementation class of IActivityRecognitionHardware, which is used for interaction and data communication with the AR HAL (hardware abstraction) layer. IActivityRecognitionHardware is the program interface provided by AR hardware, which can be used to implement hardware-based behavior recognition; ActivityRecognitionProvider is the function of IActivityRecognitionHardware Public class to facilitate other processes to call AR functions; ActivityRecognitionProviderClient is a client class used to connect ActivityRecognitionProvider with IActivityRecognitionHardware.

图5为本申请实施例提供的一种具体实现的架构示意图,如图5所示,存在LBS应用调用GNSS模块时,GNSS模块处于正常工作模式时,控制类NavigationStatusController启动导航状态监听,这里的导航状态可理解为本申请中第二预设行为模式中的开车模式,GNSS模块中的GNSS Engine获取卫星信号,将卫星信号提供给GnssLocationProvider和核心业务类NavigationStatusMonitor,AR单元将AR识别结果上报给NavigationStatusMonitor,GnssLocationProvider根据卫星信号计算出速度,经由NavigationStatusController发送给NavigationStatusMonitor,NavigationStatusMonitor基于AR识别结果和速度确定移动终端是否处于第一预设行为模式,再根据卫星信号确定是否适合GNSS模块工作,在确定需要控制GNSS模块关闭时,将控制命令经由NavigationStatusController发送至GnssLocationProvider,然后控制GNSSEngine停止搜星。AR单元继续将AR识别结果上报给NavigationStatusMonitor,当NavigationStatusMonitor识别出移动终端进入第二预设行为模式时,再发送控制命令,开启GNSS模块,GNSS Engine重新开始搜星。当所有LBS应用均取消对GNSS模块的调用时,GNSS模块停止工作,SAP模块随之停止工作,自动停止NavigationStatusMonitor。FIG. 5 is a schematic diagram of the architecture of a specific implementation provided by an embodiment of the present application. As shown in FIG. 5 , when there is an LBS application calling the GNSS module, and the GNSS module is in the normal working mode, the control class NavigationStatusController starts the navigation status monitoring. The state can be understood as the driving mode in the second preset behavior mode in this application. The GNSS Engine in the GNSS module obtains satellite signals, provides the satellite signals to GnssLocationProvider and the core business class NavigationStatusMonitor, and the AR unit reports the AR recognition results to NavigationStatusMonitor, The GnssLocationProvider calculates the speed according to the satellite signal, and sends it to the NavigationStatusMonitor via the NavigationStatusController. The NavigationStatusMonitor determines whether the mobile terminal is in the first preset behavior mode based on the AR recognition result and speed, and then determines whether it is suitable for the GNSS module to work according to the satellite signal. After determining that the GNSS module needs to be controlled When closed, send the control command to GnssLocationProvider via NavigationStatusController, and then control GNSSEngine to stop star search. The AR unit continues to report the AR recognition results to the NavigationStatusMonitor. When the NavigationStatusMonitor recognizes that the mobile terminal has entered the second preset behavior mode, it sends a control command to turn on the GNSS module, and the GNSS Engine restarts star search. When all LBS applications cancel the call to the GNSS module, the GNSS module stops working, the SAP module stops working accordingly, and the NavigationStatusMonitor automatically stops.

图6为本申请实施例提供的一种基于定位模块的控制装置的结构框图,该装置可由软件和/或硬件实现,一般集成在终端中,可通过执行基于定位模块的控制方法来对移动终端中的GNSS模块进行控制。如图6所示,该装置包括:6 is a structural block diagram of a positioning module-based control device provided by an embodiment of the present application. The device can be implemented by software and/or hardware, and is generally integrated in a terminal. The mobile terminal can be controlled by executing a positioning module-based control method. GNSS module in the control. As shown in Figure 6, the device includes:

第一识别结果获取模块601,用于在移动终端中的全球卫星导航系统GNSS模块处于正常工作模式时,通过应用层获取底层的行为识别AR单元的第一识别结果,其中,所述AR单元设置于传感器辅助定位SAP模块中;The first recognitionresult obtaining module 601 is used to obtain the first recognition result of the bottom behavior recognition AR unit through the application layer when the global navigation satellite system GNSS module in the mobile terminal is in the normal working mode, wherein the AR unit is set In the sensor-assisted positioning SAP module;

行为模式判断模块602,用于根据所述第一识别结果确定所述移动终端是否处于第一预设行为模式,所述第一预设行为模式包括静止模式;A behaviormode judgment module 602, configured to determine whether the mobile terminal is in a first preset behavior mode according to the first identification result, and the first preset behavior mode includes a static mode;

定位控制模块603,用于当确定所述移动终端处于所述第一预设行为模式时,控制所述GNSS模块进入低功耗工作模式。Thepositioning control module 603 is configured to control the GNSS module to enter a low power consumption working mode when it is determined that the mobile terminal is in the first preset behavior mode.

本申请实施例中提供的基于定位模块的控制装置,在移动终端中的GNSS模块处于正常工作模式时,通过应用层获取底层SAP模块中AR单元的第一识别结果,若根据第一识别结果确定移动终端处于包含静止模式的第一预设行为模式,则控制GNSS模块进入低功耗工作模式。本申请实施例通过采用上述技术方案,移动终端中系统应用层无需获取如运动传感器的运动数据等用于识别移动终端的运动状态,而是可直接快速地从内置的底层AR单元中获取行为模式的识别结果,当识别结果中包含移动终端处于静止模式时,控制GNSS模块进入低功耗工作模式,可降低移动终端的功耗,延长待机时间。In the control device based on the positioning module provided in the embodiment of the present application, when the GNSS module in the mobile terminal is in the normal working mode, the first identification result of the AR unit in the underlying SAP module is obtained through the application layer. When the mobile terminal is in the first preset behavior mode including the stationary mode, the GNSS module is controlled to enter the low power consumption working mode. By adopting the above technical solutions in the embodiments of the present application, the system application layer in the mobile terminal does not need to acquire motion data such as motion sensors for identifying the motion state of the mobile terminal, but can directly and quickly acquire behavior patterns from the built-in underlying AR unit When the identification result includes that the mobile terminal is in the stationary mode, the GNSS module is controlled to enter the low power consumption working mode, which can reduce the power consumption of the mobile terminal and prolong the standby time.

可选的,所述当确定所述移动终端处于所述第一预设行为模式时,控制所述GNSS模块进入低功耗工作模式,包括:Optionally, when it is determined that the mobile terminal is in the first preset behavior mode, controlling the GNSS module to enter a low power consumption working mode includes:

当确定所述移动终端处于所述第一预设行为模式时,判断当前场景是否适合所述GNSS模块工作;When it is determined that the mobile terminal is in the first preset behavior mode, determining whether the current scene is suitable for the GNSS module to work;

若不适合,则控制所述GNSS模块进入低功耗工作模式。If it is not suitable, the GNSS module is controlled to enter a low power consumption working mode.

可选的,该装置还包括:Optionally, the device further includes:

第二识别结果获取模块,用于在控制所述GNSS模块进入低功耗工作模式之后,获取所述AR单元的第二识别结果;A second identification result obtaining module, configured to obtain the second identification result of the AR unit after controlling the GNSS module to enter a low power consumption working mode;

所述定位控制模块还用于:当根据所述第二识别结果确定所述移动终端处于第二预设行为模式时,控制所述GNSS模块进入正常工作模式,所述第二预设行为模式包括开车模式、骑行模式、跑步模式和步行模式中的至少一个。The positioning control module is further configured to: control the GNSS module to enter a normal working mode when it is determined according to the second identification result that the mobile terminal is in a second preset behavior mode, where the second preset behavior mode includes: At least one of driving mode, cycling mode, running mode, and walking mode.

可选的,所述当确定所述移动终端处于所述第一预设行为模式时,判断当前场景是否适合所述GNSS模块工作,包括:Optionally, when it is determined that the mobile terminal is in the first preset behavior mode, judging whether the current scene is suitable for the GNSS module to work, including:

当确定所述移动终端处于所述第一预设行为模式的第一时长达到第一预设时长阈值时,判断当前场景是否适合所述GNSS模块工作;When it is determined that the first duration that the mobile terminal is in the first preset behavior mode reaches a first preset duration threshold, determining whether the current scene is suitable for the GNSS module to work;

所述当根据所述第二识别结果确定所述移动终端处于第二预设行为模式时,控制所述GNSS模块进入正常工作模式,包括:The controlling the GNSS module to enter the normal working mode when it is determined according to the second identification result that the mobile terminal is in the second preset behavior mode, includes:

当根据所述第二识别结果确定所述移动终端处于第二预设行为模式的第二时长达到第二预设时长阈值时,控制所述GNSS模块进入正常工作模式;When it is determined according to the second identification result that the second duration of the mobile terminal in the second preset behavior mode reaches a second preset duration threshold, controlling the GNSS module to enter a normal working mode;

其中,所述第一预设时长阈值大于所述第二预设时长阈值。Wherein, the first preset duration threshold is greater than the second preset duration threshold.

可选的,该装置还包括:Optionally, the device further includes:

速度获取模块,用于在所述通过应用层获取底层的AR单元的第一识别结果的同时,当所述GNSS模块搜索到的卫星信号满足预设条件时,通过所述GNSS模块获取所述移动终端的运动速度;a speed acquisition module, configured to acquire the movement through the GNSS module when the satellite signal searched by the GNSS module meets a preset condition while acquiring the first identification result of the AR unit of the bottom layer through the application layer The movement speed of the terminal;

结果修正模块,用于在所述通过应用层获取底层的AR单元的第一识别结果之后,根据所述运动速度对所述第一识别结果进行修正。A result correction module, configured to correct the first recognition result according to the motion speed after the first recognition result of the underlying AR unit is obtained through the application layer.

可选的,所述根据所述运动速度对所述第一识别结果进行修正,包括:Optionally, the modifying the first recognition result according to the motion speed includes:

当所述运动速度小于预设速度阈值时,若所述第一识别结果不是所述第一预设行为模式,则将所述第一识别结果修正为所述第一预设行为模式;When the movement speed is less than a preset speed threshold, if the first identification result is not the first preset behavior pattern, modifying the first identification result to the first preset behavior pattern;

当所述运动速度大于或等于所述预设速度阈值时,若所述第一识别结果是所述第一预设行为模式,则将所述第一识别结果修正为其他预设行为模式。When the movement speed is greater than or equal to the preset speed threshold, if the first identification result is the first preset behavior mode, the first identification result is modified to another preset behavior mode.

可选的,所述在所述通过应用层获取底层的AR单元的第一识别结果,包括:Optionally, the obtaining the first identification result of the bottom AR unit through the application layer includes:

通过应用层的位置管理LocationManager类在底层AR单元的行为识别代理ActivityRecognitionProxy中添加的监听器获取AR单元的第一识别结果。The first recognition result of the AR unit is obtained through the listener added in the behavior recognition proxy ActivityRecognitionProxy of the underlying AR unit through the LocationManager class of the application layer.

本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行基于定位模块的控制方法,该方法包括:Embodiments of the present application further provide a storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute a positioning module-based control method when executed by a computer processor, and the method includes:

在移动终端中的全球卫星导航系统GNSS模块处于正常工作模式时,通过应用层获取底层的行为识别AR单元的第一识别结果,其中,所述AR单元设置于传感器辅助定位SAP模块中;When the GNSS module of the global satellite navigation system in the mobile terminal is in the normal working mode, the first recognition result of the underlying behavior recognition AR unit is obtained through the application layer, wherein the AR unit is arranged in the sensor-assisted positioning SAP module;

根据所述第一识别结果确定所述移动终端是否处于第一预设行为模式,所述第一预设行为模式包括静止模式;determining whether the mobile terminal is in a first preset behavior mode according to the first identification result, where the first preset behavior mode includes a static mode;

当确定所述移动终端处于所述第一预设行为模式时,控制所述GNSS模块进入低功耗工作模式。When it is determined that the mobile terminal is in the first preset behavior mode, the GNSS module is controlled to enter a low power consumption working mode.

存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDRRAM、SRAM、EDORAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROMs, floppy disks, or tape devices; computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, Rambus RAM, etc.; non-volatile Volatile memory, such as flash memory, magnetic media (eg hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a second, different computer system connected to the first computer system through a network such as the Internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (eg, in different computer systems connected by a network). The storage medium may store program instructions (eg, embodied as a computer program) executable by one or more processors.

当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的定位操作,还可以执行本申请任意实施例所提供的基于定位模块的控制方法中的相关操作。Of course, a storage medium containing computer-executable instructions provided by the embodiments of the present application, the computer-executable instructions of which are not limited to the above-mentioned positioning operations, and can also perform the positioning module-based control provided by any embodiment of the present application. related operations in the method.

本申请实施例提供了一种移动终端,该移动终端中可集成本申请实施例提供的定位装置。图7为本申请实施例提供的一种移动终端的结构示意图。移动终端700可以包括:存储器701,处理器702及存储在存储器701上并可在处理器702运行的计算机程序,所述处理器702执行所述计算机程序时实现如本申请实施例所述的基于定位模块的控制方法。The embodiments of the present application provide a mobile terminal, in which the positioning device provided by the embodiments of the present application can be integrated. FIG. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. The mobile terminal 700 may include: a memory 701, a processor 702, and a computer program stored in the memory 701 and executed on the processor 702, when the processor 702 executes the computer program, the computer program based on the embodiment of the present application is implemented. The control method of the positioning module.

本申请实施例提供的移动终端,系统应用层无需获取如运动传感器的运动数据等用于识别移动终端的运动状态,而是可直接快速地从内置的底层AR单元中获取行为模式的识别结果,当识别结果中包含移动终端处于静止模式时,控制GNSS模块进入低功耗工作模式,可降低移动终端的功耗,延长待机时间。In the mobile terminal provided by the embodiments of the present application, the system application layer does not need to acquire motion data such as motion sensors to identify the motion state of the mobile terminal, but can directly and quickly acquire the behavior pattern recognition result from the built-in underlying AR unit, When the identification result includes that the mobile terminal is in the stationary mode, the GNSS module is controlled to enter the low power consumption working mode, which can reduce the power consumption of the mobile terminal and prolong the standby time.

图8为本申请实施例提供的另一种移动终端的结构示意图,该移动终端可以包括:壳体(图中未示出)、存储器801、中央处理器(central processing unit,CPU)802(又称处理器,以下简称CPU)、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU802和所述存储器801设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器801,用于存储可执行程序代码;所述CPU802通过读取所述存储器801中存储的可执行程序代码来运行与所述可执行程序代码对应的计算机程序,以实现以下步骤:FIG. 8 is a schematic structural diagram of another mobile terminal provided by an embodiment of the present application. The mobile terminal may include: a casing (not shown in the figure), a memory 801, a central processing unit (CPU) 802 (also It is called a processor, hereinafter referred to as a CPU), a circuit board (not shown in the figure) and a power supply circuit (not shown in the figure). The circuit board is arranged inside the space enclosed by the casing; the CPU 802 and the memory 801 are arranged on the circuit board; the power circuit is used to supply power to each circuit or device of the mobile terminal The memory 801 is used to store executable program codes; the CPU 802 runs the computer program corresponding to the executable program codes by reading the executable program codes stored in the memory 801 to realize the following steps:

在移动终端中的全球卫星导航系统GNSS模块处于正常工作模式时,通过应用层获取底层的行为识别AR单元的第一识别结果,其中,所述AR单元设置于传感器辅助定位SAP模块中;When the GNSS module of the global satellite navigation system in the mobile terminal is in the normal working mode, the first recognition result of the underlying behavior recognition AR unit is obtained through the application layer, wherein the AR unit is arranged in the sensor-assisted positioning SAP module;

根据所述第一识别结果确定所述移动终端是否处于第一预设行为模式,所述第一预设行为模式包括静止模式;determining whether the mobile terminal is in a first preset behavior mode according to the first identification result, where the first preset behavior mode includes a static mode;

当确定所述移动终端处于所述第一预设行为模式时,控制所述GNSS模块进入低功耗工作模式。When it is determined that the mobile terminal is in the first preset behavior mode, the GNSS module is controlled to enter a low power consumption working mode.

所述移动终端还包括:外设接口803、RF(Radio Frequency,射频)电路805、音频电路806、扬声器811、电源管理芯片808、输入/输出(I/O)子系统809、其他输入/控制设备810、触摸屏812、其他输入/控制设备810以及外部端口804,这些部件通过一个或多个通信总线或信号线807来通信。The mobile terminal further includes: a peripheral interface 803, an RF (Radio Frequency, radio frequency) circuit 805, an audio circuit 806, a speaker 811, a power management chip 808, an input/output (I/O) subsystem 809, and other input/control Devices 810 , touch screen 812 , other input/control devices 810 , and external ports 804 communicate through one or more communication buses or signal lines 807 .

应该理解的是,图示移动终端800仅仅是移动终端的一个范例,并且移动终端800可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated mobile terminal 800 is merely an example of a mobile terminal, and that the mobile terminal 800 may have more or fewer components than those shown in the figure, two or more components may be combined, Or can have different component configurations. 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.

下面就本实施例提供的用于对GNSS模块进行控制的移动终端进行详细的描述,该移动终端以手机为例。The following describes the mobile terminal provided in this embodiment for controlling the GNSS module in detail, and the mobile terminal is a mobile phone as an example.

存储器801,所述存储器801可以被CPU802、外设接口803等访问,所述存储器801可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 801, which can be accessed by CPU 802, peripheral interface 803, etc., said memory 801 can include high-speed random access memory, and can also include non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.

外设接口803,所述外设接口803可以将设备的输入和输出外设连接到CPU802和存储器801。A peripheral interface 803 that can connect the input and output peripherals of the device to the CPU 802 and the memory 801 .

I/O子系统809,所述I/O子系统809可以将设备上的输入输出外设,例如触摸屏812和其他输入/控制设备810,连接到外设接口803。I/O子系统809可以包括显示控制器8091和用于控制其他输入/控制设备810的一个或多个输入控制器8092。其中,一个或多个输入控制器8092从其他输入/控制设备810接收电信号或者向其他输入/控制设备810发送电信号,其他输入/控制设备810可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器8092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。I/O subsystem 809 , which can connect input and output peripherals on the device, such as touch screen 812 and other input/control devices 810 , to peripherals interface 803 . The I/O subsystem 809 may include a display controller 8091 and one or more input controllers 8092 for controlling other input/control devices 810 . Wherein, one or more input controllers 8092 receive electrical signals from or send electrical signals to other input/control devices 810, which may include physical buttons (push buttons, rocker buttons, etc. ), dial pad, slide switch, joystick, click wheel. Notably, the input controller 8092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.

触摸屏812,所述触摸屏812是用户移动终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。The touch screen 812, which is an input interface and an output interface between the user's mobile terminal and the user, displays visual output to the user, and the visual output may include graphics, text, icons, videos, and the like.

I/O子系统809中的显示控制器8091从触摸屏812接收电信号或者向触摸屏812发送电信号。触摸屏812检测触摸屏上的接触,显示控制器8091将检测到的接触转换为与显示在触摸屏812上的用户界面对象的交互,即实现人机交互,显示在触摸屏812上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。Display controller 8091 in I/O subsystem 809 receives electrical signals from touch screen 812 or sends electrical signals to touch screen 812 . The touch screen 812 detects the contact on the touch screen, and the display controller 8091 converts the detected contact into interaction with the user interface objects displayed on the touch screen 812, that is, to realize human-computer interaction, and the user interface objects displayed on the touch screen 812 can be run. Icons for games, icons for connecting to the corresponding network, etc. It is worth noting that the device may also include a light mouse, which is a touch-sensitive surface that does not display visual output, or an extension of the touch-sensitive surface formed by a touch screen.

RF电路805,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路805接收并发送RF信号,RF信号也称为电磁信号,RF电路805将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路805可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 805 is mainly used to establish the communication between the mobile phone and the wireless network (ie, the network side), and realize the data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving text messages, e-mails, etc. Specifically, the RF circuit 805 receives and transmits RF signals, also known as electromagnetic signals, the RF circuit 805 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with communication networks and other devices through the electromagnetic signals to communicate. RF circuitry 805 may include known circuitry for performing these functions including, but not limited to, antenna systems, RF transceivers, one or more amplifiers, tuners, one or more oscillators, digital signal processors, CODECs ( COder-DECoder, codec) chip set, subscriber identity module (Subscriber Identity Module, SIM) and so on.

音频电路806,主要用于从外设接口803接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器811。The audio circuit 806 is mainly used to receive audio data from the peripheral interface 803 , convert the audio data into electrical signals, and send the electrical signals to the speaker 811 .

扬声器811,用于将手机通过RF电路805从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 811 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 805 to sound and play the sound to the user.

电源管理芯片808,用于为CPU802、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 808 is used for power supply and power management for the hardware connected to the CPU 802, the I/O subsystem and the peripheral interface.

上述实施例中提供的定位装置、存储介质及移动终端可执行本申请任意实施例所提供的基于定位模块的控制方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的基于定位模块的控制方法。The positioning device, storage medium and mobile terminal provided in the above embodiments can execute the control method based on the positioning module provided by any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in the foregoing embodiments, reference may be made to the control method based on a positioning module provided by any embodiment of the present application.

注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present application and applied technical principles. 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. The scope is determined by the scope of the appended claims.

Claims (9)

the system comprises a first identification result acquisition module, a second identification result acquisition module and a third identification result acquisition module, wherein the first identification result acquisition module is used for acquiring a first identification result of an AR unit through a monitor added in an ActivityRecognitionProxy of a behavior identification agent of an AR unit by using a position management Location manager class of an application layer when a Global Navigation Satellite System (GNSS) module in a mobile terminal is in a normal working mode, the AR unit is arranged in a Sensor Assisted Positioning (SAP) module, a process corresponding to the AR unit is independent of a process related to the LocationManager, a LocatManagerService of a framework layer corresponding to the LocationManager is independent of a process corresponding to the AR unit, and the LocationManagerService does not hold a parameter related to the AR unit;
CN201711327142.9A2017-12-132017-12-13Control method and device based on positioning module, storage medium and mobile terminalActiveCN108008423B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201711327142.9ACN108008423B (en)2017-12-132017-12-13Control method and device based on positioning module, storage medium and mobile terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201711327142.9ACN108008423B (en)2017-12-132017-12-13Control method and device based on positioning module, storage medium and mobile terminal

Publications (2)

Publication NumberPublication Date
CN108008423A CN108008423A (en)2018-05-08
CN108008423Btrue CN108008423B (en)2020-01-14

Family

ID=62058439

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201711327142.9AActiveCN108008423B (en)2017-12-132017-12-13Control method and device based on positioning module, storage medium and mobile terminal

Country Status (1)

CountryLink
CN (1)CN108008423B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111366954B (en)*2018-12-262023-11-24成都鼎桥通信技术有限公司GPS star searching control method and device in Android system
CN110456395B (en)*2019-08-132022-03-04维沃移动通信有限公司 A positioning method and terminal device
CN110493729B (en)*2019-08-192020-11-06芋头科技(杭州)有限公司Interaction method and device of augmented reality device and storage medium
CN110907963B (en)*2019-12-062022-09-02Oppo广东移动通信有限公司Satellite positioning engine control method and device and electronic equipment
CN113534209A (en)*2020-04-212021-10-22宇龙计算机通信科技(深圳)有限公司Position reporting method and device based on tracker, storage medium and terminal
CN112203217B (en)*2020-09-242023-09-19展讯通信(上海)有限公司Power consumption control method and device and computer readable storage medium
CN115246417B (en)*2021-07-292023-08-25上海仙途智能科技有限公司Job execution method, apparatus, device, and computer-readable storage medium
CN116700463B (en)*2022-09-222024-04-02荣耀终端有限公司 An activity recognition method and related equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7397357B2 (en)*2004-11-222008-07-08Microsoft CorporationSensing and analysis of ambient contextual signals for discriminating between indoor and outdoor locations
CN104066163A (en)*2014-04-242014-09-24深圳市研强通信技术有限公司Power consumption saving device, mobile terminal and power consumption saving method
CN105682198A (en)*2016-01-132016-06-15广东欧珀移动通信有限公司Positioning control method and device of mobile terminal and mobile terminal
CN105739686A (en)*2016-01-192016-07-06广东欧珀移动通信有限公司Control method and device of mobile terminal
CN105807302A (en)*2016-03-162016-07-27广东欧珀移动通信有限公司Intelligent terminal and GPS module control method and device thereof
CN107172590A (en)*2017-06-302017-09-15北京奇虎科技有限公司Moving state information processing method, device and mobile terminal based on mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7397357B2 (en)*2004-11-222008-07-08Microsoft CorporationSensing and analysis of ambient contextual signals for discriminating between indoor and outdoor locations
CN104066163A (en)*2014-04-242014-09-24深圳市研强通信技术有限公司Power consumption saving device, mobile terminal and power consumption saving method
CN105682198A (en)*2016-01-132016-06-15广东欧珀移动通信有限公司Positioning control method and device of mobile terminal and mobile terminal
CN105739686A (en)*2016-01-192016-07-06广东欧珀移动通信有限公司Control method and device of mobile terminal
CN105807302A (en)*2016-03-162016-07-27广东欧珀移动通信有限公司Intelligent terminal and GPS module control method and device thereof
CN107172590A (en)*2017-06-302017-09-15北京奇虎科技有限公司Moving state information processing method, device and mobile terminal based on mobile terminal

Also Published As

Publication numberPublication date
CN108008423A (en)2018-05-08

Similar Documents

PublicationPublication DateTitle
CN108008423B (en)Control method and device based on positioning module, storage medium and mobile terminal
CN108093368B (en) Control method, device, storage medium and mobile terminal based on positioning module
CN108169775B (en)Control method and device based on positioning module, storage medium and mobile terminal
US10789044B2 (en)End-to-end user experiences with a digital assistant
CN108055642B (en)Control method and device of positioning module, storage medium and mobile terminal
US9749794B2 (en)Scalability and reliability of hardware geo-fencing with failover support
JP5490883B2 (en) Control of power consumption of mobile devices based on gesture recognition
CN108064024B (en)Control method and device based on positioning module, storage medium and mobile terminal
US9869772B2 (en)Systems and methods for handheld device based battery efficient context monitoring, detection of a vehicular motion and identification of a specific vehicle
CN108076507B (en) Positioning mode control method, device, storage medium and mobile terminal
CN108076428B (en)Control method and device based on positioning module, storage medium and mobile terminal
CN104822133A (en)Method and device for controlling positioning mode of intelligent terminal
KR102230566B1 (en) Conditional location monitoring
CN109164477B (en)Application positioning method and mobile terminal
CN105264456A (en)sports fence
CN110308471A (en)Equipment positioning method and device, storage medium and electronic equipment
CN108076429A (en)Positioning method, positioning device, storage medium and mobile terminal
CN108064023B (en)Control method and device based on positioning module, storage medium and mobile terminal
CN108093131A (en)Arrival reminding method and device, storage medium and mobile terminal
CN108168570A (en)Control method and device of positioning module, storage medium and mobile terminal
WO2017177439A1 (en)Functional state control method and related device
WO2023072114A1 (en)Data processing method and apparatus
CN108093367B (en)Control method and device based on positioning module, storage medium and mobile terminal
CN108112061B (en) Positioning control method, device, storage medium and terminal device
CN108111580B (en)Region determination method, device, storage medium, mobile terminal and server

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information

Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after:OPPO Guangdong Mobile Communications Co., Ltd.

Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before:Guangdong Opel Mobile Communications Co., Ltd.

CB02Change of applicant information
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp