WO2018059000A1 - Method and device for controlling mobile terminal, and mobile terminal - Google Patents
Method and device for controlling mobile terminal, and mobile terminal Download PDFInfo
- Publication number
- WO2018059000A1 WO2018059000A1 PCT/CN2017/087196 CN2017087196W WO2018059000A1 WO 2018059000 A1 WO2018059000 A1 WO 2018059000A1 CN 2017087196 W CN2017087196 W CN 2017087196W WO 2018059000 A1 WO2018059000 A1 WO 2018059000A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- timer
- mobile terminal
- preset
- operation corresponding
- power saving
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72451—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72463—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72466—User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present application relates to, but is not limited to, the field of electronic technologies, and in particular, to a method, an apparatus, and a mobile terminal for controlling a mobile terminal.
- the functions of mobile terminals are becoming more and more powerful, and users are increasingly demanding the use of mobile terminals.
- the mobile terminal in the related art is usually provided with an operation mode such as an ultra long standby mode and an intelligent power saving mode, so as to reduce power consumption and extend standby time.
- the mobile phone in the long standby mode, the mobile phone is generally set to the flight mode, and at this time, the mobile phone function is greatly limited, and the basic communication function is lost; In the power-saving scheme with less functional restrictions, the power saving effect of the mobile phone is not obvious. It can be seen that in the related art, there is a problem that the power saving effect of the mobile terminal is not obvious or the user needs cannot be taken into consideration in the power saving process.
- the technical problem to be solved by the embodiments of the present invention is to provide a method, a device, and a mobile terminal for controlling a mobile terminal, which can solve the problem that in the related art, the power saving effect of the mobile terminal is not obvious or the user needs cannot be taken into account. problem.
- an embodiment of the present invention provides a method for controlling a mobile terminal, where the method includes:
- the operation corresponding to the first timer is prohibited, and the first timer is added to a blocking queue.
- the method further includes:
- the CPU of the mobile terminal is woken up and the operation corresponding to the first timer is executed.
- the step of acquiring the first timer that needs to be performed includes:
- the first timer that needs to be executed is acquired.
- the step of acquiring the first timer that needs to be performed includes:
- the preset power saving mode is activated
- the first timer that needs to be executed is acquired.
- the step of determining whether the first timer is a preset important timer includes:
- the operation corresponding to the first timer needs to wake up the CPU, and when the trigger time condition of the first timer is natural time and is triggered by the precise time, the first timer is determined to be a preset important timer. Otherwise, it is not a preset. Important timer.
- the method further include:
- an embodiment of the present invention provides a control apparatus for a mobile terminal, where the apparatus includes:
- the obtaining module is set to: when the mobile terminal is in the off state, obtain the first required to be executed a timer, wherein the mobile terminal performs an operation corresponding to the timer when the timer is triggered;
- the determining module is configured to: determine whether the first timer is a preset important timer;
- the first processing module is configured to: when the first timer is not the preset important timer, prohibit the operation corresponding to the first timer, and add the first timer to a blocking queue.
- the apparatus further includes:
- the second processing module is configured to: when the first timer is a preset important timer, when the first timer is triggered, wake up the central processing unit CPU of the mobile terminal and perform an operation corresponding to the first timer.
- the acquiring module includes:
- the first starting unit is configured to: obtain a startup instruction of the preset power saving mode, and start the preset power saving mode according to the startup instruction;
- the first obtaining unit is configured to: acquire the first timer that needs to be executed when the preset power saving mode is used and when the mobile terminal is in the blackout state.
- the acquiring module includes:
- the second starting unit is configured to: when the battery level of the mobile terminal is less than a preset value, start the preset power saving mode;
- the second obtaining unit is configured to: acquire the first timer that needs to be executed when the preset power saving mode is used and when the mobile terminal is in the blackout state.
- the determining module includes:
- the determining unit is configured to: determine whether the operation corresponding to the first timer is an operation performed by the CPU based on the natural time wakeup, and whether the trigger time condition of the first timer is a precise time trigger; the operation corresponding to the first timer is required
- the CPU is woken up, and when the trigger time condition of the first timer is natural time and is triggered by the precise time, the first timer is determined to be a preset important timer; otherwise, it is not a preset important timer.
- the apparatus further includes:
- the third processing module is configured to: when the screen of the mobile terminal is lit, perform an operation corresponding to the timer in the blocking queue.
- an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes a control device of the mobile terminal.
- an embodiment of the present invention provides a computer readable storage medium storing computer executable instructions, where the computer executable instructions are implemented to implement the control method of the mobile terminal.
- the method, device, and mobile terminal of the mobile terminal acquire a first timer that needs to be executed when the mobile terminal is in a blackout state, where the timer moves when triggered.
- the terminal performs the operation corresponding to the timer; determines whether the first timer is a preset important timer; when the first timer is not the preset important timer, prohibits the operation corresponding to the first timer, and A timer is added to a blocking queue, so that the mobile terminal can reduce the power consumption and extend the standby time, and can balance the user's use requirements and improve the user experience.
- FIG. 1 is a flowchart of a method for controlling a mobile terminal according to an embodiment of the present invention
- FIG. 2 is a block diagram showing a structure of a control apparatus for a mobile terminal according to an embodiment of the present invention
- FIG. 3 is a flow chart showing a control method provided by an alternative example of an embodiment of the present invention.
- an embodiment of the present invention provides a method, a device, and a mobile terminal for controlling a mobile terminal, starting from a timer when the mobile terminal is turned off, thereby reducing standby power consumption of the mobile terminal, extending standby time, and taking into account user use. The purpose of the demand.
- an embodiment of the present invention provides a method for controlling a mobile terminal, where the mobile terminal may include
- the terminal device includes a mobile device, a tablet computer, an e-book reader, a wearable device, a notebook computer, etc., and the method may include:
- Step 101 When the mobile terminal is in the off-screen state, obtain a first timer that needs to be executed, where the mobile terminal will perform an operation corresponding to the timer when the timer is triggered.
- the first timer that needs to be executed set by the application (including the system application and the third-party application) on the mobile terminal may be acquired to prepare for the subsequent steps.
- Step 102 Determine whether the first timer is a preset important timer.
- the operation corresponding to the timer may be considered as an important function on the mobile terminal.
- Step 103 When the first timer is not the preset important timer, the operation corresponding to the first timer is prohibited, and the first timer is added to a blocking queue.
- the operation corresponding to the first timer may be prohibited, and the first timer is added to the blocking queue to reduce the standby power consumption of the mobile terminal and extend the standby.
- the length of time and can meet the needs of users.
- This method can be used for mobile terminals.
- the method may further include: when the first timer is a preset important timer, When the first timer is triggered, the CPU (Central Processing Unit) of the mobile terminal is woken up and the operation corresponding to the first timer is executed.
- the CPU Central Processing Unit
- the CPU of the mobile terminal may be woken up at the trigger time of the first timer and the operation corresponding to the first timer is performed, so that When the mobile terminal is in the power-off mode, the important functions on the mobile terminal can operate normally, and the important functions of the mobile terminal are not affected, thereby reducing the standby power consumption of the mobile terminal and prolonging the standby time.
- a preset mode may be preset, where the preset mode may be a preset power saving mode, which may be preset to reduce power consumption of the mobile terminal and increase standby time. Operating mode, such as extreme power saving mode or long standby mode.
- the control method provided by the embodiment of the present invention may be performed.
- the user may select whether to activate the preset power saving mode according to his actual use requirement to save power to the mobile terminal.
- the step of acquiring the first timer that needs to be executed may include: acquiring a startup instruction of the preset power saving mode, and starting the preset power saving mode according to the startup instruction; In the preset power saving mode and when the mobile terminal is in the blackout state, the first timer that needs to be executed is acquired.
- the acquisition of the startup instruction may be acquired according to the operation of the preset activation button by the user, that is, when it is detected that the preset startup button is triggered, the startup instruction of the preset power saving mode is acquired.
- the preset activation button may be a physical button or a virtual button. Specifically, the preset activation button may be set according to actual design requirements or user usage requirements, which is not limited in this embodiment.
- the preset power saving mode may be activated when the battery power of the mobile terminal is lower than a certain power level to extend the standby time of the mobile terminal to ensure a user experience.
- the step of acquiring the first timer that needs to be performed may include: when the battery power of the mobile terminal is less than a preset value, starting the preset power saving mode; The power saving mode is set and when the mobile terminal is in the off state, the first timer that needs to be executed is acquired.
- the preset value may be set according to actual design requirements or usage requirements, which is not limited in this embodiment.
- the step of determining whether the first timer is a preset important timer may include the following steps: determining whether the operation corresponding to the first timer is an operation performed by the CPU based on the natural time wakeup. And whether the trigger time condition of the first timer is a precise time trigger; the operation corresponding to the first timer needs to wake up the CPU, and when the trigger time condition of the first timer is natural time and is triggered by the precise time, the judgment is performed.
- a timer is a preset important timer, otherwise it is not a preset important timer.
- the setalarm system interface can be used to obtain several main parameters to determine whether the timer is a preset important timer.
- the main parameters of the setalarm system interface may include (for example only): the type of the timer (type), the trigger time (triggerTime), and whether it is an accurate time trigger (isExactTime). In this example, it can be roughly triggered by the timer type and whether it is a precise time. Two parameters determine whether the timer is a preset important timer.
- the timer types include the following five types: RTC_WAKEUP type timer, RTC type timer, RTC_POWEROFF_WAKEUP type timer, ELAPSED_REALTIME_WAKEUP type timer, and ELAPSED_REALTIME type timer.
- the timer of the RTC_WAKEUP type indicates that the operation corresponding to the timer is based on natural time (which can be understood as the time, minute and second of the human world) and can wake up the operation performed by the CPU.
- the RTC type timer indicates that the operation corresponding to the timer is based on natural time but cannot Wake up the operation performed by the CPU.
- the RTC_POWEROFF_WAKEUP type timer indicates that the operation corresponding to the timer is based on natural time and can wake up the CPU to perform operations in the shutdown state.
- the ELAPSED_REALTIME_WAKEUP type timer indicates that the timer corresponding operation is relative to the boot time and The operation of the CPU can be awakened.
- the timer of the ELAPSED_REALTIME type indicates that the operation corresponding to the timer is relative to the boot time and cannot wake up the CPU.
- step 103 when the first timer is not a preset important timer, the operation corresponding to the first timer is prohibited, and the first timing is performed.
- the method may further include the step of: performing an operation corresponding to the timer in the blocking queue when the screen of the mobile terminal is lit.
- the screen of the mobile terminal is lit, it may indicate that the user needs to operate the mobile terminal, and the operation corresponding to the timer in the blocking queue may be performed to ensure that the function of the mobile terminal is not affected.
- the timer corresponding to the blocking queue may be executed when the screen of the mobile terminal is lit and the mobile terminal is in the unlocked state. Operation.
- the mobile terminal when the mobile terminal exits the preset power saving mode, it may indicate that the power saving operation of the mobile terminal is not required at present, and the operation corresponding to the timer in the blocking queue may be performed at this time.
- the control method of the mobile terminal acquires a first timer that needs to be executed when the mobile terminal is in a blackout state, where the mobile terminal performs when the timer is triggered.
- the operation corresponding to the timer determining whether the first timer is a preset important timer; when the first timer is not the preset important timer, prohibiting the operation corresponding to the first timer, and the first timer
- the mobile terminal can reduce the power consumption and extend the standby time, and can balance the user's use requirements and improve the user experience.
- an embodiment of the present invention further provides an apparatus configured to implement the above method.
- FIG. 2 it is a structural block diagram of a control device for a mobile terminal according to an embodiment of the present invention.
- the embodiment of the present invention provides a control device for a mobile terminal, where the mobile terminal may include, for example, a mobile phone or a tablet.
- the terminal device of the computer, the e-book reader, the wearable device, the notebook computer, and the like, the device may include: an obtaining module 210, a determining module 220, and a first processing module 230.
- the obtaining module 210 is configured to: when the mobile terminal is in the off-screen state, acquire a first timer that needs to be executed, where the mobile terminal performs an operation corresponding to the timer when the timer is triggered;
- the determining module 220 is configured to: determine whether the first timer is a preset important timer;
- the first processing module 230 is configured to: when the first timer is not the preset important timer, prohibit the operation corresponding to the first timer, and add the first timer to a blocking queue.
- the device can be used in a mobile terminal.
- the apparatus may further include: a second processing module.
- the second processing module is configured to: when the first timer is a preset important timer, when the first timer is triggered, wake up the central processing unit CPU of the mobile terminal and perform an operation corresponding to the first timer.
- the acquiring module 210 may include: a first starting unit and a first acquiring unit.
- the first starting unit is configured to: obtain a startup instruction of the preset power saving mode, and start the preset power saving mode according to the startup instruction;
- the first obtaining unit is configured to: acquire the first timer that needs to be executed when the preset power saving mode is used and when the mobile terminal is in the blackout state.
- the acquiring module 210 may include: a second starting unit and a second acquiring unit.
- the second starting unit is configured to: when the battery level of the mobile terminal is less than a preset value, start the pre- Set the power saving mode;
- the second obtaining unit is configured to: acquire the first timer that needs to be executed when the preset power saving mode is used and when the mobile terminal is in the blackout state.
- the determining module may include: a determining unit.
- the determining unit is configured to: determine whether the operation corresponding to the first timer is an operation performed by the CPU based on the natural time wakeup, and whether the trigger time condition of the first timer is a precise time trigger; the operation corresponding to the first timer is required
- the CPU is woken up, and when the trigger time condition of the first timer is natural time and is triggered by the precise time, the first timer is determined to be a preset important timer; otherwise, it is not a preset important timer.
- the apparatus may further include: a third processing module.
- the third processing module is configured to: when the screen of the mobile terminal is lit, perform an operation corresponding to the timer in the blocking queue.
- control device of the mobile terminal provided by the foregoing embodiment may be in the same concept as the control method of the mobile terminal provided by the embodiment.
- the detailed implementation process may be described in detail in the foregoing method. To avoid repetition, details are not described herein again.
- an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes a control device of the mobile terminal.
- the mobile terminal may include terminal devices such as a mobile phone, a tablet, an e-book reader, a wearable device, a notebook computer, and the like.
- the mobile terminal having the control device of the mobile terminal should also have corresponding technical effects, and the implementation process thereof is similar to the above-described embodiment, and details are not described herein.
- the control device and the mobile terminal of the mobile terminal provided by the embodiment of the present invention acquire a first timer to be executed when the mobile terminal is in a blackout state, wherein the mobile terminal performs an operation corresponding to the timer when the timer is triggered. Determining whether the first timer is a preset important timer; when the first timer is not the preset important timer, prohibiting the operation corresponding to the first timer, and adding the first timer to a blocking queue, The mobile terminal can reduce the power consumption and extend the standby time, and can balance the user's use requirements and improve the user experience.
- the mobile phone of the Android system is taken as an example, and the preset power saving mode is preset in the mobile phone, and the preset power saving mode is the limit power saving mode.
- FIG. 3 is a flowchart of a control method provided by an optional example of an embodiment of the present invention, the control method provided by the example includes the following steps:
- step 301 it is determined whether the mobile phone is in the limit power saving mode and is in the off state.
- step 302 is performed; otherwise, step 304 is performed.
- Step 302 Determine whether the timer to be executed is a preset important timer.
- the timer type and whether the trigger time condition of the timer is a precise time trigger, it is determined whether the timer to be executed (including a system application or a third-party application preset or a currently set timer) is preset.
- the timer corresponding to the function such as the timed power on, the timed shutdown, and the like, at this time, step 304 is performed; otherwise, step 303 is performed.
- step 303 the timer is added to the blocking queue.
- the timer when the timer is not a preset important timer, the timer can be added to the blocking queue, and the operation corresponding to the timer is prohibited from being executed, waiting for subsequent resetting, and the process ends.
- the step of re-setting may refer to removing the timer in the blocking queue and setting it to take effect immediately when the screen of the mobile phone is turned on or the limit power saving mode is turned off.
- step 304 the timer is set immediately.
- the timer when the timer is a preset important timer, the timer can be set immediately, so that the timer can wake up the CPU and perform the operation corresponding to the timer when the triggering, and the flow ends.
- the embodiment of the invention further provides a computer readable storage medium, which is stored in a computer executable And an instruction to implement the control method of the mobile terminal when the computer executable instruction is executed.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be 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 of the embodiment.
- a plurality of functional units in the embodiment of the present invention may be integrated into one processing unit, or each of the plurality of functional units may exist physically separately, or two or more functional units may be integrated in the functional unit. In a unit.
- the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
- the technical solution of the embodiments of the present invention, or the part contributing to the related technology or the part of the technical solution may be embodied in the form of a software product, where the computer software product is stored in a storage medium.
- a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in this embodiment of the invention.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a ROM (Read-Only Memory), A variety of media that can store program code, such as RAM (Random Access Memory), disk, or optical disk.
- all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
- the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
- the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
- the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
- the method and device for controlling a mobile terminal and the mobile terminal acquire a first timer to be executed when the mobile terminal is in a blackout state, wherein the mobile terminal performs a timer corresponding to the timer when the timer is triggered.
- the operation of the first timer is determined to be a preset important timer; when the first timer is not the preset important timer, the operation corresponding to the first timer is prohibited, and the first timer is added to a blocking
- the queue enables the mobile terminal to balance the user's usage requirements and improve the user experience while achieving reduced power consumption and extended standby time.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Environmental & Geological Engineering (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
A method for controlling a mobile terminal comprises: when a mobile terminal is in a screen off state, acquiring a first timer to be executed, wherein upon triggering of a timer, the mobile terminal executes an operation corresponding to the timer; determining whether the first timer is a preset important timer; and if not, prohibiting execution of an operation corresponding to the first timer, and adding the first timer to a blocking queue.
Description
本申请涉及但不限于电子技术领域,尤其是一种移动终端的控制方法、装置及移动终端。The present application relates to, but is not limited to, the field of electronic technologies, and in particular, to a method, an apparatus, and a mobile terminal for controlling a mobile terminal.
随着电子技术的发展,移动终端的功能越来越强大,用户对于移动终端的使用需求也越来越高。在移动终端的日常使用中,在充电不便利或者无法及时充电的情况下,尤其是在电池电量剩余较少时,电池电量对于移动终端的正常使用有着很大影响。为此,相关技术中的移动终端通常设置有超长待机模式、智能省电模式等工作模式,以便于减少电量损耗,延长待机时长。但相关技术中的省电方案中,以手机为例,在超长待机模式下,一般将手机设置为飞行模式,此时,手机功能极大受限,失去基本的通讯功能;而在其他一些对功能限制较小的省电方案中,则又使得手机的省电效果不明显。由此可见,在相关技术中,移动终端省电过程中存在省电效果不明显或者不能兼顾用户使用需求的问题。With the development of electronic technology, the functions of mobile terminals are becoming more and more powerful, and users are increasingly demanding the use of mobile terminals. In the daily use of the mobile terminal, in the case where the charging is not convenient or cannot be charged in time, especially when the battery power is low, the battery power has a great influence on the normal use of the mobile terminal. For this reason, the mobile terminal in the related art is usually provided with an operation mode such as an ultra long standby mode and an intelligent power saving mode, so as to reduce power consumption and extend standby time. However, in the power saving scheme of the related art, taking the mobile phone as an example, in the long standby mode, the mobile phone is generally set to the flight mode, and at this time, the mobile phone function is greatly limited, and the basic communication function is lost; In the power-saving scheme with less functional restrictions, the power saving effect of the mobile phone is not obvious. It can be seen that in the related art, there is a problem that the power saving effect of the mobile terminal is not obvious or the user needs cannot be taken into consideration in the power saving process.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例要解决的技术问题是提供一种移动终端的控制方法、装置及移动终端,能够解决在相关技术中,移动终端省电过程中存在省电效果不明显或者不能兼顾用户使用需求的问题。The technical problem to be solved by the embodiments of the present invention is to provide a method, a device, and a mobile terminal for controlling a mobile terminal, which can solve the problem that in the related art, the power saving effect of the mobile terminal is not obvious or the user needs cannot be taken into account. problem.
第一方面,本发明实施例提供一种移动终端的控制方法,该方法包括:In a first aspect, an embodiment of the present invention provides a method for controlling a mobile terminal, where the method includes:
当移动终端处于熄屏状态时,获取需要执行的第一定时器,其中,定时器在触发时移动终端将执行定时器对应的操作;When the mobile terminal is in the off-screen state, acquiring a first timer that needs to be executed, where the mobile terminal will perform an operation corresponding to the timer when the timer is triggered;
判断第一定时器是否为预设的重要定时器;
Determining whether the first timer is a preset important timer;
在第一定时器不是预设的重要定时器时,禁止执行第一定时器对应的操作,并将第一定时器加入一阻塞队列。When the first timer is not the preset important timer, the operation corresponding to the first timer is prohibited, and the first timer is added to a blocking queue.
在一种示例性实施方式中,判断第一定时器是否为预设的重要定时器的步骤之后,该方法还包括:In an exemplary embodiment, after the step of determining whether the first timer is a preset important timer, the method further includes:
在第一定时器是预设的重要定时器时,在第一定时器触发时,唤醒移动终端的中央处理器CPU并执行第一定时器对应的操作。When the first timer is a preset important timer, when the first timer is triggered, the CPU of the mobile terminal is woken up and the operation corresponding to the first timer is executed.
在一种示例性实施方式中,当移动终端处于熄屏状态时,获取需要执行的第一定时器的步骤包括:In an exemplary embodiment, when the mobile terminal is in the blackout state, the step of acquiring the first timer that needs to be performed includes:
获取预设省电模式的启动指令,并根据启动指令启动预设省电模式;Obtaining a startup instruction of the preset power saving mode, and starting the preset power saving mode according to the startup instruction;
在预设省电模式且当移动终端处于熄屏状态时,获取需要执行的第一定时器。In the preset power saving mode and when the mobile terminal is in the blackout state, the first timer that needs to be executed is acquired.
在一种示例性实施方式中,当移动终端处于熄屏状态时,获取需要执行的第一定时器的步骤包括:In an exemplary embodiment, when the mobile terminal is in the blackout state, the step of acquiring the first timer that needs to be performed includes:
当移动终端的电池电量小于预设值时,启动预设省电模式;When the battery level of the mobile terminal is less than a preset value, the preset power saving mode is activated;
在预设省电模式且当移动终端处于熄屏状态时,获取需要执行的第一定时器。In the preset power saving mode and when the mobile terminal is in the blackout state, the first timer that needs to be executed is acquired.
在一种示例性实施方式中,判断第一定时器是否为预设的重要定时器的步骤包括:In an exemplary embodiment, the step of determining whether the first timer is a preset important timer includes:
判断第一定时器对应的操作是否为基于自然时间唤醒CPU执行的操作,以及,第一定时器的触发时间条件是否为精准时间触发;Determining whether the operation corresponding to the first timer is an operation performed by the CPU based on the natural time wakeup, and whether the trigger time condition of the first timer is a precise time trigger;
在第一定时器对应的操作需要唤醒CPU,且,第一定时器的触发时间条件为自然时间并为精准时间触发时,判断第一定时器为预设的重要定时器,否则,不是预设的重要定时器。The operation corresponding to the first timer needs to wake up the CPU, and when the trigger time condition of the first timer is natural time and is triggered by the precise time, the first timer is determined to be a preset important timer. Otherwise, it is not a preset. Important timer.
在一种示例性实施方式中,在第一定时器不是预设的重要定时器时,禁止执行第一定时器对应的操作,并将第一定时器加入一阻塞队列的步骤之后,该方法还包括:In an exemplary embodiment, after the step of prohibiting the operation of the first timer and adding the first timer to a blocking queue, when the first timer is not the preset important timer, the method further include:
当移动终端的屏幕点亮时,执行阻塞队列中的定时器对应的操作。When the screen of the mobile terminal is lit, the operation corresponding to the timer in the blocking queue is performed.
第二方面,本发明实施例提供一种移动终端的控制装置,该装置包括:In a second aspect, an embodiment of the present invention provides a control apparatus for a mobile terminal, where the apparatus includes:
获取模块,设置为:当移动终端处于熄屏状态时,获取需要执行的第一
定时器,其中,定时器在触发时移动终端将执行定时器对应的操作;The obtaining module is set to: when the mobile terminal is in the off state, obtain the first required to be executed
a timer, wherein the mobile terminal performs an operation corresponding to the timer when the timer is triggered;
判断模块,设置为:判断第一定时器是否为预设的重要定时器;The determining module is configured to: determine whether the first timer is a preset important timer;
第一处理模块,设置为:在第一定时器不是预设的重要定时器时,禁止执行第一定时器对应的操作,并将第一定时器加入一阻塞队列。The first processing module is configured to: when the first timer is not the preset important timer, prohibit the operation corresponding to the first timer, and add the first timer to a blocking queue.
在一种示例性实施方式中,该装置还包括:In an exemplary embodiment, the apparatus further includes:
第二处理模块,设置为:在第一定时器是预设的重要定时器时,在第一定时器触发时,唤醒移动终端的中央处理器CPU并执行第一定时器对应的操作。The second processing module is configured to: when the first timer is a preset important timer, when the first timer is triggered, wake up the central processing unit CPU of the mobile terminal and perform an operation corresponding to the first timer.
在一种示例性实施方式中,该装置中,获取模块包括:In an exemplary embodiment, in the device, the acquiring module includes:
第一启动单元,设置为:获取预设省电模式的启动指令,并根据启动指令启动预设省电模式;The first starting unit is configured to: obtain a startup instruction of the preset power saving mode, and start the preset power saving mode according to the startup instruction;
第一获取单元,设置为:在预设省电模式且当移动终端处于熄屏状态时,获取需要执行的第一定时器。The first obtaining unit is configured to: acquire the first timer that needs to be executed when the preset power saving mode is used and when the mobile terminal is in the blackout state.
在一种示例性实施方式中,该装置中,获取模块包括:In an exemplary embodiment, in the device, the acquiring module includes:
第二启动单元,设置为:当移动终端的电池电量小于预设值时,启动预设省电模式;The second starting unit is configured to: when the battery level of the mobile terminal is less than a preset value, start the preset power saving mode;
第二获取单元,设置为:在预设省电模式且当移动终端处于熄屏状态时,获取需要执行的第一定时器。The second obtaining unit is configured to: acquire the first timer that needs to be executed when the preset power saving mode is used and when the mobile terminal is in the blackout state.
在一种示例性实施方式中,判断模块包括:In an exemplary embodiment, the determining module includes:
判断单元,设置为:判断第一定时器对应的操作是否为基于自然时间唤醒CPU执行的操作,以及,第一定时器的触发时间条件是否为精准时间触发;在第一定时器对应的操作需要唤醒CPU,且,第一定时器的触发时间条件为自然时间并为精准时间触发时,判断第一定时器为预设的重要定时器,否则,不是预设的重要定时器。The determining unit is configured to: determine whether the operation corresponding to the first timer is an operation performed by the CPU based on the natural time wakeup, and whether the trigger time condition of the first timer is a precise time trigger; the operation corresponding to the first timer is required The CPU is woken up, and when the trigger time condition of the first timer is natural time and is triggered by the precise time, the first timer is determined to be a preset important timer; otherwise, it is not a preset important timer.
在一种示例性实施方式中,该装置还包括:In an exemplary embodiment, the apparatus further includes:
第三处理模块,设置为:当移动终端的屏幕点亮时,执行阻塞队列中的定时器对应的操作。The third processing module is configured to: when the screen of the mobile terminal is lit, perform an operation corresponding to the timer in the blocking queue.
第三方面,本发明实施例提供一种移动终端,移动终端包括上述移动终端的控制装置。
In a third aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes a control device of the mobile terminal.
第四方面,本发明实施例提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述移动终端的控制方法。In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium storing computer executable instructions, where the computer executable instructions are implemented to implement the control method of the mobile terminal.
与相关技术相比,本发明实施例提供的移动终端的控制方法、装置及移动终端,通过当移动终端处于熄屏状态时,获取需要执行的第一定时器,其中,定时器在触发时移动终端将执行定时器对应的操作;判断第一定时器是否为预设的重要定时器;在第一定时器不是预设的重要定时器时,禁止执行第一定时器对应的操作,并将第一定时器加入一阻塞队列,使得移动终端在达到减小功耗、延长待机时长的同时,能够兼顾用户使用需求,提升用户体验。Compared with the related art, the method, device, and mobile terminal of the mobile terminal provided by the embodiment of the present invention acquire a first timer that needs to be executed when the mobile terminal is in a blackout state, where the timer moves when triggered. The terminal performs the operation corresponding to the timer; determines whether the first timer is a preset important timer; when the first timer is not the preset important timer, prohibits the operation corresponding to the first timer, and A timer is added to a blocking queue, so that the mobile terminal can reduce the power consumption and extend the standby time, and can balance the user's use requirements and improve the user experience.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1表示本发明实施例提供的移动终端的控制方法的一种流程图;FIG. 1 is a flowchart of a method for controlling a mobile terminal according to an embodiment of the present invention;
图2表示本发明实施例提供的移动终端的控制装置的一种结构框图;2 is a block diagram showing a structure of a control apparatus for a mobile terminal according to an embodiment of the present invention;
图3表示本发明实施例的可选示例提供的控制方法的一种流程图。3 is a flow chart showing a control method provided by an alternative example of an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下面结合附图对本发明的实施方式进行描述。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的各种方式可以相互组合。Embodiments of the present invention will be described below with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the various manners in the embodiments may be combined with each other without conflict.
在对手机进行省电以保证待机时长时,进行省电主要可保证手机的重要功能,例如接听电话、接收短信等,其他功能可以尽量减少。在使用中发现,在手机灭屏(熄屏)的情况下,手机除了无线网络需要与基站通讯外,大部分功能主要是通过应用程序设置的定时器唤醒手机,从而造成手机的功耗消耗。基于此,本发明实施例提供一种移动终端的控制方法、装置及移动终端,从移动终端熄屏时的定时器入手,从而达到降低移动终端的待机功耗、延长待机时长,并兼顾用户使用需求的目的。When power saving the mobile phone to ensure standby time, power saving can mainly ensure important functions of the mobile phone, such as answering a call, receiving a short message, etc., and other functions can be minimized. In use, it is found that in the case that the mobile phone is off (screening out), in addition to the wireless network needs to communicate with the base station, most of the functions are mainly to wake up the mobile phone through the timer set by the application, thereby causing power consumption of the mobile phone. Based on this, an embodiment of the present invention provides a method, a device, and a mobile terminal for controlling a mobile terminal, starting from a timer when the mobile terminal is turned off, thereby reducing standby power consumption of the mobile terminal, extending standby time, and taking into account user use. The purpose of the demand.
请参见图1,其示出的是本发明实施例提供的移动终端的控制方法的一种流程图,本发明实施例提供一种移动终端的控制方法,该移动终端可以包
括诸如手机、平板电脑、电子书阅读器、可穿戴设备、笔记本电脑等终端设备,该方法可以包括:Referring to FIG. 1 , which is a flowchart of a method for controlling a mobile terminal according to an embodiment of the present invention, an embodiment of the present invention provides a method for controlling a mobile terminal, where the mobile terminal may include
The terminal device includes a mobile device, a tablet computer, an e-book reader, a wearable device, a notebook computer, etc., and the method may include:
步骤101,当移动终端处于熄屏状态时,获取需要执行的第一定时器,其中,定时器在触发时移动终端将执行定时器对应的操作。Step 101: When the mobile terminal is in the off-screen state, obtain a first timer that needs to be executed, where the mobile terminal will perform an operation corresponding to the timer when the timer is triggered.
这里,当移动终端处于熄屏状态时,可获取移动终端上的应用程序(包括系统应用程序以及第三方应用程序)设置的需要执行的第一定时器,为后续步骤做准备。Here, when the mobile terminal is in the off-screen state, the first timer that needs to be executed set by the application (including the system application and the third-party application) on the mobile terminal may be acquired to prepare for the subsequent steps.
步骤102,判断第一定时器是否为预设的重要定时器。Step 102: Determine whether the first timer is a preset important timer.
这里,可根据预设条件判断获取的第一定时器是否为预设的重要定时器,为后续步骤做准备。其中,当定时器为预设的重要定时器时,则可以认为该定时器对应的操作为移动终端上的重要功能。Here, it is determined whether the acquired first timer is a preset important timer according to a preset condition, and prepares for a subsequent step. When the timer is a preset important timer, the operation corresponding to the timer may be considered as an important function on the mobile terminal.
步骤103,在第一定时器不是预设的重要定时器时,禁止执行第一定时器对应的操作,并将第一定时器加入一阻塞队列。Step 103: When the first timer is not the preset important timer, the operation corresponding to the first timer is prohibited, and the first timer is added to a blocking queue.
这里,在判断确定第一定时器不是预设的重要定时器时,可禁止执行第一定时器对应的操作,并将该第一定时器加入阻塞队列,降低移动终端的待机功耗、延长待机时长,并能够兼顾用户使用需求。Here, when it is determined that the first timer is not the preset important timer, the operation corresponding to the first timer may be prohibited, and the first timer is added to the blocking queue to reduce the standby power consumption of the mobile terminal and extend the standby. The length of time, and can meet the needs of users.
该方法可用于移动终端。This method can be used for mobile terminals.
另外,在一实施例中,在步骤102,判断第一定时器是否为预设的重要定时器的步骤之后,该方法还可以包括:在第一定时器是预设的重要定时器时,在第一定时器触发时,唤醒移动终端的CPU(Central Processing Unit,中央处理器)并执行第一定时器对应的操作。In addition, in an embodiment, after the step of determining whether the first timer is a preset important timer, the method may further include: when the first timer is a preset important timer, When the first timer is triggered, the CPU (Central Processing Unit) of the mobile terminal is woken up and the operation corresponding to the first timer is executed.
这里,当判断确定该第一定时器满足预设条件、为预设的重要定时器时,可在第一定时器的触发时间唤醒移动终端的CPU并执行第一定时器对应的操作,使得在预设省电模式下移动终端处于熄屏状态时,移动终端上的重要功能能够正常运行,保证移动终端的重要功能不受影响,从而达到在降低移动终端的待机功耗、延长待机时长的同时兼顾用户使用需求的目的。Here, when it is determined that the first timer meets the preset condition and is a preset important timer, the CPU of the mobile terminal may be woken up at the trigger time of the first timer and the operation corresponding to the first timer is performed, so that When the mobile terminal is in the power-off mode, the important functions on the mobile terminal can operate normally, and the important functions of the mobile terminal are not affected, thereby reducing the standby power consumption of the mobile terminal and prolonging the standby time. The purpose of taking into account the needs of users.
其中,在可选的实施例中,可以预先设置一预设模式,该预设模式可以为预设省电模式,其可以是预先设置的用于减少移动终端的使用功耗、增加待机时长的工作模式,例如极限省电模式或超长待机模式。当移动终端处于
该预设模式时,则可执行本发明实施例提供的控制方法。In an optional embodiment, a preset mode may be preset, where the preset mode may be a preset power saving mode, which may be preset to reduce power consumption of the mobile terminal and increase standby time. Operating mode, such as extreme power saving mode or long standby mode. When the mobile terminal is at
In the preset mode, the control method provided by the embodiment of the present invention may be performed.
在一实施例中,为兼顾实际应用场景中用户的真实使用需求,用户可以根据自己的实际使用需求选择是否启动该预设省电模式来对移动终端进行省电。为此,在步骤101,当移动终端处于熄屏状态时,获取需要执行的第一定时器的步骤可以包括:获取预设省电模式的启动指令,并根据启动指令启动预设省电模式;在预设省电模式且当移动终端处于熄屏状态时,获取需要执行的第一定时器。这里,该启动指令的获取可以根据用户对预设启动按键的操作来获取,即,当检测到预设启动按键被触发时,获取预设省电模式的启动指令。该预设启动按键可以是实体按键,也可以是虚拟按键,特定地,该预设启动按键可以根据实际设计需求或者用户使用需求进行设置,本实施例对此不作限定。In an embodiment, in order to balance the real use requirements of the user in the actual application scenario, the user may select whether to activate the preset power saving mode according to his actual use requirement to save power to the mobile terminal. To this end, in step 101, when the mobile terminal is in the blackout state, the step of acquiring the first timer that needs to be executed may include: acquiring a startup instruction of the preset power saving mode, and starting the preset power saving mode according to the startup instruction; In the preset power saving mode and when the mobile terminal is in the blackout state, the first timer that needs to be executed is acquired. Here, the acquisition of the startup instruction may be acquired according to the operation of the preset activation button by the user, that is, when it is detected that the preset startup button is triggered, the startup instruction of the preset power saving mode is acquired. The preset activation button may be a physical button or a virtual button. Specifically, the preset activation button may be set according to actual design requirements or user usage requirements, which is not limited in this embodiment.
在另一实施例中,可以在移动终端的电池电量低于某一电量水平时启动该预设省电模式,以延长移动终端的待机时长,确保用户使用体验。为此,在步骤101,当移动终端处于熄屏状态时,获取需要执行的第一定时器的步骤可以包括:当移动终端的电池电量小于预设值时,启动预设省电模式;在预设省电模式且当移动终端处于熄屏状态时,获取需要执行的第一定时器。这里,该预设值可以根据实际设计需求或者使用需求进行设置,本实施例对此不作限定。In another embodiment, the preset power saving mode may be activated when the battery power of the mobile terminal is lower than a certain power level to extend the standby time of the mobile terminal to ensure a user experience. To this end, in step 101, when the mobile terminal is in the blackout state, the step of acquiring the first timer that needs to be performed may include: when the battery power of the mobile terminal is less than a preset value, starting the preset power saving mode; The power saving mode is set and when the mobile terminal is in the off state, the first timer that needs to be executed is acquired. The preset value may be set according to actual design requirements or usage requirements, which is not limited in this embodiment.
其中,在一实施例中,步骤102,判断第一定时器是否为预设的重要定时器的步骤可以包括以下步骤:判断第一定时器对应的操作是否为基于自然时间唤醒CPU执行的操作,以及,第一定时器的触发时间条件是否为精准时间触发;在第一定时器对应的操作需要唤醒CPU,且,第一定时器的触发时间条件为自然时间并为精准时间触发时,判断第一定时器为预设的重要定时器,否则,不是预设的重要定时器。In an embodiment, in step 102, the step of determining whether the first timer is a preset important timer may include the following steps: determining whether the operation corresponding to the first timer is an operation performed by the CPU based on the natural time wakeup. And whether the trigger time condition of the first timer is a precise time trigger; the operation corresponding to the first timer needs to wake up the CPU, and when the trigger time condition of the first timer is natural time and is triggered by the precise time, the judgment is performed. A timer is a preset important timer, otherwise it is not a preset important timer.
这里,在一示例中,以安卓(Android)系统的手机为例,可通过调用setalarm系统接口,获取若干主要参数来判断定时器是否为预设的重要定时器。其中,setalarm系统接口的主要参数可以包括(仅为举例说明):定时器类型(type)、触发时间(triggerTime)以及是否为精准时间触发(isExactTime)。在该示例中大致可通过定时器类型和是否为精准时间触发
两个参数判断定时器是否为预设的重要定时器。定时器类型包括以下五种:RTC_WAKEUP类型的定时器、RTC类型的定时器、RTC_POWEROFF_WAKEUP类型的定时器、ELAPSED_REALTIME_WAKEUP类型的定时器以及ELAPSED_REALTIME类型的定时器。RTC_WAKEUP类型的定时器表示定时器对应的操作是基于自然时间(可以理解为人类世界的时分秒)并且能唤醒CPU执行的操作,RTC类型的定时器表示定时器对应的操作是基于自然时间但不能唤醒CPU执行的操作,RTC_POWEROFF_WAKEUP类型的定时器表示定时器对应的操作是基于自然时间且能在关机状态下唤醒CPU执行的操作,ELAPSED_REALTIME_WAKEUP类型的定时器表示定时器对应的操作是相对于开机时间并且能唤醒CPU执行的操作,ELAPSED_REALTIME类型的定时器表示定时器对应的操作是相对于开机时间且不能唤醒CPU执行的操作。由此可知,若定时器为预设的重要定时器,则定时器需要满足定时器类型为RTC_WAKEUP类型或者RTC_POWEROFF_WAKEUP类型;此外,还需要满足触发时间条件为精准时间触发,即isExactTime==true,此时定时器只能按照设置的时间触发,不可以退后一段时间触发。Here, in an example, taking the mobile phone of the Android system as an example, the setalarm system interface can be used to obtain several main parameters to determine whether the timer is a preset important timer. The main parameters of the setalarm system interface may include (for example only): the type of the timer (type), the trigger time (triggerTime), and whether it is an accurate time trigger (isExactTime). In this example, it can be roughly triggered by the timer type and whether it is a precise time.
Two parameters determine whether the timer is a preset important timer. The timer types include the following five types: RTC_WAKEUP type timer, RTC type timer, RTC_POWEROFF_WAKEUP type timer, ELAPSED_REALTIME_WAKEUP type timer, and ELAPSED_REALTIME type timer. The timer of the RTC_WAKEUP type indicates that the operation corresponding to the timer is based on natural time (which can be understood as the time, minute and second of the human world) and can wake up the operation performed by the CPU. The RTC type timer indicates that the operation corresponding to the timer is based on natural time but cannot Wake up the operation performed by the CPU. The RTC_POWEROFF_WAKEUP type timer indicates that the operation corresponding to the timer is based on natural time and can wake up the CPU to perform operations in the shutdown state. The ELAPSED_REALTIME_WAKEUP type timer indicates that the timer corresponding operation is relative to the boot time and The operation of the CPU can be awakened. The timer of the ELAPSED_REALTIME type indicates that the operation corresponding to the timer is relative to the boot time and cannot wake up the CPU. Therefore, if the timer is a preset important timer, the timer needs to meet the timer type RTC_WAKEUP type or RTC_POWEROFF_WAKEUP type; in addition, the trigger time condition needs to be the precise time trigger, ie isExactTime==true, The timer can only be triggered according to the set time. It cannot be triggered for a period of time.
此外,在一实施例中,为保证用户的使用体验舒适性,在步骤103,在第一定时器不是预设的重要定时器时,禁止执行第一定时器对应的操作,并将第一定时器加入一阻塞队列的步骤之后,该方法还可以包括以下步骤:当移动终端的屏幕点亮时,执行阻塞队列中的定时器对应的操作。这里,在移动终端的屏幕点亮时,可以表示用户需要对移动终端进行操作使用,则可执行阻塞队列中的定时器对应的操作,以保证移动终端的功能不受影响。另外,作为该实施例的一种可选实施方式,为避免用户误操作引起的屏幕点亮操作,可以在移动终端的屏幕点亮且移动终端处于解锁状态时,执行阻塞队列中的定时器对应的操作。In addition, in an embodiment, in order to ensure user experience and comfort, in step 103, when the first timer is not a preset important timer, the operation corresponding to the first timer is prohibited, and the first timing is performed. After the step of adding a blocking queue, the method may further include the step of: performing an operation corresponding to the timer in the blocking queue when the screen of the mobile terminal is lit. Here, when the screen of the mobile terminal is lit, it may indicate that the user needs to operate the mobile terminal, and the operation corresponding to the timer in the blocking queue may be performed to ensure that the function of the mobile terminal is not affected. In addition, as an optional implementation manner of the embodiment, in order to avoid the screen lighting operation caused by the user's erroneous operation, the timer corresponding to the blocking queue may be executed when the screen of the mobile terminal is lit and the mobile terminal is in the unlocked state. Operation.
另外,当移动终端退出预设省电模式时,则可以表示当前不需要对移动终端进行省电操作,此时可以执行阻塞队列中的定时器对应的操作。In addition, when the mobile terminal exits the preset power saving mode, it may indicate that the power saving operation of the mobile terminal is not required at present, and the operation corresponding to the timer in the blocking queue may be performed at this time.
本发明实施例提供的移动终端的控制方法,通过当移动终端处于熄屏状态时,获取需要执行的第一定时器,其中,定时器在触发时移动终端将执行
定时器对应的操作;判断第一定时器是否为预设的重要定时器;在第一定时器不是预设的重要定时器时,禁止执行第一定时器对应的操作,并将第一定时器加入一阻塞队列,使得移动终端在达到减小功耗、延长待机时长的同时,能够兼顾用户使用需求,提升用户体验。The control method of the mobile terminal provided by the embodiment of the present invention acquires a first timer that needs to be executed when the mobile terminal is in a blackout state, where the mobile terminal performs when the timer is triggered.
The operation corresponding to the timer; determining whether the first timer is a preset important timer; when the first timer is not the preset important timer, prohibiting the operation corresponding to the first timer, and the first timer By adding a blocking queue, the mobile terminal can reduce the power consumption and extend the standby time, and can balance the user's use requirements and improve the user experience.
另外,基于上述方法,本发明实施例还提供了一种设置为实施上述方法的装置。请参见图2,其示出的是本发明实施例提供的移动终端的控制装置的一种结构框图,本发明实施例提供一种移动终端的控制装置,其中该移动终端可以包括诸如手机、平板电脑、电子书阅读器、可穿戴设备、笔记本电脑等终端设备,该装置可以包括:获取模块210、判断模块220以及第一处理模块230。In addition, based on the above method, an embodiment of the present invention further provides an apparatus configured to implement the above method. Referring to FIG. 2, it is a structural block diagram of a control device for a mobile terminal according to an embodiment of the present invention. The embodiment of the present invention provides a control device for a mobile terminal, where the mobile terminal may include, for example, a mobile phone or a tablet. The terminal device of the computer, the e-book reader, the wearable device, the notebook computer, and the like, the device may include: an obtaining module 210, a determining module 220, and a first processing module 230.
获取模块210,设置为:当移动终端处于熄屏状态时,获取需要执行的第一定时器,其中,定时器在触发时移动终端将执行定时器对应的操作;The obtaining module 210 is configured to: when the mobile terminal is in the off-screen state, acquire a first timer that needs to be executed, where the mobile terminal performs an operation corresponding to the timer when the timer is triggered;
判断模块220,设置为:判断第一定时器是否为预设的重要定时器;The determining module 220 is configured to: determine whether the first timer is a preset important timer;
第一处理模块230,设置为:在第一定时器不是预设的重要定时器时,禁止执行第一定时器对应的操作,并将第一定时器加入一阻塞队列。The first processing module 230 is configured to: when the first timer is not the preset important timer, prohibit the operation corresponding to the first timer, and add the first timer to a blocking queue.
该装置可用于移动终端。The device can be used in a mobile terminal.
在一实施例中,该装置还可以包括:第二处理模块。In an embodiment, the apparatus may further include: a second processing module.
第二处理模块,设置为:在第一定时器是预设的重要定时器时,在第一定时器触发时,唤醒移动终端的中央处理器CPU并执行第一定时器对应的操作。The second processing module is configured to: when the first timer is a preset important timer, when the first timer is triggered, wake up the central processing unit CPU of the mobile terminal and perform an operation corresponding to the first timer.
在一实施例中,该装置中,获取模块210可以包括:第一启动单元以及第一获取单元。In an embodiment, the acquiring module 210 may include: a first starting unit and a first acquiring unit.
第一启动单元,设置为:获取预设省电模式的启动指令,并根据启动指令启动预设省电模式;The first starting unit is configured to: obtain a startup instruction of the preset power saving mode, and start the preset power saving mode according to the startup instruction;
第一获取单元,设置为:在预设省电模式且当移动终端处于熄屏状态时,获取需要执行的第一定时器。The first obtaining unit is configured to: acquire the first timer that needs to be executed when the preset power saving mode is used and when the mobile terminal is in the blackout state.
在一实施例中,该装置中,该获取模块210可以包括:第二启动单元以及第二获取单元。In an embodiment, the acquiring module 210 may include: a second starting unit and a second acquiring unit.
第二启动单元,设置为:当移动终端的电池电量小于预设值时,启动预
设省电模式;The second starting unit is configured to: when the battery level of the mobile terminal is less than a preset value, start the pre-
Set the power saving mode;
第二获取单元,设置为:在预设省电模式且当移动终端处于熄屏状态时,获取需要执行的第一定时器。The second obtaining unit is configured to: acquire the first timer that needs to be executed when the preset power saving mode is used and when the mobile terminal is in the blackout state.
在一实施例中,判断模块可以包括:判断单元。In an embodiment, the determining module may include: a determining unit.
判断单元,设置为:判断第一定时器对应的操作是否为基于自然时间唤醒CPU执行的操作,以及,第一定时器的触发时间条件是否为精准时间触发;在第一定时器对应的操作需要唤醒CPU,且,第一定时器的触发时间条件为自然时间并为精准时间触发时,判断第一定时器为预设的重要定时器,否则,不是预设的重要定时器。The determining unit is configured to: determine whether the operation corresponding to the first timer is an operation performed by the CPU based on the natural time wakeup, and whether the trigger time condition of the first timer is a precise time trigger; the operation corresponding to the first timer is required The CPU is woken up, and when the trigger time condition of the first timer is natural time and is triggered by the precise time, the first timer is determined to be a preset important timer; otherwise, it is not a preset important timer.
在一实施例中,该装置还可以包括:第三处理模块。In an embodiment, the apparatus may further include: a third processing module.
第三处理模块,设置为:当移动终端的屏幕点亮时,执行阻塞队列中的定时器对应的操作。The third processing module is configured to: when the screen of the mobile terminal is lit, perform an operation corresponding to the timer in the blocking queue.
上述实施例提供的移动终端的控制装置与实施例提供的移动终端的控制方法可属于同一构思,其详细实现过程可详见上述描述方法的实施例,为避免重复,这里不再赘述。The control device of the mobile terminal provided by the foregoing embodiment may be in the same concept as the control method of the mobile terminal provided by the embodiment. The detailed implementation process may be described in detail in the foregoing method. To avoid repetition, details are not described herein again.
此外,本发明实施例提供一种移动终端,移动终端包括上述移动终端的控制装置。该移动终端可以包括诸如手机、平板电脑、电子书阅读器、可穿戴设备、笔记本电脑等终端设备。In addition, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes a control device of the mobile terminal. The mobile terminal may include terminal devices such as a mobile phone, a tablet, an e-book reader, a wearable device, a notebook computer, and the like.
由于上述任一种所述移动终端的控制装置具有前述技术效果,因此,具有该移动终端的控制装置的移动终端也应具备相应的技术效果,其实施过程与上述实施例类似,兹不赘述。Since the control device of any of the above-mentioned mobile terminals has the aforementioned technical effects, the mobile terminal having the control device of the mobile terminal should also have corresponding technical effects, and the implementation process thereof is similar to the above-described embodiment, and details are not described herein.
本发明实施例提供的移动终端的控制装置及移动终端,通过当移动终端处于熄屏状态时,获取需要执行的第一定时器,其中,定时器在触发时移动终端将执行定时器对应的操作;判断第一定时器是否为预设的重要定时器;在第一定时器不是预设的重要定时器时,禁止执行第一定时器对应的操作,并将第一定时器加入一阻塞队列,使得移动终端在达到减小功耗、延长待机时长的同时,能够兼顾用户使用需求,提升用户体验。The control device and the mobile terminal of the mobile terminal provided by the embodiment of the present invention acquire a first timer to be executed when the mobile terminal is in a blackout state, wherein the mobile terminal performs an operation corresponding to the timer when the timer is triggered. Determining whether the first timer is a preset important timer; when the first timer is not the preset important timer, prohibiting the operation corresponding to the first timer, and adding the first timer to a blocking queue, The mobile terminal can reduce the power consumption and extend the standby time, and can balance the user's use requirements and improve the user experience.
下面结合附图3,通过一个可选示例,对本发明实施例作更为详细的描述。
The embodiments of the present invention will be described in more detail below with reference to FIG. 3 through an alternative example.
该示例中,以Android系统的手机为例,该手机上预先设置有预设省电模式,且该预设省电模式为极限省电模式。请参见图3,其示出的是本发明实施例的可选示例提供的控制方法的一种流程图,该示例提供的控制方法包括以下步骤:In this example, the mobile phone of the Android system is taken as an example, and the preset power saving mode is preset in the mobile phone, and the preset power saving mode is the limit power saving mode. Referring to FIG. 3, which is a flowchart of a control method provided by an optional example of an embodiment of the present invention, the control method provided by the example includes the following steps:
步骤301,判断手机是否处于极限省电模式且处于熄屏状态。这里,当判断手机处于极限省电模式且熄屏状态(即屏幕关闭),则执行步骤302;否则,执行步骤304。In step 301, it is determined whether the mobile phone is in the limit power saving mode and is in the off state. Here, when it is determined that the mobile phone is in the limit power saving mode and the screen is off (ie, the screen is off), step 302 is performed; otherwise, step 304 is performed.
步骤302,判断需要执行的定时器是否为预设的重要定时器。这里,可根据定时器类型,以及,定时器的触发时间条件是否为精准时间触发,判断需要执行的定时器(包括系统应用或第三方应用预先设置或当前设置的定时器)是否为预设的重要的定时器。当定时器为RTC_WAKEUP类型的定时器或者RTC_POWEROFF_WAKEUP类型的定时器,且,触发时间条件为精准时间触发(即isExactTime==true)时,可判断该定时器为预设的重要定时器,例如闹钟、定时开机、定时关机等功能对应的定时器,此时,执行步骤304;否则,执行步骤303。Step 302: Determine whether the timer to be executed is a preset important timer. Here, according to the timer type, and whether the trigger time condition of the timer is a precise time trigger, it is determined whether the timer to be executed (including a system application or a third-party application preset or a currently set timer) is preset. Important timer. When the timer is a timer of the RTC_WAKEUP type or a timer of the RTC_POWEROFF_WAKEUP type, and the trigger time condition is an accurate time trigger (ie, isExactTime==true), the timer can be determined as a preset important timer, such as an alarm clock. The timer corresponding to the function such as the timed power on, the timed shutdown, and the like, at this time, step 304 is performed; otherwise, step 303 is performed.
步骤303,将定时器加入阻塞队列。这里,当定时器不是预设的重要定时器时,则可将该定时器加入阻塞队列,并禁止执行该定时器对应的操作,等待后续重新设置,流程结束。其中,后续重新设置的步骤指的可以是在手机的屏幕点亮或者关闭极限省电模式时,将阻塞队列中的定时器取出并立即设置生效。In step 303, the timer is added to the blocking queue. Here, when the timer is not a preset important timer, the timer can be added to the blocking queue, and the operation corresponding to the timer is prohibited from being executed, waiting for subsequent resetting, and the process ends. The step of re-setting may refer to removing the timer in the blocking queue and setting it to take effect immediately when the screen of the mobile phone is turned on or the limit power saving mode is turned off.
步骤304,立即设置定时器。这里,当定时器是预设的重要定时器时,则可立即设置定时器,以使定时器可以在触发时唤醒CPU并执行定时器对应的操作,流程结束。In step 304, the timer is set immediately. Here, when the timer is a preset important timer, the timer can be set immediately, so that the timer can wake up the CPU and perform the operation corresponding to the timer when the triggering, and the flow ends.
另外,在一些测试试验中,在手机关闭数据业务的情况下,当手机剩余10%电量时,在相关技术中手机智能待机达25小时的情形下,若采用通过该示例提供的控制方法,则能够在保留通话、短信、闹钟等重要功能的同时,极大降低手机在极限省电模式下的CPU唤醒次数,并且手机的待机时间可以提升至38小时,待机时间提升52%。In addition, in some test experiments, when the mobile phone is shutting down the data service, when the mobile phone has 10% remaining power, in the case where the mobile phone intelligent standby for 25 hours in the related art, if the control method provided by the example is adopted, It can greatly reduce the number of CPU wake-up times of the mobile phone in the limit power-saving mode while retaining important functions such as call, SMS, alarm clock, etc., and the standby time of the mobile phone can be increased to 38 hours, and the standby time is increased by 52%.
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行
指令,所述计算机可执行指令被执行时实现上述移动终端的控制方法。The embodiment of the invention further provides a computer readable storage medium, which is stored in a computer executable
And an instruction to implement the control method of the mobile terminal when the computer executable instruction is executed.
对于前述的方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员可以知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也可以知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作并不一定是本发明实施例所必需的。For the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art can understand that the embodiments of the present invention are not limited by the described action sequence, because according to the present invention In some embodiments, certain steps may be performed in other sequences or concurrently. In the following, those skilled in the art can also understand that the embodiments described in the specification are optional embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
可以理解,说明书的描述中,提到的参考术语“一实施例”、“一个实施例”或“一些实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例或示例中。因此,在整个说明书不同地方出现的“在一实施例中”、“在一个实施例中”或“在一些实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。It is to be understood that the phrase "a", "an embodiment" or "an embodiment" or "an" In an embodiment or example. Thus, "a", "an embodiment" or "an" In addition, these particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
需要说明的是,在发明实施例中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。It should be noted that, in the embodiments of the invention, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or There is any such actual relationship or order between operations.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be 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 of the embodiment.
另外,在本发明实施例中的多个功能单元可以集成在一个处理单元中,也可以是多个功能单元中的每个功能单元单独物理存在,也可以两个或两个以上功能单元集成在一个单元中。In addition, a plurality of functional units in the embodiment of the present invention may be integrated into one processing unit, or each of the plurality of functional units may exist physically separately, or two or more functional units may be integrated in the functional unit. In a unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对相关技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM(Read-Only Memory,只读存储器)、
RAM(Random Access Memory,随机存取存储器)、磁碟或者光盘等各种可以存储程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on the understanding, the technical solution of the embodiments of the present invention, or the part contributing to the related technology or the part of the technical solution, may be embodied in the form of a software product, where the computer software product is stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in this embodiment of the invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a ROM (Read-Only Memory),
A variety of media that can store program code, such as RAM (Random Access Memory), disk, or optical disk.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件、处理器等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, processor, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
本发明实施例提供的移动终端的控制方法、装置及移动终端,通过当移动终端处于熄屏状态时,获取需要执行的第一定时器,其中,定时器在触发时移动终端将执行定时器对应的操作;判断第一定时器是否为预设的重要定时器;在第一定时器不是预设的重要定时器时,禁止执行第一定时器对应的操作,并将第一定时器加入一阻塞队列,使得移动终端在达到减小功耗、延长待机时长的同时,能够兼顾用户使用需求,提升用户体验。
The method and device for controlling a mobile terminal and the mobile terminal provided by the embodiment of the present invention acquire a first timer to be executed when the mobile terminal is in a blackout state, wherein the mobile terminal performs a timer corresponding to the timer when the timer is triggered. The operation of the first timer is determined to be a preset important timer; when the first timer is not the preset important timer, the operation corresponding to the first timer is prohibited, and the first timer is added to a blocking The queue enables the mobile terminal to balance the user's usage requirements and improve the user experience while achieving reduced power consumption and extended standby time.
Claims (14)
- 一种移动终端的控制方法,所述方法包括:A method for controlling a mobile terminal, the method comprising:当移动终端处于熄屏状态时,获取需要执行的第一定时器,其中,定时器在触发时移动终端将执行所述定时器对应的操作;When the mobile terminal is in the off-screen state, acquiring a first timer that needs to be executed, where the mobile terminal will perform an operation corresponding to the timer when the timer is triggered;判断所述第一定时器是否为预设的重要定时器;Determining whether the first timer is a preset important timer;在所述第一定时器不是预设的重要定时器时,禁止执行所述第一定时器对应的操作,并将所述第一定时器加入一阻塞队列。When the first timer is not the preset important timer, the operation corresponding to the first timer is prohibited, and the first timer is added to a blocking queue.
- 根据权利要求1所述的方法,所述判断所述第一定时器是否为预设的重要定时器的步骤之后,所述方法还包括:The method of claim 1, after the step of determining whether the first timer is a preset important timer, the method further includes:在所述第一定时器是预设的重要定时器时,在所述第一定时器触发时,唤醒移动终端的中央处理器CPU并执行所述第一定时器对应的操作。When the first timer is a preset important timer, when the first timer is triggered, the central processing unit CPU of the mobile terminal is woken up and the operation corresponding to the first timer is performed.
- 根据权利要求1所述的方法,其中,所述当移动终端处于熄屏状态时,获取需要执行的第一定时器的步骤包括:The method according to claim 1, wherein the step of acquiring the first timer that needs to be executed when the mobile terminal is in the blackout state comprises:获取预设省电模式的启动指令,并根据所述启动指令启动预设省电模式;Obtaining a startup instruction of the preset power saving mode, and starting the preset power saving mode according to the startup instruction;在所述预设省电模式且当所述移动终端处于熄屏状态时,获取需要执行的第一定时器。In the preset power saving mode and when the mobile terminal is in the blackout state, the first timer that needs to be executed is acquired.
- 根据权利要求1所述的方法,其中,所述当移动终端处于熄屏状态时,获取需要执行的第一定时器的步骤包括:The method according to claim 1, wherein the step of acquiring the first timer that needs to be executed when the mobile terminal is in the blackout state comprises:当所述移动终端的电池电量小于预设值时,启动预设省电模式;When the battery power of the mobile terminal is less than a preset value, starting the preset power saving mode;在所述预设省电模式且当所述移动终端处于熄屏状态时,获取需要执行的第一定时器。In the preset power saving mode and when the mobile terminal is in the blackout state, the first timer that needs to be executed is acquired.
- 根据权利要求1所述的方法,其中,所述判断所述第一定时器是否为预设的重要定时器的步骤包括:The method of claim 1, wherein the step of determining whether the first timer is a preset important timer comprises:判断所述第一定时器对应的操作是否为基于自然时间唤醒CPU执行的操作,以及,所述第一定时器的触发时间条件是否为精准时间触发;Determining whether the operation corresponding to the first timer is an operation performed by the CPU based on the natural time wakeup, and whether the trigger time condition of the first timer is a precise time trigger;在所述第一定时器对应的操作需要唤醒CPU,且,所述第一定时器的触发时间条件为自然时间并为精准时间触发时,判断所述第一定时器为预设的重要定时器,否则,不是预设的重要定时器。 When the operation corresponding to the first timer needs to wake up the CPU, and the trigger time condition of the first timer is the natural time and is triggered by the precise time, the first timer is determined to be a preset important timer. Otherwise, it is not a preset important timer.
- 根据权利要求1所述的方法,所述在所述第一定时器不是预设的重要定时器时,禁止执行所述第一定时器对应的操作,并将所述第一定时器加入一阻塞队列的步骤之后,所述方法还包括:The method according to claim 1, wherein when the first timer is not a preset important timer, the operation corresponding to the first timer is prohibited from being performed, and the first timer is added to a blocking After the step of the queue, the method further includes:当所述移动终端的屏幕点亮时,执行所述阻塞队列中的定时器对应的操作。When the screen of the mobile terminal is lit, the operation corresponding to the timer in the blocking queue is performed.
- 一种移动终端的控制装置,所述装置包括:A control device for a mobile terminal, the device comprising:获取模块,设置为:当移动终端处于熄屏状态时,获取需要执行的第一定时器,其中,定时器在触发时移动终端将执行所述定时器对应的操作;Obtaining a module, configured to: when the mobile terminal is in an off-screen state, acquire a first timer that needs to be executed, where the mobile terminal performs an operation corresponding to the timer when the timer is triggered;判断模块,设置为:判断所述第一定时器是否为预设的重要定时器;The determining module is configured to: determine whether the first timer is a preset important timer;第一处理模块,设置为:在所述第一定时器不是预设的重要定时器时,禁止执行所述第一定时器对应的操作,并将所述第一定时器加入一阻塞队列。The first processing module is configured to: when the first timer is not the preset important timer, prohibit the operation corresponding to the first timer, and add the first timer to a blocking queue.
- 根据权利要求7所述的装置,所述装置还包括:The apparatus of claim 7 further comprising:第二处理模块,设置为:在所述第一定时器是预设的重要定时器时,在所述第一定时器触发时,唤醒移动终端的中央处理器CPU并执行所述第一定时器对应的操作。The second processing module is configured to: when the first timer is a preset important timer, wake up the central processor CPU of the mobile terminal and execute the first timer when the first timer is triggered Corresponding operation.
- 根据权利要求7所述的装置,其中,所述获取模块包括:The apparatus of claim 7, wherein the obtaining module comprises:第一启动单元,设置为:获取预设省电模式的启动指令,并根据所述启动指令启动预设省电模式;The first startup unit is configured to: acquire a startup instruction of the preset power saving mode, and start a preset power saving mode according to the startup instruction;第一获取单元,设置为:在所述预设省电模式且当所述移动终端处于熄屏状态时,获取需要执行的第一定时器。The first obtaining unit is configured to: acquire the first timer that needs to be executed when the preset power saving mode is used and when the mobile terminal is in the blackout state.
- 根据权利要求7所述的装置,其中,所述获取模块包括:The apparatus of claim 7, wherein the obtaining module comprises:第二启动单元,设置为:当所述移动终端的电池电量小于预设值时,启动预设省电模式;The second starting unit is configured to: when the battery power of the mobile terminal is less than a preset value, start a preset power saving mode;第二获取单元,设置为:在所述预设省电模式且当所述移动终端处于熄屏状态时,获取需要执行的第一定时器。The second obtaining unit is configured to: acquire the first timer that needs to be executed when the preset power saving mode is used and when the mobile terminal is in the blackout state.
- 根据权利要求7所述的装置,其中,所述判断模块包括:The apparatus of claim 7, wherein the determining module comprises:判断单元,设置为:判断所述第一定时器对应的操作是否为基于自然时间唤醒CPU执行的操作,以及,所述第一定时器的触发时间条件是否为精准时间触发;在所述第一定时器对应的操作需要唤醒CPU,且,所述第一定时 器的触发时间条件为自然时间并为精准时间触发时,判断所述第一定时器为预设的重要定时器,否则,不是预设的重要定时器。The determining unit is configured to: determine whether the operation corresponding to the first timer is an operation performed by the CPU based on the natural time wakeup, and whether the trigger time condition of the first timer is a precise time trigger; The operation corresponding to the timer needs to wake up the CPU, and the first timing When the trigger time condition of the device is natural time and is triggered by the precise time, the first timer is determined to be a preset important timer; otherwise, it is not a preset important timer.
- 根据权利要求7所述的装置,所述装置还包括:The apparatus of claim 7 further comprising:第三处理模块,设置为:当所述移动终端的屏幕点亮时,执行所述阻塞队列中的定时器对应的操作。The third processing module is configured to: when the screen of the mobile terminal is lit, perform an operation corresponding to the timer in the blocking queue.
- 一种移动终端,所述移动终端包括如权利要求7至12中任一项所述的移动终端的控制装置。A mobile terminal comprising the control device of the mobile terminal according to any one of claims 7 to 12.
- 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现如权利要求1至6中任一项所述的移动终端的控制方法。 A computer readable storage medium storing computer executable instructions that, when executed, implement the control method of the mobile terminal according to any one of claims 1 to 6.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610875007.7A CN107888753B (en) | 2016-09-30 | 2016-09-30 | Mobile terminal control method and device and mobile terminal |
CN201610875007.7 | 2016-09-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018059000A1 true WO2018059000A1 (en) | 2018-04-05 |
Family
ID=61763098
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/087196 WO2018059000A1 (en) | 2016-09-30 | 2017-06-05 | Method and device for controlling mobile terminal, and mobile terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107888753B (en) |
WO (1) | WO2018059000A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113010003A (en) * | 2019-12-03 | 2021-06-22 | 中兴通讯股份有限公司 | Application program control method and device, terminal and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020174371A1 (en) * | 2001-05-21 | 2002-11-21 | Microsoft Corporation | System and method for powering down a mobile device |
US20100279745A1 (en) * | 2009-05-01 | 2010-11-04 | L3 Communications Integrated Systems, L.P. | Mobile communication device and communication method |
CN104221445A (en) * | 2013-11-15 | 2014-12-17 | 华为终端有限公司 | Method for waking up terminal system and terminal |
CN104267992A (en) * | 2014-09-29 | 2015-01-07 | 广州视源电子科技股份有限公司 | Method and device for shielding wake-up program of mobile terminal |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2733995B1 (en) * | 2012-08-31 | 2017-08-30 | Huawei Device Co., Ltd. | Control method and device for awaking intelligent terminal |
US9208113B2 (en) * | 2013-01-15 | 2015-12-08 | Apple Inc. | Deferred inter-processor interrupts |
CN103345415B (en) * | 2013-07-30 | 2016-06-22 | 广东欧珀移动通信有限公司 | The terminal power-economizing method of management intervalometer and device |
CN104714620B (en) * | 2013-12-12 | 2019-02-15 | 中兴通讯股份有限公司 | A kind of method and device adjusting intelligent terminal wakeup frequency |
CN104317611B (en) * | 2014-10-11 | 2017-05-24 | 厦门美图移动科技有限公司 | Application rousing setting device and method and mobile terminal |
TW201621544A (en) * | 2014-12-08 | 2016-06-16 | 宏碁股份有限公司 | Computer apparatus and power management method thereof |
CN105824391A (en) * | 2015-11-26 | 2016-08-03 | 南京步步高通信科技有限公司 | Timer awakening control method and electronic equipment |
-
2016
- 2016-09-30 CN CN201610875007.7A patent/CN107888753B/en active Active
-
2017
- 2017-06-05 WO PCT/CN2017/087196 patent/WO2018059000A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020174371A1 (en) * | 2001-05-21 | 2002-11-21 | Microsoft Corporation | System and method for powering down a mobile device |
US20100279745A1 (en) * | 2009-05-01 | 2010-11-04 | L3 Communications Integrated Systems, L.P. | Mobile communication device and communication method |
CN104221445A (en) * | 2013-11-15 | 2014-12-17 | 华为终端有限公司 | Method for waking up terminal system and terminal |
CN104267992A (en) * | 2014-09-29 | 2015-01-07 | 广州视源电子科技股份有限公司 | Method and device for shielding wake-up program of mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107888753B (en) | 2021-07-13 |
CN107888753A (en) | 2018-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109803359B (en) | Method for awakening terminal system and terminal | |
TWI386791B (en) | Transitioning a computing platform to a low power system state | |
US9535747B2 (en) | Application heartbeat period adjusting method and apparatus, and terminal | |
EP3355223A1 (en) | Unlock method and mobile terminal | |
KR102352449B1 (en) | Method for preventing battery swelling and electronic device thereof | |
TWI360045B (en) | Method for switching automatically power state | |
CN110908496A (en) | System interaction method and wearable device | |
KR20150018819A (en) | Method for enabling shutdown alarm clock and mobile terminal | |
US20100138838A1 (en) | Method for executing scheduled task | |
US10564708B2 (en) | Opportunistic waking of an application processor | |
KR101503628B1 (en) | Method and system for managing sleep states of interrupt controllers in a portable computing device | |
US8291250B2 (en) | Management of power states in a portable computing device | |
KR20140063363A (en) | Monitoring and managing processor activity in power save mode of portable electronic device and portable electronic device supporting the same | |
JP2009187552A (en) | Power control system and power control method | |
US20060271798A1 (en) | Configurable interrupt scheme for waking up a system from sleep mode | |
CN103838352A (en) | Low-power states for a computer system with integrated baseband | |
WO2017045419A1 (en) | Method and apparatus for controlling the powering-on of terminal | |
TW201516648A (en) | Method and system for controlling mobile device at low battery state to boot-up | |
US9417679B2 (en) | Adaptive connected standby for a computing device | |
TW201142710A (en) | Computer system, shutdown and boot method thereof | |
US20160147577A1 (en) | System and method for adaptive thread control in a portable computing device (pcd) | |
CN106814840A (en) | Low power state for processor keeps pattern | |
WO2018059000A1 (en) | Method and device for controlling mobile terminal, and mobile terminal | |
CN117369888A (en) | Electronic equipment awakening method and device, electronic equipment and readable storage medium | |
CN107547742B (en) | Wake-up lock release method and device for mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17854456 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17854456 Country of ref document: EP Kind code of ref document: A1 |