CN108566470A - Information processing method, device, mobile terminal and computer readable storage medium - Google Patents
Information processing method, device, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN108566470A CN108566470A CN201810270560.7A CN201810270560A CN108566470A CN 108566470 A CN108566470 A CN 108566470A CN 201810270560 A CN201810270560 A CN 201810270560A CN 108566470 A CN108566470 A CN 108566470A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- power consumption
- adsp
- screen
- power
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/24—Arrangements for testing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4418—Suspend and resume; Hibernate and awake
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Environmental & Geological Engineering (AREA)
- Mobile Radio Communication Systems (AREA)
- Power Sources (AREA)
- Telephone Function (AREA)
Abstract
本申请提供一种信息处理方法、装置、移动终端和计算机可读存储介质。上述方法包括:若移动终端由灭屏状态切换到亮屏状态且所述移动终端的灭屏时长超过第一时长,获取所述移动终端在灭屏期间的标准电量和耗电电量;根据所述标准电量和耗电电量检测所述移动终端是否耗电异常;若检测到耗电异常,获取所述移动终端ADSP子系统的休眠比和对应的阈值,根据所述休眠比和所述阈值检测所述移动终端ADSP子系统是否休眠异常。上述方法在检测到移动终端在灭屏期间耗电异常时,可根据移动终端ADSP子系统的休眠比及对应的阈值检测移动终端ADSP子系统是否休眠异常,检测移动终端ADSP子系统休眠异常的方式简单、快捷。
The present application provides an information processing method, device, mobile terminal and computer-readable storage medium. The above method includes: if the mobile terminal switches from the off-screen state to the on-screen state and the off-screen duration of the mobile terminal exceeds the first duration, acquiring the standard power and power consumption of the mobile terminal during the off-screen period; according to the Standard power and power consumption detect whether the power consumption of the mobile terminal is abnormal; if abnormal power consumption is detected, the dormancy ratio and the corresponding threshold of the ADSP subsystem of the mobile terminal are obtained, and the power consumption of the mobile terminal is detected according to the dormancy ratio and the threshold. Indicates whether the ADSP subsystem of the mobile terminal is sleeping abnormally. When the above method detects that the power consumption of the mobile terminal is abnormal during the off-screen period, it can detect whether the ADSP subsystem of the mobile terminal is abnormally sleeping according to the sleep ratio of the ADSP subsystem of the mobile terminal and the corresponding threshold value, and the method of detecting the abnormal sleep of the ADSP subsystem of the mobile terminal Simple and fast.
Description
技术领域technical field
本申请涉及计算机技术领域,特别是涉及一种信息处理方法、装置、移动终端和计算机可读存储介质。The present application relates to the field of computer technology, and in particular to an information processing method, device, mobile terminal and computer-readable storage medium.
背景技术Background technique
随着智能移动终端的迅速发展,智能移动终端在用户生活中越来越常用。通过智能移动终端用户可方便的与他人进行交流和沟通。在智能移动终端的使用过程中,智能移动终端中软件系统、应用程序和硬件均会消耗智能移动终端的电量,造成智能移动终端耗电。With the rapid development of smart mobile terminals, smart mobile terminals are more and more commonly used in users' lives. Users can communicate and communicate with others conveniently through smart mobile terminals. During the use of the smart mobile terminal, the software system, application program and hardware in the smart mobile terminal will consume the power of the smart mobile terminal, resulting in power consumption of the smart mobile terminal.
发明内容Contents of the invention
本申请实施例提供一种信息处理方法、装置、移动终端和计算机可读存储介质,可以检测移动终端在灭屏期间的耗电异常情况。Embodiments of the present application provide an information processing method, device, mobile terminal, and computer-readable storage medium, which can detect abnormal power consumption of the mobile terminal when the screen is off.
一种信息处理方法,包括:An information processing method, comprising:
若移动终端由灭屏状态切换到亮屏状态且所述移动终端的灭屏时长超过第一时长,获取所述移动终端在灭屏期间的标准电量和耗电电量;If the mobile terminal switches from the off-screen state to the on-screen state and the off-screen duration of the mobile terminal exceeds the first duration, obtain the standard power and power consumption of the mobile terminal during the off-screen period;
根据所述标准电量和耗电电量检测所述移动终端是否耗电异常;Detecting whether the mobile terminal consumes abnormal power according to the standard power and power consumption;
若检测到耗电异常,获取所述移动终端ADSP子系统的休眠比和对应的阈值,根据所述休眠比和所述阈值检测所述移动终端ADSP子系统是否休眠异常。If abnormal power consumption is detected, acquire the dormancy ratio and corresponding threshold of the mobile terminal ADSP subsystem, and detect whether the mobile terminal ADSP subsystem is abnormally dormant according to the dormancy ratio and the threshold.
一种信息处理装置,包括:An information processing device, comprising:
获取模块,用于若移动终端由灭屏状态切换到亮屏状态且所述移动终端的灭屏时长超过第一时长,获取所述移动终端在灭屏期间的标准电量和耗电电量;The obtaining module is used to obtain the standard power and power consumption of the mobile terminal during the screen-off period if the mobile terminal is switched from the screen-off state to the screen-on state and the screen-off duration of the mobile terminal exceeds the first duration;
第一检测模块,用于根据所述标准电量和耗电电量检测所述移动终端是否耗电异常;A first detection module, configured to detect whether the mobile terminal consumes abnormal power according to the standard power and power consumption;
第二检测模块,用于若检测到耗电异常,获取所述移动终端ADSP子系统的休眠比和对应的阈值,根据所述休眠比和所述阈值检测所述移动终端ADSP子系统是否休眠异常。The second detection module is used to obtain the dormancy ratio and corresponding threshold of the ADSP subsystem of the mobile terminal if abnormal power consumption is detected, and detect whether the ADSP subsystem of the mobile terminal is abnormally dormant according to the dormancy ratio and the threshold .
一种移动终端,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上所述的方法的步骤。A mobile terminal includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is made to execute the steps of the method described above.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的方法的步骤。A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are realized.
本申请中,在检测到移动终端在灭屏期间耗电异常时,可根据移动终端ADSP子系统的休眠比及对应的阈值检测移动终端ADSP子系统是否休眠异常,检测移动终端ADSP子系统休眠异常的方式简单、快捷。In this application, when it is detected that the power consumption of the mobile terminal is abnormal during the off-screen period, it is possible to detect whether the ADSP subsystem of the mobile terminal is abnormally asleep according to the sleep ratio of the ADSP subsystem of the mobile terminal and the corresponding threshold value, and detect the abnormal sleep of the ADSP subsystem of the mobile terminal. The method is simple and fast.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为一个实施例中移动终端的内部结构示意图;Fig. 1 is a schematic diagram of the internal structure of a mobile terminal in an embodiment;
图2为一个实施例中信息处理方法的流程图;Fig. 2 is a flowchart of an information processing method in an embodiment;
图3为另一个实施例中信息处理方法的流程图;Fig. 3 is a flowchart of an information processing method in another embodiment;
图4为另一个实施例中信息处理方法的流程图;Fig. 4 is a flowchart of an information processing method in another embodiment;
图5为一个实施例中一种信息处理装置的结构框图;Fig. 5 is a structural block diagram of an information processing device in an embodiment;
图6为另一个实施例中信息处理装置的结构框图;Fig. 6 is a structural block diagram of an information processing device in another embodiment;
图7为另一个实施例中信息处理装置的结构框图;Fig. 7 is a structural block diagram of an information processing device in another embodiment;
图8为与本申请实施例提供的移动终端相关的手机的部分结构的框图。FIG. 8 is a block diagram of a partial structure of a mobile phone related to the mobile terminal provided by the embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
在一个实施例中,一种信息处理方法的应用场景包括:当检测到移动终端灭屏时,记录灭屏时刻;当移动终端由灭屏状态切换到亮屏状态时,记录亮屏时刻,则上述灭屏时刻与亮屏时刻之间的时间差为移动终端的灭屏时长。在移动终端灭屏期间,移动终端内应用程序运行等会造成移动终端耗电。移动终端在灭屏时刻的第一电池电量与亮屏时刻的第二电池电量之间的差值为移动终端在灭屏期间消耗的总电量,即移动终端在灭屏期间的耗电电量。在移动终端灭屏期间,移动终端的每个状态都会消耗对应的电量,上述对应的电量的累计值即为标准电量,上述标准电量表示移动终端在灭屏期间消耗的基本电量,可包括系统耗电、SIM(Subscriber Identification Module,用户身份识别卡)卡耗电、Wi-Fi(Wireless-Fidelity,无线保真)耗电等。在获取到耗电电量和标准电量后,可将移动终端灭屏期间的耗电电量和上述标准电量作比较,当耗电电量不大于上述标准电量时,表示移动终端在灭屏期间耗电正常;当耗电电量大于上述标准电量时,表示移动终端在灭屏期间耗电较多,则移动终端在灭屏期间耗电异常。当移动终端在灭屏期间耗电异常时,可进一步获取移动终端子系统的休眠比、各应用程序的耗电量、各应用程序的持锁时长等参数,根据上述参数判定移动终端耗电异常的原因。上述耗电异常的原因包括移动终端子系统异常、应用程序在后台下载、应用程序后台播放音乐等。在获取到移动终端耗电异常的原因后,移动终端可将耗电异常的原因展示在移动终端界面用于提醒用户,移动终端也可将耗电异常的原因上传到服务器,服务器根据获取的耗电异常的原因进行统计和分析,根据统计分析结果得到对移动终端进行耗电优化策略,并将上述耗电优化策略返回给移动终端。In one embodiment, an application scenario of an information processing method includes: when it is detected that the screen of the mobile terminal is off, record the moment when the screen is off; when the mobile terminal is switched from the off-screen state to the on-screen state, record the moment on the screen, The time difference between the screen-off time and the screen-on time is the screen-off time of the mobile terminal. During the period when the screen of the mobile terminal is off, the running of application programs in the mobile terminal will cause power consumption of the mobile terminal. The difference between the first battery power of the mobile terminal at the screen-off time and the second battery power at the screen-on time is the total power consumed by the mobile terminal during the screen-off period, that is, the power consumption of the mobile terminal during the screen-off period. During the off-screen period of the mobile terminal, each state of the mobile terminal will consume the corresponding power. The accumulated value of the above-mentioned corresponding power is the standard power. Electricity, SIM (Subscriber Identification Module, user identification card) card power consumption, Wi-Fi (Wireless-Fidelity, wireless fidelity) power consumption, etc. After obtaining the power consumption and the standard power, you can compare the power consumption of the mobile terminal during the off-screen period with the above-mentioned standard power. When the power consumption is not greater than the above-mentioned standard power, it means that the power consumption of the mobile terminal is normal during the off-screen period. ; When the power consumption is greater than the above-mentioned standard power, it means that the mobile terminal consumes more power during the off-screen period, and the power consumption of the mobile terminal is abnormal during the off-screen period. When the power consumption of the mobile terminal is abnormal during the off-screen period, parameters such as the sleep ratio of the mobile terminal subsystem, the power consumption of each application program, and the lock duration of each application program can be further obtained, and the abnormal power consumption of the mobile terminal can be determined based on the above parameters s reason. The reasons for the above-mentioned abnormal power consumption include the abnormality of the mobile terminal subsystem, the download of the application program in the background, and the music playing in the background of the application program. After obtaining the reason for the abnormal power consumption of the mobile terminal, the mobile terminal can display the reason for the abnormal power consumption on the mobile terminal interface to remind the user, and the mobile terminal can also upload the reason for the abnormal power consumption to the server, and the server can The cause of the power abnormality is counted and analyzed, and the power consumption optimization strategy for the mobile terminal is obtained according to the statistical analysis results, and the above power consumption optimization strategy is returned to the mobile terminal.
图1为一个实施例中移动终端的内部结构示意图。如图1所示,该移动终端包括通过系统总线连接的处理器、存储器和网络接口。其中,该处理器用于提供计算和控制能力,支撑整个移动移动终端的运行。存储器用于存储数据、程序等,存储器上存储至少一个计算机程序,该计算机程序可被处理器执行,以实现本申请实施例中提供的适用于移动移动终端的信息处理方法。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种信息处理方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。网络接口可以是以太网卡或无线网卡等,用于与外部的移动移动终端进行通信。该移动移动终端可以是手机、平板电脑或者个人数字助理或穿戴式设备等。Fig. 1 is a schematic diagram of the internal structure of a mobile terminal in an embodiment. As shown in FIG. 1, the mobile terminal includes a processor, a memory and a network interface connected through a system bus. Wherein, the processor is used to provide calculation and control capabilities to support the operation of the entire mobile terminal. The memory is used to store data, programs, etc., and at least one computer program is stored on the memory, and the computer program can be executed by the processor to implement the information processing method applicable to the mobile terminal provided in the embodiment of the present application. The memory may include non-volatile storage media and internal memory. Nonvolatile storage media store operating systems and computer programs. The computer program can be executed by a processor to implement an information processing method provided in the following embodiments. The internal memory provides a high-speed running environment for the operating system computer program in the non-volatile storage medium. The network interface may be an Ethernet card or a wireless network card, etc., and is used for communicating with an external mobile terminal. The mobile terminal may be a mobile phone, a tablet computer, a personal digital assistant, or a wearable device.
图2为一个实施例中信息处理方法的流程图。如图2所示,一种信息处理方法,包括:Fig. 2 is a flowchart of an information processing method in an embodiment. As shown in Figure 2, an information processing method includes:
步骤202,若移动终端由灭屏状态切换到亮屏状态且移动终端的灭屏时长超过第一时长,获取移动终端在灭屏期间的标准电量和耗电电量。Step 202, if the mobile terminal switches from the off-screen state to the on-screen state and the off-screen duration of the mobile terminal exceeds a first duration, obtain the standard power and power consumption of the mobile terminal during the off-screen period.
当移动终端进入灭屏状态时,移动终端可记录进入灭屏状态的灭屏时刻;当移动终端屏幕被点亮时,即移动终端亮屏时,移动终端可记录亮屏时刻。上述亮屏是指移动终端屏幕被点亮,上述灭屏是指移动终端屏幕关闭背光。上述亮屏时刻与灭屏时刻之间的时间差即为灭屏时长。其中,移动终端在灭屏或亮屏时,广播发送者可发送系统广播。通常情况下,移动终端灭屏对应的广播为Intent.ACTION_SCREEN_OFF,当广播接收者接收到灭屏广播时,表示移动终端灭屏,则移动终端接收到灭屏广播的时刻即为移动终端灭屏的时刻。移动终端亮屏对应的广播为Intent.ACTION_SCREEN_ON,当广播接收者接收到亮屏广播时,表示移动终端亮屏,则移动终端接收到亮屏广播的时刻即为移动终端亮屏的时刻。移动终端中广播发送方通常为调用Context.sendBroadcast()的程序,广播接收者通常为继承BroadcastReceiver的程序。When the mobile terminal enters the screen-off state, the mobile terminal can record the screen-off time when it enters the screen-off state; The screen on means that the screen of the mobile terminal is turned on, and the screen off means that the backlight of the screen of the mobile terminal is turned off. The time difference between the above screen-on time and the screen-off time is the screen-off time. Wherein, when the screen of the mobile terminal is off or on, the broadcast sender can send the system broadcast. Normally, the broadcast corresponding to the off-screen of the mobile terminal is Intent.ACTION_SCREEN_OFF. When the broadcast receiver receives the off-screen broadcast, it means the off-screen of the mobile terminal, and the moment when the mobile terminal receives the off-screen broadcast is the moment when the mobile terminal goes off time. The broadcast corresponding to the screen brightening of the mobile terminal is Intent.ACTION_SCREEN_ON. When the broadcast receiver receives the screen brightening broadcast, it means that the mobile terminal is bright screen. The broadcast sender in the mobile terminal is usually a program that calls Context.sendBroadcast(), and the broadcast receiver is usually a program that inherits BroadcastReceiver.
在获取到移动终端的灭屏时长后,可检测灭屏时长是否超过第一时长。上述第一时长可为用户设定的时长或移动终端设定的时长,例如5小时、6小时等。若移动终端的灭屏时长超过上述第一时长,则移动终端灭屏时长较长。由于移动终端中电池的衰减呈曲线型且耗电量是根据电池电量的百分比计算出的,当移动终端灭屏时长较短时,通过电池衰减曲线计算出的耗电量误差较大,因此在移动终端的灭屏时长超过第一时长时再获取移动终端在灭屏期间的基准电量和耗电电量,可以提高获取到的电量的精确度。After the off-screen duration of the mobile terminal is acquired, it may be detected whether the off-screen duration exceeds the first duration. The above-mentioned first duration may be a duration set by the user or a duration set by the mobile terminal, such as 5 hours, 6 hours, and the like. If the off-screen duration of the mobile terminal exceeds the first duration, the off-screen duration of the mobile terminal is longer. Since the attenuation of the battery in the mobile terminal is curve-shaped and the power consumption is calculated based on the percentage of battery power, when the screen-off time of the mobile terminal is short, the power consumption calculated by the battery attenuation curve has a large error, so in Acquiring the reference power and power consumption of the mobile terminal during the screen-off period when the screen-off duration of the mobile terminal exceeds the first duration can improve the accuracy of the obtained power.
移动终端中可存储标准清单,上述标准清单包括移动终端在灭屏期间各个状态对应的耗电电量,可包括:单卡SIM卡对应的电量、双卡SIM卡对应的电量、打开Wi-Fi未连接对应的电量、打开蓝牙未连接对应的电量、连接Wi-Fi对应的电量、连接蓝牙对应的电量等。在移动终端灭屏期间,移动终端可根据标准清单分别识别移动终端各个状态对应的电量,再将移动终端各个状态对应的电量累加得到上述移动终端在灭屏期间的标准电量。例如,上述标准电量TargetCurrent的计算过程可为TargetCurrent=mBaseCurrent+mSingleSimCardDelta+mDoubleSimCardDelta+mWifiDelta+mNetworkDelta+mBluetoothDelta+offset。上述mBaseCurrent为移动终端系统耗电电量,可为3.9mA/h;当移动终端插入单卡SIM卡时,mSingleSimCardDelta为3mA/h,否则为0;当移动终端插入双卡SIM卡时,mDoubleSimCardDelta为6mA/h,否则为0;当移动终端开启Wi-Fi时,mWifiDelta为6mA/h,否则为0;当移动终端开启蓝牙时候,mBluetoothDelta为2mA/h,否则为0;offset表示其他类型的耗电,可为10mA/h。A standard list can be stored in the mobile terminal. The above standard list includes the power consumption corresponding to each state of the mobile terminal during the off-screen period, which can include: the power corresponding to the single-card SIM card, the power corresponding to the dual-card SIM card, The power corresponding to the connection, the power corresponding to the Bluetooth not connected, the power corresponding to the Wi-Fi connection, the power corresponding to the Bluetooth connection, etc. During the off-screen period of the mobile terminal, the mobile terminal can identify the power corresponding to each state of the mobile terminal according to the standard list, and then accumulate the power corresponding to each state of the mobile terminal to obtain the standard power of the mobile terminal during the off-screen period. For example, the calculation process of the above standard electric quantity TargetCurrent may be TargetCurrent=mBaseCurrent+mSingleSimCardDelta+mDoubleSimCardDelta+mWifiDelta+mNetworkDelta+mBluetoothDelta+offset. The above mBaseCurrent is the power consumption of the mobile terminal system, which can be 3.9mA/h; when the mobile terminal is inserted with a single SIM card, mSingleSimCardDelta is 3mA/h, otherwise it is 0; when the mobile terminal is inserted with a dual-card SIM card, mDoubleSimCardDelta is 6mA /h, otherwise it is 0; when the mobile terminal turns on Wi-Fi, mWifiDelta is 6mA/h, otherwise it is 0; when the mobile terminal turns on Bluetooth, mBluetoothDelta is 2mA/h, otherwise it is 0; offset indicates other types of power consumption , can be 10mA/h.
步骤204,根据标准电量和耗电电量检测移动终端是否耗电异常。In step 204, it is detected whether the power consumption of the mobile terminal is abnormal according to the standard power and the power consumption.
移动终端可将标准电量与耗电电量进行比较,检测移动终端是否耗电异常。其中,移动终端可直接将标准电量与耗电电量进行比较,若检测到耗电电量大于标准电量,表示移动终端在灭屏期间消耗的电量较多,即移动终端在灭屏期间耗电异常。移动终端也可根据标准电量和灭屏时长获取标准电功率,根据耗电电量和灭屏时长获取耗电电功率,再将上述标准电功率和耗电电功率进行比较,若耗电电功率大于标准电功率,则移动终端在灭屏期间耗电异常。The mobile terminal can compare the standard power with the power consumption to detect whether the power consumption of the mobile terminal is abnormal. Wherein, the mobile terminal can directly compare the standard power with the power consumption. If it is detected that the power consumption is greater than the standard power, it means that the mobile terminal consumes more power during the screen-off period, that is, the mobile terminal consumes abnormal power during the screen-off period. The mobile terminal can also obtain the standard power according to the standard power and the duration of the screen off, obtain the power consumption according to the power consumption and the duration of the screen off, and then compare the above standard power with the power consumption, if the power consumption is greater than the standard power, then the mobile terminal The terminal consumes abnormal power when the screen is off.
步骤206,若检测到耗电异常,获取移动终端ADSP子系统的休眠比和对应的阈值,根据休眠比和阈值检测移动终端ADSP子系统是否休眠异常。Step 206, if abnormal power consumption is detected, obtain the sleep ratio and corresponding threshold of the ADSP subsystem of the mobile terminal, and detect whether the ADSP subsystem of the mobile terminal is abnormally sleep according to the sleep ratio and the threshold.
当移动终端检测到耗电异常后,可获取移动终端中ADSP(Advanced DigitalSignal Processor,高级数字信号处理器)子系统的休眠比。移动终端ADSP子系统休眠是指在移动终端灭屏期间,ADSP子系统进入低功耗模式以节省电量的状态。当移动终端进入灭屏状态后,移动终端ADSP子系统便可进入休眠状态。其中,在移动终端由灭屏到亮屏的过程中,移动终端ADSP子系统的休眠时长与移动终端灭屏时长的比值即为移动终端ADSP子系统的休眠比。移动终端ADSP子系统进入休眠模式包括:当移动终端没有休眠锁存在时,则可进入休眠模式。上述移动终端没有休眠锁存在是指没有休眠锁被移动终端中内核空间或用户空间所持有。上述休眠锁即为在移动终端灭屏期间使持锁程序仍能正常运行的一种机制。移动终端中程序在获取休眠所时,还可设置对应的释放休眠锁的时间,则移动终端则可根据上述释放休眠锁的时间来释放程序持有的休眠锁。当移动终端ADSP子系统进入休眠状态后,可使用唤醒源将移动终端ADSP子系统由休眠状态唤醒,当移动终端ADSP子系统由休眠状态被唤醒时,则移动终端ADSP子系统的休眠状态结束。其中,在移动终端ADSP子系统进入休眠状态时,移动终端中RPM(Resource Power Manager,资源管理模块)模块可通过时间戳记录上述移动终端ADSP子系统进入休眠状态的时刻;当移动终端ADSP子系统被唤醒时,移动终端中RPM模块可通过时间戳记录上述移动终端ADSP子系统被唤醒的时刻。移动终端ADSP子系统连续记录的休眠时刻和唤醒时刻之间的时间差即为移动终端ADSP子系统的休眠时长。若移动终端ADSP子系统在移动终端灭屏期间多次进入休眠状态,可将多次休眠时长累加得到移动终端ADSP子系统的总休眠时长,则移动终端ADSP子系统的总休眠时长与移动终端灭屏时长的比值即为移动终端ADSP子系统的休眠比。When the mobile terminal detects abnormal power consumption, the sleep ratio of an ADSP (Advanced Digital Signal Processor, advanced digital signal processor) subsystem in the mobile terminal may be obtained. The dormancy of the ADSP subsystem of the mobile terminal refers to a state in which the ADSP subsystem enters a low power consumption mode to save power when the screen of the mobile terminal is off. When the mobile terminal enters the off-screen state, the ADSP subsystem of the mobile terminal can enter the dormant state. Wherein, in the process of the mobile terminal from off-screen to on-screen, the ratio of the dormant duration of the ADSP subsystem of the mobile terminal to the off-screen duration of the mobile terminal is the dormancy ratio of the ADSP subsystem of the mobile terminal. Entering the sleep mode of the mobile terminal ADSP subsystem includes: when the mobile terminal does not have a sleep lock, it can enter the sleep mode. The absence of a dormancy lock in the above mobile terminal means that no dormancy lock is held by the kernel space or user space in the mobile terminal. The aforementioned dormant lock is a mechanism to enable the lock-holding program to still run normally when the screen of the mobile terminal is off. When the program in the mobile terminal obtains the dormancy location, it can also set a corresponding time for releasing the dormancy lock, and then the mobile terminal can release the dormancy lock held by the program according to the time for releasing the dormancy lock. When the ADSP subsystem of the mobile terminal enters the dormant state, the wake-up source can be used to wake up the ADSP subsystem of the mobile terminal from the dormant state. When the ADSP subsystem of the mobile terminal is awakened from the dormant state, the dormant state of the ADSP subsystem of the mobile terminal ends. Wherein, when the ADSP subsystem of the mobile terminal enters the dormant state, the RPM (Resource Power Manager, resource management module) module in the mobile terminal can record the moment when the ADSP subsystem of the mobile terminal enters the dormant state by a timestamp; when the ADSP subsystem of the mobile terminal enters the dormant state; When awakened, the RPM module in the mobile terminal can record the moment when the ADSP subsystem of the mobile terminal is awakened through a time stamp. The time difference between the sleep time and the wake-up time continuously recorded by the ADSP subsystem of the mobile terminal is the sleep time of the ADSP subsystem of the mobile terminal. If the ADSP subsystem of the mobile terminal enters the sleep state for many times during the screen-off period of the mobile terminal, the total sleep duration of the ADSP subsystem of the mobile terminal can be obtained by adding up the multiple sleep durations. The ratio of the screen duration is the dormancy ratio of the ADSP subsystem of the mobile terminal.
移动终端子系统均有对应的阈值,在获取到移动终端子系统的休眠比后,可获取移动终端子系统的休眠比及对应的阈值,根据移动终端子系统的休眠比和对应的阈值来判定移动终端子系统是否休眠异常。可选地,移动终端子系统对应的阈值可包括正常值和异常值,上述正常值大于异常值。当移动终端子系统的休眠比大于正常值时,移动终端子系统休眠正常;当移动终端子系统的休眠比小于异常值时,移动终端子系统休眠异常;当移动终端子系统的休眠比处于异常值和正常值之间时,可根据移动终端子系统在唤醒状态下的平均功耗进一步判定移动终端是否休眠异常。The mobile terminal subsystems have corresponding thresholds. After obtaining the dormancy ratio of the mobile terminal subsystem, the dormancy ratio of the mobile terminal subsystem and the corresponding threshold can be obtained, and the judgment is made according to the dormancy ratio of the mobile terminal subsystem and the corresponding threshold. Whether the mobile terminal subsystem is sleeping abnormally. Optionally, the threshold corresponding to the mobile terminal subsystem may include a normal value and an abnormal value, and the normal value is greater than the abnormal value. When the sleep ratio of the mobile terminal subsystem is greater than the normal value, the mobile terminal subsystem sleeps normally; when the sleep ratio of the mobile terminal subsystem is less than the abnormal value, the mobile terminal subsystem sleeps abnormally; when the sleep ratio of the mobile terminal subsystem is abnormal When the value is between the normal value, it can be further determined whether the mobile terminal is sleeping abnormally according to the average power consumption of the mobile terminal subsystem in the wake-up state.
通常情况下,当移动终端在待机状态下耗电较多时,对耗电异常的检测主要集中于移动终端AP(Application Processer Sub System,应用处理器子系统)子系统,而对移动终端中其他子系统如ADSP子系统分析较少。本申请实施例中方法,在检测到移动终端在灭屏期间耗电异常时,可根据移动终端ADSP子系统的休眠比及对应的阈值检测移动终端ADSP子系统是否休眠异常,检测移动终端ADSP子系统休眠异常的方式简单、快捷。Usually, when the mobile terminal consumes a lot of power in the standby state, the detection of abnormal power consumption mainly focuses on the mobile terminal AP (Application Processer Sub System, application processor subsystem) subsystem, while other subsystems in the mobile terminal Systems such as ADSP subsystem analysis less. In the method of the embodiment of the present application, when the abnormal power consumption of the mobile terminal is detected during the off-screen period, it can detect whether the ADSP subsystem of the mobile terminal is abnormally sleeping according to the dormancy ratio of the ADSP subsystem of the mobile terminal and the corresponding threshold value, and detect whether the ADSP subsystem of the mobile terminal is abnormal. The method of system hibernation abnormality is simple and fast.
在一个实施例中,获取移动终端在灭屏期间的标准电量包括:获取移动终端在灭屏期间的状态信息,查找状态信息对应的单位时间内增量,根据单位时间内增量和灭屏时长确定标准电量。In one embodiment, obtaining the standard power of the mobile terminal during the off-screen period includes: obtaining the state information of the mobile terminal during the off-screen period, searching for the increment per unit time corresponding to the state information, and according to the increment per unit time and the off-screen duration Determine the standard power.
移动终端可通过标准清单来获取移动终端在灭屏期间的标准电量。上述标准清单包括在移动终端待机状态下各个状态信息对应的单位时间内增量电量。移动终端获取在灭屏期间的状态信息后,可将移动终端在灭屏期间的状态信息与标准清单中状态信息进行匹配,获取匹配成功的状态信息对应的单位时间内增量电量,获取上述匹配成功的状态信息对应的单位时间内增量电量的累计值,则上述累计值为标准电功率,则上述标准电功率与灭屏时长的积为标准电量。其中,上述标准清单中可包括:移动终端打开Wi-Fi未连接时在单位时间内增量电量,移动终端连接Wi-Fi且连接蓝牙时在单位时间内的增量电量。上述标准清单可存储于移动终端中,也可存储于服务器中。The mobile terminal can acquire the standard power of the mobile terminal during the screen-off period through the standard list. The above standard list includes the incremental power per unit time corresponding to each state information in the standby state of the mobile terminal. After the mobile terminal obtains the state information during the off-screen period, it can match the state information of the mobile terminal during the off-screen period with the state information in the standard list, obtain the incremental power per unit time corresponding to the successfully matched state information, and obtain the above matching The cumulative value of the incremental power per unit time corresponding to the successful status information, the above-mentioned cumulative value is the standard electric power, and the product of the above-mentioned standard electric power and the screen-off time is the standard electric power. Among them, the above list of standards may include: the incremental power per unit time when the mobile terminal is on Wi-Fi and not connected, and the incremental power per unit time when the mobile terminal is connected to Wi-Fi and Bluetooth. The above standard list can be stored in the mobile terminal or in the server.
由于不同系统或不同版本之间移动终端消耗的电量各不相同,因此不同移动终端对应的标准清单可相同或不相同。当标准清单存储于移动终端中时,移动终端可直接获取标准清单。当标准清单存储与服务器中时,移动终端需要上传当前移动终端的版本信息、系统信息等,服务器根据移动终端上传的版本信息和系统信息再查找对应的标准清单,再将查找获取的标准清单返回给移动终端。上述版本信息为移动终端产品的版本信息,上述系统信息是移动终端操作系统对应的信息。Since the power consumption of mobile terminals varies among different systems or different versions, the standard lists corresponding to different mobile terminals may be the same or different. When the standard list is stored in the mobile terminal, the mobile terminal can directly acquire the standard list. When the standard list is stored in the server, the mobile terminal needs to upload the version information, system information, etc. of the current mobile terminal, and the server searches for the corresponding standard list according to the version information and system information uploaded by the mobile terminal, and then returns the obtained standard list to the mobile terminal. The above version information is version information of the mobile terminal product, and the above system information is information corresponding to the operating system of the mobile terminal.
本申请实施例中方法,可根据移动终端在灭屏期间的状态信息获取移动终端在灭屏期间的标准电量,通过将各个状态对应的单位时间内增量量化的方式,可快速的获取移动终端在灭屏期间的标准电量,计算标准电量的方式更加快捷。The method in the embodiment of this application can obtain the standard power of the mobile terminal during the screen-off period according to the state information of the mobile terminal during the screen-off period, and quickly obtain the mobile terminal by quantifying the increment per unit time corresponding to each state. For the standard power during the off-screen period, the method of calculating the standard power is faster.
在一个实施例中,根据标准电量和耗电电量检测移动终端是否耗电异常包括以下方法中任意一种:In one embodiment, detecting whether the mobile terminal consumes abnormal power according to the standard power and power consumption includes any of the following methods:
(1)检测耗电电量是否大于标准电量,若耗电电量大于标准电量,则检测到耗电异常。(1) Detect whether the power consumption is greater than the standard power, and if the power consumption is greater than the standard power, abnormal power consumption is detected.
(2)根据耗电电量和灭屏时长获取耗电电功率,根据标准电量和灭屏时长获取标准电功率,检测耗电电功率是否大于标准电功率,若耗电电功率大于标准电功率,则检测到耗电异常。(2) Obtain the power consumption according to the power consumption and the duration of the screen off, and obtain the standard power according to the standard power and the duration of the screen off, and detect whether the power consumption is greater than the standard power. If the power consumption is greater than the standard power, abnormal power consumption is detected .
移动终端在根据标准电量和耗电电量检测移动终端是否耗电异常时,可检测移动终端在灭屏期间的耗电电量是否大于标准电量,若耗电电量大于标准电量,则表示移动终端在灭屏期间消耗电量较多,即移动终端在灭屏期间耗电异常。移动终端也可获取耗电电量与灭屏时长的比值,上述比值为移动终端在灭屏期间单位时间内耗电电量,即移动终端在灭屏期间的耗电电功率。移动终端可通过标准电量与灭屏时长的比值来获取标准电功率,移动终端也可通过标准清单获取上述匹配成功的状态信息对应的单位时间内增量电量的累计值作为标准电功率。移动终端可将耗电电功率与标准电功率进行比较,检测上述耗电电功率是否大于标准电功率。若耗电电功率大于上述标准电功率,则移动终端在灭屏期间耗电异常。When the mobile terminal detects whether the power consumption of the mobile terminal is abnormal according to the standard power and power consumption, it can detect whether the power consumption of the mobile terminal is greater than the standard power during the off-screen period. If the power consumption is greater than the standard power, it means that the mobile terminal is on A lot of power is consumed during the off-screen period, that is, the power consumption of the mobile terminal is abnormal during the off-screen period. The mobile terminal can also obtain the ratio of power consumption to the duration of the screen off, the above ratio is the power consumption of the mobile terminal per unit time during the screen off period, that is, the power consumption of the mobile terminal during the screen off period. The mobile terminal can obtain the standard electric power through the ratio of the standard electric quantity to the screen-off time, and the mobile terminal can also obtain the accumulated value of the incremental electric quantity per unit time corresponding to the status information of the above-mentioned successful matching through the standard list as the standard electric power. The mobile terminal can compare the electric power consumption with the standard electric power, and detect whether the above electric power consumption is greater than the standard electric power. If the power consumption is greater than the above-mentioned standard power, the power consumption of the mobile terminal is abnormal during the screen-off period.
本申请实施例中方法,移动终端可根据标准电量与耗电电量的比较结果来判定移动终端是否耗电异常,也可根据标准电功率与耗电电功率的比较结果来判定移动终端是否耗电异常,检测移动终端耗电异常的方式简单、快捷。In the method of the embodiment of the present application, the mobile terminal can determine whether the mobile terminal consumes abnormal power according to the comparison result of the standard power and the power consumption, and can also determine whether the power consumption of the mobile terminal is abnormal according to the comparison result of the standard power and the power consumption. The method for detecting abnormal power consumption of the mobile terminal is simple and fast.
在一个实施例中,根据休眠比和阈值检测移动终端ADSP子系统是否休眠异常包括:In one embodiment, detecting whether the ADSP subsystem of the mobile terminal is abnormally dormant according to the dormancy ratio and the threshold includes:
(1)若休眠比不大于第一阈值,判定移动终端ADSP子系统休眠异常。(1) If the dormancy ratio is not greater than the first threshold, it is determined that the ADSP subsystem of the mobile terminal is abnormal in dormancy.
(2)若休眠比大于第一阈值且不大于第二阈值,根据标准电量、耗电电量和休眠比获取移动终端ADSP子系统的第一电功率,根据第一电功率的值确定移动终端ADSP子系统是否休眠异常;第二阈值大于第一阈值。(2) If the dormancy ratio is greater than the first threshold and not greater than the second threshold, obtain the first electric power of the ADSP subsystem of the mobile terminal according to the standard power, power consumption and dormancy ratio, and determine the ADSP subsystem of the mobile terminal according to the value of the first electric power Whether the dormancy is abnormal; the second threshold is greater than the first threshold.
移动终端可获取移动终端ADSP子系统的休眠比和移动终端ADSP子系统的休眠比对应的多个阈值,根据上述移动终端ADSP子系统的休眠比和对应的多个阈值检测移动终端ADSP子系统是否休眠异常。可选地,移动终端ADSP子系统的休眠比可对应的阈值包括:第一阈值和第二阈值,上述第二阈值大于第一阈值,例如上述第一阈值为80%,第二阈值为95%。当移动终端ADSP子系统的休眠比大于上述第二阈值时,表示移动终端ADSP子系统的休眠比较高、移动终端ADSP子系统在移动终端灭屏期间休眠时间较长,则移动终端ADSP子系统休眠正常。若移动终端ADSP子系统的休眠比小于或等于上述第一阈值,表示移动终端ADSP子系统的休眠比较低、移动终端ADSP子系统在灭屏期间休眠时间较短,移动终端ADSP子系统休眠异常。当移动终端ADSP子系统的休眠比大于第一阈值且不大于第二阈值时,可根据移动终端ADSP子系统的电功率进一步判断移动终端ADSP子系统是否休眠异常,即根据第一电功率判断移动终端ADSP子系统是否休眠异常。其中,第一电功率Power_ADSP_runtime_avg=(DeltaBC-screenoffDuration*TargetCurrent)/(screenoffDuration*(1-adspSuspendRatio/100))。其中,DeltaBC为移动终端在灭屏期间的耗电电量,screenoffDuration为移动终端的灭屏时长,TargetCurrent为移动终端的标准功率,则DeltaBC-screenoffDuration*TargetCurrent可表示移动终端在灭屏期间除正常耗电以外的电量。screenoffDuration为灭屏时长,adspSuspendRatio为移动终端ADSP子系统的休眠比。第一电功率Power_ADSP_runtime_avg可表示移动终端ADSP子系统在唤醒状态下的平均功耗。可选地,移动终端可获取上述第一电功率对应的第三阈值,检测第一电功率是否大于第三阈值,例如,上述第三阈值为300mA/h。当第一电功率Power_ADSP_runtime_avg大于上述第三阈值时,移动终端ADSP子系统在唤醒状态下的平均功耗较高,则移动终端ADSP子系统的休眠比正常。当第一电功率Power_ADSP_runtime_avg不大于上述第三阈值时,移动终端ADSP子系统在唤醒状态下的平均功耗较低,则移动终端ADSP子系统的休眠比异常。The mobile terminal can acquire the dormancy ratio of the ADSP subsystem of the mobile terminal and multiple thresholds corresponding to the dormancy ratio of the ADSP subsystem of the mobile terminal, and detect whether the ADSP subsystem of the mobile terminal is Sleep exception. Optionally, the thresholds corresponding to the dormancy ratio of the ADSP subsystem of the mobile terminal include: a first threshold and a second threshold, the second threshold is greater than the first threshold, for example, the first threshold is 80%, and the second threshold is 95% . When the dormancy ratio of the mobile terminal ADSP subsystem is greater than the above-mentioned second threshold, it means that the dormancy ratio of the mobile terminal ADSP subsystem is relatively high, and the mobile terminal ADSP subsystem sleeps for a long time during the mobile terminal off-screen period, then the mobile terminal ADSP subsystem sleeps normal. If the dormancy ratio of the ADSP subsystem of the mobile terminal is less than or equal to the above-mentioned first threshold, it means that the ADSP subsystem of the mobile terminal has a relatively low dormancy ratio, the ADSP subsystem of the mobile terminal has a short dormancy time during the off-screen period, and the ADSP subsystem of the mobile terminal is abnormally dormant. When the sleep ratio of the ADSP subsystem of the mobile terminal is greater than the first threshold and not greater than the second threshold, it can be further judged whether the ADSP subsystem of the mobile terminal is sleeping abnormally according to the electric power of the ADSP subsystem of the mobile terminal, that is, the ADSP subsystem of the mobile terminal can be judged according to the first electric power. Whether the subsystem sleeps abnormally. Wherein, the first electric power Power_ADSP_runtime_avg=(DeltaBC-screenoffDuration*TargetCurrent)/(screenoffDuration*(1-adspSuspendRatio/100)). Among them, DeltaBC is the power consumption of the mobile terminal during the screen-off period, screenoffDuration is the screen-off duration of the mobile terminal, and TargetCurrent is the standard power of the mobile terminal, then DeltaBC-screenoffDuration*TargetCurrent can represent the normal power consumption of the mobile terminal during the screen-off period other than power. screenoffDuration is the off-screen duration, and adspSuspendRatio is the sleep ratio of the ADSP subsystem of the mobile terminal. The first electric power Power_ADSP_runtime_avg may represent the average power consumption of the ADSP subsystem of the mobile terminal in a wake-up state. Optionally, the mobile terminal may acquire a third threshold corresponding to the above-mentioned first electric power, and detect whether the first electric power is greater than the third threshold, for example, the above-mentioned third threshold is 300 mA/h. When the first electric power Power_ADSP_runtime_avg is greater than the third threshold, the average power consumption of the ADSP subsystem of the mobile terminal in the wake-up state is relatively high, and the sleep ratio of the ADSP subsystem of the mobile terminal is normal. When the first electric power Power_ADSP_runtime_avg is not greater than the third threshold, the average power consumption of the ADSP subsystem of the mobile terminal in the wake-up state is low, and the sleep ratio of the ADSP subsystem of the mobile terminal is abnormal.
本申请实施例中方法,根据移动终端ADSP子系统的休眠比、移动终端ADSP子系统在唤醒状态时的平均功耗,可检测出移动终端ADSP子系统是否休眠异常,检测移动终端ADSP子系统休眠异常的方式简单、快捷。The method in the embodiment of the present application can detect whether the ADSP subsystem of the mobile terminal is sleeping abnormally according to the dormancy ratio of the ADSP subsystem of the mobile terminal and the average power consumption of the ADSP subsystem of the mobile terminal in the wake-up state, and detect whether the ADSP subsystem of the mobile terminal is dormant. The unusual way is simple and fast.
在一个实施例中,在获取移动终端ADSP子系统的休眠比和对应的阈值之前,上述方法还包括:获取移动终端AP子系统的休眠比,根据上述移动终端AP子系统的休眠比检测移动终端AP子系统是否休眠异常。In one embodiment, before acquiring the dormancy ratio of the ADSP subsystem of the mobile terminal and the corresponding threshold, the method further includes: acquiring the dormancy ratio of the AP subsystem of the mobile terminal, and detecting the mobile terminal according to the dormancy ratio of the AP subsystem of the mobile terminal Check whether the AP subsystem sleeps abnormally.
在移动终端系统中通常会存在多个子系统,多个子系统之间具备独立运行的能力。多个子系统之间通过协同和交互能够实现移动终端的各项功能。其中,移动终端子系统可包括:AP子系统、MPSS(Modem Processer Sub System,调制解调器处理器子系统)子系统、ADSP子系统等。其中AP子系统负责运行移动终端操作系统如Android操作系统以实现大部分与用户相关的多媒体任务;MPSS子系统运行定制的实时操作系统以实现与用户连接相关的功能,例如Wi-Fi、通话等;ADSP子系统负责传感器、音频相关的任务和功能。There are usually multiple subsystems in a mobile terminal system, and the multiple subsystems have the ability to operate independently. Various functions of the mobile terminal can be realized through collaboration and interaction among multiple subsystems. Wherein, the mobile terminal subsystem may include: an AP subsystem, an MPSS (Modem Processer Sub System, modem processor subsystem) subsystem, an ADSP subsystem, and the like. Among them, the AP subsystem is responsible for running the mobile terminal operating system such as the Android operating system to realize most of the multimedia tasks related to the user; the MPSS subsystem runs the customized real-time operating system to realize the functions related to the user connection, such as Wi-Fi, call, etc. ; The ADSP subsystem is responsible for sensor, audio-related tasks and functions.
由于移动终端AP子系统负责运行移动终端操作系统,相较其他移动终端子系统,移动终端AP子系统异常概率较大,因此在检测移动终端子系统是否休眠异常时,可先检测移动终端AP子系统是否休眠异常。其中,检测移动终端AP子系统是否休眠异常的步骤包括:获取移动终端AP子系统的休眠比和对应的比较值。上述比较值可包括正常值和异常值,上述正常值大于上述异常值。当移动终端AP子系统的休眠比大于上述正常值时,则移动终端AP子系统的休眠比正常;当移动终端AP子系统的休眠比小于上述异常值时,则移动终端AP子系统的休眠比异常。当移动终端AP子系统的休眠比在上述异常值和正常值之间时,移动终端可获取移动终端AP子系统的第二电功率,根据上述移动终端AP子系统的第二电功率来判定移动终端AP子系统是否休眠异常。可选地,第二电功率Power_AP_runtime_avg=(DeltaBC-screenoffDuration*TargetCurrent)/(screenoffDuration*(1-apSuspendRatio/100))。其中,DeltaBC-screenoffDuration*TargetCurrent即为移动终端在灭屏期间除正常耗电以外的电量;screenoffDuration*(1-SuspendRatio/100)为移动终端AP子系统处于唤醒状态的时长,Power_AP_runtime_avg为移动终端AP子系统在唤醒状态的的平均功耗。当上述Power_AP_runtime_avg大于设定功率值时,移动终端AP子系统的休眠正常;当Power_AP_runtime_avg小于设定功率值时,移动终端AP子系统休眠异常。若检测到移动终端AP子系统休眠异常,则直接排查移动终端AP子系统的异常原因;在检测到移动终端AP子系统休眠正常时,再检测移动终端ADSP子系统是否休眠异常。上述设定功率值可根据移动终端系统版本、硬件状态等来进行设置,例如500mA/h。Since the mobile terminal AP subsystem is responsible for running the mobile terminal operating system, compared with other mobile terminal subsystems, the mobile terminal AP subsystem has a higher probability of abnormality. Therefore, when detecting whether the mobile terminal subsystem is abnormally sleeping, the mobile terminal AP subsystem can be detected Whether the system sleeps abnormally. Wherein, the step of detecting whether the AP subsystem of the mobile terminal is sleeping abnormally includes: obtaining the sleep ratio and the corresponding comparison value of the AP subsystem of the mobile terminal. The above-mentioned comparison value may include a normal value and an abnormal value, and the above-mentioned normal value is greater than the above-mentioned abnormal value. When the dormancy ratio of the AP subsystem of the mobile terminal is greater than the above normal value, the dormancy ratio of the AP subsystem of the mobile terminal is normal; abnormal. When the sleep ratio of the AP subsystem of the mobile terminal is between the abnormal value and the normal value, the mobile terminal can obtain the second electric power of the AP subsystem of the mobile terminal, and determine the AP of the mobile terminal according to the second electric power of the AP subsystem of the mobile terminal. Whether the subsystem sleeps abnormally. Optionally, the second electric power Power_AP_runtime_avg=(DeltaBC-screenoffDuration*TargetCurrent)/(screenoffDuration*(1-apSuspendRatio/100)). Among them, DeltaBC-screenoffDuration*TargetCurrent is the power consumption of the mobile terminal other than the normal power consumption during the off-screen period; screenoffDuration*(1-SuspendRatio/100) is the duration of the mobile terminal AP subsystem in the wake-up state, Power_AP_runtime_avg is the mobile terminal AP subsystem The average power consumption of the system in the wake state. When the aforementioned Power_AP_runtime_avg is greater than the set power value, the dormancy of the AP subsystem of the mobile terminal is normal; when the Power_AP_runtime_avg is less than the set power value, the dormancy of the mobile terminal AP subsystem is abnormal. If it is detected that the AP subsystem of the mobile terminal is sleeping abnormally, then directly check the cause of the abnormality of the AP subsystem of the mobile terminal; when it is detected that the AP subsystem of the mobile terminal is sleeping normally, then detect whether the ADSP subsystem of the mobile terminal is abnormally sleeping. The above set power value can be set according to the mobile terminal system version, hardware status, etc., for example, 500mA/h.
本申请实施例中方法,在检测移动终端ADSP子系统是否休眠异常之前,可先检测移动终端AP子系统是否休眠异常,即先排查异常概率较大的移动终端AP子系统,提高检测的效率。In the method of the embodiment of the present application, before detecting whether the ADSP subsystem of the mobile terminal is abnormally sleeping, it is possible to detect whether the AP subsystem of the mobile terminal is abnormally sleeping, that is, first check the AP subsystem of the mobile terminal with a high probability of abnormality, and improve the detection efficiency.
在一个实施例中,上述方法还包括:In one embodiment, the above method also includes:
步骤208,若检测到移动终端ADSP子系统异常,获取并记录对应的异常信息。Step 208, if an abnormality is detected in the ADSP subsystem of the mobile terminal, obtain and record corresponding abnormality information.
步骤210,根据获取到异常信息的频次调整向服务器上报异常信息的时间间隔。Step 210, adjusting the time interval for reporting abnormal information to the server according to the frequency of obtaining abnormal information.
移动终端在检测到移动终端耗电异常时,可获取并记录耗电异常对应的异常信息,并将上述异常信息上传到服务器,例如,当移动终端检测到在灭屏期间耗电异常时,可检测上述移动终端耗电异常的原因,并将检测到的耗电异常的原因写入移动终端日志,并将日志上传到服务器。其中,移动终端可设定上传异常信息的时间间隔,例如每隔1星期上传一次。移动终端可根据检测到耗电异常的频次来调整上传异常信息的时间间隔。可选地,移动终端检测到耗电异常的频次越高,移动终端上传异常信息的时间间隔越短,即移动终端检测到的异常信息越多,移动终端上报异常信息越频繁。例如,当移动终端检测到移动终端硬件漏电时,可将硬件漏电的异常信息写入日志,再将日志息按照1星期的时间间隔上传服务器。若移动终端在1天的时间内检测到上述异常信息的次数超过3次,则移动终端可将上传异常信息的时间间隔调整为3天。When the mobile terminal detects abnormal power consumption of the mobile terminal, it can obtain and record the abnormal information corresponding to the abnormal power consumption, and upload the above abnormal information to the server. For example, when the mobile terminal detects that the power consumption is abnormal during the screen off period, it can Detect the cause of the above abnormal power consumption of the mobile terminal, write the detected reason of the abnormal power consumption into the log of the mobile terminal, and upload the log to the server. Wherein, the mobile terminal can set a time interval for uploading abnormal information, for example, once every week. The mobile terminal can adjust the time interval for uploading abnormal information according to the frequency of detecting abnormal power consumption. Optionally, the higher the frequency of abnormal power consumption detected by the mobile terminal, the shorter the time interval for the mobile terminal to upload abnormal information, that is, the more abnormal information detected by the mobile terminal, the more frequently the mobile terminal reports abnormal information. For example, when the mobile terminal detects the hardware leakage of the mobile terminal, it can write the abnormal information of the hardware leakage into the log, and then upload the log information to the server at intervals of one week. If the mobile terminal detects the above abnormal information more than 3 times within 1 day, the mobile terminal may adjust the time interval for uploading the abnormal information to 3 days.
本申请实施例中方法,根据检测到异常信息的频次来调整上传异常信息的时间间隔,有利于快速排查和发现移动终端的安全隐患。In the method of the embodiment of the present application, the time interval for uploading abnormal information is adjusted according to the frequency of detecting abnormal information, which is conducive to quick investigation and discovery of potential safety hazards of mobile terminals.
在一个实施例中,上述方法还包括:In one embodiment, the above method also includes:
步骤212,接收服务器返回的优化策略,优化策略是服务器根据接收到的异常信息获取的。Step 212, receiving the optimization strategy returned by the server, the optimization strategy is obtained by the server according to the received exception information.
步骤214,根据优化策略对移动终端ADSP子系统进行优化。Step 214, optimize the ADSP subsystem of the mobile terminal according to the optimization strategy.
若检测到移动终端在灭屏期间耗电异常,移动终端可检测获取耗电异常的原因,获取并记录移动终端的异常信息。移动终端还可按照设定的时间间隔将上述异常信息发送给服务器。服务器在接收到移动终端上传的异常信息后,可对接收到的异常信息进行统计和分析,得到对异常信息的优化策略,服务器再将优化策略返回给移动终端。移动终端在接收到上述优化策略后,可再对移动终端进行优化。可选地,移动终端在上传上述异常信息后,服务器返回的是与上述异常信息对应的优化策略,移动终端可根据上述优化策略对进行对应的优化。例如,移动终端接收到的是针对移动终端ADSP子系统的优化策略,则可对移动终端ADSP子系统进行优化。If it is detected that the power consumption of the mobile terminal is abnormal during the screen-off period, the mobile terminal can detect and acquire the cause of the abnormal power consumption, acquire and record the abnormal information of the mobile terminal. The mobile terminal can also send the above abnormal information to the server according to the set time interval. After receiving the abnormal information uploaded by the mobile terminal, the server can perform statistics and analysis on the received abnormal information to obtain an optimization strategy for the abnormal information, and then the server returns the optimization strategy to the mobile terminal. After the mobile terminal receives the above optimization strategy, it can further optimize the mobile terminal. Optionally, after the mobile terminal uploads the above abnormal information, the server returns an optimization strategy corresponding to the above abnormal information, and the mobile terminal can perform corresponding optimization according to the above optimization strategy. For example, what the mobile terminal receives is an optimization strategy for the ADSP subsystem of the mobile terminal, and then the ADSP subsystem of the mobile terminal can be optimized.
本申请实施例中方法,移动终端在上传服务器异常信息后,可接收服务器返回的与异常信息对应的优化策略,并根据上述优化策略进行对应的优化,减少移动终端的异常耗电,提高移动终端的性能。In the method of the embodiment of this application, after the mobile terminal uploads the abnormal information of the server, it can receive the optimization strategy corresponding to the abnormal information returned by the server, and perform corresponding optimization according to the above optimization strategy, so as to reduce the abnormal power consumption of the mobile terminal and improve the efficiency of the mobile terminal. performance.
在一个实施例中,一种信息处理方法,包括:In one embodiment, an information processing method includes:
(1)若移动终端由灭屏状态切换到亮屏状态且移动终端的灭屏时长超过第一时长,获取移动终端在灭屏期间的标准电量和耗电电量。(1) If the mobile terminal switches from the off-screen state to the on-screen state and the off-screen duration of the mobile terminal exceeds the first duration, obtain the standard power and power consumption of the mobile terminal during the off-screen period.
(2)根据标准电量和耗电电量检测移动终端是否耗电异常。(2) Detect whether the power consumption of the mobile terminal is abnormal according to the standard power and the power consumption.
(3)若检测到耗电异常,获取移动终端ADSP子系统的休眠比和对应的阈值,根据休眠比和阈值检测移动终端ADSP子系统是否休眠异常。(3) If abnormal power consumption is detected, obtain the dormancy ratio and corresponding threshold of the mobile terminal ADSP subsystem, and detect whether the mobile terminal ADSP subsystem is abnormally dormant according to the dormancy ratio and the threshold.
可选地,获取移动终端在灭屏期间的标准电量包括:获取移动终端在灭屏期间的状态信息,查找状态信息对应的单位时间内增量,根据单位时间内增量和灭屏时长确定标准电量。Optionally, acquiring the standard power of the mobile terminal during the off-screen period includes: acquiring the state information of the mobile terminal during the off-screen period, searching for the increment per unit time corresponding to the state information, and determining the standard according to the increment per unit time and the off-screen duration electricity.
可选地,根据标准电量和耗电电量检测移动终端是否耗电异常包括以下方法中任意一种:Optionally, detecting whether the mobile terminal consumes abnormal power according to the standard power and the power consumption includes any one of the following methods:
(1)检测耗电电量是否大于标准电量,若耗电电量大于标准电量,则检测到耗电异常。(1) Detect whether the power consumption is greater than the standard power, and if the power consumption is greater than the standard power, abnormal power consumption is detected.
(2)根据耗电电量和灭屏时长获取耗电电功率,根据标准电量和灭屏时长获取标准电功率,检测耗电电功率是否大于标准电功率,若耗电电功率大于标准电功率,则检测到耗电异常。(2) Obtain the power consumption according to the power consumption and the duration of the screen off, and obtain the standard power according to the standard power and the duration of the screen off, and detect whether the power consumption is greater than the standard power. If the power consumption is greater than the standard power, abnormal power consumption is detected .
可选地,根据休眠比和阈值检测移动终端ADSP子系统是否休眠异常包括:若休眠比不大于第一阈值,判定移动终端ADSP子系统休眠异常;若休眠比大于第一阈值且不大于第二阈值,根据标准电量、耗电电量和休眠比获取移动终端ADSP子系统的第一电功率,根据第一电功率的值确定移动终端ADSP子系统是否休眠异常;第二阈值大于第一阈值。Optionally, detecting whether the ADSP subsystem of the mobile terminal is abnormally dormant according to the dormancy ratio and the threshold includes: if the dormancy ratio is not greater than the first threshold, determining that the ADSP subsystem of the mobile terminal is abnormal; if the dormancy ratio is greater than the first threshold and not greater than the second Threshold, according to the standard power, power consumption and dormancy ratio to obtain the first electric power of the ADSP subsystem of the mobile terminal, and determine whether the ADSP subsystem of the mobile terminal is abnormally dormant according to the value of the first electric power; the second threshold is greater than the first threshold.
可选地,在获取移动终端ADSP子系统的休眠比和对应的阈值之前,上述方法还包括:获取移动终端AP子系统的休眠比,根据移动终端AP子系统的休眠比检测移动终端AP子系统是否休眠异常。Optionally, before acquiring the dormancy ratio of the ADSP subsystem of the mobile terminal and the corresponding threshold, the method further includes: acquiring the dormancy ratio of the AP subsystem of the mobile terminal, and detecting the AP subsystem of the mobile terminal according to the dormancy ratio of the AP subsystem of the mobile terminal Is it sleeping abnormally?
可选地,上述方法还包括:若检测到移动终端ADSP子系统异常,获取并记录对应的异常信息;根据获取到异常信息的频次调整向服务器上报异常信息的时间间隔。Optionally, the above method further includes: if an abnormality is detected in the ADSP subsystem of the mobile terminal, obtaining and recording the corresponding abnormal information; adjusting the time interval for reporting the abnormal information to the server according to the frequency of obtaining the abnormal information.
可选地,上述方法还包括:接收服务器返回的优化策略,优化策略是服务器根据接收到的异常信息获取的;根据优化策略对移动终端ADSP子系统进行优化。Optionally, the above method further includes: receiving an optimization strategy returned by the server, the optimization strategy is obtained by the server according to the received abnormal information; and optimizing the ADSP subsystem of the mobile terminal according to the optimization strategy.
应该理解的是,虽然上述流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,上述流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the above flow chart are displayed sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the above flowchart may include multiple sub-steps or multiple stages, these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, the sub-steps or stages The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
图5为一个实施例中一种信息处理装置的结构框图。如图5所示,一种信息处理装置,包括:Fig. 5 is a structural block diagram of an information processing device in an embodiment. As shown in Figure 5, an information processing device includes:
获取模块502,用于若移动终端由灭屏状态切换到亮屏状态且移动终端的灭屏时长超过第一时长,获取移动终端在灭屏期间的标准电量和耗电电量。The obtaining module 502 is used to obtain the standard power and power consumption of the mobile terminal during the screen-off period if the mobile terminal is switched from the screen-off state to the screen-on state and the screen-off duration of the mobile terminal exceeds a first duration.
第一检测模块504,用于根据标准电量和耗电电量检测移动终端是否耗电异常。The first detection module 504 is configured to detect whether the power consumption of the mobile terminal is abnormal according to the standard power and the power consumption.
第二检测模块506,用于若检测到耗电异常,获取移动终端ADSP子系统的休眠比和对应的阈值,根据休眠比和阈值检测移动终端ADSP子系统是否休眠异常。The second detection module 506 is used to obtain the dormancy ratio and corresponding threshold of the ADSP subsystem of the mobile terminal if abnormal power consumption is detected, and detect whether the ADSP subsystem of the mobile terminal is abnormally dormant according to the dormancy ratio and the threshold.
在一个实施例中,获取模块502获取移动终端在灭屏期间的标准电量包括:获取移动终端在灭屏期间的状态信息,查找状态信息对应的单位时间内增量,根据单位时间内增量和灭屏时长确定标准电量。In one embodiment, the acquisition module 502 acquiring the standard power of the mobile terminal during the screen-off period includes: acquiring the state information of the mobile terminal during the screen-off period, searching for the increment per unit time corresponding to the state information, and according to the increment per unit time and The length of time the screen is off determines the standard power.
在一个实施例中,第一检测模块504根据标准电量和耗电电量检测移动终端是否耗电异常包括以下方法中任意一种:In one embodiment, the first detection module 504 detects whether the mobile terminal has abnormal power consumption according to the standard power and power consumption, including any of the following methods:
(1)检测耗电电量是否大于标准电量,若耗电电量大于标准电量,则检测到耗电异常。(1) Detect whether the power consumption is greater than the standard power, and if the power consumption is greater than the standard power, abnormal power consumption is detected.
(2)根据耗电电量和灭屏时长获取耗电电功率,根据标准电量和灭屏时长获取标准电功率,检测耗电电功率是否大于标准电功率,若耗电电功率大于标准电功率,则检测到耗电异常。(2) Obtain the power consumption according to the power consumption and the duration of the screen off, and obtain the standard power according to the standard power and the duration of the screen off, and detect whether the power consumption is greater than the standard power. If the power consumption is greater than the standard power, abnormal power consumption is detected .
在一个实施例中,第二检测模块506根据休眠比和阈值检测移动终端ADSP子系统是否休眠异常包括:若休眠比不大于第一阈值,判定移动终端ADSP子系统休眠异常;若休眠比大于第一阈值且不大于第二阈值,根据标准电量、耗电电量和休眠比获取移动终端ADSP子系统的第一电功率,根据第一电功率的值确定移动终端ADSP子系统是否休眠异常;第二阈值大于第一阈值。In one embodiment, the second detection module 506 detects whether the ADSP subsystem of the mobile terminal is abnormally dormant according to the dormancy ratio and the threshold includes: if the dormancy ratio is not greater than the first threshold, determining that the ADSP subsystem of the mobile terminal is abnormal; if the dormancy ratio is greater than the first threshold A threshold and not greater than the second threshold, according to the standard power, power consumption and sleep ratio to obtain the first electric power of the ADSP subsystem of the mobile terminal, determine whether the ADSP subsystem of the mobile terminal is abnormal in sleep according to the value of the first electric power; the second threshold is greater than first threshold.
在一个实施例中,第二检测模块506还用于在获取移动终端ADSP子系统的休眠比和对应的阈值之前,获取移动终端AP子系统的休眠比,根据移动终端AP子系统的休眠比检测移动终端AP子系统是否休眠异常。In one embodiment, the second detection module 506 is also used to obtain the dormancy ratio of the AP subsystem of the mobile terminal before obtaining the dormancy ratio of the ADSP subsystem of the mobile terminal and the corresponding threshold, and detect according to the dormancy ratio of the AP subsystem of the mobile terminal Whether the AP subsystem of the mobile terminal is sleeping abnormally.
图6为另一个实施例中信息处理装置的结构框图。如图6所示,一种信息处理装置,包括:获取模块602、第一检测模块604、第二检测模块606、记录模块608、调整模块610。其中,获取模块602、第一检测模块604、第二检测模块606与图5中对应的模块功能相同。Fig. 6 is a structural block diagram of an information processing device in another embodiment. As shown in FIG. 6 , an information processing device includes: an acquisition module 602 , a first detection module 604 , a second detection module 606 , a recording module 608 , and an adjustment module 610 . Wherein, the acquisition module 602 , the first detection module 604 , and the second detection module 606 have the same functions as the corresponding modules in FIG. 5 .
记录模块608,若检测到移动终端ADSP子系统异常,获取并记录对应的异常信息。The recording module 608, if an abnormality is detected in the ADSP subsystem of the mobile terminal, acquires and records corresponding abnormality information.
调整模块610,根据获取到异常信息的频次调整向服务器上报异常信息的时间间隔。The adjustment module 610 adjusts the time interval for reporting the abnormal information to the server according to the frequency of obtaining the abnormal information.
图7为另一个实施例中信息处理装置的结构框图。如图7所示,一种信息处理装置,包括:获取模块702、第一检测模块704、第二检测模块706、接收模块708、优化模块710。其中,获取模块702、第一检测模块704、第二检测模块706与图5中对应的模块功能相同。Fig. 7 is a structural block diagram of an information processing device in another embodiment. As shown in FIG. 7 , an information processing device includes: an acquisition module 702 , a first detection module 704 , a second detection module 706 , a receiving module 708 , and an optimization module 710 . Wherein, the acquisition module 702 , the first detection module 704 , and the second detection module 706 have the same functions as the corresponding modules in FIG. 5 .
接收模块708,接收服务器返回的优化策略,优化策略是服务器根据接收到的异常信息获取的。The receiving module 708 receives the optimization strategy returned by the server, and the optimization strategy is obtained by the server according to the received exception information.
优化模块710,根据优化策略对移动终端ADSP子系统进行优化。The optimization module 710 optimizes the ADSP subsystem of the mobile terminal according to the optimization strategy.
上述信息处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将信息处理装置按照需要划分为不同的模块,以完成上述信息处理装置的全部或部分功能。The division of each module in the above information processing device is only for illustration. In other embodiments, the information processing device can be divided into different modules according to needs, so as to complete all or part of the functions of the above information processing device.
关于信息处理装置的具体限定可以参见上文中对于信息处理方法的限定,在此不再赘述。上述信息处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于移动终端中的处理器中,也可以以软件形式存储于移动终端中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For specific limitations on the information processing apparatus, refer to the above-mentioned limitations on the information processing method, which will not be repeated here. Each module in the above-mentioned information processing device can be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the mobile terminal in the form of hardware, and can also be stored in the memory of the mobile terminal in the form of software, so that the processor can call and execute the corresponding operations of the above-mentioned modules.
本申请实施例中提供的信息处理装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在终端或服务器的存储器上。该计算机程序被处理器执行时,实现本申请实施例中信息处理方法的步骤。The implementation of each module in the information processing device provided in the embodiment of the present application may be in the form of a computer program. The computer program can run on a terminal or a server. The program modules constituted by the computer program can be stored in the memory of the terminal or server. When the computer program is executed by the processor, the steps of the information processing method in the embodiment of the present application are realized.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当计算机可执行指令被一个或多个处理器执行时,使得处理器执行本申请实施例中信息处理方法的步骤。The embodiment of the present application also provides a computer-readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions. When the computer-executable instructions are executed by one or more processors, the processors execute the steps of the information processing method in the embodiments of the present application.
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行本申请实施例中信息处理方法的步骤。The embodiment of the present application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the steps of the information processing method in the embodiment of the present application.
本申请实施例还提供了一种移动终端。如图8所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以移动终端为手机为例:The embodiment of the present application also provides a mobile terminal. As shown in FIG. 8 , for ease of description, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The mobile terminal can be any terminal device including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, wearable device, etc., taking the mobile terminal as a mobile phone as an example :
图8为与本申请实施例提供的移动终端相关的手机的部分结构的框图。参考图8,手机包括:射频(Radio Frequency,RF)电路810、存储器820、输入单元830、显示单元840、传感器850、音频电路860、无线保真(wireless fidelity,WiFi)模块870、处理器880、以及电源890等部件。本领域技术人员可以理解,图8所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 8 is a block diagram of a partial structure of a mobile phone related to the mobile terminal provided by the embodiment of the present application. Referring to FIG. 8 , the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a sensor 850, an audio circuit 860, a wireless fidelity (wireless fidelity, WiFi) module 870, and a processor 880 , and power supply 890 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 8 does not constitute a limitation to the mobile phone, and may include more or less components than those shown in the figure, or combine some components, or arrange different components.
其中,RF电路810可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器880处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路810还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband CodeDivision Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。Among them, the RF circuit 810 can be used for sending and receiving information or receiving and sending signals during a call. After receiving the downlink information from the base station, it can be processed by the processor 880; it can also send uplink data to the base station. Generally, an RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 810 may also communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
存储器820可用于存储软件程序以及模块,处理器880通过运行存储在存储器820的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器820可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器820可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 820 can be used to store software programs and modules, and the processor 880 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 820 . The memory 820 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as an application program for a sound playback function, an application program for an image playback function, etc.); The data storage area can store data created according to the use of the mobile phone (such as audio data, address book, etc.) and the like. In addition, the memory 820 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
输入单元830可用于接收输入的数字或字符信息,以及产生与手机800的用户设置以及功能控制有关的键信号输入。具体地,输入单元830可包括触控面板831以及其他输入设备832。触控面板831,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板831上或在触控面板831附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板831可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器880,并能接收处理器880发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板831。除了触控面板831,输入单元830还可以包括其他输入设备832。具体地,其他输入设备832可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 830 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone 800 . Specifically, the input unit 830 may include a touch panel 831 and other input devices 832 . The touch panel 831, which can also be referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 831 or near the touch panel 831 operation), and drive the corresponding connection device according to the preset program. In one embodiment, the touch panel 831 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 880, and can receive and execute commands sent by the processor 880. In addition, the touch panel 831 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 831 , the input unit 830 may also include other input devices 832 . Specifically, other input devices 832 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), and the like.
显示单元840可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元840可包括显示面板841。在一个实施例中,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板841。在一个实施例中,触控面板831可覆盖显示面板841,当触控面板831检测到在其上或附近的触摸操作后,传送给处理器880以确定触摸事件的类型,随后处理器880根据触摸事件的类型在显示面板841上提供相应的视觉输出。虽然在图8中,触控面板831与显示面板841是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板831与显示面板841集成而实现手机的输入和输出功能。The display unit 840 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 840 may include a display panel 841 . In one embodiment, the display panel 841 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. In one embodiment, the touch panel 831 can cover the display panel 841, and when the touch panel 831 detects a touch operation on or near it, the touch operation is sent to the processor 880 to determine the type of the touch event, and then the processor 880 according to The type of touch event provides a corresponding visual output on the display panel 841 . Although in FIG. 8 , the touch panel 831 and the display panel 841 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 831 and the display panel 841 can be integrated and Realize the input and output functions of the mobile phone.
手机800还可包括至少一种传感器850,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板841的亮度,接近传感器可在手机移动到耳边时,关闭显示面板841和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。Cell phone 800 may also include at least one sensor 850, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 841 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 841 and/or or backlight. The motion sensor can include an acceleration sensor, through which the magnitude of acceleration in various directions can be detected, and the magnitude and direction of gravity can be detected when stationary, and can be used for applications that recognize the attitude of a mobile phone (such as switching between horizontal and vertical screens), vibration recognition related functions (such as pedometer, tap), etc.; in addition, the mobile phone can also be equipped with gyroscope, barometer, hygrometer, thermometer, infrared sensor and other sensors.
音频电路860、扬声器861和传声器862可提供用户与手机之间的音频接口。音频电路860可将接收到的音频数据转换后的电信号,传输到扬声器861,由扬声器861转换为声音信号输出;另一方面,传声器862将收集的声音信号转换为电信号,由音频电路860接收后转换为音频数据,再将音频数据输出处理器880处理后,经RF电路810可以发送给另一手机,或者将音频数据输出至存储器820以便后续处理。Audio circuitry 860, speaker 861 and microphone 862 may provide an audio interface between the user and the handset. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the speaker 861 converts it into an audio signal for output; After being received, it is converted into audio data, and after being processed by the output processor 880, the audio data can be sent to another mobile phone through the RF circuit 810, or the audio data can be output to the memory 820 for subsequent processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块870可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了WiFi模块870,但是可以理解的是,其并不属于手机800的必须构成,可以根据需要而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 870. It provides users with wireless broadband Internet access. Although FIG. 8 shows a WiFi module 870, it can be understood that it is not an essential component of the mobile phone 800 and can be omitted as required.
处理器880是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器820内的软件程序和/或模块,以及调用存储在存储器820内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器880可包括一个或多个处理单元。在一个实施例中,处理器880可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器880中。The processor 880 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 820, and calling data stored in the memory 820, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. In one embodiment, processor 880 may include one or more processing units. In one embodiment, the processor 880 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc.; the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 880 .
手机800还包括给各个部件供电的电源890(比如电池),优选的,电源可以通过电源管理系统与处理器880逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone 800 also includes a power supply 890 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 880 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system.
在一个实施例中,手机800还可以包括摄像头、蓝牙模块等。In one embodiment, the mobile phone 800 may also include a camera, a Bluetooth module, and the like.
在本申请实施例中,该移动终端所包括的处理器880执行存储在存储器上的计算机程序时实现本申请实施例中信息处理方法的步骤。In the embodiment of the present application, the processor 880 included in the mobile terminal implements the steps of the information processing method in the embodiment of the present application when executing the computer program stored in the memory.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Synchlink DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above examples only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810270560.7A CN108566470A (en) | 2018-03-29 | 2018-03-29 | Information processing method, device, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810270560.7A CN108566470A (en) | 2018-03-29 | 2018-03-29 | Information processing method, device, mobile terminal and computer readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108566470A true CN108566470A (en) | 2018-09-21 |
Family
ID=63533325
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810270560.7A Pending CN108566470A (en) | 2018-03-29 | 2018-03-29 | Information processing method, device, mobile terminal and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108566470A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113407420A (en) * | 2021-07-16 | 2021-09-17 | 北京字节跳动网络技术有限公司 | Power consumption detection method and device, electronic equipment and storage medium |
| CN116701101A (en) * | 2022-12-30 | 2023-09-05 | 荣耀终端有限公司 | A SensorHUB abnormal detection method and electronic equipment |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104166542A (en) * | 2013-05-17 | 2014-11-26 | 腾讯科技(深圳)有限公司 | Method and device for detecting electricity consumption of application |
| CN107027141A (en) * | 2017-05-08 | 2017-08-08 | 广东欧珀移动通信有限公司 | Information processing method, device and mobile terminal |
| CN107844189A (en) * | 2017-10-30 | 2018-03-27 | 东莞市金铭电子有限公司 | A method, system, terminal and computer-readable storage medium for reducing black screen power consumption |
-
2018
- 2018-03-29 CN CN201810270560.7A patent/CN108566470A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104166542A (en) * | 2013-05-17 | 2014-11-26 | 腾讯科技(深圳)有限公司 | Method and device for detecting electricity consumption of application |
| CN107027141A (en) * | 2017-05-08 | 2017-08-08 | 广东欧珀移动通信有限公司 | Information processing method, device and mobile terminal |
| CN107844189A (en) * | 2017-10-30 | 2018-03-27 | 东莞市金铭电子有限公司 | A method, system, terminal and computer-readable storage medium for reducing black screen power consumption |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113407420A (en) * | 2021-07-16 | 2021-09-17 | 北京字节跳动网络技术有限公司 | Power consumption detection method and device, electronic equipment and storage medium |
| CN113407420B (en) * | 2021-07-16 | 2024-07-23 | 北京字节跳动网络技术有限公司 | Power consumption detection method and device, electronic equipment and storage medium |
| CN116701101A (en) * | 2022-12-30 | 2023-09-05 | 荣耀终端有限公司 | A SensorHUB abnormal detection method and electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112703714B (en) | Application program processing method and device, computer equipment, computer-readable storage medium | |
| CN108541013B (en) | Information processing method, device, mobile terminal, and computer-readable storage medium | |
| CN108616653B (en) | Information processing method, device, mobile terminal, and computer-readable storage medium | |
| WO2020024732A1 (en) | Process processing method, electronic device, and computer-readable storage medium | |
| CN105830016A (en) | Power management method and power management device for user equipment | |
| CN109445917B (en) | Application processing method and apparatus, electronic device, computer-readable storage medium | |
| CN110032266B (en) | Information processing method, apparatus, computer device, and computer-readable storage medium | |
| CN108449491A (en) | Information processing method and device, mobile terminal and computer readable storage medium | |
| CN107168851A (en) | Information processing method, device and mobile terminal | |
| CN108549593A (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
| CN108536547A (en) | Information processing method, device, computer device, and computer-readable storage medium | |
| CN109511139B (en) | WIFI control method and device, mobile device and computer-readable storage medium | |
| CN110032397B (en) | Application processing method and device, electronic equipment and computer readable storage medium | |
| CN108668016B (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
| CN108566470A (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
| CN107659718A (en) | Control method, apparatus, mobile terminal and the storage medium of mobile terminal | |
| CN108566471B (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
| CN108646909B (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
| CN108541050A (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
| CN108828445B (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
| CN107708092B (en) | Flow information updating method and device, terminal and computer readable storage medium | |
| CN108802619A (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
| CN108536546A (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
| CN112997132A (en) | Application freezing method and device and electronic equipment | |
| WO2019128586A1 (en) | Application processing method, electronic device, and computer readable storage medium |
Legal Events
| 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 | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180921 |