CN101122814B - Method for reducing power consumption of apparatus because of being non-normally awaked - Google Patents

Method for reducing power consumption of apparatus because of being non-normally awaked Download PDF

Info

Publication number
CN101122814B
CN101122814B CN 200610030029 CN200610030029A CN101122814B CN 101122814 B CN101122814 B CN 101122814B CN 200610030029 CN200610030029 CN 200610030029 CN 200610030029 A CN200610030029 A CN 200610030029A CN 101122814 B CN101122814 B CN 101122814B
Authority
CN
China
Prior art keywords
wake
up
user
method
system
Prior art date
Application number
CN 200610030029
Other languages
Chinese (zh)
Other versions
CN101122814A (en
Inventor
周彬
Original Assignee
环达电脑(上海)有限公司
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 环达电脑(上海)有限公司 filed Critical 环达电脑(上海)有限公司
Priority to CN 200610030029 priority Critical patent/CN101122814B/en
Publication of CN101122814A publication Critical patent/CN101122814A/en
Application granted granted Critical
Publication of CN101122814B publication Critical patent/CN101122814B/en

Links

Abstract

A method for reducing power consumption caused by non-normal wake-up is applied to embedded equipment, which adopts Windows Mobile 5.0 operating system. The method provides a way which judges whether the equipment under dormancy is waken up normally or not. If the equipment is non-normally wakened up (for example, a user touches the keyboard inadvertently, etc), the method can make a judgment, thereby enabling the equipment under a dormant state continuously. Thus the method can prevent unnecessary power consumption and achieve the goal of power saving for the equipment.

Description

一种减少因设备被非正常唤醒而耗电的方法 A method of reducing abnormally due to device wakes and the power consumption

【技朮领域】 TECHNICAL FIELD

[0001] 本发明有关于一种减少嵌入式设备耗电的方法,且特别是有关于在Windows Mobile5. 0操作系统环境下,在系统处于休眠状态期间,减少设备因被非正常唤醒而耗电的方法。 [0001] There are embedded to a method of reducing the power consumption of the apparatus according to the present invention, and particularly, in the Windows Mobile5. 0 operating system environment, the system is in a sleep state during reducing equipment due to the irregular power wakeup Methods.

【背景技朮】 【Background technique】

[0002] 随着移动嵌入式设备使用的不断增加,应用于移动嵌入式设备上的智能操作系统也随之迅速发展。 [0002] With the increasing use of mobile embedded devices, used in intelligent embedded operating system on the mobile device also will be developed rapidly. Windows Mobile5.0是微软公司最新推出的针对移动嵌入式设备的操作系统,跟之前推出的数款面向移动设备的操作系统不同,Windows Mobile5. 0将整合智能手机(SmartPhone)、掌上电脑(PDA)、手机版掌上电脑(PDA Phone)等操作系统。 Windows Mobile5.0 is Microsoft's latest operating system for mobile embedded devices, different from before the introduction of several operating systems for mobile devices, Windows Mobile5. 0 will integrate smart phone (SmartPhone), Pocket PC (PDA) , Mobile Pocket PC (PDA phone) and other operating systems. 同时增加了更多的特性,比如增加了新版办公软件套装:Word Mobile, PowerPoint Mobile Viewer以及Excel Mobile ;加强了单手操作性能,更方便;优化了智能手机对WiFi的支持;加入支持Push-To-Talk和视频电话功能;加强了蓝牙传输支持;永久记忆所有的用户数据,掉电情况下也可以保持所有的数据;支持USB2. 0,使用Windows Mobile5. O系统的机型可直接与外置移动硬盘连接传输等。 While adding more features, such as adding a new version of Office software suite: Word Mobile, PowerPoint Mobile Viewer and Excel Mobile; enhanced one-handed operation performance, more convenient; optimized smartphone WiFi support; adding support for Push-To -Talk and video telephony features; enhanced Bluetooth support; permanent memory of all user data, power-down situations can also keep all the data;.. support USB2 0, use Windows Mobile5 O system models directly with external mobile hard disk connected to transmission.

[0003] Windows Mobile5. 0操作系统的电源管理模块管理设备上所有的驱动程序的电源状态和系统电源状态。 [0003] Windows Mobile5. 0 power status of all drivers on the operating system power management module managing apparatus and system power status. 在整个设备是由电池(Battery)供电的时候,设备会在用户无操作Iminute后进入休眠(Suspend)状态;在整个系统是由充电器(externalpower)供电的时候,设备会在5minutes后进入休眠状态,从而省电并延长电池使用时间。 In the entire apparatus by a battery (Battery) power supply when the device goes to sleep (the Suspend) state when no user operation Iminute; when the system is powered by the charger (externalpower), the device enters a sleep state after 5minutes thereby power and extend battery life.

[0004] 然而,设备在进入休眠(Suspend)状态之后,某些硬件的动作会将系统唤醒,如用户按下按键,插入SD/MMC卡,或者插入USB线等。 [0004] However, after the device goes to sleep (the Suspend) state, some hardware operation will wake up the system, such as the user presses the button, insert SD / MMC card or the like inserted into the USB cable. 如果某些动作不是用户所期待的,比如设备放在口袋里,无意中按下按键而导致设备被唤醒,整个设备只能在Iminute或5minutes 后重新进入休眠状态,整个期间的耗电对于用户来说没有任何意义。 If some action is not desired by the user, such as a device in a pocket accidentally pressed device wakes result, the entire apparatus can re-enter the sleep state after Iminute or 5minutes, power consumption for the entire period of the user say does not make sense.

[0005] 如上所述,Windows Mobile5. 0操作系统在拥有更多特性的同时还存在设备在休眠状态下被非正常唤醒后在Iminute或者5minutes后才能重新进入休眠状态,在此期间完全为不必要的耗电,使移动嵌入式设备使用时间缩短的问题。 [0005] As noted above, Windows Mobile5. 0 operating system at the same time have more features still exist after the device is non-normal wake Iminute or after 5minutes to re-enter a dormant state, totally unnecessary in the meantime is in sleep mode power consumption, mobile embedded devices use time is shortened.

[0006] 有此可鉴,实有必要提供一种减少因设备被非正常唤醒而耗电的方法,从而可减少设备不必要的耗电。 [0006] There can view this, there is a need to provide a method of reducing the abnormally due to power consumption and wake-up device, whereby the device can reduce unnecessary power consumption.

【发明内容】 [SUMMARY]

[0007] 鉴于这种问题,本发明的目的在于提供一种减少设备因被非正常唤醒而耗电的方法,该方法可在一定程度上减少设备不必要的耗电。 [0007] In view of such problems, an object of the present invention to provide a method for wake-up apparatus due to the power is abnormally reduced, which can reduce unnecessary power consumption of the device to some extent.

[0008] 为实现上述目的,本发明提供一种减少设备因被非正常唤醒而耗电的方法,该方法包括以下步骤: [0008] To achieve the above object, the present invention provides a method for wake-up apparatus due to the power is abnormally reduced, the method comprising the steps of:

[0009] a.驱动程序层在系统即将进入休眠状态之前做如下动作:调用相应API (Application Programming Interface)锁定屏幕并修改系统注册表记录屏幕状态(被锁定)。 . [0009] a driver layer before the system is about to enter the sleep state to do the following actions: call the appropriate API (Application Programming Interface) lock the screen and modifying the system registry recording screen state (locked).

[0010] b.系统在接收到唤醒事件后,驱动程序层在系统退出休眠状态之后做如下动作: 发出消息通知应用程序层“系统正在退出休眠状态”。 . [0010] b in the system after receiving the wake-up event, the system driver layer after exiting the sleep state to do the acts of: issuing a message notification application layer system is "out of hibernation."

[0011] C.应用程序层在接收到驱动程序层的消息之后,判断该唤醒是否为用户所期待的,若为非正常唤醒,则设备重新进入休眠状态;若为用户所期待的唤醒,则设备转入正常工作状态。 [0011] C. Application layer after receiving the message the driver layer, the user determines whether the wakeup expected, if the non-normal wake, the device re-enters the sleep state; if the wake-up desired by the user, then The device switches to normal working condition.

[0012] 更具体地,步骤c中判断该唤醒是否为用户所期待的唤醒的方法为:设备被唤醒之后,接下来的5秒内应用程序层每隔200毫秒查询一次注册表中”Lock”的状态(共计查询25次),如果在此5秒内用户把屏幕解除锁定(“Lock”= 0),则此唤醒为用户所期待的唤醒;如果5秒内用户没有把屏幕解除锁定,则此唤醒为非正常唤醒。 [0012] More specifically, in step c is determined whether the wakeup wakeup method desired by the user is as follows: After the device wakes up, the next 5 seconds every 200 milliseconds, the application queries the layer registry "Lock" status (total query 25 times), if during this 5 seconds the user to screen unlock ( "lock" = 0), then this wake-up users expect wake up; if within five seconds the user is not the screen is unlocked, then this non-normal wake wake.

[0013] 如果移动嵌入式设备最小的休眠超时(Suspend Timeout)时间设定为30SeCOndS,本发明所提供的方法可以减少83. 3%的非正常耗电;本发明所提供的方法为纯软件方式控制硬件设备的行为,无需增加任何硬件成本。 [0013] If the mobile device embedded minimum sleep timeout (Suspend Timeout) time is set to 30SeCOndS, the method provided by the present invention can be reduced 83.3% of non-normal power; the present invention provides a method for pure software control the behavior of hardware devices, without any additional hardware costs.

[0014] 为使对本发明的技术特征及所达成的功效有更进一步的了解与认识,配合附图详细的说明如下。 [0014] In order to have a further understanding and awareness of technical features and effects of the present invention reached, the following detailed description with accompanying drawings.

[0015]【附图说明】 [0015] BRIEF DESCRIPTION

[0016] 图1为系统在进入休眠状态之前驱动程序层的动作流程图; [0016] FIG. 1 is a system drive layer operation program before entering the sleep state flowchart;

[0017] 图2为系统在退出休眠状态之后驱动程序层的动作流程图; [0017] FIG. 2 is a system flowchart after exiting the sleep state of operation of the driver layer;

[0018] 图3所示为系统被唤醒前后本方法的工作流程图。 [0018] Figure 3 is a flowchart of the system wakes up before and after the method.

[0019]【具体实施方式】 [0019] DETAILED DESCRIPTION OF THE INVENTION

[0020] 请参阅图1所示,为系统在进入休眠状态之前驱动程序层的动作流程图,其包括以下步骤: [0020] Please refer to FIG. 1, the system driver layer before going to sleep operation flowchart, comprising the steps of:

[0021] 步骤101,驱动程序层被通知设备即将进入休眠状态; [0021] Step 101, the notification device driver layer is to be sleeping;

[0022] 步骤102,调用如下API锁定屏幕: [0022] Step 102, the lock screen API call is the following:

[0023] keybd_event (VK_F22,0,KEYEVENTF_SILENT, 0) [0023] keybd_event (VK_F22,0, KEYEVENTF_SILENT, 0)

[0024] 同时操作系统修改相应注册表项来记录屏幕状态(被锁定),如下: [0024] Also modify the operating system registry entries corresponding to the recording screen state (locked), as follows:

[0025] [HKEY_MACHINE\System\State] [0025] [HKEY_MACHINE \ System \ State]

[0026] "Lock,,= dword :2 [0026] "Lock ,, = dword: 2

[0027] 然后设备进入休眠状态。 [0027] The device then goes to sleep.

[0028] 请参阅图2所示,为系统在退出休眠状态之后驱动程序层的动作流程图,其包括以下步骤: [0028] Please refer to FIG. 2, for the system driver layer after an operation flowchart out of hibernation, comprising the steps of:

[0029] 步骤201,驱动程序层被通知设备即将被唤醒; [0029] Step 201, the device driver layer is informed about to be awakened;

[0030] 步骤202,调用API (Application Programming Interface) SetEvent 通知应用程序层设备即将被唤醒。 [0030] Step 202, calls the API (Application Programming Interface) SetEvent notify the application layer of the device is about to wake up.

[0031] 然后设备进入唤醒状态。 [0031] The device then enters the awake state.

[0032] 请参阅图3所示,为系统被唤醒前后本方法的工作流程图,其包括以下步骤: [0032] Please refer to FIG. 3, a flowchart of the process for the system before and after being awakened, which comprises the steps of:

[0033] 步骤301,设备在唤醒状态下等待驱动程序层事件; [0033] Step 301, the device driver waits in the awake state level event;

[0034] 步骤302,判断应用程序层是否接收到驱动程序层的通知,若收到,则执行步骤303,若没有收到,则返回去执行步骤301 ;[0035] 步骤303,判断设备被唤醒时间是否超过5秒种(也即判断查询次数是否超过25 次),若超过,则执行步骤307,若没有超过,则执行步骤304 ; [0034] Step 302, the application layer determines whether a notification driver layer, if received, step 303 is performed, if not received, then returns to step 301; [0035] Step 303, determining device wakes if more than 5 seconds (i.e., determines whether the number of queries exceeds 25), if exceeded, step 307 is performed, if not exceeded, step 304 is performed;

[0036] 步骤304,应用程序层每隔200毫秒查询一次系统注册表项” Lock”的值; [0036] Step 304, the application layer once every other value "Lock" system registry key inquiry 200 ms;

[0037] 步骤305,判断系统注册表中” Lock”的值是否为0,若为0,则执行步骤306,若不为0,则返回执行步骤303; [0037] Step 305, the system determines the registry value "Lock" is 0, if it is 0, step 306 is executed, not 0, return to step 303;

[0038] 步骤306,设备返回到正常工作模式。 [0038] Step 306, the device returns to normal operation.

[0039] 步骤307,判断系统注册表中” Lock”的值是否为2,若为2,则执行步骤308,若不为2,则返回执行步骤301 ; [0039] Step 307, the system determines the registry value "Lock" is two or, if it is 2, a step 308 is executed, if 2, returns to step 301;

[0040] 步骤308,应用程序层调用如下API [0040] Step 308, the application layer API call is the following

[0041] SetSystemPowerState (NULL, POWER_STATE_SUPEND, P0WER_F0RCE)使设备再次转入休眠状态。 [0041] SetSystemPowerState (NULL, POWER_STATE_SUPEND, P0WER_F0RCE) make the device go to sleep again.

[0042] 本发明提供一种减少因设备被非正常唤醒而耗电的方法与现有技术相比,具有以下积极效果: [0042] The present invention provides a method of reducing the abnormally due to wake up the device and the power consumption compared with the prior art has the following positive effects:

[0043] 1 :可以避免设备不必要的耗电,延长设备的使用时间。 [0043] 1: Device avoid unnecessary power consumption and extend the time of the device.

[0044] 2:成本低,纯软件的方法控制硬件设备行为,无需增加任何硬件成本。 [0044] 2: Low-cost, software-hardware method of controlling behavior, without any additional hardware costs.

Claims (2)

  1. 一种减少设备因被非正常唤醒而耗电的方法,其特征在于:该方法包括如下步骤:a.驱动程序层在系统即将进入休眠状态之前做如下动作:调用相应API锁定屏幕并修改系统注册表记录屏幕状态为锁定;b.系统在接收到唤醒事件后,驱动程序层在系统退出休眠状态之后做如下动作:发出消息通知应用程序层“系统正在退出休眠状态”;c.应用程序层在接收到驱动程序层的消息之后,判断该唤醒是否为用户所期待的,若为非正常唤醒,则设备重新进入休眠状态;若为用户所期待的唤醒,则设备转入正常工作状态,其中,判断该唤醒是否为用户所期待的唤醒的具体方法为:判断用户在5秒内是否将屏幕解除锁定,若是,则此唤醒为用户所期待的唤醒,否则,此唤醒为非正常唤醒。 A method for wake-up apparatus due to the power is abnormally reduced, characterized in that: the method comprising the steps of:. A driver level before the system is about to enter the sleep state to do the following actions: call the appropriate API system registration and modify the lock screen table record screen state lock; B system after receiving the wake-up event, the driver layer after the system exits the sleep state to do the following actions: issue a message notification application layer system is "out of hibernation"; C application layer. after receiving the message the driver layer, the user determines whether the wakeup expected, if the non-normal wake, the device re-enters the sleep state; if it is desired by the user wake, the device proceeds to normal operation, wherein, the specific method for the user to determine whether the wake expect to wake up to: determine whether the user is within five seconds to unlock the screen, and if so, this is a wake-up users expect wake up, otherwise, this non-normal wake wake.
  2. 2.如权利要求1所述的减少设备因被非正常唤醒而耗电的方法,其特征在于:在5秒内应用程序层每隔200毫秒查询一次注册表中”锁定”的状态,如果在此5秒内用户把屏幕解除锁定,则此唤醒为用户所期待的唤醒;如果5秒内用户没有把屏幕解除锁定,则此唤醒为非正常唤醒。 2. The method of claim 1 reducing apparatus is abnormal due to wake-up and power as claimed in claim wherein: the application layer 5 seconds every 200 milliseconds status queries the registry "locked", if the this user within five seconds to unlock the screen, then the user would expect to wake up wake up; 5 seconds if the user does not unlock the screen, this is abnormal wake wake.
CN 200610030029 2006-08-11 2006-08-11 Method for reducing power consumption of apparatus because of being non-normally awaked CN101122814B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610030029 CN101122814B (en) 2006-08-11 2006-08-11 Method for reducing power consumption of apparatus because of being non-normally awaked

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610030029 CN101122814B (en) 2006-08-11 2006-08-11 Method for reducing power consumption of apparatus because of being non-normally awaked

Publications (2)

Publication Number Publication Date
CN101122814A CN101122814A (en) 2008-02-13
CN101122814B true CN101122814B (en) 2010-12-22

Family

ID=39085166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610030029 CN101122814B (en) 2006-08-11 2006-08-11 Method for reducing power consumption of apparatus because of being non-normally awaked

Country Status (1)

Country Link
CN (1) CN101122814B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI494857B (en) * 2013-01-09 2015-08-01 Htc Corp Method for performing wake-up event management, and associated apparatus and associated computer program product

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984410A (en) * 2014-04-01 2014-08-13 联想(北京)有限公司 Information processing method and electronic equipment
CN103941839A (en) * 2014-04-08 2014-07-23 江苏惠通集团有限责任公司 Method and device for awakening electronic device
CN104239132B (en) * 2014-09-16 2016-10-05 努比亚技术有限公司 A kind of wake up the method for alignment, device and terminal up
CN106648027A (en) * 2016-12-01 2017-05-10 深圳市金立通信设备有限公司 Screen control method and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1368830A (en) 2001-02-02 2002-09-11 王国起 Mobile telephone able to save battery and prevent radiation and mobile communication system
CN1459718A (en) 2002-05-23 2003-12-03 联想(北京)有限公司 Method of activating hand held information equipment button
EP1542118A1 (en) 2003-12-10 2005-06-15 Samsung Electronics Co., Ltd. Hybrid mobile terminal and method for controlling the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1368830A (en) 2001-02-02 2002-09-11 王国起 Mobile telephone able to save battery and prevent radiation and mobile communication system
CN1459718A (en) 2002-05-23 2003-12-03 联想(北京)有限公司 Method of activating hand held information equipment button
EP1542118A1 (en) 2003-12-10 2005-06-15 Samsung Electronics Co., Ltd. Hybrid mobile terminal and method for controlling the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI494857B (en) * 2013-01-09 2015-08-01 Htc Corp Method for performing wake-up event management, and associated apparatus and associated computer program product

Also Published As

Publication number Publication date
CN101122814A (en) 2008-02-13

Similar Documents

Publication Publication Date Title
US6711691B1 (en) Power management for computer systems
CN100403210C (en) Method and system for auxiliary processing of information for a computing device
CN101598969B (en) Platform power management based on latency guidance
CN101243374B (en) Improved charging of mobile devices
US9268384B2 (en) Conserving power using predictive modelling and signaling
KR20140027875A (en) An ultra low power apparatus and method to wake up a main processor
JP3803418B2 (en) Method for managing power of a computer system and the computer system
JP3688603B2 (en) Computer system and standby mode control method thereof
US5721934A (en) Retrofit external power saving system and method for use
JP2005508041A (en) Selective suspend for bus devices
EP1228413B1 (en) Sleep state transitioning
CN100576147C (en) Non main CPU/OS based operational environment
US8839016B2 (en) USB self-idling techniques
US20030051177A1 (en) Method and apparatus for system power control through sensing peripheral power consumption
US5832283A (en) Method and apparatus for providing unattended on-demand availability of a computer system
US7840793B2 (en) Method of fast booting for computer multimedia playing from standby mode
EP1416381B1 (en) System and method for preserving state data of a personal computer in a standby state in the event of an ac power failure
US6865683B2 (en) System and method for powering down a mobile device
DE60128396T2 (en) Computer peripheral device which remains open when the operations of the centralized processor will be suspended
US20070140199A1 (en) Power saving in multi-processor device
US5905900A (en) Mobile client computer and power management architecture
KR101281354B1 (en) Universal serial bus (usb) remote wakeup
KR100229575B1 (en) Information processing system
US20060053311A1 (en) Context based power management
US7689850B2 (en) System and method for adaptive information handling system power management

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted
C17 Cessation of patent right