[go: up one dir, main page]

CN106569879A - Method for awakening peripheral device and mobile terminal - Google Patents

Method for awakening peripheral device and mobile terminal Download PDF

Info

Publication number
CN106569879A
CN106569879A CN201610971213.8A CN201610971213A CN106569879A CN 106569879 A CN106569879 A CN 106569879A CN 201610971213 A CN201610971213 A CN 201610971213A CN 106569879 A CN106569879 A CN 106569879A
Authority
CN
China
Prior art keywords
wake
peripheral
stage
phase
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610971213.8A
Other languages
Chinese (zh)
Other versions
CN106569879B (en
Inventor
王旭峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610971213.8A priority Critical patent/CN106569879B/en
Publication of CN106569879A publication Critical patent/CN106569879A/en
Application granted granted Critical
Publication of CN106569879B publication Critical patent/CN106569879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/461Saving or restoring of program or task context

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

本发明公开了一种唤醒外设的方法及移动终端,用以缩短移动终端唤醒过程中唤醒外设所占用的时长。方法为:移动终端在系统唤醒过程的系统唤醒第一阶段,执行第一外设唤醒过程的外设唤醒第一阶段的操作;所述移动终端在系统唤醒过程的系统唤醒第二阶段,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,其中,所述第一外设唤醒过程的所述外设唤醒第一阶段和所述第一外设唤醒过程的所述外设唤醒第二阶段之间存在等待时延。

This invention discloses a method for waking up a peripheral device and a mobile terminal, which shortens the time occupied by waking up the peripheral device during the mobile terminal wake-up process. The method is as follows: in the first stage of the system wake-up process, the mobile terminal executes the operation of the first peripheral device wake-up process; in the second stage of the system wake-up process, the mobile terminal executes the operation of the second peripheral device wake-up process, wherein there is a waiting delay between the first and second stages of the first peripheral device wake-up process.

Description

唤醒外设的方法及移动终端Method for waking up peripherals and mobile terminal

技术领域technical field

本发明涉及计算机领域,尤其涉及一种唤醒外设的方法及移动终端。The invention relates to the field of computers, in particular to a method for waking up peripherals and a mobile terminal.

背景技术Background technique

目前,移动终端在每次休眠后均需要重新唤醒各个外设。At present, the mobile terminal needs to reawaken each peripheral device after each dormancy.

以Linux系统为例,Linux系统的唤醒过程主要可以分为以下三个阶段:关中断唤醒(表示为resume_noirq),系统级唤醒(表示为resume_early)以及外设级唤醒(表示为resume),如图1所示为Linux系统唤醒过程示意图。其中,外设集中在resume阶段完成唤醒,则每个外设的唤醒过程为一次性完成的。Taking the Linux system as an example, the wake-up process of the Linux system can be mainly divided into the following three stages: interrupt-off wake-up (resume_noirq), system-level wake-up (resume_early) and peripheral-level wake-up (resume), as shown in the figure 1 shows a schematic diagram of the Linux system wake-up process. Among them, the peripherals are concentrated in the resume stage to complete the wake-up, and the wake-up process of each peripheral is completed at one time.

由于移动终端外设的数量在不断增多,导致移动终端每次休眠后重新唤醒各个外设的时长增加,这就导致移动终端的唤醒速度不断变慢,而移动终端的唤醒速度是影响用户体验效果的重要因素。As the number of mobile terminal peripherals continues to increase, the time it takes for the mobile terminal to wake up each peripheral after each dormancy increases, which leads to a slowdown in the wake-up speed of the mobile terminal, and the wake-up speed of the mobile terminal affects the user experience. important factor.

由此可见,如何降低移动终端唤醒过程中唤醒外设所占用的时长,是需要解决的技术问题。It can be seen that how to reduce the duration of waking up peripheral devices during the waking up process of the mobile terminal is a technical problem that needs to be solved.

发明内容Contents of the invention

本发明实施例提供一种唤醒外设的方法及移动终端,用以缩短移动终端唤醒过程中唤醒外设所占用的时长。Embodiments of the present invention provide a method for waking up peripherals and a mobile terminal, which are used to shorten the time taken for waking up peripherals during the waking up process of the mobile terminal.

本发明实施例提供的具体技术方案如下:The specific technical scheme that the embodiment of the present invention provides is as follows:

第一方面,本发明实施例提供了一种唤醒外设的方法,包括:In a first aspect, an embodiment of the present invention provides a method for waking up a peripheral device, including:

移动终端在系统唤醒过程的系统唤醒第一阶段,执行第一外设唤醒过程的外设唤醒第一阶段的操作;In the first stage of system wake-up of the system wake-up process, the mobile terminal executes the first peripheral wake-up operation of the first peripheral wake-up process;

所述移动终端在系统唤醒过程的系统唤醒第二阶段,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,其中,所述第一外设唤醒过程的所述外设唤醒第一阶段和所述第一外设唤醒过程的所述外设唤醒第二阶段之间存在等待时延。In the second stage of system wake-up of the system wake-up process, the mobile terminal performs the operation of the second stage of peripheral wake-up of the first peripheral wake-up process, wherein the peripheral wake-up of the first peripheral wake-up process There is a waiting delay between the first phase and the second phase of the peripheral wake-up of the first peripheral wake-up process.

可能的实施方式中,所述移动终端在系统唤醒过程的系统唤醒第二阶段,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,包括:In a possible implementation manner, the mobile terminal performs operations in the second phase of the peripheral wake-up of the first peripheral wake-up process in the second phase of the system wake-up process, including:

所述移动终端确定所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长;The mobile terminal determines an interval between the first stage of system wake-up and the second stage of system wake-up;

所述移动终端若确定所述间隔时长小于所述等待时延,则计算所述等待时延与所述间隔时长的时间差,在系统唤醒过程的系统唤醒第二阶段,等待所述时间差对应的时长后,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,否则,直接执行所述第一外设唤醒过程的外设唤醒第二阶段的操作。If the mobile terminal determines that the interval duration is less than the waiting delay, then calculate the time difference between the waiting delay and the interval duration, and wait for the duration corresponding to the time difference in the second stage of system wake-up in the system wake-up process Afterwards, the operation of the second phase of peripheral wake-up of the first peripheral wake-up process is performed, otherwise, the operation of the second phase of peripheral wake-up of the first peripheral wake-up process is directly performed.

可能的实施方式中,所述移动终端在系统唤醒过程的系统唤醒第二阶段,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,包括:In a possible implementation manner, the mobile terminal performs operations in the second phase of the peripheral wake-up of the first peripheral wake-up process in the second phase of the system wake-up process, including:

所述移动终端若确定所述等待时延大于预设时长,则计算所述等待时延与所述预设时长的时间差,在系统唤醒过程的系统唤醒第二阶段,等待所述时间差对应的时长后,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,否则,直接执行所述第一外设唤醒过程的外设唤醒第二阶段的操作。If the mobile terminal determines that the waiting delay is greater than the preset duration, then calculate the time difference between the waiting delay and the preset duration, and wait for the duration corresponding to the time difference in the second stage of system wake-up in the system wake-up process Afterwards, the operation of the second phase of peripheral wake-up of the first peripheral wake-up process is performed, otherwise, the operation of the second phase of peripheral wake-up of the first peripheral wake-up process is directly performed.

可能的实施方式中,所述预设时长为从保存的历史数据中选出的最小值,所述历史数据中的一个值为一次所述系统唤醒过程中所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长,并且每执行一次所述系统唤醒过程,在所述历史数据中增加本次所述系统唤醒过程中所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长。In a possible implementation manner, the preset duration is a minimum value selected from the saved historical data, and one value in the historical data is the first stage of the system wake-up and the The interval between the second stage of system wake-up, and each time the system wake-up process is executed, the system wake-up first stage and the system wake-up second stage of the system wake-up process are added to the historical data The length of time between stages.

可能的实施方式中,所述第一外设为液晶显示器LCD,所述外设唤醒第一阶段为复位操作,所述外设唤醒第二阶段为发送初始化命令操作;In a possible implementation manner, the first peripheral is a liquid crystal display LCD, the first stage of waking up the peripheral is a reset operation, and the second stage of waking up the peripheral is an operation of sending an initialization command;

所述移动终端在系统唤醒过程的系统唤醒第一阶段,执行所述LCD唤醒过程的复位操作;The mobile terminal executes the reset operation of the LCD wake-up process in the first stage of system wake-up of the system wake-up process;

所述移动终端在系统唤醒过程的系统唤醒第二阶段,执行所述LCD唤醒过程的发送初始化命令操作。The mobile terminal executes the operation of sending an initialization command in the LCD wake-up process in the second stage of system wake-up in the system wake-up process.

第二方面,本发明实施例提供了一种移动终端,包括:In a second aspect, an embodiment of the present invention provides a mobile terminal, including:

第一处理模块,用于在系统唤醒过程的系统唤醒第一阶段,执行第一外设唤醒过程的外设唤醒第一阶段的操作;The first processing module is configured to execute the first peripheral wake-up operation of the first peripheral wake-up process in the first system wake-up phase of the system wake-up process;

第二处理模块,用于在系统唤醒过程的系统唤醒第二阶段,执行所述外设唤醒过程的外设唤醒第二阶段的操作,其中,所述第一外设唤醒过程的所述外设唤醒第一阶段和所述第一外设唤醒过程的所述外设唤醒第二阶段之间存在等待时延。The second processing module is configured to perform operations in the second stage of the peripheral wake-up process of the peripheral wake-up process in the second phase of the system wake-up process, wherein the peripherals in the first peripheral wake-up process There is a waiting delay between the first stage of waking up and the second stage of waking up the peripheral device in the first peripheral device wakeup process.

可能的实施方式中,所述第二处理模块具体用于:In a possible implementation manner, the second processing module is specifically configured to:

确定所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长;determining the interval between the first stage of system wake-up and the second stage of system wake-up;

若确定所述间隔时长小于所述等待时延,则计算所述等待时延与所述间隔时长的时间差,在系统唤醒过程的系统唤醒第二阶段,等待所述时间差对应的时长后,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,否则,直接执行所述第一外设唤醒过程的外设唤醒第二阶段的操作。If it is determined that the interval duration is less than the waiting delay, then calculate the time difference between the waiting delay and the interval duration, and in the second stage of system wake-up in the system wake-up process, after waiting for the duration corresponding to the time difference, execute the The operation of the second phase of peripheral wake-up in the first peripheral wake-up process, otherwise, directly execute the operation of the second phase of peripheral wake-up in the first peripheral wake-up process.

可能的实施方式中,所述第二处理模块具体用于:In a possible implementation manner, the second processing module is specifically configured to:

若确定所述等待时延大于预设时长,则计算所述等待时延与所述预设时长的时间差,在系统唤醒过程的系统唤醒第二阶段,等待所述时间差对应的时长后,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,否则,直接执行所述第一外设唤醒过程的外设唤醒第二阶段的操作。If it is determined that the waiting delay is greater than the preset duration, calculate the time difference between the waiting delay and the preset duration, and in the second stage of the system wake-up process, after waiting for the duration corresponding to the time difference, execute the The operation of the second phase of peripheral wake-up in the first peripheral wake-up process, otherwise, directly execute the operation of the second phase of peripheral wake-up in the first peripheral wake-up process.

可能的实施方式中,所述预设时长为从保存的历史数据中选出的最小值,所述历史数据中的一个值为一次所述系统唤醒过程中所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长,并且每执行一次所述系统唤醒过程,在所述历史数据中增加本次所述系统唤醒过程中所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长。In a possible implementation manner, the preset duration is a minimum value selected from the saved historical data, and one value in the historical data is the first stage of the system wake-up and the The interval between the second stage of system wake-up, and each time the system wake-up process is executed, the system wake-up first stage and the system wake-up second stage of the system wake-up process are added to the historical data The length of time between stages.

可能的实施方式中,所述第一外设为液晶显示器LCD,所述外设唤醒第一阶段为复位操作,所述外设唤醒第二阶段为发送初始化命令操作;In a possible implementation manner, the first peripheral is a liquid crystal display LCD, the first stage of waking up the peripheral is a reset operation, and the second stage of waking up the peripheral is an operation of sending an initialization command;

所述第一处理模块具体用于:在系统唤醒过程的系统唤醒第一阶段,执行所述LCD唤醒过程的复位操作;The first processing module is specifically configured to: perform a reset operation of the LCD wake-up process in the first stage of the system wake-up process;

所述第二处理模块具体用于:在系统唤醒过程的系统唤醒第二阶段,执行所述LCD唤醒过程的发送初始化命令操作。The second processing module is specifically configured to: in the second stage of the system wake-up process, execute the operation of sending an initialization command in the LCD wake-up process.

基于上述技术方案,本发明实施例中,按照等待时延将第一外设的唤醒过程分为多个外设唤醒阶段,在系统唤醒过程的连续两个系统唤醒阶段中,在系统唤醒第一阶段中执行外设唤醒第一阶段的操作,在系统唤醒第二阶段中执行外设唤醒第二阶段的操作,使得外设唤醒第一阶段和外设唤醒第二阶段之间存在的等待时延,可以占用系统唤醒第一阶段和系统唤醒第二阶段之间的时间间隔,从而有效缩短了外设唤醒需要占用的时长。Based on the above technical solution, in the embodiment of the present invention, the wake-up process of the first peripheral is divided into multiple peripheral wake-up stages according to the waiting time delay. In the two consecutive system wake-up stages of the system wake-up process, the first In the first stage of peripheral wake-up, the operation of the first stage of peripheral wake-up is performed, and in the second stage of system wake-up, the operation of the second stage of peripheral wake-up is performed, so that there is a waiting delay between the first stage of peripheral wake-up and the second stage of peripheral wake-up , can occupy the time interval between the first stage of system wake-up and the second stage of system wake-up, thereby effectively shortening the time required for peripheral wake-up.

附图说明Description of drawings

图1为Linux系统唤醒过程示意图;Fig. 1 is a schematic diagram of the Linux system wake-up process;

图2为本发明实施例中移动终端在系统唤醒过程中唤醒外设的流程示意图;FIG. 2 is a schematic flow diagram of the mobile terminal waking up peripherals during the system waking up process in an embodiment of the present invention;

图3为本发明实施例中优化后的外设唤醒过程示意图;FIG. 3 is a schematic diagram of an optimized peripheral wake-up process in an embodiment of the present invention;

图4为本发明实施例中移动终端结构示意图。FIG. 4 is a schematic structural diagram of a mobile terminal in an embodiment of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

发明人发现,对于部分外设,在执行该外设的部分唤醒过程后,需要等待一定的时长后才能进行后续的唤醒过程。例如,在液晶显示器(Liquid Crystal Display,LCD)的唤醒过程中,在执行LCD复位(reset)操作后需要等待20毫秒(ms)的时长才能够发送初始化命令给LCD,且在发送初始化命令后需要等待120ms的时长以保证LCD可以正常工作。而Linux系统唤醒过程分为三个唤醒阶段,相邻唤醒阶段之间存在一定的时间间隔,如果将该时间间隔用于外设唤醒过程中的等待时延,将可以有效缩短外设唤醒所占用的时长。The inventors found that, for some peripherals, after a partial wake-up process of the peripherals is executed, it is necessary to wait for a certain period of time before the subsequent wake-up process can be performed. For example, during the wake-up process of a Liquid Crystal Display (LCD), it is necessary to wait for 20 milliseconds (ms) before the initialization command can be sent to the LCD after the LCD reset (reset) operation is performed, and the initialization command needs to be sent after the initialization command is sent. Wait for 120ms to ensure that the LCD can work normally. The Linux system wake-up process is divided into three wake-up stages, and there is a certain time interval between adjacent wake-up stages. If this time interval is used for the waiting delay in the peripheral wake-up process, it will be able to effectively shorten the peripheral wake-up time. duration.

例如,在LCD唤醒过程中,在系统唤醒过程的系统级唤醒阶段执行LCD唤醒过程中复位操作,在系统唤醒过程的外设级唤醒阶段执行LCD唤醒过程中的发送初始化命令操作,则可将系统唤醒过程的系统级唤醒和外设级唤醒阶段之间的时延用作LCD唤醒过程中的复位操作和发送初始化命令操作之间的等待时延,从而可以缩短LCD唤醒所占用的时长。For example, in the LCD wake-up process, the reset operation in the LCD wake-up process is performed in the system-level wake-up phase of the system wake-up process, and the sending initialization command operation in the LCD wake-up process is performed in the peripheral-level wake-up phase of the system wake-up process, then the system can be reset. The delay between the system-level wake-up and peripheral-level wake-up phases of the wake-up process is used as a waiting delay between the reset operation and the initialization command operation during the LCD wake-up process, thereby shortening the time taken by the LCD wake-up.

基于此,本发明实施例提供了一种移动终端系统唤醒过程中唤醒外设的方法,以缩短移动终端唤醒过程中唤醒各个外设所占用的时长。该方法的核心思想在于:按照外设唤醒过程中存在的等待时延将外设的唤醒过程划分为多个唤醒阶段,外设的相邻唤醒阶段之间的时间间隔为等待时延,将外设的各唤醒阶段分别放在系统唤醒过程的不同唤醒阶段执行,以利用系统唤醒过程中不同唤醒阶段之间的时间间隔代替外设唤醒过程所需的等待时延,从而达到缩短外设唤醒占用的时长的目的。Based on this, an embodiment of the present invention provides a method for waking up peripheral devices during the system waking up process of the mobile terminal, so as to shorten the duration of waking up each peripheral device during the waking up process of the mobile terminal. The core idea of this method is: divide the wake-up process of the peripheral into multiple wake-up stages according to the waiting time delay existing in the wake-up process of the peripheral, and the time interval between adjacent wake-up stages of the peripheral is the waiting time delay. The wake-up stages set are placed in different wake-up stages of the system wake-up process, so that the time interval between different wake-up stages in the system wake-up process can be used to replace the waiting time delay required for the peripheral wake-up process, so as to shorten the peripheral wake-up occupation. purpose of duration.

以下结合附图对本发明优选的实施方式进行详细说明。Preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

本发明实施例中,如图2所示,移动终端在系统唤醒过程中唤醒外设的详细过程如下:In the embodiment of the present invention, as shown in FIG. 2, the detailed process of the mobile terminal waking up the peripheral during the system waking up process is as follows:

步骤201:移动终端在系统唤醒过程的系统唤醒第一阶段,执行第一外设唤醒过程的外设唤醒第一阶段的操作。Step 201: the mobile terminal executes operations in the first stage of peripheral device wakeup in the first peripheral device wakeup process in the first stage of system wakeup in the system wakeup process.

具体实施中,移动终端检测到系统唤醒的触发事件后,启动系统唤醒过程。In a specific implementation, the mobile terminal starts a system wake-up process after detecting a trigger event of system wake-up.

具体地,该触发事件包括但不限于按键触发、通用串行总线(Universal SerialBus,USB)触发等。Specifically, the trigger event includes, but is not limited to, a key trigger, a Universal Serial Bus (Universal Serial Bus, USB) trigger, and the like.

步骤202:移动终端在系统唤醒过程的系统唤醒第二阶段,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,其中,外设唤醒第一阶段和外设唤醒第二阶段之间存在等待时延。Step 202: In the second stage of the system wake-up process, the mobile terminal performs the operation of the second stage of the peripheral wake-up process of the first peripheral wake-up process, wherein the first stage of peripheral wake-up and the second stage of peripheral wake-up There is a waiting delay between them.

在一个具体实施方式中,移动终端确定系统唤醒第一阶段和系统唤醒第二阶段之间的间隔时长;若确定所述间隔时长小于所述等待时延,则计算所述等待时延与所述间隔时长的时间差,在系统唤醒过程的系统唤醒第二阶段,等待所述时间差对应的时长后,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,否则,直接执行所述第一外设唤醒过程的外设唤醒第二阶段的操作。In a specific implementation, the mobile terminal determines the interval between the first stage of system wake-up and the second stage of system wake-up; if it is determined that the interval is shorter than the waiting delay, then calculate the waiting delay and the The time difference of the interval length, in the second stage of the system wake-up process of the system wake-up process, after waiting for the time length corresponding to the time difference, execute the operation of the second stage of the peripheral wake-up of the first peripheral wake-up process, otherwise, directly execute the The operation of the peripheral wake-up second stage of the first peripheral wake-up process.

在另一个具体实施方式中,移动终端若确定所述等待时延大于预设时长,则计算所述等待时延与所述预设时长的时间差,在系统唤醒过程的系统唤醒第二阶段,等待所述时间差对应的时长后,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,否则,直接执行所述第一外设唤醒过程的外设唤醒第二阶段的操作。In another specific implementation, if the mobile terminal determines that the waiting delay is greater than the preset duration, it calculates the time difference between the waiting delay and the preset duration, and in the second stage of the system wake-up process, waits for After the duration corresponding to the time difference, execute the operation of the second phase of peripheral wake-up in the first peripheral wake-up process; otherwise, directly execute the operation of the second phase of peripheral wake-up in the first peripheral wake-up process.

较佳地,所述预设时长为多次统计得到的所述第一系统唤醒阶段和所述第二系统唤醒阶段之间的间隔时长中的最小值。Preferably, the preset duration is the minimum value among the interval durations between the first system wake-up phase and the second system wake-up phase obtained through multiple statistics.

具体地,该预设时长为从保存的历史数据中选出的最小值,所述历史数据中的一个值为一次所述系统唤醒过程中所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长,并且每执行一次所述系统唤醒过程,在所述历史数据中增加本次所述系统唤醒过程中所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长。Specifically, the preset duration is the minimum value selected from the saved historical data, and one value in the historical data is the first stage of the system wake-up and the second stage of the system wake-up in the process of one system wake-up. The interval between stages, and each time the system wake-up process is executed, the historical data will increase the time between the first system wake-up stage and the system wake-up second stage in the system wake-up process this time. Interval duration.

本发明实施例中,以Linux系统为例,假设Linux系统唤醒过程分为三个阶段,则唤醒阶段1为resume_noirq,唤醒阶段2为resume_early,唤醒阶段3为resume。假设系统唤醒第一阶段为resume_noirq,则系统唤醒第二阶段为resume_early;假设系统唤醒第一阶段为resume_early,则系统唤醒第二阶段为resume。In the embodiment of the present invention, taking the Linux system as an example, assuming that the wake-up process of the Linux system is divided into three stages, the wake-up stage 1 is resume_noirq, the wake-up stage 2 is resume_early, and the wake-up stage 3 is resume. Suppose the first stage of system wakeup is resume_noirq, then the second stage of system wakeup is resume_early; suppose the first stage of system wakeup is resume_early, then the second stage of system wakeup is resume.

具体实施中,若外设不依赖于某一系统唤醒阶段所唤醒的各部件,则可以在该系统唤醒阶段启动该外设的唤醒过程,否则,只能在该系统唤醒阶段之后的系统唤醒阶段启动该外设的唤醒过程。In the specific implementation, if the peripheral does not depend on the various components awakened by a certain system wake-up stage, the wake-up process of the peripheral can be started during the system wake-up stage; otherwise, only in the system wake-up stage after the system wake-up stage Initiates the wake-up process for this peripheral.

可选地,若外设的唤醒过程中存在两次等待时延,则可将该外设的唤醒过程分为外设唤醒阶段1、外设唤醒阶段2和外设唤醒阶段3,则在系统唤醒过程的唤醒阶段1执行该外设的外设唤醒阶段1的操作,在该系统唤醒过程的唤醒阶段2执行该外设的外设唤醒阶段2的操作,以及在该系统唤醒过程的唤醒阶段3执行该外设的外设唤醒阶段3的操作,其中,外设唤醒阶段1和外设唤醒阶段2之间存在该外设唤醒过程的第一次等待时延,外设唤醒阶段2和外设唤醒阶段3之间存在该外设唤醒过程的第二次等待时延。Optionally, if there are two waiting delays in the wake-up process of the peripheral, the wake-up process of the peripheral can be divided into the peripheral wake-up phase 1, the peripheral wake-up phase 2 and the peripheral wake-up phase 3, then in the system The wake-up phase 1 of the wake-up process performs the operation of the peripheral wake-up phase 1 of the peripheral device, and the operation of the peripheral wake-up phase 2 of the peripheral device is performed during the wake-up phase 2 of the system wake-up process, and the wake-up phase of the system wake-up process 3 Execute the operation of the peripheral wake-up phase 3 of the peripheral, wherein there is a first waiting delay of the peripheral wake-up process between the peripheral wake-up phase 1 and the peripheral wake-up phase 2, and the peripheral wake-up phase 2 and the peripheral wake-up It is assumed that there is a second waiting delay of the peripheral wake-up process between the wake-up phase 3.

该可选地实施方式中,若系统唤醒第一阶段为系统唤醒过程的唤醒阶段1,系统唤醒第二阶段为系统唤醒过程的唤醒阶段2,则该方法可能还包括:移动终端在系统唤醒过程的系统唤醒第三阶段,执行第一外设唤醒过程的外设唤醒第三阶段的操作,其中,系统唤醒第三阶段为系统唤醒过程的唤醒阶段3,外设唤醒第一阶段为外设唤醒阶段1,外设唤醒第二阶段为外设唤醒阶段2,外设唤醒第三阶段为外设唤醒阶段3。In this optional implementation, if the first stage of the system wake-up is the wake-up stage 1 of the system wake-up process, and the second stage of the system wake-up is the wake-up stage 2 of the system wake-up process, then the method may further include: the mobile terminal during the system wake-up process The third stage of system wake-up is to execute the operation of the third stage of peripheral wake-up in the first peripheral wake-up process, wherein the third stage of system wake-up is the wake-up stage 3 of the system wake-up process, and the first stage of peripheral wake-up is peripheral wake-up Phase 1, peripheral wake-up The second phase is peripheral wake-up phase 2, and the third phase of peripheral wake-up is peripheral wake-up phase 3.

例如,假设外设的唤醒过程按照包含的等待时延分为外设唤醒阶段1、外设唤醒阶段2和外设唤醒阶段3。优化后的外设唤醒过程如图3所示,移动终端在休眠状态下检测到触发事件后,判断是否需要唤醒系统,若需要,则依次执行系统唤醒过程的每个唤醒阶段,并在系统唤醒过程的resume_noirq阶段执行外设唤醒流程的外设唤醒阶段1,在系统唤醒过程的resume_early阶段执行外设唤醒流程的外设唤醒阶段2,在系统唤醒过程的resume阶段执行外设唤醒流程的外设唤醒阶段3后,移动终端处于唤醒状态,其中将resume_noirq阶段和resume_early阶段之前的时间间隔作为外设唤醒阶段1和外设唤醒阶段2之间的等待时延,并将resume_early阶段和resume阶段之前的时间间隔作为外设唤醒阶段2和外设唤醒阶段3之间的等待时延。For example, it is assumed that the wake-up process of the peripheral is divided into a peripheral wake-up phase 1, a peripheral wake-up phase 2, and a peripheral wake-up phase 3 according to the included waiting delay. The optimized peripheral wake-up process is shown in Figure 3. After the mobile terminal detects a trigger event in the dormant state, it judges whether it is necessary to wake up the system. The resume_noirq phase of the process executes the peripheral wake-up phase 1 of the peripheral wake-up process, executes the peripheral wake-up phase 2 of the peripheral wake-up process in the resume_early phase of the system wake-up process, and executes the peripheral wake-up process of the peripheral wake-up process in the resume phase of the system wake-up process After the wake-up phase 3, the mobile terminal is in the wake-up state, where the time interval before the resume_noirq phase and the resume_early phase is used as the waiting delay between the peripheral wake-up phase 1 and the peripheral wake-up phase 2, and the resume_early phase and the time interval before the resume phase The time interval is used as the waiting delay between peripheral wake-up phase 2 and peripheral wake-up phase 3.

以LCD的唤醒过程为例,具体地,移动终端在系统唤醒过程的系统唤醒第一阶段,执行所述LCD唤醒过程的复位操作;移动终端在系统唤醒过程的系统唤醒第二阶段,执行所述LCD唤醒过程的发送初始化命令操作。Taking the wake-up process of the LCD as an example, specifically, the mobile terminal executes the reset operation of the LCD wake-up process in the first stage of the system wake-up process; Send initialization command operation during LCD wake-up process.

基于同一发明构思,本发明实施例中还提供了一种移动终端,该移动终端的具体实施可参见方法实施例部分的描述,重复之处不再赘述,如图4所示,该移动终端主要包括:Based on the same inventive concept, the embodiment of the present invention also provides a mobile terminal. For the specific implementation of the mobile terminal, please refer to the description of the method embodiment. include:

第一处理模块401,用于在系统唤醒过程的系统唤醒第一阶段,执行第一外设唤醒过程的外设唤醒第一阶段的操作;The first processing module 401 is configured to perform operations in the first phase of the peripheral wake-up of the first peripheral wake-up process during the first phase of the system wake-up of the system wake-up process;

第二处理模块402,用于在系统唤醒过程的系统唤醒第二阶段,执行所述外设唤醒过程的外设唤醒第二阶段的操作,其中,所述第一外设唤醒过程的所述外设唤醒第一阶段和所述第一外设唤醒过程的所述外设唤醒第二阶段之间存在等待时延。The second processing module 402 is configured to perform operations in the second phase of the peripheral wake-up process in the system wake-up process of the system wake-up process, wherein the peripheral in the first peripheral wake-up process It is assumed that there is a waiting delay between the first stage of waking up and the second stage of the peripheral device waking up of the first peripheral device waking up process.

可能的实施方式中,所述第二处理模块具体用于:In a possible implementation manner, the second processing module is specifically configured to:

确定所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长;determining the interval between the first stage of system wake-up and the second stage of system wake-up;

若确定所述间隔时长小于所述等待时延,则计算所述等待时延与所述间隔时长的时间差,在系统唤醒过程的系统唤醒第二阶段,等待所述时间差对应的时长后,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,否则,直接执行所述第一外设唤醒过程的外设唤醒第二阶段的操作。If it is determined that the interval duration is less than the waiting delay, then calculate the time difference between the waiting delay and the interval duration, and in the second stage of system wake-up in the system wake-up process, after waiting for the duration corresponding to the time difference, execute the The operation of the second phase of peripheral wake-up in the first peripheral wake-up process, otherwise, directly execute the operation of the second phase of peripheral wake-up in the first peripheral wake-up process.

可能的实施方式中,所述第二处理模块具体用于:In a possible implementation manner, the second processing module is specifically configured to:

若确定所述等待时延大于预设时长,所述预设时长为所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长的统计值,则计算所述等待时延与所述预设时长的时间差,在系统唤醒过程的系统唤醒第二阶段,等待所述时间差对应的时长后,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,否则,直接执行所述第一外设唤醒过程的外设唤醒第二阶段的操作。If it is determined that the waiting delay is greater than a preset duration, and the preset duration is a statistical value of the interval between the first stage of system wake-up and the second stage of system wake-up, then calculate the waiting delay and For the time difference of the preset duration, in the second stage of the system wake-up process of the system wake-up process, after waiting for the time length corresponding to the time difference, perform the operation of the second stage of the peripheral device wake-up process of the first peripheral device wake-up process, otherwise, directly Executing operations in the second stage of peripheral wake-up in the first peripheral wake-up process.

可能的实施方式中,所述预设时长为多次统计得到的所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长中的最小值。In a possible implementation manner, the preset duration is a minimum value of intervals between the first stage of system wakeup and the second stage of system wakeup obtained through multiple statistics.

具体地,所述预设时长为从保存的历史数据中选出的最小值,所述历史数据中的一个值为一次所述系统唤醒过程中所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长,并且每执行一次所述系统唤醒过程,在所述历史数据中增加本次所述系统唤醒过程中所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长。Specifically, the preset duration is the minimum value selected from the saved historical data, and one value in the historical data is the first stage of the system wake-up and the second stage of the system wake-up in the process of one system wake-up. The interval between the two phases, and each time the system wake-up process is executed, the historical data is added to the system wake-up process between the first phase of the system wake-up and the second phase of the system wake-up interval of time.

可能的实施方式中,还包括检测模块用于:In a possible implementation, a detection module is also included for:

在所述第一处理模块在系统唤醒过程的系统唤醒第一阶段,执行第一外设唤醒过程的外设唤醒第一阶段之前,检测到系统唤醒的触发事件。Before the first processing module executes the first peripheral wake-up stage of the first peripheral wake-up process in the system wake-up first stage of the system wake-up process, a trigger event of system wake-up is detected.

可能的实施方式中,所述第一外设为LCD,所述外设唤醒第一阶段为复位操作,所述外设唤醒第二阶段为发送初始化命令操作;In a possible implementation manner, the first peripheral is an LCD, the first phase of the peripheral wake-up is a reset operation, and the second phase of the peripheral wake-up is an operation of sending an initialization command;

所述第一处理模块具体用于:在系统唤醒过程的系统唤醒第一阶段,执行所述LCD唤醒过程的复位操作;The first processing module is specifically configured to: perform a reset operation of the LCD wake-up process in the first stage of the system wake-up process;

所述第二处理模块具体用于:在系统唤醒过程的系统唤醒第二阶段,执行所述LCD唤醒过程的发送初始化命令操作。The second processing module is specifically configured to: in the second stage of the system wake-up process, execute the operation of sending an initialization command in the LCD wake-up process.

基于上述技术方案,本发明实施例中,按照等待时延将外设的唤醒过程分为多个外设唤醒阶段,在系统唤醒过程的连续两个系统唤醒阶段中,在第一系统唤醒阶段中执行第一外设唤醒阶段的操作,在第二系统唤醒阶段中执行第二外设唤醒阶段的操作,使得第一外设唤醒阶段和第二外设唤醒阶段之间存在的等待时延,可以占用第一系统唤醒阶段和第二系统唤醒阶段之间的时间间隔,从而有效缩短了外设唤醒需要占用的时长,提升了用户体验。Based on the above technical solution, in the embodiment of the present invention, the wake-up process of the peripheral is divided into multiple peripheral wake-up stages according to the waiting time delay. In the two consecutive system wake-up stages of the system wake-up process, in the first system wake-up stage Execute the operation of the first peripheral wake-up stage, and perform the operation of the second peripheral wake-up stage in the second system wake-up stage, so that the waiting time delay between the first peripheral wake-up stage and the second peripheral wake-up stage can be Occupying the time interval between the first system wake-up phase and the second system wake-up phase, thereby effectively shortening the time required for peripheral wake-up and improving user experience.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies thereof, the present invention also intends to include these modifications and variations.

Claims (10)

1.一种唤醒外设的方法,其特征在于,包括:1. A method for waking up peripherals, comprising: 移动终端在系统唤醒过程的系统唤醒第一阶段,执行第一外设唤醒过程的外设唤醒第一阶段的操作;In the first stage of system wake-up of the system wake-up process, the mobile terminal executes the first peripheral wake-up operation of the first peripheral wake-up process; 所述移动终端在系统唤醒过程的系统唤醒第二阶段,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,其中,所述第一外设唤醒过程的所述外设唤醒第一阶段和所述第一外设唤醒过程的所述外设唤醒第二阶段之间存在等待时延。In the second stage of system wake-up of the system wake-up process, the mobile terminal performs the operation of the second stage of peripheral wake-up of the first peripheral wake-up process, wherein the peripheral wake-up of the first peripheral wake-up process There is a waiting delay between the first phase and the second phase of the peripheral wake-up of the first peripheral wake-up process. 2.如权利要求1所述的方法,其特征在于,所述移动终端在系统唤醒过程的系统唤醒第二阶段,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,包括:2. The method according to claim 1, wherein the mobile terminal executes the operation in the second phase of the peripheral wake-up of the first peripheral wake-up process in the second phase of the system wake-up process, including : 所述移动终端确定所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长;The mobile terminal determines an interval between the first stage of system wake-up and the second stage of system wake-up; 所述移动终端若确定所述间隔时长小于所述等待时延,则计算所述等待时延与所述间隔时长的时间差,在系统唤醒过程的系统唤醒第二阶段,等待所述时间差对应的时长后,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,否则,直接执行所述第一外设唤醒过程的外设唤醒第二阶段的操作。If the mobile terminal determines that the interval duration is less than the waiting delay, then calculate the time difference between the waiting delay and the interval duration, and wait for the duration corresponding to the time difference in the second stage of system wake-up in the system wake-up process Afterwards, the operation of the second phase of peripheral wake-up of the first peripheral wake-up process is performed, otherwise, the operation of the second phase of peripheral wake-up of the first peripheral wake-up process is directly performed. 3.如权利要求1所述的方法,其特征在于,所述移动终端在系统唤醒过程的系统唤醒第二阶段,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,包括:3. The method according to claim 1, wherein the mobile terminal executes the operation in the second phase of the peripheral wake-up process of the first peripheral wake-up process in the second phase of the system wake-up process, including : 所述移动终端若确定所述等待时延大于预设时长,则计算所述等待时延与所述预设时长的时间差,在系统唤醒过程的系统唤醒第二阶段,等待所述时间差对应的时长后,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,否则,直接执行所述第一外设唤醒过程的外设唤醒第二阶段的操作。If the mobile terminal determines that the waiting delay is greater than the preset duration, then calculate the time difference between the waiting delay and the preset duration, and wait for the duration corresponding to the time difference in the second stage of system wake-up in the system wake-up process Afterwards, the operation of the second phase of peripheral wake-up of the first peripheral wake-up process is performed, otherwise, the operation of the second phase of peripheral wake-up of the first peripheral wake-up process is directly performed. 4.如权利要求3所述的方法,其特征在于,所述预设时长为从保存的历史数据中选出的最小值,所述历史数据中的一个值为一次所述系统唤醒过程中所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长,并且每执行一次所述系统唤醒过程,在所述历史数据中增加本次所述系统唤醒过程中所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长。4. The method according to claim 3, wherein the preset duration is a minimum value selected from stored historical data, and one value in the historical data is set during one wake-up of the system. The interval between the first stage of system wake-up and the second stage of system wake-up, and each time the system wake-up process is executed, the system wake-up second time in the system wake-up process of this time is added to the historical data The length of time between the first phase and the second phase when the system wakes up. 5.如权利要求1-4任一项所述的方法,其特征在于,所述第一外设为液晶显示器LCD,所述外设唤醒第一阶段为复位操作,所述外设唤醒第二阶段为发送初始化命令操作;5. The method according to any one of claims 1-4, wherein the first peripheral is a liquid crystal display (LCD), the first phase of the peripheral wake-up is reset operation, and the peripheral wake-up second The stage is to send the initialization command operation; 所述移动终端在系统唤醒过程的系统唤醒第一阶段,执行所述LCD唤醒过程的复位操作;The mobile terminal executes the reset operation of the LCD wake-up process in the first stage of system wake-up of the system wake-up process; 所述移动终端在系统唤醒过程的系统唤醒第二阶段,执行所述LCD唤醒过程的发送初始化命令操作。The mobile terminal executes the operation of sending an initialization command in the LCD wake-up process in the second stage of system wake-up in the system wake-up process. 6.一种移动终端,其特征在于,包括:6. A mobile terminal, characterized in that, comprising: 第一处理模块,用于在系统唤醒过程的系统唤醒第一阶段,执行第一外设唤醒过程的外设唤醒第一阶段的操作;The first processing module is configured to execute the first peripheral wake-up operation of the first peripheral wake-up process in the first system wake-up phase of the system wake-up process; 第二处理模块,用于在系统唤醒过程的系统唤醒第二阶段,执行所述外设唤醒过程的外设唤醒第二阶段的操作,其中,所述第一外设唤醒过程的所述外设唤醒第一阶段和所述第一外设唤醒过程的所述外设唤醒第二阶段之间存在等待时延。The second processing module is configured to perform operations in the second stage of the peripheral wake-up process of the peripheral wake-up process in the second phase of the system wake-up process, wherein the peripherals in the first peripheral wake-up process There is a waiting delay between the first stage of waking up and the second stage of waking up the peripheral device in the first peripheral device wakeup process. 7.如权利要求6所述的移动终端,其特征在于,所述第二处理模块具体用于:7. The mobile terminal according to claim 6, wherein the second processing module is specifically used for: 确定所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长;determining the interval between the first stage of system wake-up and the second stage of system wake-up; 若确定所述间隔时长小于所述等待时延,则计算所述等待时延与所述间隔时长的时间差,在系统唤醒过程的系统唤醒第二阶段,等待所述时间差对应的时长后,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,否则,直接执行所述第一外设唤醒过程的外设唤醒第二阶段的操作。If it is determined that the interval duration is less than the waiting delay, then calculate the time difference between the waiting delay and the interval duration, and in the second stage of system wake-up in the system wake-up process, after waiting for the duration corresponding to the time difference, execute the The operation of the second phase of peripheral wake-up in the first peripheral wake-up process, otherwise, directly execute the operation of the second phase of peripheral wake-up in the first peripheral wake-up process. 8.如权利要求6所述的移动终端,其特征在于,所述第二处理模块具体用于:8. The mobile terminal according to claim 6, wherein the second processing module is specifically used for: 若确定所述等待时延大于预设时长,则计算所述等待时延与所述预设时长的时间差,在系统唤醒过程的系统唤醒第二阶段,等待所述时间差对应的时长后,执行所述第一外设唤醒过程的外设唤醒第二阶段的操作,否则,直接执行所述第一外设唤醒过程的外设唤醒第二阶段的操作。If it is determined that the waiting delay is greater than the preset duration, calculate the time difference between the waiting delay and the preset duration, and in the second stage of the system wake-up process, after waiting for the duration corresponding to the time difference, execute the The operation of the second phase of peripheral wake-up in the first peripheral wake-up process, otherwise, directly execute the operation of the second phase of peripheral wake-up in the first peripheral wake-up process. 9.如权利要求8所述的移动终端,其特征在于,所述预设时长为从保存的历史数据中选出的最小值,所述历史数据中的一个值为一次所述系统唤醒过程中所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长,并且每执行一次所述系统唤醒过程,在所述历史数据中增加本次所述系统唤醒过程中所述系统唤醒第一阶段和所述系统唤醒第二阶段之间的间隔时长。9. The mobile terminal according to claim 8, wherein the preset duration is a minimum value selected from stored historical data, and one value in the historical data is during one wake-up of the system The interval between the first stage of system wake-up and the second stage of system wake-up, and each time the system wake-up process is executed, the system wake-up in the system wake-up process of this time is added to the historical data The interval between the first phase and the second phase of the system wake-up. 10.如权利要求6-9任一项所述的移动终端,其特征在于,所述第一外设为液晶显示器LCD,所述外设唤醒第一阶段为复位操作,所述外设唤醒第二阶段为发送初始化命令操作;10. The mobile terminal according to any one of claims 6-9, wherein the first peripheral is a liquid crystal display (LCD), and the first stage of waking up the peripheral is a reset operation, and the first stage of waking up the peripheral is a reset operation. The second stage is to send the initialization command operation; 所述第一处理模块具体用于:在系统唤醒过程的系统唤醒第一阶段,执行所述LCD唤醒过程的复位操作;The first processing module is specifically configured to: perform a reset operation of the LCD wake-up process in the first stage of the system wake-up process; 所述第二处理模块具体用于:在系统唤醒过程的系统唤醒第二阶段,执行所述LCD唤醒过程的发送初始化命令操作。The second processing module is specifically configured to: in the second stage of the system wake-up process, execute the operation of sending an initialization command in the LCD wake-up process.
CN201610971213.8A 2016-10-28 2016-10-28 Method for awakening peripheral and mobile terminal Active CN106569879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610971213.8A CN106569879B (en) 2016-10-28 2016-10-28 Method for awakening peripheral and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610971213.8A CN106569879B (en) 2016-10-28 2016-10-28 Method for awakening peripheral and mobile terminal

Publications (2)

Publication Number Publication Date
CN106569879A true CN106569879A (en) 2017-04-19
CN106569879B CN106569879B (en) 2020-02-11

Family

ID=58541620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610971213.8A Active CN106569879B (en) 2016-10-28 2016-10-28 Method for awakening peripheral and mobile terminal

Country Status (1)

Country Link
CN (1) CN106569879B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111149089A (en) * 2017-09-21 2020-05-12 深圳传音通讯有限公司 Awakening method and awakening device of intelligent terminal and intelligent terminal
CN119155202A (en) * 2024-11-12 2024-12-17 支付宝(杭州)信息技术有限公司 Method, device, equipment and medium for detecting calling terminal

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101263456A (en) * 2005-09-15 2008-09-10 英特尔公司 Method and apparatus for fast recovery
CN101689072A (en) * 2007-02-06 2010-03-31 D.S.P.集团有限公司 Integrated waking/while-awake power management system
CN102833829A (en) * 2012-08-17 2012-12-19 广州海格天立通信息技术有限公司 Standby wakeup method based on time division multiple access (TDMA) system
CN103218033A (en) * 2013-03-28 2013-07-24 北京小米科技有限责任公司 Method and device for waking up hardware equipment
CN103402027A (en) * 2013-07-29 2013-11-20 广东欧珀移动通信有限公司 Mobile terminal and method for putting same into sleeping state
CN103562818A (en) * 2011-05-31 2014-02-05 惠普发展公司,有限责任合伙企业 Waking electronic device
WO2014047901A1 (en) * 2012-09-28 2014-04-03 France Telecom Energy saving method for a radio access node
CN104580750A (en) * 2013-10-18 2015-04-29 上海晨兴希姆通电子科技有限公司 Mobile terminal and electricity saving method
US20150162903A1 (en) * 2013-09-13 2015-06-11 International Business Machines Corporation Efficient wakeup of power gated domains through charge sharing and recycling

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101263456A (en) * 2005-09-15 2008-09-10 英特尔公司 Method and apparatus for fast recovery
CN101689072A (en) * 2007-02-06 2010-03-31 D.S.P.集团有限公司 Integrated waking/while-awake power management system
CN103562818A (en) * 2011-05-31 2014-02-05 惠普发展公司,有限责任合伙企业 Waking electronic device
CN102833829A (en) * 2012-08-17 2012-12-19 广州海格天立通信息技术有限公司 Standby wakeup method based on time division multiple access (TDMA) system
WO2014047901A1 (en) * 2012-09-28 2014-04-03 France Telecom Energy saving method for a radio access node
CN103218033A (en) * 2013-03-28 2013-07-24 北京小米科技有限责任公司 Method and device for waking up hardware equipment
CN103402027A (en) * 2013-07-29 2013-11-20 广东欧珀移动通信有限公司 Mobile terminal and method for putting same into sleeping state
US20150162903A1 (en) * 2013-09-13 2015-06-11 International Business Machines Corporation Efficient wakeup of power gated domains through charge sharing and recycling
CN104580750A (en) * 2013-10-18 2015-04-29 上海晨兴希姆通电子科技有限公司 Mobile terminal and electricity saving method

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
LINUX内核开发者: "linux-3.10.103.tar.gz pci driver", 《HTTP://CDN.KERNEL.ORG/PUB/LINUX/KERNEL/V3.0》 *
小小小小小杰: "linux dpm机制分析", 《HTTP://WWW.VOIDCN.COM/ARTICLE/P-TGKATOPF-PD.HTML》 *
朱诚,左辉: "利用KMDF驱动程序实现USB设备的功耗控制", 《计算机应用与软件》 *
蒋鹏,陈峰: "《基于冗余节点休眠和分阶段唤醒策略的传感器网络三维覆盖控制方法》", 《电子与信息学报》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111149089A (en) * 2017-09-21 2020-05-12 深圳传音通讯有限公司 Awakening method and awakening device of intelligent terminal and intelligent terminal
CN111149089B (en) * 2017-09-21 2023-11-03 深圳传音通讯有限公司 Wake-up method of smart terminal, smart terminal and computer-readable storage medium
CN119155202A (en) * 2024-11-12 2024-12-17 支付宝(杭州)信息技术有限公司 Method, device, equipment and medium for detecting calling terminal

Also Published As

Publication number Publication date
CN106569879B (en) 2020-02-11

Similar Documents

Publication Publication Date Title
CN107566650B (en) Unlock control method and related products
TWI494857B (en) Method for performing wake-up event management, and associated apparatus and associated computer program product
KR101503627B1 (en) Minimizing resource latency between processor application states in a portable computing device by scheduling resource set transitions
JP6491326B2 (en) Method and apparatus for executing an application program
CN103294545B (en) Method for switching dual operating systems and electronic device
US20150378782A1 (en) Scheduling of tasks on idle processors without context switching
CN104636169B (en) A kind of system wake-up method and device
KR20160110509A (en) Syncronization of interrupt processing to reduce power consumption
CN105940375B (en) Dynamic reassignment for multi-OS devices
CN107003891A (en) Virtual machine switching method, device, electronic equipment and computer program product
EP3134805B1 (en) Latency-based power mode units for controlling power modes of processor cores, and related methods and systems
CN105264970A (en) Method, device and mobile terminal for reducing power consumption
CN102957806A (en) Method and device for restarting mobile phone
CN106569879B (en) Method for awakening peripheral and mobile terminal
US9612907B2 (en) Power efficient distribution and execution of tasks upon hardware fault with multiple processors
CN115495160B (en) ARM server, starting method and device thereof, and readable storage medium
WO2016122859A1 (en) Timer-based processing unit operational scaling employing timer resetting on idle process scheduling
CN103164223B (en) A method for realizing an alarm clock when an intelligent terminal is turned off, and the intelligent terminal
US9563931B2 (en) Control method and information processing device
CN104503856B (en) A kind of control method and device of embedded system
CN106528092A (en) System awakening method and apparatus
CN118819573A (en) Terminal device upgrade method, device, electronic device and storage medium
KR102453689B1 (en) Periodical process performing system and system on chip
TW201335761A (en) Method for switching dual operating systems and electronic device using the same
CN112673354B (en) System state detection method, system state device and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder