Method and device for waking up hardware equipment

A hardware device and hardware technology, applied in the computer field, can solve problems such as serious power consumption, and achieve the effect of reducing serious power consumption and improving standby time.

Active Publication Date: 2013-07-24
XIAOMI INC
View PDF5 Cites 33 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to solve the problem of severe power consumption caused by frequent and disorderly wake-up of hardware devices, the embodiment of the present invention provides a method and device for waking up hardware devices

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for waking up hardware equipment
  • Method and device for waking up hardware equipment
  • Method and device for waking up hardware equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] An embodiment of the present invention provides a method for waking up a hardware device, see figure 1 , the method flow includes:

[0025] 101: Receive a wake-up request for preset hardware sent by an application, where the wake-up request at least carries the wake-up time specified by the application;

[0026] 102: Determine whether the wake-up time needs to be delayed according to the wake-up time and a preset delayed wake-up period;

[0027] 103: When the wake-up time needs to be delayed, determine a delayed wake-up time for the preset hardware according to the wake-up time and the preset delayed wake-up period, and wake up the preset hardware according to the delayed wake-up time hardware.

[0028] Wherein, the hardware device is one or more of a central processing unit CPU, a wireless fidelity Wifi module, and a global positioning system GPS module.

[0029] In the embodiment of the present invention, the wake-up delay processing is performed for the applicatio...

Embodiment 2

[0031] An embodiment of the present invention provides a method for waking up a hardware device, see figure 2 .

[0032] It should be noted that, in the embodiment of the present invention, a process of calling a CPU (Central Processing Unit, central processing unit) by an application in an Android (Android) system is taken as an example to describe a method for waking up a hardware device.

[0033] When the application wakes up the CPU in the dormant state, it sends an AlarmManager message to inform the system when to wake up the CPU. Among them, AlarmManager is an interface for timing operation management provided to upper-layer applications. Applications can set single and repeated timing wake-up operations by calling the set and setRepeating interfaces of AlarmManager. The system will wake up the CPU after the time set by the application arrives. Pre-customized actions.

[0034] In the embodiment of the present invention, the application calls the set interface of the A...

Embodiment 3

[0062] An embodiment of the present invention provides a method for waking up a hardware device, see image 3 .

[0063] It should be noted that some applications need to repeatedly wake up the CPU to perform specific operations. In the embodiment of the present invention, the application calls the setRepeating interface of the AlarmManager to inform the system when to wake up the CPU, and periodically wakes up the CPU every time a periodic wake-up time arrives, wherein the request message also carries the application identification, That is uid. Further, the content of the message is: AlarmManager.setRepeating(int type, long triggerAtMillis, long intervalMillis, PendingIntent operation), where the parameter type is the time type, triggerAtMillis is the set wake-up time, intervalMillis is the periodic wake-up time interval, operation The operation to be performed after the timeout.

[0064] Further, some steps in this embodiment of the present invention are the same as thos...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and device for waking up hardware equipment, which belong to the technical field of computers. The method comprises the following steps of: receiving a wakeup request, transmitted by an application, on preset hardware, wherein the wakeup request at least carries wakeup time specified by the application; determining whether the wakeup time is required to be delayed or not according to the wakeup time and a preset wakeup delay period; and when the wakeup time is required to be delayed, determining the wakeup delay time of the preset hardware according to the wakeup time and the preset wakeup delay period, and waking up the preset hardware according to the wakeup delay time. According to the method and the device, wakeup delay processing is performed on the application, needing to delay the wakeup time, through the wakeup time specified in the wakeup request of the application and the preset wakeup delay period, so that the phenomenon of severe power consumption caused by frequent and unordered wakeup of the hardware equipment is reduced, and the stand-by time of a terminal is prolonged.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and device for waking up hardware equipment. Background technique [0002] With the development of terminal technologies, terminals have gradually become popular in people's lives. Due to the limited battery capacity of the terminal, power management has always been a relatively important focus in terminal development in order to allow the terminal to be used in a more durable standby state. [0003] The power management method in the prior art is: when the hardware device on the terminal is not called by an application, it will enter a dormant state, and the power consumption is extremely low at this time. When the application needs to call the hardware device, it sends a wake-up request to the hardware device that needs to be called, and informs the hardware device when it needs to wake up. The hardware device will switch from the sleep state to the working state at...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F1/32G06F9/48
CPCY02D10/00
Inventor 张扬孙鹏
Owner XIAOMI INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products