技术领域technical field
本发明涉及通信技术领域,具体涉及一种通信终端的功耗控制方法、装置及存储介质。The present invention relates to the field of communication technologies, and in particular, to a method, device and storage medium for controlling power consumption of a communication terminal.
背景技术Background technique
目前,随着移动通信技术发展,通信技术进入了万物互联的时代,并推动智能通信终端、智能家居、智能穿戴、智能汽车等应用领域蓬勃发展,尤其是无线通信技术,比如无线保真(WiFi,Wireless Fidelity)技术、ZigBee、蓝牙技术由于其通信覆盖范围大、几乎不受地理环境限制、安装扩容方便的特点,使得集成了相应功能的无线通信发送/接收模块单元在智能通信终端、智能家居、智能穿戴、智能汽车等领域中获得了广泛的应用,目前这些无线通信技术模块存在工作模式单一、功耗高的问题。At present, with the development of mobile communication technology, communication technology has entered the era of the Internet of Everything, and has promoted the vigorous development of application fields such as smart communication terminals, smart homes, smart wear, and smart cars, especially wireless communication technologies, such as wireless fidelity (WiFi) , Wireless Fidelity) technology, ZigBee, Bluetooth technology because of its large communication coverage, almost no geographical environment restrictions, easy installation and expansion, making the wireless communication send/receive module unit integrated with corresponding functions in smart communication terminals, smart homes It has been widely used in fields such as smart wearables, smart wearables, and smart cars. At present, these wireless communication technology modules have the problems of single working mode and high power consumption.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明实施例提供了一种通信终端的功耗控制方法、装置及存储介质。In view of this, embodiments of the present invention provide a method, an apparatus, and a storage medium for power consumption control of a communication terminal.
本发明的技术方案是这样实现的:The technical scheme of the present invention is realized as follows:
本发明实施例提供一种通信终端的功耗控制方法,应用于通信终端,所述通信终端包括用于显示的屏幕,所述方法包括:An embodiment of the present invention provides a method for controlling power consumption of a communication terminal, which is applied to a communication terminal, where the communication terminal includes a screen for display, and the method includes:
获取通信终端的屏幕状态和与所述通信终端的无线通信模块关联的后台应用程序的属性,所述通信终端的无线通信模块的工作模式至少包括第一模式和第二模式;所述属性包括:数量、程序等级、数据传输速率;Obtain the screen state of the communication terminal and the attributes of the background application program associated with the wireless communication module of the communication terminal, where the working modes of the wireless communication module of the communication terminal include at least a first mode and a second mode; the attributes include: Quantity, program level, data transfer rate;
当所述通信终端的屏幕状态和与所述通信终端的无线通信模块关联的后台应用程序的属性中至少之一满足预设条件时,控制所述无线通信模块的工作模式由第一模式切换至第二模式;When at least one of the screen state of the communication terminal and the attribute of the background application program associated with the wireless communication module of the communication terminal satisfies a preset condition, the working mode of the wireless communication module is controlled to be switched from the first mode to second mode;
其中,所述无线通信模块工作在所述第二模式下的功耗小于其工作在所述第一模式下的功耗。Wherein, the power consumption of the wireless communication module operating in the second mode is less than the power consumption of the wireless communication module operating in the first mode.
上述方案中,当所述通信终端的屏幕状态和与所述通信终端的无线通信模块关联的后台应用程序的属性中至少之一满足预设条件时,控制所述无线通信模块的工作模式由第一模式切换至第二模式,包括:In the above solution, when at least one of the screen state of the communication terminal and the attributes of the background application program associated with the wireless communication module of the communication terminal satisfies a preset condition, the working mode of the wireless communication module is controlled from the first Switching from one mode to the second mode includes:
当确定所述终端的屏幕状态为熄屏状态且所述熄屏状态持续预设时长后,控制所述无线通信模块的工作模式由第一模式切换至第二模式。After it is determined that the screen state of the terminal is the screen-off state and the screen-off state continues for a preset period of time, the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode.
上述方案中,当确定所述终端的屏幕状态为熄屏状态且所述熄屏状态持续预设时长后、所述控制所述无线通信模块的工作模式由第一模式切换至第二模式之前,还包括:In the above solution, after it is determined that the screen state of the terminal is the screen-off state and the screen-off state continues for a preset period of time and before the control of the working mode of the wireless communication module is switched from the first mode to the second mode, Also includes:
判断与所述无线通信模块关联的后台应用程序的数量是否大于预设阈值;judging whether the number of background applications associated with the wireless communication module is greater than a preset threshold;
当确定与所述无线通信模块关联的后台应用程序的数量大于预设阈值时,控制所述无线通信模块的工作模式由第一模式切换至第二模式。When it is determined that the number of background applications associated with the wireless communication module is greater than a preset threshold, the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode.
上述方案中,当确定与所述无线通信模块关联的后台应用程序的数量大于预设阈值后、控制所述无线通信模块的工作模式由第一模式切换至第二模式之前,还包括:In the above solution, after it is determined that the number of background applications associated with the wireless communication module is greater than a preset threshold, before controlling the working mode of the wireless communication module to switch from the first mode to the second mode, the method further includes:
判断与所述无线通信模块关联的后台应用程序的数据传输速率是否小于预设速率;judging whether the data transmission rate of the background application program associated with the wireless communication module is less than a preset rate;
当确定与所述无线通信模块关联的后台应用程序的数据传输速率小于预设速率时,控制所述无线通信模块的工作模式由第一模式切换至第二模式。When it is determined that the data transmission rate of the background application program associated with the wireless communication module is less than the preset rate, the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode.
上述方案中,所述方法还包括:In the above scheme, the method also includes:
当确定所述数量小于或等于所述预设阈值时,针对与所述无线通信模块关联的后台应用程序中的每个后台应用程序,确定所述每个后台应用程序相对应的程序等级;When it is determined that the number is less than or equal to the preset threshold, for each background application program in the background application programs associated with the wireless communication module, determine a program level corresponding to each background application program;
当所述程序等级满足预设等级条件时,控制所述无线通信模块的工作模式由第一模式切换至第二模式。When the program level satisfies the preset level condition, the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode.
上述方案中,所述控制所述无线通信模块的工作模式由第一模式切换至第二模式之后,所述方法还包括:In the above solution, after the control of the working mode of the wireless communication module is switched from the first mode to the second mode, the method further includes:
判断与所述无线通信模块关联的后台应用程序是否执行完毕;judging whether the background application program associated with the wireless communication module has been executed;
当确定与所述无线通信模块关联的后台应用程序执行完毕时,控制所述无线通信模块的工作模式由所述第二模式切换至第三模式;When it is determined that the execution of the background application program associated with the wireless communication module is completed, the working mode of the wireless communication module is controlled to be switched from the second mode to the third mode;
其中,所述通信终端的无线通信模块的工作模式还包括第三模式,所述无线通信模块工作在所述第三模式下的功耗小于其工作在所述第二模式下的功耗。Wherein, the working mode of the wireless communication module of the communication terminal further includes a third mode, and the power consumption of the wireless communication module working in the third mode is smaller than the power consumption of the wireless communication module working in the second mode.
上述方案中,所述方法还包括:In the above scheme, the method also includes:
当所述程序等级未满足预设等级条件时,关闭与无线通信模块关联的后台应用程序,控制所述无线通信模块的工作模式由所述第二模式切换至第三模式;When the program level does not meet the preset level condition, close the background application program associated with the wireless communication module, and control the working mode of the wireless communication module to switch from the second mode to the third mode;
其中,所述通信终端的无线通信模块的工作模式还包括第三模式,所述无线通信模块工作在所述第三模式下的功耗小于其工作在所述第二模式下的功耗。Wherein, the working mode of the wireless communication module of the communication terminal further includes a third mode, and the power consumption of the wireless communication module working in the third mode is smaller than the power consumption of the wireless communication module working in the second mode.
本发明实施例提供一种通信终端的功耗控制装置,应用于通信终端,所述装置包括:An embodiment of the present invention provides a power consumption control device for a communication terminal, which is applied to a communication terminal, and the device includes:
获取单元,用于获取通信终端的屏幕状态和与所述通信终端的无线通信模块关联的后台应用程序的属性,所述通信终端的无线通信模块的工作模式至少包括第一模式和第二模式;所述属性包括:数量、程序等级、数据传输速率;an acquisition unit, configured to acquire the screen state of the communication terminal and the attributes of the background application associated with the wireless communication module of the communication terminal, where the working modes of the wireless communication module of the communication terminal at least include a first mode and a second mode; The attributes include: quantity, program level, data transfer rate;
控制单元,用于当所述通信终端的屏幕状态和与所述通信终端的无线通信模块关联的后台应用程序的属性中至少之一满足预设条件时,控制所述无线通信模块的工作模式由第一模式切换至第二模式;其中,所述无线通信模块工作在所述第二模式下的功耗小于其工作在所述第一模式下的功耗。The control unit is configured to control the working mode of the wireless communication module to be controlled by a preset condition when at least one of the screen state of the communication terminal and an attribute of a background application program associated with the wireless communication module of the communication terminal satisfies a preset condition. The first mode is switched to the second mode; wherein, the power consumption of the wireless communication module operating in the second mode is smaller than the power consumption of the wireless communication module operating in the first mode.
本发明实施例提供一种通信终端的功耗控制装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述任一方法的步骤。An embodiment of the present invention provides a power consumption control device for a communication terminal, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements any of the above methods when executing the program A step of.
本发明实施例提供一种计算机存储介质,其上存储有计算机指令,该指令被处理器执行时实现上述任一方法的步骤。Embodiments of the present invention provide a computer storage medium, on which computer instructions are stored, and when the instructions are executed by a processor, implement the steps of any of the foregoing methods.
本发明实施例提供的通信终端的功耗控制方法、装置及存储介质,获取通信终端的屏幕状态和与所述通信终端的无线通信模块关联的后台应用程序的属性,所述通信终端的无线通信模块的工作模式至少包括第一模式和第二模式;所述属性包括:数量、程序等级、数据传输速率;当所述通信终端的屏幕状态和与所述通信终端的无线通信模块关联的后台应用程序的属性中至少之一满足预设条件时,控制所述无线通信模块的工作模式由第一模式切换至第二模式;其中,所述无线通信模块工作在所述第二模式下的功耗小于其工作在所述第一模式下的功耗。采用本发明实施例提供的技术方案,能够当所述通信终端的屏幕状态和与所述通信终端的无线通信模块关联的后台应用程序的属性中至少之一满足预设条件时,控制所述无线通信模块切换至功耗较低的第二模式,如此,能够提高所述无线通信模块的省电性能,取得更好的省电效果。The power consumption control method, device, and storage medium of a communication terminal provided by the embodiments of the present invention acquire the screen state of the communication terminal and the attributes of the background application program associated with the wireless communication module of the communication terminal. The working mode of the module includes at least a first mode and a second mode; the attributes include: quantity, program level, data transmission rate; when the screen state of the communication terminal and the background application associated with the wireless communication module of the communication terminal When at least one of the attributes of the program satisfies a preset condition, control the working mode of the wireless communication module to switch from the first mode to the second mode; wherein, the power consumption of the wireless communication module working in the second mode less than its power consumption in the first mode. By adopting the technical solutions provided by the embodiments of the present invention, when at least one of the screen state of the communication terminal and the attributes of the background application program associated with the wireless communication module of the communication terminal satisfies a preset condition, the wireless communication The communication module switches to the second mode with lower power consumption, so that the power saving performance of the wireless communication module can be improved, and a better power saving effect can be achieved.
附图说明Description of drawings
图1为相关技术中对WiFi模块的工作模式进行配置的实现流程示意图;Fig. 1 is the realization flow schematic diagram that the working mode of WiFi module is configured in the related art;
图2为本发明实施例通信终端的功耗控制方法的实现流程示意图;2 is a schematic flowchart of an implementation of a method for controlling power consumption of a communication terminal according to an embodiment of the present invention;
图3为本发明实施例第一种通信终端的功耗控制方法的具体实现流程示意图;3 is a schematic flowchart of a specific implementation of a first method for controlling power consumption of a communication terminal according to an embodiment of the present invention;
图4为本发明实施例第二种通信终端的功耗控制方法的具体实现流程示意图;4 is a schematic flowchart of a specific implementation of a second method for controlling power consumption of a communication terminal according to an embodiment of the present invention;
图5为本发明实施例第三种通信终端的功耗控制方法的具体实现流程示意图;5 is a schematic flowchart of a specific implementation of a third method for controlling power consumption of a communication terminal according to an embodiment of the present invention;
图6为本发明实施例第四种通信终端的功耗控制方法的具体实现流程示意图;6 is a schematic flowchart of a specific implementation of a fourth method for controlling power consumption of a communication terminal according to an embodiment of the present invention;
图7为本发明实施例通过软件程序实现所述通信终端的功耗控制方法的流程示意图;7 is a schematic flowchart of a method for implementing a power consumption control method of the communication terminal through a software program according to an embodiment of the present invention;
图8为本发明实施三种功耗等级的工作模式示意图;FIG. 8 is a schematic diagram of a working mode of implementing three power consumption levels according to the present invention;
图9为本发明实施例通信终端的功耗控制装置的组成结构示意图一;FIG. 9 is a schematic diagram 1 of the composition structure of a power consumption control apparatus for a communication terminal according to an embodiment of the present invention;
图10为本发明实施例通信终端的功耗控制装置的组成结构示意图二。FIG. 10 is a second schematic diagram of the composition and structure of a power consumption control apparatus for a communication terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
相关技术中,随着移动通信技术发展,通信技术进入了万物互联的时代,并推动智能通信终端、智能家居、智能穿戴、智能汽车等应用领域蓬勃发展,尤其是无线通信技术,比如WiFi技术、ZigBee、蓝牙技术由于其通信覆盖范围大、几乎不受地理环境限制、安装扩容方便的特点,使得集成了相应功能的无线通信发送/接收模块单元在智能通信终端、智能家居、智能穿戴、智能汽车等领域中获得了广泛的应用,目前这些无线通信技术模块存在工作模式单一、功耗高的问题。In related technologies, with the development of mobile communication technology, communication technology has entered the era of the Internet of Everything, and has promoted the vigorous development of application fields such as smart communication terminals, smart homes, smart wear, and smart cars, especially wireless communication technologies, such as WiFi technology, ZigBee and Bluetooth technology have the characteristics of large communication coverage, almost no geographical environment restrictions, and convenient installation and expansion, making the wireless communication sending/receiving module unit integrated with corresponding functions in smart communication terminals, smart homes, smart wear, smart cars. It has been widely used in fields such as wireless communication technology. At present, these wireless communication technology modules have the problems of single working mode and high power consumption.
以WiFi通信模块为例,WiFi通信模块的工作模式是由配置文件中存储的预设参数确定,一旦配置文件中存储的预设参数值在初始化过程中被确定后, WiFi通信模块的工作模式也就确定了,不能够根据通信终端的应用场景的变化而做出调整优化。举例来说,WiFi通信模块可以支持6种工作模式,不同的工作模式的功耗不相同,该WiFi通信模块的工作模式由配置文件中存储的预设参数确定,6种工作模式具体为:完全不省电模式、低功耗开启以及深度休眠关闭模式、深度低功耗开启以及深度休眠关闭模式、低功耗开启以及深度休眠开启模式;深度低功耗开启以及深度休眠开启模式和完全省电模式。在通信终端的待机过程中,预设参数值在初始化过程中一旦被确定,则WiFi通信模块的工作模式也就唯一确定了(比如完全不省电模式),后续不能够根据通信终端的应用场景的变化而做出工作模式调整优化。图1是相关技术中对WiFi通信模块的工作模式进行配置的实现流程示意图,如图1所示,通信终端执行开机命令后,根据配置文件中配置的预设参数确定WiFi通信模块的工作模式,这样,不论通信终端处于亮屏或者熄屏,WiFi通信模块一直处于该工作模式中。如果将WiFi 通信模块的工作模式初始化设置为完全不省电模式,则在用户不使用该通信终端时如凌晨,WiFi模块的待机功耗较高;如果将WiFi模块的初始化工作模式设置为完全省电模式,则在用户正常使用该通信终端的过程中会影响用户体验,如下载慢或者玩游戏卡顿等等;如果将通信WiFi模块的初始工作模式设置为低功耗开启以及深度休眠关闭模式,则不利于检测通信终端的待机功耗,同时在用户不使用该通信终端的过程中会使待机功耗较高。这里,如果需要改变WiFi 通信模块的工作模式,需要通过重新编译版本修改代码才能改变该工作模式。上述方式中无线通信模块只能工作在固定的工作模式,工作模式较单一,无法取得更好的省电效果。Taking the WiFi communication module as an example, the working mode of the WiFi communication module is determined by the preset parameters stored in the configuration file. Once the preset parameter values stored in the configuration file are determined during the initialization process, the working mode of the WiFi communication module is also determined. It is determined that the adjustment and optimization cannot be made according to the change of the application scenario of the communication terminal. For example, the WiFi communication module can support 6 working modes, and the power consumption of different working modes is different. The working mode of the WiFi communication module is determined by the preset parameters stored in the configuration file, and the 6 working modes are: fully No power saving mode, low power on and deep sleep off mode, deep low power on and deep sleep off mode, low power on and deep sleep on mode; deep low power on and deep sleep on mode and full power saving model. In the standby process of the communication terminal, once the preset parameter value is determined during the initialization process, the working mode of the WiFi communication module is uniquely determined (for example, no power saving mode at all), and subsequent application scenarios of the communication terminal cannot be used. The working mode is adjusted and optimized due to changes. FIG. 1 is a schematic diagram of the implementation flow of configuring the working mode of the WiFi communication module in the related art. As shown in FIG. 1 , after the communication terminal executes the power-on command, the working mode of the WiFi communication module is determined according to the preset parameters configured in the configuration file. In this way, regardless of whether the screen of the communication terminal is on or off, the WiFi communication module is always in this working mode. If the initial working mode of the WiFi communication module is set to complete no power saving mode, the standby power consumption of the WiFi module is relatively high when the user does not use the communication terminal, such as in the early morning; if the initial working mode of the WiFi module is set to complete power saving mode In the power mode, the user experience will be affected during the normal use of the communication terminal, such as slow downloads or game freezes, etc.; if the initial working mode of the communication WiFi module is set to low power on and deep sleep off mode , it is not conducive to detecting the standby power consumption of the communication terminal, and at the same time, the standby power consumption will be relatively high when the user does not use the communication terminal. Here, if you need to change the working mode of the WiFi communication module, you need to modify the code by recompiling the version to change the working mode. In the above-mentioned manner, the wireless communication module can only work in a fixed working mode, and the working mode is relatively single, and a better power saving effect cannot be obtained.
基于此,本发明实施例中,获取通信终端的屏幕状态和与所述通信终端的无线通信模块关联的后台应用程序的属性,所述通信终端的无线通信模块的工作模式至少包括第一模式和第二模式;所述属性包括:数量、程序等级、数据传输速率;当所述通信终端的屏幕状态和与所述通信终端的无线通信模块关联的后台应用程序的属性中至少之一满足预设条件时,控制所述无线通信模块的工作模式由第一模式切换至第二模式;其中,所述无线通信模块工作在所述第二模式下的功耗小于其工作在所述第一模式下的功耗。Based on this, in the embodiment of the present invention, the screen state of the communication terminal and the attributes of the background application program associated with the wireless communication module of the communication terminal are acquired, and the working mode of the wireless communication module of the communication terminal includes at least the first mode and The second mode; the attributes include: quantity, program level, data transmission rate; when at least one of the screen state of the communication terminal and the attributes of the background application associated with the wireless communication module of the communication terminal satisfies a preset When the conditions are met, the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode; wherein, the power consumption of the wireless communication module working in the second mode is less than that in the first mode. power consumption.
下面结合附图及具体实施例对本发明作进一步详细的说明。The present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.
本发明实施例提供一种通信终端的功耗控制方法,应用于通信终端,图2 为本发明实施例通信终端的功耗控制方法的实现流程示意图;如图2所示,所述方法包括:An embodiment of the present invention provides a method for controlling power consumption of a communication terminal, which is applied to a communication terminal. FIG. 2 is a schematic flowchart of the implementation of the method for controlling power consumption of a communication terminal according to an embodiment of the present invention; as shown in FIG. 2 , the method includes:
步骤201:获取通信终端的屏幕状态和与所述通信终端的无线通信模块关联的后台应用程序的属性;所述属性包括:数量、程序等级、数据传输速率。Step 201: Acquire the screen state of the communication terminal and the attributes of the background application program associated with the wireless communication module of the communication terminal; the attributes include: quantity, program level, and data transmission rate.
这里,所述通信终端的屏幕状态可以包括亮屏状态、熄屏状态。Here, the screen state of the communication terminal may include a screen-on state and a screen-off state.
这里,所述与通信终端的无线通信模块关联的后台应用程序可以是指使用所述无线通信模块的后台应用程序,如微信程序等等。所述无线通信模块可以包括:WiFi通信模块、ZigBee通信模块、蓝牙通信模块等。Here, the background application program associated with the wireless communication module of the communication terminal may refer to a background application program using the wireless communication module, such as a WeChat program and the like. The wireless communication module may include: a WiFi communication module, a ZigBee communication module, a Bluetooth communication module, and the like.
实际应用时,可以通过所述通信终端的处理器获取所述屏幕状态、所述后台应用程序的属性。In actual application, the screen state and the attributes of the background application may be acquired through the processor of the communication terminal.
举例来说,所述通信终端的处理器可以根据接口函数,获取所述通信终端的屏幕状态、与所述无线通信模块关联的后台应用程序的数量和数据传输速率。所述通信终端的处理器可以根据与所述无线通信模块关联的后台应用程序的数据包的名称,确定与所述无线通信模块关联的后台应用程序的程序等级。For example, the processor of the communication terminal may acquire the screen state of the communication terminal, the number of background application programs associated with the wireless communication module and the data transmission rate according to the interface function. The processor of the communication terminal may determine the program level of the background application program associated with the wireless communication module according to the name of the data package of the background application program associated with the wireless communication module.
步骤202:当所述通信终端的屏幕状态和与所述无线通信模块关联的后台应用程序的属性中至少之一满足预设条件时,控制所述无线通信模块的工作模式由第一模式切换至第二模式。Step 202: When at least one of the screen state of the communication terminal and the attributes of the background application associated with the wireless communication module satisfies a preset condition, control the working mode of the wireless communication module to switch from the first mode to second mode.
其中,所述无线通信模块工作在所述第二模式下的功耗小于其工作在所述第一模式下的功耗。Wherein, the power consumption of the wireless communication module operating in the second mode is less than the power consumption of the wireless communication module operating in the first mode.
这里,控制所述无线通信模块的工作模式由第一模式切换至第二模式,具体可以包括以下几种情况:Here, controlling the working mode of the wireless communication module to switch from the first mode to the second mode may specifically include the following situations:
第一种情况,当所述通信终端的屏幕状态满足预设条件时,可以控制所述无线通信模块的工作模式由第一模式切换至第二模式。In the first case, when the screen state of the communication terminal satisfies the preset condition, the working mode of the wireless communication module can be controlled to switch from the first mode to the second mode.
举例来说,当确定所述终端的屏幕状态为熄屏状态且所述熄屏状态持续预设时长后,控制所述无线通信模块的工作模式由第一模式切换至第二模式。For example, after it is determined that the screen state of the terminal is the screen-off state and the screen-off state continues for a preset period of time, the working mode of the wireless communication module is controlled to switch from the first mode to the second mode.
第二种情况,当所述通信终端的屏幕状态和与所述无线通信模块关联的后台应用程序的数量满足预设条件时,可以控制所述无线通信模块的工作模式由第一模式切换至第二模式。In the second case, when the screen state of the communication terminal and the number of background applications associated with the wireless communication module meet the preset conditions, the working mode of the wireless communication module can be controlled to switch from the first mode to the second mode. Second mode.
举例来说,当确定所述终端的屏幕状态为熄屏状态且所述熄屏状态持续预设时长后,如果与所述无线通信模块关联的后台应用程序的数量大于预设阈值,则控制所述无线通信模块的工作模式由第一模式切换至第二模式。For example, after it is determined that the screen state of the terminal is the screen-off state and the screen-off state continues for a preset period of time, if the number of background applications associated with the wireless communication module is greater than a preset threshold, control all The working mode of the wireless communication module is switched from the first mode to the second mode.
第三种情况,当所述通信终端的屏幕状态和与所述无线通信模块关联的后台应用程序的数量、数据传输速率满足预设条件时,可以控制所述无线通信模块的工作模式由第一模式切换至第二模式。In the third case, when the screen state of the communication terminal, the number of background applications associated with the wireless communication module, and the data transmission rate meet the preset conditions, the working mode of the wireless communication module can be controlled to change from the first The mode switches to the second mode.
举例来说,当确定所述终端的屏幕状态为熄屏状态且所述熄屏状态持续预设时长后,如果与所述无线通信模块关联的后台应用程序的数量大于预设阈值且传输速率小于第一预设速率,则控制所述无线通信模块的工作模式由第一模式切换至第二模式。For example, after it is determined that the screen state of the terminal is the screen-off state and the screen-off state continues for a preset period of time, if the number of background applications associated with the wireless communication module is greater than a preset threshold and the transmission rate is less than If the first preset rate is set, the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode.
第四种情况,当所述通信终端的屏幕状态和与所述无线通信模块关联的后台应用程序的数量、程序等级满足预设条件时,可以控制所述无线通信模块的工作模式由第一模式切换至第二模式。In the fourth case, when the screen state of the communication terminal and the number and program level of the background application programs associated with the wireless communication module meet the preset conditions, the working mode of the wireless communication module can be controlled to change from the first mode to the first mode. Switch to the second mode.
举例来说,当确定所述终端的屏幕状态为熄屏状态且所述熄屏状态持续预设时长后,如果与所述无线通信模块关联的后台应用程序的数量小于预设阈值且与所述无线通信模块关联的后台应用程序的程序等级满足预设条件,则控制所述无线通信模块的工作模式由第一模式切换至第二模式。For example, after it is determined that the screen state of the terminal is the screen-off state and the screen-off state lasts for a preset period of time, if the number of background applications associated with the wireless communication module is less than a preset threshold If the program level of the background application program associated with the wireless communication module satisfies the preset condition, the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode.
这里,在控制所述无线通信模块的工作模式由第一模式切换至第二模式后,还可以控制所述无线通信模块的工作模式由第二模式切换至第三模式。Here, after the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode, the working mode of the wireless communication module may also be controlled to be switched from the second mode to the third mode.
其中,所述第一模式、第二模式、第三模式的不同在于:所述无线通信模块工作在所述第三模式下的功耗小于其工作在所述第二模式下的功耗,所述无线通信模块工作在所述第二模式下的功耗小于其工作在所述第一模式下的功耗。The difference between the first mode, the second mode, and the third mode is that the power consumption of the wireless communication module in the third mode is smaller than the power consumption in the second mode, so The power consumption of the wireless communication module operating in the second mode is smaller than the power consumption of the wireless communication module operating in the first mode.
针对上述第一种情况,实际应用时,在终端的待机过程中,为了提高无线通信模块的省电性能,取得更好的省电效果,可以在终端熄屏一段时长后,控制无线通信模块的工作模式发生切换。For the first case above, in practical application, in order to improve the power saving performance of the wireless communication module and achieve better power saving effect during the standby process of the terminal, you can control the power saving of the wireless communication module after the terminal is off for a period of time. The working mode is switched.
基于此,在一实施例中,所述当所述通信终端的屏幕状态和与所述通信终端的无线通信模块关联的后台应用程序的属性中至少之一满足预设条件时,控制所述无线通信模块的工作模式由第一模式切换至第二模式,包括:当确定所述通信终端的屏幕状态为熄屏状态且所述熄屏状态持续预设时长后,控制所述无线通信模块的工作模式由第一模式切换至第二模式。Based on this, in an embodiment, when at least one of a screen state of the communication terminal and an attribute of a background application associated with a wireless communication module of the communication terminal satisfies a preset condition, control the wireless communication Switching the working mode of the communication module from the first mode to the second mode includes: when it is determined that the screen state of the communication terminal is the screen-off state and the screen-off state continues for a preset period of time, controlling the operation of the wireless communication module The mode is switched from the first mode to the second mode.
这里,这里可以设置第一预设时长和第二预设时长。Here, the first preset duration and the second preset duration can be set here.
具体地,当确定所述通信终端的屏幕状态为熄屏状态且所述熄屏状态持续第一预设时长后,控制所述无线通信模块的工作模式由第一模式切换至第二模式;当确定所述终端的屏幕状态为熄屏状态且所述熄屏状态持续第二预设时长后,控制无线通信模块的工作模式由第二模式切换至第三模式;其中,所述第二预设时长大于所述第一预设时长。Specifically, when it is determined that the screen state of the communication terminal is the screen-off state and the screen-off state lasts for a first preset duration, the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode; when After it is determined that the screen state of the terminal is the screen-off state and the screen-off state lasts for a second preset duration, control the working mode of the wireless communication module to switch from the second mode to the third mode; wherein the second preset The duration is longer than the first preset duration.
举例来说,在用户不使用所述通信终端时,当确定所述通信终端熄屏时长大于1分钟时,控制无线通信模块的工作模式由不休眠模式切换至中度休眠模式;当确定所述通信终端熄屏时长大于2分钟时,控制无线通信模块的工作模式由中度休眠模式切换至深度休眠模式。For example, when the user does not use the communication terminal, when it is determined that the screen-off time of the communication terminal is longer than 1 minute, the working mode of the wireless communication module is controlled to switch from a non-sleep mode to a moderate sleep mode; When the screen of the communication terminal is off for more than 2 minutes, the working mode of the wireless communication module is controlled to be switched from the moderate sleep mode to the deep sleep mode.
这里,所述通信终端工作在深度休眠模式的功耗小于其工作在中度休眠模式的功耗;所述通信终端工作在中度休眠模式的功耗小于其工作在不休眠模式的功耗。Here, the power consumption of the communication terminal working in the deep sleep mode is less than the power consumption of the communication terminal working in the moderate sleep mode; the power consumption of the communication terminal working in the moderate sleep mode is less than the power consumption of the communication terminal working in the non-sleep mode.
针对上述第二种情况,实际应用时,在所述通信终端熄屏一段时长后,如果在所述终端后台运行的应用程序中包含使用所述无线通信模块的后台应用程序,则可以基于使用所述无线通信模块的后台应用程序的数量,控制所述无线通信模块的工作模式由第一模式切换至第二模式。For the second case above, in actual application, after the communication terminal is turned off for a period of time, if the application running in the background of the terminal includes a background application using the wireless communication module, the application can be based on the use of the The number of background applications of the wireless communication module is controlled, and the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode.
基于此,在一实施例中,当确定所述终端的屏幕状态为熄屏状态且所述熄屏状态持续预设时长后、控制所述无线通信模块的工作模式由第一模式切换至第二模式之前,所述方法还包括:判断与所述无线通信模块关联的后台应用程序的数量是否大于预设阈值;当确定与所述无线通信模块关联的后台应用程序的数量大于预设阈值时,控制所述无线通信模块的工作模式由第一模式切换至第二模式。Based on this, in an embodiment, after it is determined that the screen state of the terminal is the screen-off state and the screen-off state continues for a preset period of time, the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode Before the mode, the method further includes: judging whether the number of background applications associated with the wireless communication module is greater than a preset threshold; when it is determined that the number of background applications associated with the wireless communication module is greater than a preset threshold, The working mode of the wireless communication module is controlled to be switched from the first mode to the second mode.
这里,当控制所述无线通信模块的工作模式由第一模式切换至第二模式后,所述方法还可以包括:判断与所述无线通信模块关联的后台应用程序是否执行完毕;当确定与所述无线通信模块关联的后台应用程序执行完毕时,控制所述无线通信模块的工作模式由所述第二模式切换至第三模式;其中,所述通信终端的无线通信模块的工作模式还包括第三模式,所述无线通信模块在所述第三模式下的功耗小于在所述第二模式下的功耗。Here, after controlling the working mode of the wireless communication module to be switched from the first mode to the second mode, the method may further include: judging whether the background application program associated with the wireless communication module has been executed; When the background application program associated with the wireless communication module is executed, the working mode of the wireless communication module is controlled to be switched from the second mode to the third mode; wherein, the working mode of the wireless communication module of the communication terminal further includes the third mode. Three modes, the power consumption of the wireless communication module in the third mode is smaller than the power consumption in the second mode.
举例来说,在用户不使用所述通信终端时,当确定所述通信终端熄屏时长大于1分钟且与所述无线通信模块关联的后台应用程序的数量大于3个时,控制无线通信模块的工作模式由不休眠模式切换至中度休眠模式;当确定该3个后台应用程序均执行完毕时,控制无线通信模块的工作模式由中度休眠模式切换至深度休眠模式。For example, when the user does not use the communication terminal, when it is determined that the screen-off time of the communication terminal is greater than 1 minute and the number of background applications associated with the wireless communication module is greater than 3, control the operation of the wireless communication module. The working mode is switched from the non-sleep mode to the moderate sleep mode; when it is determined that the execution of the three background application programs is completed, the working mode of the wireless communication module is controlled to be switched from the moderate sleep mode to the deep sleep mode.
这里,所述通信终端工作在深度休眠模式的功耗小于其工作在中度休眠模式的功耗;所述通信终端工作在中度休眠模式的功耗小于其工作在不休眠模式的功耗。Here, the power consumption of the communication terminal working in the deep sleep mode is less than the power consumption of the communication terminal working in the moderate sleep mode; the power consumption of the communication terminal working in the moderate sleep mode is less than the power consumption of the communication terminal working in the non-sleep mode.
针对上述第三种情况,实际应用时,在所述通信终端熄屏一段时长后,如果在所述终端后台运行的应用程序中包含使用所述无线通信模块的后台应用程序,则可以基于使用所述无线通信模块的后台应用程序的数量和数据传输速率,控制所述无线通信模块的工作模式由第一模式切换至第二模式。For the third situation above, in actual application, after the communication terminal is turned off for a period of time, if the application running in the background of the terminal includes a background application using the wireless communication module, the application can be based on the use of the The number of background applications and the data transmission rate of the wireless communication module are controlled, and the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode.
基于此,在一实施例中,当确定与所述无线通信模块关联的后台应用程序的数量大于预设阈值后、控制所述无线通信模块的工作模式由第一模式切换至第二模式之前,所述方法还包括:判断与所述无线通信模块关联的后台应用程序的数据传输速率是否小于预设速率;当确定与所述无线通信模块关联的后台应用程序的数据传输速率小于预设速率时,控制所述无线通信模块的工作模式由第一模式切换至第二模式。Based on this, in an embodiment, after it is determined that the number of background applications associated with the wireless communication module is greater than a preset threshold, and before the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode, The method further includes: judging whether the data transmission rate of the background application program associated with the wireless communication module is less than a preset rate; when it is determined that the data transmission rate of the background application program associated with the wireless communication module is less than the preset rate , controlling the working mode of the wireless communication module to be switched from the first mode to the second mode.
这里,可以设置第一预设速率和第二预设速率。Here, the first preset rate and the second preset rate may be set.
具体地,当确定与所述无线通信模块关联的后台应用程序的数据传输速率小于第一预设速率时,控制所述无线通信模块的工作模式由第一模式切换至第二模式;当确定与所述无线通信模块关联的后台应用程序的数据传输速率小于第二预设速率时,控制所述无线通信模块的工作模式由所述第二模式切换至第三模式;其中,所述第二预设速率小于所述第一预设速率。Specifically, when it is determined that the data transmission rate of the background application program associated with the wireless communication module is less than the first preset rate, the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode; When the data transmission rate of the background application program associated with the wireless communication module is less than the second preset rate, control the working mode of the wireless communication module to switch from the second mode to the third mode; wherein the second preset The set rate is smaller than the first preset rate.
举例来说,在用户不使用所述通信终端时,当确定所述通信终端熄屏时长大于1分钟且与所述无线通信模块关联的后台应用程序的数量大于3个时,如果确定与所述无线通信模块关联的微信、QQ、淘宝、微博等后台应用程序的数据传输速率均小于20Kbps,则控制无线通信模块的工作模式由不休眠模式切换至中度休眠模式;如果确定与所述无线通信模块关联的微信、QQ、淘宝等后台应用程序的数据传输速率均小于10Kbps,则控制无线通信模块的工作模式由中度休眠模式切换至深度休眠模式。For example, when the user does not use the communication terminal, when it is determined that the screen-off duration of the communication terminal is greater than 1 minute and the number of background applications associated with the wireless communication module is greater than 3, if it is determined that the The data transmission rate of WeChat, QQ, Taobao, Weibo and other background applications associated with the wireless communication module are all less than 20Kbps, then control the working mode of the wireless communication module to switch from no sleep mode to moderate sleep mode; If the data transmission rates of WeChat, QQ, Taobao and other background applications associated with the communication module are all less than 10Kbps, control the working mode of the wireless communication module to switch from the moderate sleep mode to the deep sleep mode.
这里,所述通信终端工作在深度休眠模式的功耗小于其工作在中度休眠模式的功耗;所述通信终端工作在中度休眠模式的功耗小于其工作在不休眠模式的功耗。Here, the power consumption of the communication terminal working in the deep sleep mode is less than the power consumption of the communication terminal working in the moderate sleep mode; the power consumption of the communication terminal working in the moderate sleep mode is less than the power consumption of the communication terminal working in the non-sleep mode.
针对上述第四种情况,实际应用时,在所述通信终端熄屏一段时长后,如果在所述终端后台运行的应用程序中包含使用所述无线通信模块的后台应用程序,则可以基于使用所述无线通信模块的后台应用程序的数量和程序等级,控制所述无线通信模块的工作模式由第一模式切换至第二模式。For the fourth case above, in actual application, after the communication terminal is turned off for a period of time, if the application running in the background of the terminal includes a background application using the wireless communication module, the application can be based on the use of the The number and program level of the background application programs of the wireless communication module are controlled, and the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode.
基于此,在一实施例中,所述方法还包括:当确定所述数量小于或等于所述预设阈值时,针对与无线通信模块关联的后台应用程序中的每个后台应用程序,确定所述每个后台应用程序相对应的程序等级;当所述程序等级满足预设等级条件时,控制所述无线通信模块的工作模式由第一模式切换至第二模式。Based on this, in an embodiment, the method further includes: when it is determined that the number is less than or equal to the preset threshold, for each background application in the background applications associated with the wireless communication module, determining the number of The program level corresponding to each background application is controlled; when the program level satisfies the preset level condition, the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode.
这里,所述程序等级满足预设等级条件可以是指,所述每个后台应用程序相对应的程序等级均大于或等于所述预设等级。Here, that the program level satisfies the preset level condition may mean that the program level corresponding to each background application program is greater than or equal to the preset level.
具体地,当所述程序等级满足预设等级条件时,控制所述无线通信模块的工作模式由第一模式切换至第二模式;当所述程序等级未满足预设等级条件时,关闭与无线通信模块关联的后台应用程序,控制所述无线通信模块的工作模式由所述第二模式切换至第三模式。Specifically, when the program level satisfies the preset level condition, control the working mode of the wireless communication module to switch from the first mode to the second mode; when the program level does not meet the preset level condition, turn off the wireless communication module The background application program associated with the communication module controls the working mode of the wireless communication module to be switched from the second mode to the third mode.
举例来说,在用户不使用所述通信终端时,当确定所述通信终端熄屏时长大于1分钟且与所述无线通信模块关联的后台应用程序的数量小于3个时,如果确定与所述无线通信模块关联的三国杀、微信这两个后台应用程序的程序等级均大于或等于预设等级,则控制无线通信模块的工作模式由不休眠模式切换至中度休眠模式;如果确定与所述无线通信模块关联的三国杀、微信这两个后台应用程序的程序等级均小于预设等级,则直接关闭三国杀、微信这两个后台应用程序,并控制无线通信模块的工作模式由中度休眠模式切换至深度休眠模式。For example, when the user does not use the communication terminal, when it is determined that the screen-off time of the communication terminal is greater than 1 minute and the number of background applications associated with the wireless communication module is less than 3, if it is determined that the The program levels of the two background applications associated with the wireless communication module, namely Three Kingdoms Killing and WeChat, are both greater than or equal to the preset level, and the working mode of the wireless communication module is controlled to be switched from the non-sleep mode to the moderate sleep mode; If the program levels of the two background applications associated with the communication module, namely Three Kingdoms Kill and WeChat, are both lower than the preset level, then directly close the two background applications of Three Kingdoms Kill and WeChat, and control the working mode of the wireless communication module to switch from moderate sleep mode to Deep sleep mode.
这里,所述通信终端工作在深度休眠模式的功耗小于其工作在中度休眠模式的功耗;所述通信终端工作在中度休眠模式的功耗小于其工作在不休眠模式的功耗。Here, the power consumption of the communication terminal working in the deep sleep mode is less than the power consumption of the communication terminal working in the moderate sleep mode; the power consumption of the communication terminal working in the moderate sleep mode is less than the power consumption of the communication terminal working in the non-sleep mode.
实际应用时,可以基于与无线通信模块关联的后台应用程序所属数据包的名称,确定相应后台应用程序的程序等级。In actual application, the program level of the corresponding background application can be determined based on the name of the data package to which the background application associated with the wireless communication module belongs.
举例来说,针对与无线通信模块关联的后台应用程序A、B、C,假设后台应用程序A所属数据包的名称为important_data1,后台应用程序B和C所属数据包的名称为data2,其中,数据包important_data1用于存储程序等级在等级3 以上的后台应用程序,比如下载量排名前20的后台应用程序,data2用于存储程序等级在等级3以下的后台应用程序,则通过读取数据包的名称,可以确定后台应用程序A为程序等级在等级3以上的后台应用程序,后台应用程序B、 C为程序等级在等级3以下的后台应用程序。假设预设等级为等级3,则可以确定后台应用程序A的程序等级与预设等级相同,这样,可以控制所述无线通信模块的工作模式由第一模式切换至第二模式。For example, for the background applications A, B, and C associated with the wireless communication module, it is assumed that the name of the data package to which the background application A belongs is important_data1, and the name of the data package to which the background applications B and C belong is data2, wherein the data The package important_data1 is used to store background applications whose program level is above level 3, such as the top 20 background applications in downloads, and data2 is used to store background applications whose program level is below level 3. By reading the name of the data package , it can be determined that the background application A is a background application whose program level is above level 3, and the background applications B and C are background applications whose program level is below level 3. Assuming that the preset level is level 3, it can be determined that the program level of the background application A is the same as the preset level, so that the working mode of the wireless communication module can be controlled to switch from the first mode to the second mode.
实际应用时,还可以按照用户在预设时间段内对后台应用程序的使用时长,确定相应后台应用程序的程序等级。In actual application, the program level of the corresponding background application may also be determined according to the duration of the user's use of the background application within a preset time period.
举例来说,针对与无线通信模块关联的后台应用程序A、B、C,假设用户在一天内对后台应用程序A的使用时长为4小时,对后台应用程序B的使用时长为6小时,对后台应用程序B的使用时长为2小时,则可以确定后台应用程序B的程序等级为等级3,后台应用程序A的程序等级为等级2,后台应用程序A的程序等级为等级1。其中,等级3表征的等级最高,等级1表征的等级最低。假设预设等级为等级3,则可以确定后台应用程序B的等级与预设等级相同,这样,可以控制所述无线通信模块的工作模式由第一模式切换至第二模式。For example, for background applications A, B, and C associated with the wireless communication module, it is assumed that the user uses the background application A for 4 hours and the background application B for 6 hours in a day. If the usage time of background application B is 2 hours, it can be determined that the program level of background application B is level 3, the program level of background application A is level 2, and the program level of background application A is level 1. Among them, level 3 represents the highest level, and level 1 represents the lowest level. Assuming that the preset level is level 3, it can be determined that the level of the background application B is the same as the preset level, so that the working mode of the wireless communication module can be controlled to switch from the first mode to the second mode.
采用本发明实施例提供的技术方案,能够当通信终端的屏幕状态以及与所述通信终端的无线通信模块关联的后台应用程序的属性中至少之一满足预设条件时,控制所述无线通信模块切换至功耗较低的第二模式,从而能够提高所述无线通信模块的省电性能,取得更好的省电效果。By adopting the technical solutions provided by the embodiments of the present invention, when at least one of the screen state of the communication terminal and the attributes of the background application program associated with the wireless communication module of the communication terminal satisfies a preset condition, the wireless communication module can be controlled Switching to the second mode with lower power consumption can improve the power saving performance of the wireless communication module and achieve better power saving effect.
下面结合具体实施例详细说明本发明实施例通信终端的功耗控制方法的具体实现原理。The specific implementation principle of the method for controlling power consumption of a communication terminal according to the embodiment of the present invention will be described in detail below with reference to specific embodiments.
图3是本发明实施例第一种通信终端的功耗控制方法的具体实现流程示意图,如图3所示,包括以下步骤:FIG. 3 is a schematic flowchart of a specific implementation of a first method for controlling power consumption of a communication terminal according to an embodiment of the present invention, as shown in FIG. 3 , including the following steps:
步骤301:通信终端执行开机命令后,读取配置文件中存储的预设参数;根据读取的预设参数,确定无线通信模块的工作模式为不休眠模式,执行步骤 302。Step 301: After the communication terminal executes the power-on command, the preset parameters stored in the configuration file are read; according to the read preset parameters, it is determined that the working mode of the wireless communication module is the non-sleep mode, and step 302 is executed.
这里,假设预设参数的取值可以包括0、1、2、3、4、5,其中,0表征不休眠模式,1表征开启低功耗以及深度休眠关闭模式,2表征开启深度低功耗以及深度休眠关闭模式,3表征开启低功耗以及深度休眠开启模式,4表征开启深度低功耗以及深度休眠开启模式,5表征完全省电模式。如果通信终端读取的预设参数的取值为0,可以确定无线通信模块的工作模式为不休眠模式。Here, it is assumed that the values of the preset parameters can include 0, 1, 2, 3, 4, and 5, where 0 represents no sleep mode, 1 represents enabling low power consumption and deep sleep off mode, and 2 represents enabling deep low power consumption And deep sleep off mode, 3 represents low power consumption and deep sleep on mode, 4 represents deep low power consumption and deep sleep on mode, 5 represents full power saving mode. If the value of the preset parameter read by the communication terminal is 0, it can be determined that the working mode of the wireless communication module is the non-sleep mode.
步骤302:所述通信终端控制所述无线通信模块工作在不休眠模式。Step 302: The communication terminal controls the wireless communication module to work in a non-sleep mode.
步骤303:所述通信终端获取当前的屏幕状态;判断当前的屏幕状态是否为熄屏状态;如果确定当前的屏幕状态为熄屏状态,则执行步骤304。Step 303 : the communication terminal acquires the current screen state; determines whether the current screen state is the screen-off state; if it is determined that the current screen state is the screen-off state, step 304 is performed.
步骤304:所述通信终端获取熄屏时长;判断获取的熄屏时长是否大于第一预设时长;当确定获取的熄屏时长大于第一预设时长时,控制所述无线通信模块工作在中度休眠模式,并执行步骤305。Step 304: the communication terminal acquires the screen-off duration; determines whether the acquired screen-off duration is greater than the first preset duration; when it is determined that the acquired screen-off duration is greater than the first preset duration, control the wireless communication module to work in the middle sleep mode, and step 305 is executed.
步骤305:所述通信终端判断获取的熄屏时长是否大于第二预设时长;当确定获取的熄屏时长大于第二预设时长时,执行步骤306。Step 305: The communication terminal determines whether the acquired screen-off duration is greater than the second preset duration; when it is determined that the acquired screen-off duration is greater than the second preset duration, step 306 is performed.
这里,所述第二预设时长大于所述第一预设时长。Here, the second preset duration is greater than the first preset duration.
步骤306:所述通信终端控制所述无线通信模块工作在深度休眠模式,Step 306: the communication terminal controls the wireless communication module to work in a deep sleep mode,
这里,所述通信终端工作在深度休眠模式的功耗小于其工作在中度休眠模式的功耗;所述通信终端工作在中度休眠模式的功耗小于其工作在不休眠模式的功耗。Here, the power consumption of the communication terminal working in the deep sleep mode is less than the power consumption of the communication terminal working in the moderate sleep mode; the power consumption of the communication terminal working in the moderate sleep mode is less than the power consumption of the communication terminal working in the non-sleep mode.
图4是本发明实施例第二种通信终端的功耗控制方法的具体实现流程示意图,如图4所示,包括以下步骤:FIG. 4 is a schematic flowchart of a specific implementation of a second power consumption control method for a communication terminal according to an embodiment of the present invention, as shown in FIG. 4 , including the following steps:
步骤401:通信终端执行开机命令后,读取配置文件中存储的预设参数;根据读取的预设参数,确定无线通信模块的工作模式为不休眠模式,执行步骤 402。Step 401: After the communication terminal executes the power-on command, the preset parameters stored in the configuration file are read; according to the read preset parameters, it is determined that the working mode of the wireless communication module is the non-sleep mode, and step 402 is executed.
这里,假设预设参数的取值可以包括0、1、2、3、4、5,其中,0表征不休眠模式,1表征开启低功耗以及深度休眠关闭模式,2表征开启深度低功耗以及深度休眠关闭模式,3表征开启低功耗以及深度休眠开启模式,4表征开启深度低功耗以及深度休眠开启模式,5表征完全省电模式。如果通信终端读取的预设参数的取值为0,可以确定无线通信模块的工作模式为不休眠模式。Here, it is assumed that the values of the preset parameters can include 0, 1, 2, 3, 4, and 5, where 0 represents no sleep mode, 1 represents enabling low power consumption and deep sleep off mode, and 2 represents enabling deep low power consumption And deep sleep off mode, 3 represents low power consumption and deep sleep on mode, 4 represents deep low power consumption and deep sleep on mode, 5 represents full power saving mode. If the value of the preset parameter read by the communication terminal is 0, it can be determined that the working mode of the wireless communication module is the non-sleep mode.
步骤402:所述通信终端控制所述无线通信模块工作在不休眠模式。Step 402: The communication terminal controls the wireless communication module to work in a non-sleep mode.
步骤403:所述通信终端获取当前的屏幕状态;判断当前的屏幕状态是否为熄屏状态;如果确定当前的屏幕状态为熄屏状态,则执行步骤304。Step 403 : the communication terminal acquires the current screen state; determines whether the current screen state is the screen-off state; if it is determined that the current screen state is the screen-off state, step 304 is performed.
步骤404:所述通信终端获取熄屏时长;判断获取的熄屏时长是否大于第一预设时长;当确定获取的熄屏时长大于第一预设时长时,并执行步骤405。Step 404 : the communication terminal acquires the screen-off duration; determines whether the acquired screen-off duration is greater than the first preset duration; when it is determined that the acquired screen-off duration is greater than the first preset duration, step 405 is performed.
步骤405:判断与所述无线通信模块关联的后台应用程序的数量是否大于3 个;当确定与所述无线通信模块关联的后台应用程序的数量大于3个时,控制所述无线通信模块工作在中度休眠模式,并执行步骤406。Step 405: Determine whether the number of background applications associated with the wireless communication module is greater than 3; when it is determined that the number of background applications associated with the wireless communication module is greater than 3, control the wireless communication module to work at Moderate sleep mode, and step 406 is executed.
步骤406:判断与所述无线通信模块关联的后台应用程序是否均执行完毕;当确定与所述无线通信模块关联的后台应用程序是否均执行完毕时,控制所述无线通信模块工作在深度休眠模式。Step 406: Determine whether all the background applications associated with the wireless communication module have been executed; when it is determined whether all the background applications associated with the wireless communication module have been executed, control the wireless communication module to work in a deep sleep mode .
这里,所述通信终端工作在深度休眠模式的功耗小于其工作在中度休眠模式的功耗;所述通信终端工作在中度休眠模式的功耗小于其工作在不休眠模式的功耗。Here, the power consumption of the communication terminal working in the deep sleep mode is less than the power consumption of the communication terminal working in the moderate sleep mode; the power consumption of the communication terminal working in the moderate sleep mode is less than the power consumption of the communication terminal working in the non-sleep mode.
图5是本发明实施例第三种通信终端的功耗控制方法的具体实现流程示意图,如图5所示,包括以下步骤:5 is a schematic flowchart of a specific implementation of a third method for controlling power consumption of a communication terminal according to an embodiment of the present invention, as shown in FIG. 5 , including the following steps:
步骤501:通信终端执行开机命令后,读取配置文件中存储的预设参数;根据读取的预设参数,确定无线通信模块的工作模式为不休眠模式,执行步骤 502。Step 501: After the communication terminal executes the power-on command, the preset parameters stored in the configuration file are read; according to the read preset parameters, it is determined that the working mode of the wireless communication module is the non-sleep mode, and step 502 is executed.
这里,假设预设参数的取值可以包括0、1、2、3、4、5,其中,0表征不休眠模式,1表征开启低功耗以及深度休眠关闭模式,2表征开启深度低功耗以及深度休眠关闭模式,3表征开启低功耗以及深度休眠开启模式,4表征开启深度低功耗以及深度休眠开启模式,5表征完全省电模式。如果通信终端读取的预设参数的取值为0,可以确定无线通信模块的工作模式为不休眠模式。Here, it is assumed that the values of the preset parameters can include 0, 1, 2, 3, 4, and 5, where 0 represents no sleep mode, 1 represents enabling low power consumption and deep sleep off mode, and 2 represents enabling deep low power consumption And deep sleep off mode, 3 represents low power consumption and deep sleep on mode, 4 represents deep low power consumption and deep sleep on mode, 5 represents full power saving mode. If the value of the preset parameter read by the communication terminal is 0, it can be determined that the working mode of the wireless communication module is the non-sleep mode.
步骤502:所述通信终端控制所述无线通信模块工作在不休眠模式。Step 502: The communication terminal controls the wireless communication module to work in a non-sleep mode.
步骤503:所述通信终端获取当前的屏幕状态;判断当前的屏幕状态是否为熄屏状态;如果确定当前的屏幕状态为熄屏状态,则执行步骤504。Step 503 : the communication terminal acquires the current screen state; determines whether the current screen state is the screen-off state; if it is determined that the current screen state is the screen-off state, step 504 is performed.
步骤504:所述通信终端获取熄屏时长;判断获取的熄屏时长是否大于第一预设时长;当确定获取的熄屏时长大于第一预设时长时,并执行步骤505。Step 504 : the communication terminal acquires the screen-off duration; determines whether the acquired screen-off duration is greater than the first preset duration; when it is determined that the acquired screen-off duration is greater than the first preset duration, step 505 is performed.
步骤505:判断与所述无线通信模块关联的后台应用程序的数量是否大于3 个;当确定与所述无线通信模块关联的后台应用程序的数量大于3个时,执行步骤506。Step 505: Determine whether the number of background applications associated with the wireless communication module is greater than 3; when it is determined that the number of background applications associated with the wireless communication module is greater than 3, step 506 is performed.
步骤506:判断与所述无线通信模块关联的后台应用程序的数据传输速率是否均小于第一速率;当确定与所述无线通信模块关联的后台应用程序的数据传输速率均小于第一速率时,控制所述无线通信模块工作在中度休眠模式,并执行步骤507。Step 506: Determine whether the data transmission rates of the background applications associated with the wireless communication module are all less than the first rate; when it is determined that the data transmission rates of the background applications associated with the wireless communication module are all less than the first rate, The wireless communication module is controlled to work in a moderate sleep mode, and step 507 is executed.
步骤507:判断与所述无线通信模块关联的后台应用程序的数据传输速率是否均小于第二速率;当确定与所述无线通信模块关联的后台应用程序的数据传输速率均小于第二速率时,控制所述无线通信模块工作在深度休眠模式。Step 507: Determine whether the data transmission rates of the background applications associated with the wireless communication module are all less than the second rate; when it is determined that the data transmission rates of the background applications associated with the wireless communication module are all less than the second rate, The wireless communication module is controlled to work in a deep sleep mode.
这里,所述第二速率小于所述第一速率。Here, the second rate is smaller than the first rate.
这里,所述通信终端工作在深度休眠模式的功耗小于其工作在中度休眠模式的功耗;所述通信终端工作在中度休眠模式的功耗小于其工作在不休眠模式的功耗。Here, the power consumption of the communication terminal working in the deep sleep mode is less than the power consumption of the communication terminal working in the moderate sleep mode; the power consumption of the communication terminal working in the moderate sleep mode is less than the power consumption of the communication terminal working in the non-sleep mode.
图6是本发明实施例第四种通信终端的功耗控制方法的具体实现流程示意图,如图6所示,包括以下步骤:FIG. 6 is a schematic flowchart of a specific implementation of a fourth method for controlling power consumption of a communication terminal according to an embodiment of the present invention, as shown in FIG. 6 , including the following steps:
步骤601:通信终端执行开机命令后,读取配置文件中存储的预设参数;根据读取的预设参数,确定无线通信模块的工作模式为不休眠模式,执行步骤 602。Step 601: After the communication terminal executes the power-on command, the preset parameters stored in the configuration file are read; according to the read preset parameters, it is determined that the working mode of the wireless communication module is the non-sleep mode, and step 602 is executed.
这里,假设预设参数的取值可以包括0、1、2、3、4、5,其中,0表征不休眠模式,1表征开启低功耗以及深度休眠关闭模式,2表征开启深度低功耗以及深度休眠关闭模式,3表征开启低功耗以及深度休眠开启模式,4表征开启深度低功耗以及深度休眠开启模式,5表征完全省电模式。如果通信终端读取的预设参数的取值为0,可以确定无线通信模块的工作模式为不休眠模式。Here, it is assumed that the values of the preset parameters can include 0, 1, 2, 3, 4, and 5, where 0 represents no sleep mode, 1 represents enabling low power consumption and deep sleep off mode, and 2 represents enabling deep low power consumption And deep sleep off mode, 3 represents low power consumption and deep sleep on mode, 4 represents deep low power consumption and deep sleep on mode, 5 represents full power saving mode. If the value of the preset parameter read by the communication terminal is 0, it can be determined that the working mode of the wireless communication module is the non-sleep mode.
步骤602:所述通信终端控制所述无线通信模块工作在不休眠模式。Step 602: The communication terminal controls the wireless communication module to work in a non-sleep mode.
步骤603:所述通信终端获取当前的屏幕状态;判断当前的屏幕状态是否为熄屏状态;如果确定当前的屏幕状态为熄屏状态,则执行步骤604。Step 603 : the communication terminal obtains the current screen state; determines whether the current screen state is the screen-off state; if it is determined that the current screen state is the screen-off state, step 604 is performed.
步骤604:所述通信终端获取熄屏时长;判断获取的熄屏时长是否大于第一预设时长;当确定获取的熄屏时长大于第一预设时长时,并执行步骤605。Step 604 : the communication terminal acquires the screen-off duration; determines whether the acquired screen-off duration is greater than the first preset duration; when it is determined that the acquired screen-off duration is greater than the first preset duration, step 605 is performed.
步骤605:判断与所述无线通信模块关联的后台应用程序的数量是否大于3 个;当确定与所述无线通信模块关联的后台应用程序的数量小于或等于3个时,执行步骤606。Step 605: Determine whether the number of background applications associated with the wireless communication module is greater than 3; when it is determined that the number of background applications associated with the wireless communication module is less than or equal to 3, perform step 606.
步骤606:判断与所述无线通信模块关联的后台应用程序的程序等级是否均大于或等于预设等级;当确定与所述无线通信模块关联的后台应用程序的程序等级均大于或等于预设等级时,控制所述无线通信模块工作在中度休眠模式,并执行步骤607;否则,执行步骤608。Step 606: Determine whether the program level of the background application program associated with the wireless communication module is greater than or equal to the preset level; when it is determined that the program level of the background application program associated with the wireless communication module is greater than or equal to the preset level when the wireless communication module is controlled to work in a moderate sleep mode, and step 607 is performed; otherwise, step 608 is performed.
步骤607:判断与所述无线通信模块关联的后台应用程序是否均执行完毕;当确定与所述无线通信模块关联的后台应用程序是否均执行完毕时,控制所述无线通信模块工作在深度休眠模式。Step 607: Determine whether all the background applications associated with the wireless communication module have been executed; when it is determined whether all the background applications associated with the wireless communication module have been executed, control the wireless communication module to work in a deep sleep mode .
步骤608:关闭与所述无线通信模块关联的后台应用程序,控制所述无线通信模块工作在深度休眠模式。Step 608: Close the background application program associated with the wireless communication module, and control the wireless communication module to work in a deep sleep mode.
这里,所述通信终端工作在深度休眠模式的功耗小于其工作在中度休眠模式的功耗;所述通信终端工作在中度休眠模式的功耗小于其工作在不休眠模式的功耗。Here, the power consumption of the communication terminal working in the deep sleep mode is less than the power consumption of the communication terminal working in the moderate sleep mode; the power consumption of the communication terminal working in the moderate sleep mode is less than the power consumption of the communication terminal working in the non-sleep mode.
图7是本发明实施例通过软件程序实现所述通信终端的功耗控制方法的流程示意图,如图7所示,可以通过netlink、读写设备节点,实现无线通信模块的应用层和内核kernel的通信,以控制无线通信模块切换工作模式。以基于所述通信终端的屏幕状态、与所述无线通信模块关联的后台应用程序的数量和程序等级,控制无线通信模块切换工作模式为例,具体实现过程可以包括:首先,通信终端的应用层通过系统接口函数,读取所述通信终端的熄屏时长、与所述无线通信模块关联的后台应用程序的数量。在熄屏一段时长后,所述通信终端的应用层基于与所述无线通信模块关联的后台应用程序的数量,确定所述无线通信模块的待切换工作模式。具体地,如果与所述无线通信模块关联的后台应用程序的数量大于3,则确定需要控制所述无线通信模块进入中度休眠模式,可以用数值0表示,并通过命令:Echo1>DPS,将确定的所述无线通信模块的待切换工作模式对应的数值即0写入创建的读写设备节点DPS中;当与所述无线通信模块关联的后台应用程序的数量小于或等于3时,如果与所述无线通信模块关联的后台应用程序的程序等级均大于或等于预设等级,则确定需要控制所述无线通信模块进入中度休眠模式,可以用数值0表示,并通过命令:Echo2>DPS,将确定的所述无线通信模块的待切换工作模式对应的数值即0写入创建的读写设备节点DPS中。这样,无线通信模块的内核kernel监听读写设备节点DPS,通过内核kernel驱动芯片中的接口函数,获取所述无线通信模块的待切换工作模式对应的数值,并根据读取的数值设置无线通信模块的当前工作模式为中度休眠模式。FIG. 7 is a schematic flowchart of a method for controlling power consumption of the communication terminal through a software program according to an embodiment of the present invention. As shown in FIG. 7 , the application layer of the wireless communication module and the kernel kernel can be implemented through netlink and reading and writing device nodes. communication to control the wireless communication module to switch the working mode. Taking controlling the wireless communication module to switch the working mode based on the screen state of the communication terminal, the number and program level of the background application programs associated with the wireless communication module as an example, the specific implementation process may include: first, the application layer of the communication terminal. Through the system interface function, the screen-off duration of the communication terminal and the number of background applications associated with the wireless communication module are read. After the screen is turned off for a period of time, the application layer of the communication terminal determines the to-be-switched working mode of the wireless communication module based on the number of background applications associated with the wireless communication module. Specifically, if the number of background applications associated with the wireless communication module is greater than 3, it is determined that the wireless communication module needs to be controlled to enter a moderate sleep mode, which can be represented by a value of 0, and through the command: Echo1>DPS, the The determined value corresponding to the working mode to be switched of the wireless communication module is 0 and is written into the created read-write device node DPS; when the number of background applications associated with the wireless communication module is less than or equal to 3, if the If the program level of the background application program associated with the wireless communication module is greater than or equal to the preset level, it is determined that the wireless communication module needs to be controlled to enter the moderate sleep mode, which can be represented by a value of 0, and through the command: Echo2>DPS, The determined value corresponding to the to-be-switched working mode of the wireless communication module, namely 0, is written into the created read-write device node DPS. In this way, the kernel kernel of the wireless communication module monitors the read-write device node DPS, obtains the value corresponding to the to-be-switched working mode of the wireless communication module through the interface function in the kernel kernel driver chip, and sets the wireless communication module according to the read value The current working mode is the moderate sleep mode.
图8是三种功耗等级的工作模式示意图,如图8所示,对于等级越高的休眠工作模式,如图8中的Qpower3.0,所述无线通信模块的唤醒时间(图8中的nw)越少、睡眠时间(图8中的ns)越长、与接入点(AP)的交互越少,这样,所述无线通信模块的功耗越低。需要说明的是,这里,在终端待机过程中,可以使所述无线通信模块工作在功耗较低的模式,如图8中的Qpower3.0,从而能够使所述无线通信模块的睡眠时间更长,这样,就会对降低通信终端的整机功耗,并降低所述无线通信模块的待机功耗,达到更好的省电效果。Fig. 8 is a schematic diagram of working modes of three power consumption levels. As shown in Fig. 8, for a sleep working mode with a higher level, such as Qpower3.0 in Fig. 8, the wake-up time of the wireless communication module (in Fig. 8) The less nw), the longer the sleep time (ns in FIG. 8 ), and the less interaction with the access point (AP), so that the power consumption of the wireless communication module is lower. It should be noted that, here, during the standby process of the terminal, the wireless communication module can be operated in a mode with lower power consumption, such as Qpower3.0 in FIG. 8, so that the sleep time of the wireless communication module can be made longer. In this way, the overall power consumption of the communication terminal will be reduced, and the standby power consumption of the wireless communication module will be reduced, so as to achieve a better power saving effect.
为实现本发明实施例通信终端的功耗控制方法,本发明实施例还提供一种通信终端的功耗控制装置,图9为本发明实施例通信终端的功耗控控制装置的组成结构示意图;如图9所示,所述装置包括:In order to realize the power consumption control method of the communication terminal according to the embodiment of the present invention, the embodiment of the present invention further provides a power consumption control device of the communication terminal. FIG. 9 is a schematic diagram of the composition and structure of the power consumption control device of the communication terminal according to the embodiment of the present invention; As shown in Figure 9, the device includes:
获取单元91,用于获取通信终端的屏幕状态和与所述通信终端的无线通信模块关联的后台应用程序的属性;所述属性包括:数量、程序等级、数据传输速率。The obtaining unit 91 is configured to obtain the screen state of the communication terminal and the attributes of the background application program associated with the wireless communication module of the communication terminal; the attributes include: quantity, program level, and data transmission rate.
控制单元92,用于当所述通信终端的屏幕状态和与所述无线通信模块关联的后台应用程序的属性中至少之一满足预设条件时,控制所述无线通信模块的工作模式由第一模式切换至第二模式;其中,所述无线通信模块工作在所述第二模式下的功耗小于其工作在所述第一模式下的功耗。The control unit 92 is configured to control the working mode of the wireless communication module from the first one when at least one of the screen state of the communication terminal and the attribute of the background application program associated with the wireless communication module satisfies a preset condition. The mode is switched to the second mode; wherein, the power consumption of the wireless communication module operating in the second mode is smaller than the power consumption of the wireless communication module operating in the first mode.
这里,所述通信终端的屏幕状态可以包括亮屏状态、熄屏状态。Here, the screen state of the communication terminal may include a screen-on state and a screen-off state.
这里,所述与通信终端的无线通信模块关联的后台应用程序可以是指使用所述无线通信模块的后台应用程序,如微信程序等等。Here, the background application program associated with the wireless communication module of the communication terminal may refer to a background application program using the wireless communication module, such as a WeChat program and the like.
在一实施例中,所述控制单元92,具体用于:当确定所述通信终端的屏幕状态为熄屏状态且所述熄屏状态持续第一预设时长后,控制所述无线通信模块的工作模式由第一模式切换至第二模式。In one embodiment, the control unit 92 is specifically configured to: after determining that the screen state of the communication terminal is the screen-off state and the screen-off state lasts for a first preset time period, control the wireless communication module's screen status. The working mode is switched from the first mode to the second mode.
在一实施例中,所述控制单元92,具体用于:当确定所述通信终端的屏幕状态为熄屏状态且所述熄屏状态持续第一预设时长后,控制所述无线通信模块的工作模式由第一模式切换至第二模式后,当确定所述终端的屏幕状态为熄屏状态且所述熄屏状态持续第二预设时长后,控制无线通信模块的工作模式由第二模式切换至第三模式;其中,所述第二预设时长大于所述第一预设时长。In one embodiment, the control unit 92 is specifically configured to: after determining that the screen state of the communication terminal is the screen-off state and the screen-off state lasts for a first preset time period, control the wireless communication module's screen status. After the working mode is switched from the first mode to the second mode, when it is determined that the screen state of the terminal is the screen-off state and the screen-off state lasts for a second preset time period, the working mode of the wireless communication module is controlled to be changed from the second mode to the second mode. Switch to a third mode; wherein, the second preset duration is greater than the first preset duration.
在一实施例中,所述控制单元92,具体用于:当确定所述终端的屏幕状态为熄屏状态且所述熄屏状态持续预设时长后、控制所述无线通信模块的工作模式由第一模式切换至第二模式之前,判断与所述无线通信模块关联的后台应用程序的数量是否大于预设阈值;当确定与所述无线通信模块关联的后台应用程序的数量大于预设阈值时,控制所述无线通信模块的工作模式由第一模式切换至第二模式。In one embodiment, the control unit 92 is specifically configured to: when it is determined that the screen state of the terminal is the screen-off state and the screen-off state lasts for a preset period of time, control the working mode of the wireless communication module by: Before switching from the first mode to the second mode, determine whether the number of background applications associated with the wireless communication module is greater than a preset threshold; when it is determined that the number of background applications associated with the wireless communication module is greater than a preset threshold , controlling the working mode of the wireless communication module to be switched from the first mode to the second mode.
在一实施例中,所述控制单元92,具体用于:当确定所述终端的屏幕状态为熄屏状态且所述熄屏状态持续预设时长后、控制所述无线通信模块的工作模式由第一模式切换至第二模式之后,判断与所述无线通信模块关联的后台应用程序是否执行完毕;当确定与所述无线通信模块关联的后台应用程序执行完毕时,控制所述无线通信模块的工作模式由所述第二模式切换至第三模式;其中,所述通信终端的无线通信模块的工作模式还包括第三模式,所述无线通信模块在所述第三模式下的功耗小于在所述第二模式下的功耗。In one embodiment, the control unit 92 is specifically configured to: when it is determined that the screen state of the terminal is the screen-off state and the screen-off state lasts for a preset period of time, control the working mode of the wireless communication module by: After the first mode is switched to the second mode, it is determined whether the background application program associated with the wireless communication module has been executed; when it is determined that the background application program associated with the wireless communication module has been executed, control the wireless communication module. The working mode is switched from the second mode to the third mode; wherein, the working mode of the wireless communication module of the communication terminal further includes a third mode, and the power consumption of the wireless communication module in the third mode is less than that in power consumption in the second mode.
在一实施例中,所述控制单元92,具体用于:当确定与所述无线通信模块关联的后台应用程序的数量大于预设阈值后、控制所述无线通信模块的工作模式由第一模式切换至第二模式之前,判断与所述无线通信模块关联的后台应用程序的数据传输速率是否小于第一预设速率;当确定与所述无线通信模块关联的后台应用程序的数据传输速率小于第一预设速率时,控制所述无线通信模块的工作模式由第一模式切换至第二模式。In one embodiment, the control unit 92 is specifically configured to: when it is determined that the number of background applications associated with the wireless communication module is greater than a preset threshold, control the working mode of the wireless communication module from the first mode Before switching to the second mode, determine whether the data transmission rate of the background application program associated with the wireless communication module is less than the first preset rate; when it is determined that the data transmission rate of the background application program associated with the wireless communication module is less than the first preset rate. At a preset rate, the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode.
在一实施例中,所述控制单元92,具体用于:当确定与所述无线通信模块关联的后台应用程序的数量大于预设阈值后、控制所述无线通信模块的工作模式由第一模式切换至第二模式之后,判断与所述无线通信模块关联的后台应用程序的数据传输速率是否小于第二预设速率;当确定与所述无线通信模块关联的后台应用程序的数据传输速率小于第二预设速率时,控制所述无线通信模块的工作模式由所述第二模式切换至第三模式;其中,所述第二预设速率小于所述第一预设速率。In one embodiment, the control unit 92 is specifically configured to: when it is determined that the number of background applications associated with the wireless communication module is greater than a preset threshold, control the working mode of the wireless communication module from the first mode After switching to the second mode, determine whether the data transmission rate of the background application program associated with the wireless communication module is less than the second preset rate; when it is determined that the data transmission rate of the background application program associated with the wireless communication module is less than the first When there are two preset rates, the working mode of the wireless communication module is controlled to be switched from the second mode to the third mode; wherein the second preset rate is smaller than the first preset rate.
在一实施例中,所述控制单元92,具体用于:当确定所述数量小于或等于所述预设阈值时,针对与无线通信模块关联的后台应用程序中的每个后台应用程序,确定所述每个后台应用程序相对应的程序等级;当所述程序等级满足预设等级条件时,控制所述无线通信模块的工作模式由第一模式切换至第二模式;当所述程序等级未满足预设等级条件时,关闭与无线通信模块关联的后台应用程序,控制所述无线通信模块的工作模式由所述第二模式切换至第三模式。In one embodiment, the control unit 92 is specifically configured to: when it is determined that the number is less than or equal to the preset threshold, for each background application in the background applications associated with the wireless communication module, determine: The program level corresponding to each background application; when the program level satisfies the preset level condition, the working mode of the wireless communication module is controlled to be switched from the first mode to the second mode; when the program level is not When the preset level condition is satisfied, the background application program associated with the wireless communication module is closed, and the working mode of the wireless communication module is controlled to be switched from the second mode to the third mode.
实际应用时,所述获取单元91由通信终端的功耗控制装置中的通信接口实现;所述控制单元92可由通信终端的功耗控制装置中的处理器实现。In practical application, the acquisition unit 91 is implemented by a communication interface in the power consumption control device of the communication terminal; the control unit 92 can be implemented by a processor in the power consumption control device of the communication terminal.
需要说明的是:上述实施例提供的通信终端的功耗控制装置在进行控制切换无线通信模块的工作模式时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的通信终端的功耗控制装置与通信终端的功耗控制方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the power consumption control device of the communication terminal provided in the above-mentioned embodiment controls and switches the working mode of the wireless communication module, only the division of the above-mentioned program modules is used as an example for illustration. The above-mentioned processing distribution is completed by different program modules, that is, the internal structure of the device is divided into different program modules, so as to complete all or part of the above-described processing. In addition, the device for controlling power consumption of a communication terminal provided by the above embodiments and the embodiments of the method for controlling power consumption of a communication terminal belong to the same concept, and the specific implementation process is detailed in the method embodiment, which is not repeated here.
本发明实施例还提供了一种通信终端的功耗控制装置,如图10所示,该装置100包括:通信接口101、处理器102、存储器103;其中,An embodiment of the present invention further provides an apparatus for controlling power consumption of a communication terminal. As shown in FIG. 10 , the apparatus 100 includes: a communication interface 101, a processor 102, and a memory 103; wherein,
通信接口101,能够与其它设备进行信息交互;A communication interface 101, capable of information interaction with other devices;
处理器102,与所述通信接口101连接,用于运行计算机程序时,执行上述智能设备侧一个或多个技术方案提供的方法。而所述计算机程序存储在存储器83上。The processor 102, connected to the communication interface 101, is configured to execute the methods provided by one or more technical solutions on the smart device side when running the computer program. And the computer program is stored on the memory 83 .
当然,实际应用时,通信终端的功耗控制装置100中的各个组件通过总线系统104耦合在一起。可理解,总线系统104用于实现这些组件之间的连接通信。总线系统104除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图10中将各种总线都标为总线系统104。Of course, in practical application, various components in the power consumption control apparatus 100 of the communication terminal are coupled together through the bus system 104 . It will be appreciated that the bus system 104 is used to implement connection communication between these components. In addition to the data bus, the bus system 104 also includes a power bus, a control bus, and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 104 in FIG. 10 .
本申请实施例中的存储器103用于存储各种类型的数据以支持控制装置80 的操作。这些数据的示例包括:用于在通信终端的功耗控制装置100上操作的任何计算机程序。The memory 103 in this embodiment of the present application is used to store various types of data to support the operation of the control device 80 . Examples of these data include: any computer program for operating on the power consumption control device 100 of the communication terminal.
上述本申请实施例揭示的方法可以应用于所述处理器102中,或者由所述处理器102实现。所述处理器102可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过所述处理器102中的硬件的集成逻辑电路或者软件形式的指令完成。上述的所述处理器102可以是通用处理器、数字信号处理器(DSP,Digital SignalProcessor),或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。所述处理器102可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器103,所述处理器102读取存储器103中的信息,结合其硬件完成前述方法的步骤。The methods disclosed in the above embodiments of the present application may be applied to the processor 102 or implemented by the processor 102 . The processor 102 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method may be completed by an integrated logic circuit of hardware in the processor 102 or an instruction in the form of software. The above-mentioned processor 102 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. The processor 102 may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of this application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, and the storage medium is located in the memory 103, and the processor 102 reads the information in the memory 103, and completes the steps of the foregoing method in combination with its hardware.
在示例性实施例中,通信终端的功耗控制装置100可以被一个或多个应用专用集成电路(ASIC,Application Specific Integrated Circuit)、DSP、可编程逻辑器件(PLD,Programmable Logic Device)、复杂可编程逻辑器件(CPLD, Complex ProgrammableLogic Device)、现场可编程门阵列(FPGA, Field-Programmable Gate Array)、通用处理器、控制器、微控制器(MCU,Micro Controller Unit)、微处理器(Microprocessor)、或者其他电子元件实现,用于执行前述方法。In an exemplary embodiment, the power consumption control apparatus 100 of the communication terminal may be implemented by one or more application-specific integrated circuits (ASIC, Application Specific Integrated Circuit), DSP, Programmable Logic Device (PLD, Programmable Logic Device), complex programmable Programmable Logic Device (CPLD, Complex ProgrammableLogic Device), Field Programmable Gate Array (FPGA, Field-Programmable Gate Array), General Purpose Processor, Controller, Microcontroller (MCU, Micro Controller Unit), Microprocessor (Microprocessor) , or other electronic components to implement the aforementioned method.
可以理解,本申请实施例的存储器103可以是易失性存储器或者非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM, Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM, Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器 (EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(FlashMemory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器 (SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器 (DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器 (SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM, Enhanced Synchronous Dynamic Random AccessMemory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random AccessMemory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本申请实施例描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 103 in this embodiment of the present application may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory. The non-volatile memory may be Read Only Memory (ROM, Read Only Memory), Programmable Read Only Memory (PROM, Programmable Read-Only Memory), Erasable Programmable Read-Only Memory (EPROM, Erasable Programmable Read-Only Memory) Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic random access memory), Flash Memory (FlashMemory), Magnetic Surface Memory, Optical disk, or Compact Disc Read-Only Memory (CD-ROM); the magnetic surface memory can be a magnetic disk memory or a magnetic tape memory. The volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache memory. By way of example and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory Memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), Enhanced Type Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), Synchronous Link Dynamic Random Access Memory (SLDRAM, SyncLink Dynamic Random Access Memory), Direct Memory Bus Random Access Memory (DRRAM, Direct Rambus Random Access Memory). The memories described in the embodiments of the present application are intended to include, but not be limited to, these and any other suitable types of memories.
需要说明的是:“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The unit described above as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。In addition, each functional unit in each embodiment of the present invention may all be integrated into one processing module, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integration The unit can be implemented either in the form of hardware or in the form of hardware plus software functional units. Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by program instructions related to hardware, the aforementioned program may be stored in a computer-readable storage medium, and when the program is executed, execute It includes the steps of the above method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic disk or an optical disk and other media that can store program codes.
本申请所提供的几个方法实施例中所揭露的方法,在不冲突的情况下可以任意组合,得到新的方法实施例。The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined under the condition of no conflict to obtain new method embodiments.
本申请所提供的几个产品实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的产品实施例。The features disclosed in the several product embodiments provided in this application can be combined arbitrarily without conflict to obtain a new product embodiment.
本申请所提供的几个方法或设备实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的方法实施例或设备实施例。The features disclosed in several method or device embodiments provided in this application can be combined arbitrarily without conflict to obtain new method embodiments or device embodiments.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910755042.9ACN110505679B (en) | 2019-08-15 | 2019-08-15 | Power consumption control method and device of communication terminal and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910755042.9ACN110505679B (en) | 2019-08-15 | 2019-08-15 | Power consumption control method and device of communication terminal and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN110505679Atrue CN110505679A (en) | 2019-11-26 |
| CN110505679B CN110505679B (en) | 2022-08-16 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910755042.9AExpired - Fee RelatedCN110505679B (en) | 2019-08-15 | 2019-08-15 | Power consumption control method and device of communication terminal and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN110505679B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112822742A (en)* | 2021-02-01 | 2021-05-18 | 联想(北京)有限公司 | Processing method and device |
| WO2021135859A1 (en)* | 2020-01-03 | 2021-07-08 | 荣耀终端有限公司 | Power consumption control method, chip system, and terminal device |
| CN113498154A (en)* | 2020-04-06 | 2021-10-12 | 瑞昱半导体股份有限公司 | Method for WiFi module and related system |
| CN115150926A (en)* | 2022-06-21 | 2022-10-04 | 爱学智慧科技(常州)有限公司 | An Interactor and Low-Power Driving Method |
| CN115278836A (en)* | 2022-06-21 | 2022-11-01 | 爱学智慧科技(常州)有限公司 | Low-power-consumption driving method and device, interactor and medium |
| CN116170900A (en)* | 2023-01-09 | 2023-05-26 | 武汉市工电信息技术有限公司 | A control method, device and device for communication equipment |
| WO2023207267A1 (en)* | 2022-04-28 | 2023-11-02 | 中兴通讯股份有限公司 | Data transmission method, model training method, device, and computer-readable medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140101598A1 (en)* | 2006-12-01 | 2014-04-10 | Samsung Electronics Co., Ltd. | Idle screen arrangement structure and idle screen display method for mobile terminal |
| CN105718027A (en)* | 2016-01-20 | 2016-06-29 | 努比亚技术有限公司 | Management method of background application programs and mobile terminal |
| CN107608853A (en)* | 2017-09-06 | 2018-01-19 | 广东欧珀移动通信有限公司 | Method, device, storage medium and intelligent terminal for controlling terminal usage time |
| CN107943266A (en)* | 2017-11-20 | 2018-04-20 | 北京小米移动软件有限公司 | power consumption control method, device and equipment |
| CN108536269A (en)* | 2018-03-26 | 2018-09-14 | 上海康斐信息技术有限公司 | A kind of method and its system reducing terminal standby power consumption |
| CN110045809A (en)* | 2018-01-12 | 2019-07-23 | 广东欧珀移动通信有限公司 | Information processing method, information processing device, computer equipment and computer readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140101598A1 (en)* | 2006-12-01 | 2014-04-10 | Samsung Electronics Co., Ltd. | Idle screen arrangement structure and idle screen display method for mobile terminal |
| CN105718027A (en)* | 2016-01-20 | 2016-06-29 | 努比亚技术有限公司 | Management method of background application programs and mobile terminal |
| CN107608853A (en)* | 2017-09-06 | 2018-01-19 | 广东欧珀移动通信有限公司 | Method, device, storage medium and intelligent terminal for controlling terminal usage time |
| CN107943266A (en)* | 2017-11-20 | 2018-04-20 | 北京小米移动软件有限公司 | power consumption control method, device and equipment |
| CN110045809A (en)* | 2018-01-12 | 2019-07-23 | 广东欧珀移动通信有限公司 | Information processing method, information processing device, computer equipment and computer readable storage medium |
| CN108536269A (en)* | 2018-03-26 | 2018-09-14 | 上海康斐信息技术有限公司 | A kind of method and its system reducing terminal standby power consumption |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2021135859A1 (en)* | 2020-01-03 | 2021-07-08 | 荣耀终端有限公司 | Power consumption control method, chip system, and terminal device |
| US12200625B2 (en) | 2020-01-03 | 2025-01-14 | Honor Device Co., Ltd. | Power consumption control method, chip system, and terminal device |
| CN113498154A (en)* | 2020-04-06 | 2021-10-12 | 瑞昱半导体股份有限公司 | Method for WiFi module and related system |
| US11910312B2 (en) | 2020-04-06 | 2024-02-20 | Realtek Semiconductor Corporation | Method for WiFi module and system of the same |
| CN113498154B (en)* | 2020-04-06 | 2024-10-25 | 瑞昱半导体股份有限公司 | Method and related system for WiFi module |
| CN112822742A (en)* | 2021-02-01 | 2021-05-18 | 联想(北京)有限公司 | Processing method and device |
| WO2023207267A1 (en)* | 2022-04-28 | 2023-11-02 | 中兴通讯股份有限公司 | Data transmission method, model training method, device, and computer-readable medium |
| CN115150926A (en)* | 2022-06-21 | 2022-10-04 | 爱学智慧科技(常州)有限公司 | An Interactor and Low-Power Driving Method |
| CN115278836A (en)* | 2022-06-21 | 2022-11-01 | 爱学智慧科技(常州)有限公司 | Low-power-consumption driving method and device, interactor and medium |
| CN116170900A (en)* | 2023-01-09 | 2023-05-26 | 武汉市工电信息技术有限公司 | A control method, device and device for communication equipment |
| Publication number | Publication date |
|---|---|
| CN110505679B (en) | 2022-08-16 |
| Publication | Publication Date | Title |
|---|---|---|
| CN110505679B (en) | Power consumption control method and device of communication terminal and storage medium | |
| US11782647B2 (en) | Managing operational state data in memory module | |
| US11256318B2 (en) | Techniques for memory access in a reduced power state | |
| CN109064538B (en) | View rendering method, device, storage medium and intelligent terminal | |
| CN107924225B (en) | System and method for dynamically adjusting memory state transition timers | |
| KR101570118B1 (en) | Method and system for dynamic power management of memories | |
| US20190155368A1 (en) | Selecting a Low Power State in an Electronic Device | |
| CN106227683B (en) | Electronic equipment and information processing method | |
| JP2013257886A (en) | Idle period report for electric power management | |
| US12314188B2 (en) | Platform data aging for adaptive memory scaling | |
| TWI224728B (en) | Method and related apparatus for maintaining stored data of a dynamic random access memory | |
| CN102622257B (en) | The online self refresh method of ammeter and device thereof | |
| CN107306443B (en) | An information processing method and terminal | |
| CN115076880A (en) | Method and device for controlling air conditioner to repel mosquitoes and air conditioner | |
| CN112003708A (en) | Monitoring method, device, equipment and medium for access equipment | |
| CN103197964A (en) | Method for exchanging information among multiple operating systems of electronic device | |
| CN105320543B (en) | Method and apparatus for loading software modules | |
| CN112162785B (en) | BMS slave board sleep control method and BMS | |
| CN102629198A (en) | On-demand remote execution method of computational logic in software application | |
| TWI489264B (en) | Middleware power management | |
| CN117331540A (en) | A driver design method and system for logical devices | |
| US20160342354A1 (en) | Saving the Architectural State of a Computing Device using Sectors | |
| CN119856367A (en) | Processing device and related low-power consumption standby control method | |
| CN114780166A (en) | Pin configuration method, related device, equipment and readable storage medium | |
| CN111800846A (en) | Method and system for saving power consumption by identifying different scenes |
| 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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20220816 | |
| CF01 | Termination of patent right due to non-payment of annual fee |