CN108549593A - 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
- CN108549593A CN108549593A CN201810270530.6A CN201810270530A CN108549593A CN 108549593 A CN108549593 A CN 108549593A CN 201810270530 A CN201810270530 A CN 201810270530A CN 108549593 A CN108549593 A CN 108549593A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- wake
- abnormal
- subsystem
- power consumption
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
- G06F11/3062—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
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 becoming more and more common in users' lives. Through intelligent mobile terminal users can communicate and communicate with others conveniently. During the use of the smart mobile terminal, various applications, smart mobile terminal hardware, and smart mobile terminal systems will cause power consumption of the smart mobile terminal, resulting in reduced battery life 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;
若根据所述标准电量和耗电电量检测到所述移动终端耗电异常,且根据移动终端AP子系统的唤醒周期检测到所述移动终端AP子系统唤醒异常,获取所述移动终端AP子系统的异常唤醒源;If the abnormal power consumption of the mobile terminal is detected according to the standard power and the power consumption, and the abnormal wake-up of the AP subsystem of the mobile terminal is detected according to the wake-up period of the AP subsystem of the mobile terminal, obtain the AP subsystem of the mobile terminal abnormal wake-up source;
当所述异常唤醒源为Modem唤醒时,获取Modem唤醒中各个消息类型的第一唤醒次数,根据所述第一唤醒次数确定异常消息类型。When the abnormal wake-up source is Modem wake-up, the first wake-up times of each message type in Modem wake-up are obtained, and the abnormal message type is determined according to the first wake-up times.
一种信息处理装置,包括:An information processing device, comprising:
第一获取模块,用于若移动终端由灭屏状态切换到亮屏状态且所述移动终端的灭屏时长超过第一时长,获取所述移动终端在灭屏期间的标准电量和耗电电量;The first acquisition 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;
第二获取模块,用于若根据所述标准电量和耗电电量检测到所述移动终端耗电异常,且根据移动终端AP子系统的唤醒周期检测到所述移动终端AP子系统唤醒异常,获取所述移动终端AP子系统的异常唤醒源;The second acquisition module is used to obtain the abnormal power consumption of the mobile terminal if it detects the abnormal power consumption of the mobile terminal according to the standard power and the power consumption, and detects the abnormal wake-up of the AP subsystem of the mobile terminal according to the wake-up period of the AP subsystem of the mobile terminal, and acquires The abnormal wake-up source of the AP subsystem of the mobile terminal;
确定模块,用于当所述异常唤醒源为Modem唤醒时,获取Modem唤醒中各个消息类型的第一唤醒次数,根据所述第一唤醒次数确定异常消息类型。A determining module, configured to obtain the first wake-up times of each message type in Modem wake-up when the abnormal wake-up source is Modem wake-up, and determine the abnormal message type according to the first wake-up times.
一种移动终端,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上所述的方法的步骤。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 implemented.
本申请中,在检测到移动终端AP子系统唤醒异常且异常唤醒源为Modem唤醒时,获取Modem唤醒中各个消息类型的第一唤醒次数,根据各个消息类型的第一唤醒次数确定异常消息类型。通过将检测异常的参数量化,可快速检测出移动终端耗电异常时异常唤醒源中异常唤醒消息类型,提高了检测的效率。In the present application, when an abnormal wake-up of the AP subsystem of the mobile terminal is detected and the source of the abnormal wake-up is Modem wake-up, the first wake-up times of each message type in the Modem wake-up are obtained, and the abnormal message type is determined according to the first wake-up times of each message type. By quantifying the abnormal detection parameters, the abnormal wake-up message type in the abnormal wake-up source when the power consumption of the mobile terminal is abnormal can be quickly detected, and the detection efficiency is improved.
附图说明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 flow chart of an information processing method in an embodiment;
图2为另一个实施例中一种信息处理方法的流程图;Fig. 2 is a flow chart of an information processing method in another 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 structural block diagram of an information processing device in another embodiment;
图9为一个实施例中移动终端的内部结构示意图;FIG. 9 is a schematic diagram of the internal structure of a mobile terminal in an embodiment;
图10为与本申请实施例提供的移动终端相关的手机的部分结构的框图。FIG. 10 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 flowchart of an information processing method in an embodiment. As shown in Fig. 1, an information processing method includes:
步骤102,若移动终端由灭屏状态切换到亮屏状态且移动终端的灭屏时长超过第一时长,获取移动终端在灭屏期间的标准电量和耗电电量。Step 102, 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+mWi fiDelta+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, and the above standard list is the power consumption per unit time corresponding to each state of the mobile terminal in the standby state. For example, it may include: the power corresponding to a single SIM card, the power corresponding to a dual SIM card, the power corresponding to turning on Wi-Fi but not connected, the power corresponding to turning on Bluetooth and not connecting, the power corresponding to connecting Wi-Fi, and the power corresponding to connecting Bluetooth power etc. The mobile terminal can match each state of the mobile terminal during the off-screen period with the states in the standard list, and obtain the power consumption corresponding to the successful matching state and the cumulative value of the power consumption corresponding to the successful matching state. The above cumulative value is The standard electric power, the product of the standard electric power and the time when the screen is off is the standard electric power. The above standard electric power is TargetCurrent, TargetCurrent=mBaseCurrent+mSingleSimCardDelta+mDoubleSimCardDelta+mWi fiDelta+mNetworkDelta+mBluetoothDelta+offset. The above mBaseCurrent is the power consumption of the mobile terminal system per unit time, which can be 3.9mA/h; when the mobile terminal inserts a single SIM card, the power consumption per unit time mSingleSimCardDelta is 3mA/h, otherwise it is 0; when the mobile terminal is inserted The power consumption per unit time mDoubleSimCardDelta is 6mA/h when the dual SIM card is used, otherwise it is 0; when the mobile terminal turns on Wi-Fi, the power consumption per unit time mWifiDelta is 6mA/h, otherwise it is 0; when the mobile terminal turns on Bluetooth The power consumption mBluetoothDelta per unit time is 2mA/h, otherwise it is 0; offset indicates other types of power consumption, which can be 10mA/h.
步骤104,若根据标准电量和耗电电量检测到移动终端耗电异常,且根据移动终端AP子系统的唤醒周期检测到移动终端AP子系统唤醒异常,获取移动终端AP子系统的异常唤醒源。Step 104, if abnormal power consumption of the mobile terminal is detected according to the standard power and power consumption, and abnormal wake-up of the AP subsystem of the mobile terminal is detected according to the wake-up cycle of the AP subsystem of the mobile terminal, obtain an abnormal wake-up source of the AP subsystem of the mobile terminal.
移动终端可将标准电量与耗电电量进行比较,检测移动终端是否耗电异常。其中,移动终端可直接将标准电量与耗电电量进行比较,若检测到耗电电量大于标准电量,表示移动终端在灭屏期间消耗的电量较多,即移动终端在灭屏期间耗电异常。移动终端也可根据标准电量和灭屏时长获取标准电功率,根据耗电电量和灭屏时长获取耗电电功率,再将上述标准电功率和耗电电功率进行比较,若耗电电功率大于标准电功率,则移动终端在灭屏期间耗电异常。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.
在移动终端系统中通常会存在多个子系统,多个子系统之间具备独立运行的能力。多个子系统之间通过协同和交互能够实现移动终端的各项功能。移动终端子系统可包括:AP(Application Processer Sub System,应用处理器子系统)子系统、MPSS(ModemProcesser Sub System,调制解调器处理子系统)子系统、ADSP(Advanced Digital SignalProcessor,高级数字信号处理器)子系统等。其中AP子系统负责运行移动终端操作系统如Android操作系统以实现大部分与用户相关的多媒体任务;MPSS子系统,运行定制的实时操作系统以实现与用户连接相关的功能,例如Wi-Fi、通话等;ADSP子系统负责传感器、音频相关的任务和功能。由于移动终端AP子系统负责运行移动终端操作系统,相较其他移动终端子系统,移动终端AP子系统异常概率较大,在检测到移动终端耗电异常后,可检测移动终端AP子系统是否休眠异常。根据移动终端AP子系统的休眠比可检测上述移动终端AP子系统是否休眠异常。若检测到移动终端AP子系统休眠异常,可获取上述移动终端AP子系统的唤醒周期,根据上述移动终端AP子系统的唤醒周期检测移动终端AP子系统唤醒异常,则可获取上述移动终端AP子系统的异常唤醒源。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. The mobile terminal subsystem may include: AP (Application Processer Sub System, application processor subsystem) subsystem, MPSS (ModemProcesser Sub System, modem processing subsystem) subsystem, ADSP (Advanced Digital SignalProcessor, advanced digital signal processor) subsystem system etc. 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. 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. After detecting the abnormal power consumption of the mobile terminal, it can detect whether the mobile terminal AP subsystem is dormant. abnormal. According to the sleep ratio of the AP subsystem of the mobile terminal, it can be detected whether the AP subsystem of the mobile terminal is sleeping abnormally. If it is detected that the AP subsystem of the mobile terminal is abnormally dormant, the wake-up period of the above-mentioned AP subsystem of the mobile terminal can be obtained. Abnormal wake-up source of the system.
当移动终端中AP子系统处于休眠状态时,移动终端AP子系统可被其他子系统或应用程序唤醒。例如,移动终端AP子系统可被移动终端ADSP子系统唤醒,移动终端AP子系统可被移动终端MPSS子系统唤醒。其中,唤醒移动终端AP子系统的唤醒源可包括:Wi-Fi唤醒、Modem唤醒、ADSP唤醒、Alarm唤醒、SPS唤醒等。其中,Modem唤醒即为移动终端AP子系统可被移动终端MPSS子系统唤醒,ADSP唤醒即为移动终端AP子系统可被移动终端ADSP子系统唤醒。移动终端可根据各个唤醒源在移动终端灭屏期间唤醒移动终端AP子系统的次数确定异常唤醒源,即根据各个唤醒源的第二唤醒次数确定异常唤醒源。When the AP subsystem in the mobile terminal is in a dormant state, the AP subsystem of the mobile terminal can be awakened by other subsystems or application programs. For example, the AP subsystem of the mobile terminal can be awakened by the ADSP subsystem of the mobile terminal, and the AP subsystem of the mobile terminal can be awakened by the MPSS subsystem of the mobile terminal. Wherein, the wakeup source for waking up the AP subsystem of the mobile terminal may include: Wi-Fi wakeup, Modem wakeup, ADSP wakeup, Alarm wakeup, SPS wakeup, and the like. Wherein, the Modem wakeup means that the AP subsystem of the mobile terminal can be woken up by the MPSS subsystem of the mobile terminal, and the ADSP wakeup means that the AP subsystem of the mobile terminal can be woken up by the ADSP subsystem of the mobile terminal. The mobile terminal may determine the abnormal wake-up source according to the number of times each wake-up source wakes up the AP subsystem of the mobile terminal during the screen-off period of the mobile terminal, that is, determine the abnormal wake-up source according to the second wake-up times of each wake-up source.
步骤106,当异常唤醒源为Modem唤醒时,获取Modem唤醒中各个消息类型的第一唤醒次数,根据第一唤醒次数确定异常消息类型。Step 106, when the abnormal wake-up source is Modem wake-up, obtain the first wake-up times of each message type in the Modem wake-up, and determine the abnormal message type according to the first wake-up times.
当根据各个唤醒源的第二唤醒次数确定到异常唤醒源为Modem唤醒时,即移动终端AP子系统异常唤醒源为移动终端MPSS子系统时,可获取Modem唤醒中各个消息类型对应的第一唤醒次数。上述Modem唤醒的消息类型可包括:数据消息、控制消息和日志消息。上述数据消息是指移动终端MPSS子系统因为应用程序事件或消息需要将移动终端AP子系统唤醒,上述控制消息是指移动终端MPSS子系统因为移动终端与基站交互产生的事件或消息需要将移动终端AP子系统唤醒。其中,上述Modem唤醒的消息类型各自对应有唤醒ID,例如数据消息对应的唤醒ID为DATA_WS,控制消息对应的唤醒ID为CTRL_WS,日志消息对应的唤醒ID为LOG_WS。在移动终端AP子系统被移动终端MPSS子系统唤醒时,可通过唤醒ID区分消息类型。移动终端可统计各个消息类型对应的第一唤醒次数,即各个消息类型在移动终端灭屏期间通过移动终端MPSS子系统唤醒移动终端AP子系统的次数。根据各个消息类型对应的第一唤醒次数可确定异常消息类型,可选地,可选取第一唤醒次数最高的消息类型为异常消息类型。例如,在移动终端灭屏期间,数据消息唤醒次数为150,控制消息唤醒次数为100,日志消息唤醒为37,则在移动终端灭屏期间,Modem唤醒中数据消息唤醒次数最多,则异常消息类型为数据消息。When the abnormal wake-up source is determined to be Modem wake-up according to the second wake-up times of each wake-up source, that is, when the abnormal wake-up source of the mobile terminal AP subsystem is the mobile terminal MPSS subsystem, the first wake-up corresponding to each message type in the Modem wake-up can be obtained frequency. The aforementioned message types for Modem wakeup may include: data messages, control messages and log messages. The above data message means that the MPSS subsystem of the mobile terminal needs to wake up the AP subsystem of the mobile terminal due to an application program event or message. The AP subsystem wakes up. Wherein, the above-mentioned Modem wake-up message types correspond to wake-up IDs, for example, the wake-up ID corresponding to the data message is DATA_WS, the wake-up ID corresponding to the control message is CTRL_WS, and the wake-up ID corresponding to the log message is LOG_WS. When the AP subsystem of the mobile terminal is awakened by the MPSS subsystem of the mobile terminal, the message type can be distinguished by the wake-up ID. The mobile terminal can count the number of first wake-ups corresponding to each message type, that is, the number of times each message type wakes up the AP subsystem of the mobile terminal through the MPSS subsystem of the mobile terminal during the screen-off period of the mobile terminal. The abnormal message type can be determined according to the first wake-up times corresponding to each message type, and optionally, the message type with the highest first wake-up times can be selected as the abnormal message type. For example, when the screen of the mobile terminal is off, the number of wake-ups for data messages is 150, the number of wake-ups for control messages is 100, and the number of wake-ups for log messages is 37. During the period when the screen of the mobile terminal is off, the number of wake-ups for data messages among Modem wake-ups is the largest, and the abnormal message type for data messages.
移动终端还可对控制消息和数据消息进行分类。可选地,当异常消息类型为控制消息时,移动终端中Telephony模块可对控制消息按照类型进行分类。其中不同类型的控制消息有不同的标识,例如CTRL_ID。当异常消息类型为数据消息时,可按照应用程序标识对数据消息进行分类。The mobile terminal can also classify control messages and data messages. Optionally, when the type of the abnormal message is a control message, the Telephony module in the mobile terminal may classify the control messages according to types. Different types of control messages have different identifiers, such as CTRL_ID. When the exception message type is a data message, the data message can be classified according to the application ID.
通常情况下,在移动终端灭屏期间存在异常耗电,且耗电原因为移动终端子系统被唤醒时,若要确定异常唤醒源,异常唤醒源中唤醒消息类型时,需要技术人员对移动终端日志进行定位分析,检测效率较低。本申请实施例中方法,在检测到移动终端AP子系统唤醒异常且异常唤醒源为Modem唤醒时,获取Modem唤醒中各个消息类型的第一唤醒次数,根据各个消息类型的第一唤醒次数确定异常消息类型。通过将检测异常的参数量化,可快速检测出移动终端耗电异常时异常唤醒源中异常唤醒消息类型,提高了检测的效率。Under normal circumstances, when there is abnormal power consumption during the screen-off period of the mobile terminal, and the reason for the power consumption is that the mobile terminal subsystem is woken up, to determine the source of the abnormal wake-up and the type of wake-up message in the abnormal wake-up source, technicians need to check the mobile terminal Logs are used for location analysis, and the detection efficiency is low. In the method of the embodiment of the present application, when the abnormal wake-up of the AP subsystem of the mobile terminal is detected and the abnormal wake-up source is Modem wake-up, the first wake-up times of each message type in the Modem wake-up are obtained, and the abnormality is determined according to the first wake-up times of each message type message type. By quantifying the abnormal detection parameters, the abnormal wake-up message type in the abnormal wake-up source when the power consumption of the mobile terminal is abnormal can be quickly detected, and the detection efficiency is improved.
在一个实施例中,根据标准电量和耗电电量检测到移动终端耗电异常的检测方式包括:检测耗电电量是否大于标准电量,若耗电电量大于标准电量,则检测到耗电异常;或根据耗电电量和灭屏时长获取耗电电功率,根据标准电量和灭屏时长获取标准电功率,检测耗电电功率是否大于标准电功率,若耗电电功率大于标准电功率,则检测到耗电异常。In one embodiment, the detection method for detecting abnormal power consumption of the mobile terminal according to the standard power and power consumption includes: detecting 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; or The power consumption is obtained according to the power consumption and the screen-off time, and the standard power is obtained according to the standard power and the screen-off time, and whether the power consumption is greater than the standard power is detected. 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.
在一个实施例中,在根据移动终端AP子系统的唤醒周期检测到移动终端AP子系统唤醒异常之前,上述方法还包括:根据移动终端AP子系统的休眠比检测移动终端AP子系统是否休眠异常;若检测到休眠异常,获取移动终端AP子系统的唤醒周期,根据唤醒周期确定移动终端AP子系统唤醒异常。In one embodiment, before detecting abnormal wake-up of the AP subsystem of the mobile terminal according to the wake-up cycle of the AP subsystem of the mobile terminal, the above method further includes: detecting whether the AP subsystem of the mobile terminal is abnormally asleep according to the sleep ratio of the AP subsystem of the mobile terminal ; If a dormancy abnormality is detected, obtain the wake-up period of the AP subsystem of the mobile terminal, and determine the abnormal wake-up of the AP subsystem of the mobile terminal according to the wake-up period.
检测移动终端AP子系统是否休眠异常的方法包括:获取移动终端AP子系统的休眠比和对应的比较值。上述比较值可包括正常值和异常值,上述正常值大于上述异常值。当移动终端AP子系统的休眠比大于上述正常值时,则移动终端AP子系统的休眠比正常;当移动终端AP子系统的休眠比小于上述异常值时,则移动终端AP子系统的休眠比异常。当移动终端AP子系统的休眠比在上述异常值和正常值之间时,移动终端可获取移动终端AP子系统的第一电功率,根据上述移动终端AP子系统的第一电功率来判定移动终端AP子系统是否休眠异常。第一电功率Power_AP_runtime_avg=(DeltaBC-screenoffDuration*TargetCurrent)/(screenoffDur ation*(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子系统休眠正常时,再检测移动终端MPSS子系统是否休眠异常。上述设定功率值可根据移动终端系统版本、硬件状态等来进行设置,例如500mA/h。The method for detecting whether the AP subsystem of the mobile terminal is sleeping abnormally includes: acquiring 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 first electric power of the AP subsystem of the mobile terminal, and determine the AP of the mobile terminal according to the first electric power of the AP subsystem of the mobile terminal. Whether the subsystem sleeps abnormally. First 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 detects that the AP subsystem of the mobile terminal is sleeping normally, then detect whether the MPSS 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.
在检测到移动终端AP子系统休眠异常时,可进一步获取移动终端AP子系统的唤醒周期,根据移动终端AP子系统的唤醒周期检测移动终端AP子系统是否唤醒异常。上述移动终端AP子系统的唤醒周期是指移动终端AP子系统平均两次被唤醒之间的时间间隔。例如,移动终端AP子系统的唤醒周期为2分钟/次,则表示移动终端AP子系统每隔2分钟被唤醒一次。其中,获取移动终端AP子系统的唤醒周期的方法包括:在移动终端灭屏期间,统计移动终端AP子系统被唤醒的次数,在移动终端亮屏时,将统计的次数清零,在移动终端下次灭屏时重新统计上述移动终端AP子系统被唤醒的次数。上述移动终端的灭屏时长与移动终端AP子系统被唤醒的次数的比值即为移动终端AP子系统的唤醒周期。例如,移动终端可通过resume_count统计移动终端AP子系统被唤醒的次数,每当移动终端AP子系统被唤醒时,上述resume_count的计数加1,在移动终端灭屏期间,上述resume_count的值即为移动终端AP子系统在移动终端灭屏期间被唤醒的次数,当移动终端亮屏时,再将上述resume_count的值清零。将移动终端灭屏时长设定为h1,则唤醒周期为h1/resume_count。When the abnormal sleep of the AP subsystem of the mobile terminal is detected, the wake-up period of the AP subsystem of the mobile terminal can be further obtained, and whether the AP subsystem of the mobile terminal is abnormally woken up is detected according to the wake-up period of the AP subsystem of the mobile terminal. The aforementioned wake-up period of the AP subsystem of the mobile terminal refers to the time interval between two wake-ups of the AP subsystem of the mobile terminal on average. For example, if the wake-up period of the AP subsystem of the mobile terminal is 2 minutes/time, it means that the AP subsystem of the mobile terminal is woken up every 2 minutes. Wherein, the method for obtaining the wake-up period of the mobile terminal AP subsystem includes: during the period when the mobile terminal is off the screen, counting the number of times the mobile terminal AP subsystem is woken up, and when the mobile terminal is on the screen, clearing the counted times to zero. When the screen is off next time, the number of wake-up times of the above-mentioned mobile terminal AP subsystem is counted again. The ratio of the screen-off duration of the mobile terminal to the number of times the AP subsystem of the mobile terminal is woken up is the wakeup period of the AP subsystem of the mobile terminal. For example, the mobile terminal can use resume_count to count the number of wake-ups of the AP subsystem of the mobile terminal. Whenever the AP subsystem of the mobile terminal is woken up, the count of the above resume_count is increased by 1. During the period when the screen of the mobile terminal is off, the value of the above resume_count is the mobile The number of times the AP subsystem of the terminal is woken up while the screen of the mobile terminal is off. When the screen of the mobile terminal is on, the above resume_count value is reset to zero. If the off-screen duration of the mobile terminal is set to h1, the wake-up period is h1/resume_count.
在获取到上述移动终端AP子系统的唤醒周期后,可根据上述移动终端AP子系统的唤醒周期检测上述移动终端AP子系统是否存在唤醒异常。可选地,可设定移动终端AP子系统的唤醒周期对应的第一阈值,当移动终端AP子系统的唤醒周期低于上述第一阈值时,判定移动终端AP子系统唤醒异常。例如,移动终端AP子系统的唤醒周期对应的第一阈值为2分钟/次,当移动终端AP子系统的唤醒周期低于2分钟/次时,则表示移动终端AP子系统平均两次被唤醒之间的时间间隔低于2分钟,即移动终端AP子系统被频繁唤醒,判定移动终端AP子系统唤醒异常。上述第一阈值可为用户设定的值,也可为移动终端侧根据统计的唤醒周期数据设定的值。After the wake-up period of the AP subsystem of the mobile terminal is acquired, it may be detected whether the AP subsystem of the mobile terminal has a wake-up abnormality according to the wake-up period of the AP subsystem of the mobile terminal. Optionally, a first threshold corresponding to the wake-up period of the AP subsystem of the mobile terminal may be set, and when the wake-up period of the AP subsystem of the mobile terminal is lower than the above-mentioned first threshold, it is determined that the AP subsystem of the mobile terminal wakes up abnormally. For example, the first threshold corresponding to the wake-up cycle of the AP subsystem of the mobile terminal is 2 minutes/time. When the wake-up cycle of the AP subsystem of the mobile terminal is lower than 2 minutes/time, it means that the AP subsystem of the mobile terminal is woken up twice on average. If the time interval between them is less than 2 minutes, that is, the AP subsystem of the mobile terminal is frequently woken up, it is determined that the AP subsystem of the mobile terminal wakes up abnormally. The above-mentioned first threshold may be a value set by the user, or may be a value set by the mobile terminal side according to the statistics of wake-up cycle data.
在一个实施例中,获取移动终端AP子系统的异常唤醒源包括:获取移动终端AP子系统中各个唤醒源的第二唤醒次数,根据第二唤醒次数确定移动终端AP子系统的异常唤醒源。In one embodiment, acquiring the abnormal wake-up source of the AP subsystem of the mobile terminal includes: acquiring the second wake-up times of each wake-up source in the AP subsystem of the mobile terminal, and determining the abnormal wake-up source of the AP subsystem of the mobile terminal according to the second wake-up times.
在检测到移动终端AP子系统唤醒异常后,可获取移动终端AP子系统中唤醒源的第二唤醒次数,上述第二唤醒次数为各个子系统在移动终端灭屏期间唤醒移动终端AP子系统的次数。当移动终端AP子系统进入休眠状态时,移动终端中多个唤醒源可唤醒移动终端AP子系统,上述唤醒源可包括:Wi-Fi唤醒、Modem唤醒、ADSP唤醒、Alarm唤醒和SPS唤醒等。上述Modem唤醒即为移动终端P子系统被移动终端MPSS子系统唤醒,上述ADSP唤醒即为移动终端AP子系统被移动终端ADSP子系统唤醒,上述Alarm唤醒即为移动终端AP子系统被移动终端中内核层Alarm唤醒或被移动终端中框架层Alarm唤醒。在获取移动终端AP子系统中唤醒源的第二唤醒次数时,可统计移动终端AP子系统中全部唤醒源的第二唤醒次数,也可统计移动终端AP子系统中部分唤醒源的第二唤醒次数。可选地,可统计移动终端AP子系统中预设唤醒源的第二唤醒次数,例如统计移动终端AP子系统中Wi-Fi唤醒、Modem唤醒、ADSP唤醒和Alarm唤醒的第二唤醒次数。其中,统计移动终端AP子系统中唤醒源的第二唤醒次数包括:在移动终端AP子系统被唤醒时,获取唤醒移动终端AP子系统对应的中断编号,当上述终端编号与移动终端AP子系统的唤醒源的中断编号匹配时,则将上述唤醒源的第二唤醒次数加1,通过统计可获取移动终端灭屏期间各个唤醒源的第二唤醒次数。After detecting the abnormal wake-up of the AP subsystem of the mobile terminal, the second wake-up times of the wake-up source in the AP subsystem of the mobile terminal can be obtained. frequency. When the AP subsystem of the mobile terminal enters the dormant state, multiple wake-up sources in the mobile terminal can wake up the AP subsystem of the mobile terminal. The above-mentioned wake-up sources may include: Wi-Fi wake-up, Modem wake-up, ADSP wake-up, Alarm wake-up and SPS wake-up, etc. The aforementioned Modem awakening means that the mobile terminal P subsystem is awakened by the mobile terminal MPSS subsystem, the aforementioned ADSP awakening means that the mobile terminal AP subsystem is awakened by the mobile terminal ADSP subsystem, and the aforementioned Alarm awakening means that the mobile terminal AP subsystem is awakened by the mobile terminal The kernel layer Alarm wakes up or is woken up by the frame layer Alarm in the mobile terminal. When obtaining the second wake-up times of wake-up sources in the mobile terminal AP subsystem, the second wake-up times of all wake-up sources in the mobile terminal AP subsystem can be counted, and the second wake-up times of some wake-up sources in the mobile terminal AP subsystem can also be counted frequency. Optionally, the second wake-up times of the preset wake-up sources in the AP subsystem of the mobile terminal can be counted, for example, counting the second wake-up times of Wi-Fi wake-up, Modem wake-up, ADSP wake-up and Alarm wake-up in the mobile terminal AP subsystem. Wherein, counting the second wake-up times of the wake-up source in the mobile terminal AP subsystem includes: when the mobile terminal AP subsystem is woken up, obtaining the interrupt number corresponding to the wake-up mobile terminal AP subsystem, when the above-mentioned terminal number is the same as the mobile terminal AP subsystem When the interrupt numbers of the wake-up sources match, the second wake-up times of the above-mentioned wake-up sources are added by 1, and the second wake-up times of each wake-up source during the off-screen period of the mobile terminal can be obtained through statistics.
在获取到移动终端AP子系统中唤醒源的第二唤醒次数后,可根据各个唤醒源的第二唤醒次数确定异常唤醒源。其中,在获取到移动终端AP子系统中唤醒源的第二唤醒次数后,移动终端可将各个唤醒源的第二唤醒次数进行比较,根据各个唤醒源的第二唤醒次数确定异常唤醒源。可选地,移动终端可选取第二唤醒次数大于设定值的唤醒源作为异常唤醒源,移动终端也可将唤醒源按照第二唤醒次数排序,按照排序的序号确定异常唤醒源,例如,将第二唤醒次数最多的唤醒源确定为异常唤醒源。After the second wake-up times of the wake-up sources in the AP subsystem of the mobile terminal are acquired, the abnormal wake-up sources can be determined according to the second wake-up times of each wake-up source. Wherein, after obtaining the second wake-up times of the wake-up sources in the AP subsystem of the mobile terminal, the mobile terminal can compare the second wake-up times of each wake-up source, and determine the abnormal wake-up source according to the second wake-up times of each wake-up source. Optionally, the mobile terminal may select a wake-up source whose second wake-up count is greater than a set value as the abnormal wake-up source, and the mobile terminal may also sort the wake-up sources according to the second wake-up count, and determine the abnormal wake-up source according to the sorted sequence number, for example, The wakeup source with the second highest number of wakeups is determined as the abnormal wakeup source.
本申请实施例中方法,根据各个唤醒源唤醒移动终端AP子系统的次数来确定异常唤醒源,可快速检测出异常唤醒源信息,提高了检测异常唤醒源的效率。The method in the embodiment of the present application determines the abnormal wake-up source according to the number of times each wake-up source wakes up the AP subsystem of the mobile terminal, which can quickly detect the information of the abnormal wake-up source, and improves the efficiency of detecting the abnormal wake-up source.
在一个实施例中,上述方法还包括:In one embodiment, the above method also includes:
步骤108,当Modem唤醒消息类型为数据消息时,根据应用程序标识对数据消息进行分类。Step 108, when the type of the Modem wake-up message is a data message, classify the data message according to the application identifier.
移动终端中电源管理模块可根据唤醒ID来识别Modem唤醒消息类型。当电源管理模块检测到上述Modem唤醒消息类型为数据消息时,可将数据消息的第一唤醒次数加1。电源管理模块还可上报一个事件到流量统计模块。上述流量统计模块可获取在该时间段内各应用程序耗费的流量信息,通过上述各应用程序耗费的流量信息可确定上述数据消息对应的应用程序,获取上述应用程序的应用程序标识。上述通过上述各应用程序耗费的流量信息可确定上述数据消息对应的应用程序:当应用程序事件唤醒移动终端AP子系统时,应用程序因数据传输耗费的流量较大,则当前耗电流量最高的应用程序即为数据消息对应的应用程序。移动终端可统计各个应用程序标识对应的数据消息。The power management module in the mobile terminal can identify the Modem wake-up message type according to the wake-up ID. When the power management module detects that the modem wake-up message type is a data message, it may add 1 to the first wake-up count of the data message. The power management module can also report an event to the traffic statistics module. The above-mentioned traffic statistics module can obtain the traffic information consumed by each application program within the time period, through the traffic information consumed by each application program, the application program corresponding to the above-mentioned data message can be determined, and the application program identification of the above-mentioned application program can be obtained. The application program corresponding to the above data message can be determined by the flow information consumed by the above-mentioned application programs: when the application program event wakes up the AP subsystem of the mobile terminal, the application program consumes a large amount of traffic due to data transmission, and the application program with the highest current consumption The application program is the application program corresponding to the data message. The mobile terminal can count data messages corresponding to each application identifier.
本申请实施例中方法,通过对数据信息按应用程序标识进行分类,可根据各个应用程序标识对应的数据信息的数量确定异常应用程序,可快速的排查移动终端中异常应用程序,有利于检测出移动终端中安全隐患,对异常应用程序进行处理。In the method of the embodiment of the present application, by classifying the data information according to the application program identification, the abnormal application program can be determined according to the number of data information corresponding to each application program identification, and the abnormal application program in the mobile terminal can be quickly checked, which is beneficial to the detection Potential safety hazards in mobile terminals, handling abnormal applications.
在一个实施例中,上述方法还包括:In one embodiment, the above method also includes:
步骤110,获取异常唤醒源的信息和异常消息类型的信息,将异常唤醒源的信息和异常消息类型的信息上传服务器。Step 110, acquiring the information of the abnormal wake-up source and the information of the abnormal message type, and uploading the information of the abnormal wake-up source and the information of the abnormal message type to the server.
移动终端在检测到上述异常唤醒源后,可获取上述异常唤醒源的信息以及异常消息类型的信息。上述异常唤醒源的信息包括:检测到异常唤醒源的时刻、检测到异常唤醒源的次数、异常唤醒源的类型,异常唤醒源对应的消息类型以及异常消息类型。其中,上述异常唤醒源的类型可包括:Modem唤醒、ADSP唤醒、Wi-Fi唤醒等。移动终端可将上述检测到的异常唤醒源的信息写入移动终端日志,并将上述移动终端日志上传到服务器。可选地,移动终端可将上述日志按照设定的时间间隔上传到服务器,移动终端也可根据接收到的用户指令将上述日志上传到服务器。服务器在接收到移动终端上传的日志后,可解析并获取上述日志中异常唤醒源信息,根据获取到的异常唤醒源信息进行统计分析,得到针对上述异常唤醒源信息的优化策略。上述优化策略可包括:将异常唤醒源中消息对齐唤醒等。服务器可将上述优化策略返回给移动终端,移动终端在接收到上述优化策略后,解析并获取上述优化策略中信息,根据上述优化策略中信息对移动终端进行优化处理。可选地,移动终端和服务器之间通信时,可对传输的数据进行加密处理,用以提高数据安全性。After the mobile terminal detects the above-mentioned abnormal wake-up source, it can acquire the information of the above-mentioned abnormal wake-up source and the information of the type of the abnormal message. The above-mentioned information of the abnormal wake-up source includes: the time when the abnormal wake-up source is detected, the number of times the abnormal wake-up source is detected, the type of the abnormal wake-up source, the message type corresponding to the abnormal wake-up source, and the type of the abnormal message. Wherein, the above-mentioned types of abnormal wake-up sources may include: Modem wake-up, ADSP wake-up, Wi-Fi wake-up, and the like. The mobile terminal may write the information of the detected abnormal wake-up source into the mobile terminal log, and upload the above mobile terminal log to the server. Optionally, the mobile terminal may upload the above log to the server at a set time interval, or the mobile terminal may upload the above log to the server according to the received user instruction. After receiving the log uploaded by the mobile terminal, the server can analyze and obtain the abnormal wakeup source information in the above log, perform statistical analysis according to the acquired abnormal wakeup source information, and obtain an optimization strategy for the above abnormal wakeup source information. The above-mentioned optimization strategy may include: aligning and waking up messages in abnormal wakeup sources, etc. The server may return the above optimization strategy to the mobile terminal. After receiving the above optimization strategy, the mobile terminal parses and obtains the information in the above optimization strategy, and performs optimization processing on the mobile terminal according to the information in the above optimization strategy. Optionally, when communicating between the mobile terminal and the server, the transmitted data may be encrypted to improve data security.
本申请实施例中方法,移动终端将异常信息上传到服务器,接收服务器返回的优化策略,并根据上述优化策略对移动终端进行优化处理,即移动终端在检测到异常后可自调整处理,延长了移动终端的使用寿命。In the method of the embodiment of this application, the mobile terminal uploads the abnormality information to the server, receives the optimization strategy returned by the server, and performs optimization processing on the mobile terminal according to the above optimization strategy, that is, the mobile terminal can self-adjust the processing after detecting the abnormality, which extends the Lifespan of the mobile terminal.
在一个实施例中,上述方法还包括:In one embodiment, the above method also includes:
步骤112,根据检测到异常唤醒源的频次调整向服务器上报的时间间隔。Step 112, adjusting the time interval for reporting to the server according to the frequency of detecting abnormal wake-up sources.
每当移动终端灭屏时长超过第一时长时,移动终端均会检测在灭屏期间是否耗电异常。其中,移动终端可统计记录到各个异常唤醒源的次数以及检测到各个异常唤醒源的频次。上述频次即为单位时间内检测到异常唤醒源的次数,例如每1天检测到异常唤醒源的次数。当上述异常唤醒源的频次越高时,表示移动终端检测到异常唤醒源的次数越多,即移动终端出现异常的次数越多。可选地,移动终端向服务器上报异常唤醒源的信息的时间间隔与检测到异常唤醒源的信息的频次成反比,当移动终端检测到上述异常唤醒源的信息的频次越高时,移动终端向服务器上报异常唤醒源的信息的时间间隔越短,即移动终端出现异常的频次越高时,移动终端向服务器上报异常唤醒源的信息的时间间隔越短。Whenever the screen-off duration of the mobile terminal exceeds the first duration, the mobile terminal will detect whether power consumption is abnormal during the screen-off period. Wherein, the mobile terminal may count and record the number of times of each abnormal wakeup source and the frequency of detection of each abnormal wakeup source. The frequency above is the number of times the abnormal wakeup source is detected per unit time, for example, the number of times the abnormal wakeup source is detected per day. When the frequency of the abnormal wake-up source is higher, it means that the mobile terminal detects more times of the abnormal wake-up source, that is, the mobile terminal has more abnormal wake-up times. Optionally, the time interval for the mobile terminal to report the information of the abnormal wake-up source to the server is inversely proportional to the frequency of detecting the information of the abnormal wake-up source. The shorter the time interval for the server to report the information of the abnormal wakeup source, that is, the higher the frequency of abnormalities in the mobile terminal, the shorter the time interval for the mobile terminal to report the information of the abnormal wakeup source to the server.
本申请实施例中方法,可根据检测到异常唤醒源的信息的频次来调整向服务器上报异常唤醒源信息的时间间隔,有利于根据异常唤醒源的信息快速排查和发现移动终端的安全隐患。The method in the embodiment of the present application can adjust the time interval for reporting the information of the abnormal wake-up source to the server according to the frequency of detecting the information of the abnormal wake-up source, which is beneficial to quickly check and discover potential safety hazards of the mobile terminal according to the information of the abnormal wake-up source.
在一个实施例中,一种信息处理方法,包括: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)若根据标准电量和耗电电量检测到移动终端耗电异常,且根据移动终端AP子系统的唤醒周期检测到移动终端AP子系统唤醒异常,获取移动终端AP子系统的异常唤醒源。(2) If the abnormal power consumption of the mobile terminal is detected according to the standard power and power consumption, and the abnormal wake-up of the AP subsystem of the mobile terminal is detected according to the wake-up cycle of the AP subsystem of the mobile terminal, the abnormal wake-up source of the AP subsystem of the mobile terminal is obtained.
(3)当异常唤醒源为Modem唤醒时,获取Modem唤醒中各个消息类型的第一唤醒次数,根据第一唤醒次数确定异常消息类型。(3) When the abnormal wake-up source is Modem wake-up, obtain the first wake-up times of each message type in Modem wake-up, and determine the abnormal message type according to the first wake-up times.
在一个实施例中,根据标准电量和耗电电量检测到移动终端耗电异常的检测方式包括:检测耗电电量是否大于标准电量,若耗电电量大于标准电量,则检测到耗电异常;或根据耗电电量和灭屏时长获取耗电电功率,根据标准电量和灭屏时长获取标准电功率,检测耗电电功率是否大于标准电功率,若耗电电功率大于标准电功率,则检测到耗电异常。In one embodiment, the detection method for detecting abnormal power consumption of the mobile terminal according to the standard power and power consumption includes: detecting 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; or The power consumption is obtained according to the power consumption and the screen-off time, and the standard power is obtained according to the standard power and the screen-off time, and whether the power consumption is greater than the standard power is detected. If the power consumption is greater than the standard power, abnormal power consumption is detected.
在一个实施例中,在根据移动终端AP子系统的唤醒周期检测到移动终端AP子系统唤醒异常之前,上述方法还包括:根据移动终端AP子系统的休眠比检测移动终端AP子系统是否休眠异常;若检测到休眠异常,获取移动终端AP子系统的唤醒周期,根据唤醒周期确定移动终端AP子系统唤醒异常。In one embodiment, before detecting abnormal wake-up of the AP subsystem of the mobile terminal according to the wake-up cycle of the AP subsystem of the mobile terminal, the above method further includes: detecting whether the AP subsystem of the mobile terminal is abnormally asleep according to the sleep ratio of the AP subsystem of the mobile terminal ; If a dormancy abnormality is detected, obtain the wake-up period of the AP subsystem of the mobile terminal, and determine the abnormal wake-up of the AP subsystem of the mobile terminal according to the wake-up period.
在一个实施例中,获取移动终端AP子系统的异常唤醒源包括:获取移动终端AP子系统中各个唤醒源的第二唤醒次数,根据第二唤醒次数确定移动终端AP子系统的异常唤醒源。In one embodiment, acquiring the abnormal wake-up source of the AP subsystem of the mobile terminal includes: acquiring the second wake-up times of each wake-up source in the AP subsystem of the mobile terminal, and determining the abnormal wake-up source of the AP subsystem of the mobile terminal according to the second wake-up times.
在一个实施例中,上述方法还包括:当Modem唤醒消息类型为数据消息时,根据应用程序标识对数据消息进行分类。In one embodiment, the above method further includes: when the type of the Modem wake-up message is a data message, classifying the data message according to the application identifier.
在一个实施例中,上述方法还包括:获取异常唤醒源的信息和异常消息类型的信息,将异常唤醒源的信息和异常消息类型的信息上传服务器。In one embodiment, the above method further includes: acquiring information about the source of the abnormal wakeup and information about the type of the abnormal message, and uploading the information about the source of the abnormal wakeup and the type of the abnormal message to the server.
在一个实施例中,上述方法还包括:根据检测到异常唤醒源的频次调整向服务器上报的时间间隔。In one embodiment, the above method further includes: adjusting the time interval for reporting to the server according to the frequency of detecting abnormal wake-up sources.
应该理解的是,虽然上述流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,上述流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。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 first 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 time of the mobile terminal exceeds a first duration.
第二获取模块504,用于若根据标准电量和耗电电量检测到移动终端耗电异常,且根据移动终端AP子系统的唤醒周期检测到移动终端AP子系统唤醒异常,获取移动终端AP子系统的异常唤醒源。The second acquisition module 504 is used to obtain the AP subsystem of the mobile terminal if abnormal power consumption of the mobile terminal is detected according to the standard power and power consumption, and the AP subsystem of the mobile terminal is detected to be abnormally awakened according to the wake-up period of the AP subsystem of the mobile terminal. abnormal wake-up source.
确定模块506,用于当异常唤醒源为Modem唤醒时,获取Modem唤醒中各个消息类型的第一唤醒次数,根据第一唤醒次数确定异常消息类型。The determination module 506 is configured to acquire the first wake-up times of each message type in Modem wake-up when the abnormal wake-up source is Modem wake-up, and determine the abnormal message type according to the first wake-up times.
在一个实施例中,根据标准电量和耗电电量检测到移动终端耗电异常的检测方式包括:检测耗电电量是否大于标准电量,若耗电电量大于标准电量,则检测到耗电异常;或根据耗电电量和灭屏时长获取耗电电功率,根据标准电量和灭屏时长获取标准电功率,检测耗电电功率是否大于标准电功率,若耗电电功率大于标准电功率,则检测到耗电异常。In one embodiment, the detection method for detecting abnormal power consumption of the mobile terminal according to the standard power and power consumption includes: detecting 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; or The power consumption is obtained according to the power consumption and the screen-off time, and the standard power is obtained according to the standard power and the screen-off time, and whether the power consumption is greater than the standard power is detected. If the power consumption is greater than the standard power, abnormal power consumption is detected.
在一个实施例中,第二获取模块504获取移动终端AP子系统的异常唤醒源包括:获取移动终端AP子系统中各个唤醒源的第二唤醒次数,根据第二唤醒次数确定移动终端AP子系统的异常唤醒源。In one embodiment, the second acquiring module 504 acquires the abnormal wake-up source of the mobile terminal AP subsystem includes: acquiring the second wake-up times of each wake-up source in the mobile terminal AP subsystem, and determining the mobile terminal AP subsystem according to the second wake-up times abnormal wake-up source.
图6为另一个实施例中信息处理装置的结构框图。如图6所示,一种信息处理装置,包括:第一获取模块602、第二获取模块604、检测模块606和确定模块608。其中,第一获取模块602、第二获取模块604、确定模块608与图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: a first acquiring module 602 , a second acquiring module 604 , a detecting module 606 and a determining module 608 . Wherein, the functions of the first obtaining module 602 , the second obtaining module 604 and the determining module 608 are the same as those of the corresponding modules in FIG. 5 .
检测模块606,用于在根据移动终端AP子系统的唤醒周期检测到移动终端AP子系统唤醒异常之前,根据移动终端AP子系统的休眠比检测移动终端AP子系统是否休眠异常;若检测到休眠异常,获取移动终端AP子系统的唤醒周期,根据唤醒周期确定移动终端AP子系统唤醒异常。The detection module 606 is used to detect whether the AP subsystem of the mobile terminal is sleeping abnormally according to the sleep ratio of the AP subsystem of the mobile terminal before detecting the abnormal wake-up of the AP subsystem of the mobile terminal according to the wake-up period of the AP subsystem of the mobile terminal; Abnormal, obtain the wake-up period of the AP subsystem of the mobile terminal, and determine the abnormal wake-up of the AP subsystem of the mobile terminal according to the wake-up period.
图7为另一个实施例中信息处理装置的结构框图。如图7所示,一种信息处理装置,包括:第一获取模块702、第二获取模块704、确定模块706和处理模块708。其中,第一获取模块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: a first obtaining module 702 , a second obtaining module 704 , a determining module 706 and a processing module 708 . Wherein, the first obtaining module 702 , the second obtaining module 704 , and the determining module 706 have the same functions as the corresponding modules in FIG. 5 .
处理模块708,用于当Modem唤醒消息类型为数据消息时,根据应用程序标识对数据消息进行分类。The processing module 708 is configured to classify the data message according to the application identifier when the type of the Modem wake-up message is a data message.
图8为另一个实施例中信息处理装置的结构框图。如图8所示,一种信息处理装置,包括:第一获取模块802、第二获取模块804、确定模块806和发送模块808。其中,第一获取模块802、第二获取模块804、确定模块806与图5中对应的模块功能相同。Fig. 8 is a structural block diagram of an information processing device in another embodiment. As shown in FIG. 8 , an information processing device includes: a first acquiring module 802 , a second acquiring module 804 , a determining module 806 and a sending module 808 . Wherein, the functions of the first acquiring module 802, the second acquiring module 804, and the determining module 806 are the same as those of the corresponding modules in FIG. 5 .
发送模块808,用于获取异常唤醒源的信息和异常消息类型的信息,将异常唤醒源的信息和异常消息类型的信息上传服务器。The sending module 808 is configured to obtain the information of the abnormal wake-up source and the information of the abnormal message type, and upload the information of the abnormal wake-up source and the information of the abnormal message type to the server.
在一个实施例中,发送模块808还用于根据检测到异常唤醒源的频次调整向服务器上报的时间间隔。In one embodiment, the sending module 808 is further configured to adjust the time interval for reporting to the server according to the frequency of detecting abnormal wake-up sources.
上述信息处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将信息处理装置按照需要划分为不同的模块,以完成上述信息处理装置的全部或部分功能。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 methods described in the embodiments of the present application are realized.
图9为一个实施例中移动终端的内部结构示意图。如图9所示,该移动终端包括通过系统总线连接的处理器、存储器和网络接口。其中,该处理器用于提供计算和控制能力,支撑整个移动移动终端的运行。存储器用于存储数据、程序等,存储器上存储至少一个计算机程序,该计算机程序可被处理器执行,以实现本申请实施例中提供的适用于移动移动终端的信息处理方法。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种信息处理方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。网络接口可以是以太网卡或无线网卡等,用于与外部的移动移动终端进行通信。该移动移动终端可以是手机、平板电脑或者个人数字助理或穿戴式设备等。Fig. 9 is a schematic diagram of the internal structure of a mobile terminal in an embodiment. As shown in FIG. 9, 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.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当计算机可执行指令被一个或多个处理器执行时,使得处理器执行本申请实施例中信息处理方法的步骤。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.
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行本申请实施例中信息处理方法的步骤。A computer program product containing instructions, when running on a computer, causes the computer to execute the steps of the information processing method in the embodiment of the present application.
本申请实施例还提供了一种移动终端。如图10所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以移动终端为手机为例:The embodiment of the present application also provides a mobile terminal. As shown in FIG. 10 , 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 :
图10为与本申请实施例提供的移动终端相关的手机的部分结构的框图。参考图10,手机包括:射频(Radio Frequency,RF)电路1010、存储器1020、输入单元1030、显示单元1040、传感器1050、音频电路1060、无线保真(wireless fidelity,WiFi)模块1070、处理器1080、以及电源10100等部件。本领域技术人员可以理解,图10所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 10 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. 10 , the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (wireless fidelity, WiFi) module 1070, and a processor 1080 , and power supply 10100 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 10 does not constitute a limitation to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
其中,RF电路1010可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器1080处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1010还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(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 1010 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 1080; 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 1010 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.
存储器1020可用于存储软件程序以及模块,处理器1080通过运行存储在存储器1020的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1020可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器1020可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1020 can be used to store software programs and modules, and the processor 1080 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1020 . The memory 1020 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 1020 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.
输入单元1030可用于接收输入的数字或字符信息,以及产生与手机1000的用户设置以及功能控制有关的键信号输入。具体地,输入单元1030可包括触控面板1031以及其他输入设备1032。触控面板1031,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1031上或在触控面板1031附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板1031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1080,并能接收处理器1080发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1031。除了触控面板1031,输入单元1030还可以包括其他输入设备1032。具体地,其他输入设备1032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 1030 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 1000 . Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032 . The touch panel 1031, 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, a stylus, etc. on the touch panel 1031 or near the touch panel 1031 operation), and drive the corresponding connection device according to the preset program. In one embodiment, the touch panel 1031 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 1080, and can receive and execute commands sent by the processor 1080. In addition, the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1031 , the input unit 1030 may also include other input devices 1032 . Specifically, other input devices 1032 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.
显示单元1040可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1040可包括显示面板1041。在一个实施例中,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1041。在一个实施例中,触控面板1031可覆盖显示面板1041,当触控面板1031检测到在其上或附近的触摸操作后,传送给处理器1080以确定触摸事件的类型,随后处理器1080根据触摸事件的类型在显示面板1041上提供相应的视觉输出。虽然在图10中,触控面板1031与显示面板1041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1031与显示面板1041集成而实现手机的输入和输出功能。The display unit 1040 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 1040 may include a display panel 1041 . In one embodiment, the display panel 1041 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 1031 can cover the display panel 1041, and when the touch panel 1031 detects a touch operation on or near it, the touch operation is sent to the processor 1080 to determine the type of the touch event, and then the processor 1080 according to the The type of touch event provides a corresponding visual output on the display panel 1041 . Although in FIG. 10, the touch panel 1031 and the display panel 1041 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 can be integrated to form a mobile phone. Realize the input and output functions of the mobile phone.
手机1000还可包括至少一种传感器1050,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1041和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。Cell phone 1000 may also include at least one sensor 1050, such as a light sensor, a 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 1041 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1041 and/or when the mobile phone is moved to the ear. 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.
音频电路1060、扬声器1061和传声器1062可提供用户与手机之间的音频接口。音频电路1060可将接收到的音频数据转换后的电信号,传输到扬声器1061,由扬声器1061转换为声音信号输出;另一方面,传声器1062将收集的声音信号转换为电信号,由音频电路1060接收后转换为音频数据,再将音频数据输出处理器1080处理后,经RF电路1010可以发送给另一手机,或者将音频数据输出至存储器1020以便后续处理。Audio circuitry 1060, speaker 1061 and microphone 1062 may provide an audio interface between the user and the handset. The audio circuit 1060 can transmit the electrical signal converted from the received audio data to the speaker 1061, and the speaker 1061 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 1080, the audio data can be sent to another mobile phone through the RF circuit 1010, or the audio data can be output to the memory 1020 for subsequent processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块1070可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图10示出了WiFi模块1070,但是可以理解的是,其并不属于手机1000的必须构成,可以根据需要而省略。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 1070, which provides users with wireless broadband Internet access. Although FIG. 10 shows the WiFi module 1070, it can be understood that it is not an essential component of the mobile phone 1000 and can be omitted as required.
处理器1080是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1020内的软件程序和/或模块,以及调用存储在存储器1020内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器1080可包括一个或多个处理单元。在一个实施例中,处理器1080可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1080中。The processor 1080 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 1020, and calling data stored in the memory 1020, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. In one embodiment, processor 1080 may include one or more processing units. In one embodiment, the processor 1080 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, application programs, etc.; the modem processor mainly processes wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1080 .
手机1000还包括给各个部件供电的电源10100(比如电池),优选的,电源可以通过电源管理系统与处理器1080逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone 1000 also includes a power supply 10100 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 1080 through the power management system, so as to realize functions such as managing charging, discharging, and power consumption management through the power management system.
在一个实施例中,手机1000还可以包括摄像头、蓝牙模块等。In one embodiment, the mobile phone 1000 may also include a camera, a Bluetooth module, and the like.
在本申请实施例中,该移动终端所包括的处理器1080执行存储在存储器上的计算机程序时实现本申请实施例中信息处理方法的步骤。In the embodiment of the present application, the processor 1080 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 |
---|---|---|---|
CN201810270530.6A CN108549593A (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 |
---|---|---|---|
CN201810270530.6A CN108549593A (en) | 2018-03-29 | 2018-03-29 | Information processing method, device, mobile terminal and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108549593A true CN108549593A (en) | 2018-09-18 |
Family
ID=63517356
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810270530.6A Pending CN108549593A (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) | CN108549593A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134216A (en) * | 2019-04-25 | 2019-08-16 | 维沃移动通信有限公司 | A power control device, method and terminal equipment |
CN111381896A (en) * | 2019-12-04 | 2020-07-07 | 海信视像科技股份有限公司 | Awakening method of audio equipment and display equipment |
CN113542483A (en) * | 2020-03-30 | 2021-10-22 | Oppo广东移动通信有限公司 | Data transmission method and device, wearable device and storage medium |
CN115442768A (en) * | 2021-06-03 | 2022-12-06 | 广州汽车集团股份有限公司 | Abnormal awakening monitoring method for vehicle-mounted TBOX communication module |
Citations (2)
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 |
-
2018
- 2018-03-29 CN CN201810270530.6A patent/CN108549593A/en active Pending
Patent Citations (2)
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 |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134216A (en) * | 2019-04-25 | 2019-08-16 | 维沃移动通信有限公司 | A power control device, method and terminal equipment |
US12022399B2 (en) | 2019-04-25 | 2024-06-25 | Vivo Mobile Communication Co., Ltd. | Power control device, method, and terminal device |
CN111381896A (en) * | 2019-12-04 | 2020-07-07 | 海信视像科技股份有限公司 | Awakening method of audio equipment and display equipment |
CN113542483A (en) * | 2020-03-30 | 2021-10-22 | Oppo广东移动通信有限公司 | Data transmission method and device, wearable device and storage medium |
CN113542483B (en) * | 2020-03-30 | 2022-03-18 | Oppo广东移动通信有限公司 | Data transmission method and device, wearable device and storage medium |
CN115442768A (en) * | 2021-06-03 | 2022-12-06 | 广州汽车集团股份有限公司 | Abnormal awakening monitoring method for vehicle-mounted TBOX communication module |
CN115442768B (en) * | 2021-06-03 | 2024-08-16 | 广州汽车集团股份有限公司 | A method for monitoring abnormal wake-up of vehicle-mounted TBOX communication module |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
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 | |
CN112703714B (en) | Application processing method and device, computer equipment and computer readable storage medium | |
CN109144232B (en) | Process processing method and device, electronic equipment and computer readable storage medium | |
US9609600B2 (en) | Wireless communication system with enhanced power management | |
CN108549593A (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
CN107168851A (en) | Information processing method, device and mobile terminal | |
CN110032266B (en) | Information processing method, apparatus, computer device, and computer-readable storage medium | |
CN106775685A (en) | Wake up lock method for releasing and device, mobile terminal | |
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 | |
CN110032397A (en) | Application processing method and apparatus, electronic device, computer-readable storage medium | |
CN109992425A (en) | Information processing method, apparatus, computer device, and computer-readable storage medium | |
WO2019128586A1 (en) | Application processing method, electronic device, and computer readable storage medium | |
CN107659718A (en) | Control method, apparatus, mobile terminal and the storage medium of mobile terminal | |
CN108668016B (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 | |
CN106708513A (en) | Application management method and device and mobile terminal | |
CN109992360B (en) | Process processing method and device, electronic equipment and computer readable storage medium | |
CN108646909B (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
CN112542867B (en) | Mobile terminal power supply control method and device, terminal equipment and storage medium | |
CN108566470A (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 | |
CN108566471B (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
CN108572904A (en) | Information processing method, device, mobile terminal 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 |
Application publication date: 20180918 |
|
RJ01 | Rejection of invention patent application after publication |