CN1248089C - Hand held apparatus having sleep function and operating method thereof - Google Patents
Hand held apparatus having sleep function and operating method thereof Download PDFInfo
- Publication number
- CN1248089C CN1248089C CN 02154870 CN02154870A CN1248089C CN 1248089 C CN1248089 C CN 1248089C CN 02154870 CN02154870 CN 02154870 CN 02154870 A CN02154870 A CN 02154870A CN 1248089 C CN1248089 C CN 1248089C
- Authority
- CN
- China
- Prior art keywords
- handheld apparatus
- sleep mode
- dormancy
- processing module
- system information
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Power Sources (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The present invention relates to a hand-held device with a hibernation function, which comprises a hibernation triggering module, a hibernation label, a non-volatile memory and a processing module, wherein the hibernation triggering module is used for receiving a hibernation signal; the processing module responds to the hibernation signal, switches the hand-held device to a privileged mode, stores the system information of the hand-held device to the non-volatile memory, sets the hibernation label as a first value, and triggers a power supply circuit to causes the hand-held device to be shut down.
Description
Technical field
The present invention relates to a kind of handheld apparatus (Handheld Device) and method of operating thereof with sleep mode, and be particularly related to a kind of by a hardware extraction layer (HardwareAbstraction Layer who triggers by handheld apparatus, HAL) system information with handheld apparatus stores in the nonvolatile memory, thereby cause handheld apparatus to enter dormant state, with the actual handheld apparatus and the method for operating thereof of saving the power supply purpose that reach.
Background technology
Along with popularizing of mobile communication, handheld apparatus, (Personal Digital Assistant, PDA) grade all becomes one of necessity in most of people's lives as palmtop computer (Handheld PC), personal digital assistant.For existing handheld apparatus, when the user presses ON/OFF switch on the handheld apparatus, the handheld apparatus screen can be closed, and when the user presses ON/OFF switch on the handheld apparatus once more, the handheld apparatus screen can be opened again, and replys the preceding shown image information of demonstration shutdown.
In existing handheld apparatus, in fact and it doesn't matter real shutdown mode (Power-OffMode), when the user presses the ON/OFF switch, handheld apparatus appears to shutdown, yet, just enter standby mode (Standby Mode) in fact, and in fact handheld apparatus always all in consume system resources constantly.Therefore, if handheld apparatus puts and after a period of time of charging for a long time, handheld apparatus just can cause system break and data losses (Data Lost) because of power supply deficiency or power supply mistake (Power Failure).
At the problems referred to above, industrial community provides three kinds of modes to solve now.First kind of mode is to increase a reserve battery (Backup Battery) in handheld apparatus, yet, this kind solution only is to postpone to produce the time that data are lost, in the same manner, in case after reserve battery exhausted, handheld apparatus just can make system power supply interrupt losing with causing data because of same cause.The second way is kept key (Hold Key) for increase by one in handheld apparatus, and the user can keep key the battery of handheld apparatus is cut off fully to preserve power supply by pressing this, and right this measure also can cause data to lose.
The third mode is, in handheld apparatus, provide one to back up/return the application program (Application Software) of depositing (Backup/Restore), by this application program, system can back up user's related data, right its operation is quite loaded down with trivial details, use inconvenience, and the user needs to buy in addition memory card, increases user cost.In addition, when the user desired back to deposit and starts shooting, handheld apparatus can't directly return back to the mode of operation before the shutdown, and the user must operate related application again and carry out associative operation to continue.
Summary of the invention
In view of this, an object of the present invention is to provide a kind of hardware that triggers by handheld apparatus by the user and extract layer (Hardware Abstraction Layer, HAL) system information with handheld apparatus stores in the nonvolatile memory, and powered-down, thereby cause handheld apparatus to enter dormant state, save the handheld apparatus and the method for operating thereof of power supply with reality.
In addition, when another object of the present invention provides the user and is open at the power supply of handheld apparatus of dormant state once more, it can be deposited existing system information in the nonvolatile memory to return, and returns back to identical state before the handheld apparatus shutdown.
According to the handheld apparatus with sleep mode of the embodiment of the invention, comprise in order to a dormancy trigger module that receives a dormancy signal, a dormancy marker stores device that is used to store the dormancy mark, a nonvolatile memory, with a processing module.
Processing module response dormancy signal switches to privileged mode (PrivilegedMode) with handheld apparatus, the system information of storage handheld apparatus is to nonvolatile memory, and the dormancy mark is made as one first value, and triggers a power circuit and cause handheld apparatus shutdown.In addition, handheld apparatus also comprises a power switch, in order to receive a start signal, and processing module response start signal is checked the dormancy mark, if dormancy is labeled as first value, then the content in the nonvolatile memory is returned and deposit, and handheld apparatus is switched to user's pattern (User Mode).
Wherein, system information comprise register (On-chipRegister) data on the chip of storer (RAM) data, shadow memory (Video RAM) data, central processing unit and chipset of handheld apparatus, with programmable counter (Program Counter) data.
Method of operating according to the handheld apparatus with sleep mode of the embodiment of the invention at first, receives a dormancy signal.Then, response dormancy signal switches to privileged mode with a processing module with handheld apparatus, and the data of storage handheld apparatus and system configuration are to nonvolatile memory.Afterwards, a dormancy mark is made as one first value, and triggers a power circuit and cause handheld apparatus shutdown.In addition, when desire is started shooting, receive a start signal.Afterwards, response start signal is checked the dormancy mark with processing module.If dormancy is labeled as first value, then the content in the nonvolatile memory is returned and deposit, and handheld apparatus is switched to user's pattern.
Similarly, system information comprises register (On-chip Register) data and program counter data on the chip of memory data, shadow memory data, central processing unit and chipset of handheld apparatus.
The present invention has following advantage:
The first, the invention provides the sufficiently long stand-by time of handheld apparatus, prolong the service time of handheld apparatus really.
The second, the invention provides a kind of safe storage data of user in the function of handheld apparatus, user's data can not cause data or program to be lost because of situations such as power supply exhaust, and the user also need not to buy more extra devices such as expansion board.
The 3rd, the present invention compares with general backup/time program of depositing, and the user only needs by individual knob or clicking certain computer icon can carry out, and need not to plug any expansion board, and is very convenient in the operation.
The 4th, the present invention is performed on hardware and extracts layer, need not the support of handheld apparatus operating system, for the manufacturer of handheld apparatus, can provide better handheld apparatus function under the situation that does not improve relevant cost.
Description of drawings
For above-mentioned purpose of the present invention, feature and advantage can be become apparent, embodiment cited below particularly, and be described with reference to the accompanying drawings as follows:
Fig. 1 has shown the synoptic diagram according to the handheld apparatus with sleep mode of the embodiment of the invention.
Fig. 2 has shown the process flow diagram that enters dormant state according to the handheld apparatus of the embodiment of the invention.
Fig. 3 has shown the process flow diagram that leaves dormant state according to the handheld apparatus of the embodiment of the invention.
Fig. 4 A has shown a synoptic diagram that system information is stored into the embodiment of nonvolatile memory.
Fig. 4 B has shown a synoptic diagram that system information is stored into another embodiment of nonvolatile memory.
The reference numeral explanation
The 100-handheld apparatus; 101-dormancy trigger module;
The 102-power switch; The 103-processing module;
104-dormancy mark; The 105-system information;
The 106-nonvolatile memory; The 107-power circuit;
S201, S202 ..., the S209-operation steps;
S301, S302 ..., the S313-operation steps;
The 410-nonvolatile memory; 411-operating system read-only memory image;
The 412-idle space; The 420-storer;
The 421-form that makes an exception; 422-page form;
The dynamic storehouse of 423-; The 424-storage stack;
The 425-idle space; The special-purpose nonvolatile memory of 430-dormancy.
Embodiment
Fig. 1 has shown the system architecture according to the handheld apparatus with sleep mode of the embodiment of the invention.According to the handheld apparatus with sleep mode 100 of the embodiment of the invention have a dormancy trigger module 101, a power switch 102, a processing module 103, a dormancy mark 104, a system information 105, with a nonvolatile memory 106.
Fig. 2 has shown the operating process that enters dormant state according to the handheld apparatus of the embodiment of the invention.At first, at step S201, receive a dormancy signal by dormancy trigger module 101.Then, at step S202.The dormancy signal that processing module 103 responses are received switches to privileged mode with handheld apparatus 100, and processing module 103 can have the power of carrying out some authorized accesses at handheld apparatus 100 under privileged mode.
Then, at step S203, the content of processing module 103 stored programme counters (PC), then, at step S204, processing module 103 causes the interruption (Interrupt) of handheld apparatus 100 invalid.Be noted that the purpose of step S204 is that the system that keeps enters the security of the preceding data storage of dormant state, influences data recording program with the interruption of avoiding system or user.Afterwards, at step S205 to S207, processing module 103 is the system information 105 of handheld apparatus 100, stores nonvolatile memory 106 into as the data of register (on-chipregister) on the chip of memory data, shadow memory data, central processing unit (CPU) and chipset etc.
Afterwards, at step S208, processing module 103 is made as one first value with dormancy mark 104, as true value (True), expression handheld apparatus 100 is in dormant state, and at step S209, processing module 103 triggers a power circuit 107 and causes handheld apparatus 100 shutdown.At this moment, handheld apparatus 100 will enter dormant state, and power supply will be closed fully and do not consumed any system resource and power supply.
Fig. 3 shows the operating process of leaving dormant state according to the handheld apparatus of the embodiment of the invention.At first, at step S301, receive a start signal by power switch 102.Afterwards, at step S302, processing module 103 response start signals are checked dormancy mark 104.If the dormancy mark is not to be first value (True) ("No" of step S303), representing the reason of handheld apparatus 100 shutdown is not to be to enter dormant state, then at step S304, processing module 103 causes handheld apparatus 100 to be started shooting to operating system with normal mode.
And if dormancy is labeled as first value (True) ("Yes" of step S303), represent handheld apparatus 100 to enter dormant state, then at step S305, the related hardware of processing module 103 initialization handheld apparatus 100, and at step S306, processing module 103 causes the interruption of handheld apparatus 100 invalid.Then, at step S307 to S309, processing module 103 is returned register (On-Chip Register) data etc. on the chip of prior memory storing data, shadow memory data, central processing unit (CPU) and chipset to deposit by nonvolatile memory 106.Be noted that, it is data to be returned deposit to relevant hardware that data are returned the operation of depositing, return as memory data deposit to storer, the shadow memory data return deposit to shadow memory, in the register on central processing unit and the chipset register data Hui Cunzhi chip separately.
Afterwards, at step S310, processing module 103 is made as one second value with dormancy mark 104, as falsity (False), expression handheld apparatus 100 is not to be in dormant state, and at step S311, processing module 103 causes the system break of recovering handheld apparatus 100 effective.Then, at step S312, processing module is deposited programmable counter (PC) for 103 times, and at step S313, handheld apparatus 100 is switched back user's pattern, and the user can carry out access at handheld apparatus 100 under the access capability of user's pattern.
Be worth being noted that the system information actual conditions that store nonvolatile memory into can describe by following two examples in embodiments of the present invention.
Fig. 4 A has shown embodiment one synoptic diagram that system information is stored into nonvolatile memory.The example of Fig. 4 A is one with cost-oriented example.Wherein, nonvolatile memory 410 comprises an operating system read-only memory image (OS ROM Image) 411 and one idle space 412.In addition, comprise an exception form (Exception Table) 421, one page form (PageTable) 422, one dynamic storehouse (Dynamic Heap) 423, one storage stack (Storage Heap) 424 and one idle space (Free Space) 425 in the storer 420.
In this example, the data in the storer 420 will store the idle space 412 in the nonvolatile memory 410 into.Whether need whether to compress as for the data in the storer 420, then must decide on the size of data in the idle space 412 of nonvolatile memory 410 and the storer 420.If not idle space 412 sizes of volatile memory 410 greater than with storer 420 in size of data, then need not compress just and can directly store; Otherwise the data in the storer 420 must be compressed storage more earlier.Be noted that, if the data in the storer 420 are by the compression storage, then also must be when data are replied by corresponding gunzip.
Fig. 4 B has shown a synoptic diagram that system information is stored into another embodiment of nonvolatile memory.In Fig. 4 B, increased a dormancy special-purpose nonvolatile memory 430 identical in the handheld apparatus 100, the data of required storage when entering dormant state in order to storage handheld apparatus 100 with storer 420 sizes.When carrying out dormancy, processing module can directly store the data in the storer 420 in the special-purpose nonvolatile memory 430 of dormancy.
In this example, because the data in the storer 420 need not compressed just and can directly store, in the same manner, need not carry out corresponding gunzip during answer yet, therefore, integral body enters and leaves the time of dormant state and will power quickens.
Therefore, by handheld apparatus and the method for operating thereof with sleep mode provided by the present invention, can store in the nonvolatile memory by hardware extraction layer data and the system state that the user triggers by handheld apparatus handheld apparatus, and powered-down, thereby cause handheld apparatus to enter dormant state, save the power supply of handheld apparatus with reality.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; those of ordinary skill in the art; before not breaking away from the spirit and scope of the present invention, put; can do some changes and retouching, so the scope that protection scope of the present invention is looked accompanying Claim is as the criterion.
Claims (27)
1. handheld apparatus with sleep mode comprises:
One dormancy trigger module is in order to receive a dormancy signal;
One dormancy marker stores device is used to store described dormancy mark;
One nonvolatile memory; And
One processing module, it responds this dormancy signal this handheld apparatus is switched to a privileged mode, to this nonvolatile memory, this dormancy mark is made as one first value with the system information of storing this handheld apparatus, and triggers a power circuit and cause this handheld apparatus shutdown; With
One power switch, in order to receive one the start signal,
Wherein, this processing module also responds this start signal and checks this dormancy mark, and if this dormancy is labeled as this first value, it can return this system information in this nonvolatile memory and deposit, and this handheld apparatus is switched to user's pattern; With
Wherein, this processing module can be not during for this first value at this dormancy mark, causes this handheld apparatus to carry out normal boot-strap.
2. the handheld apparatus with sleep mode as claimed in claim 1, wherein this processing module can make the interruption of this handheld apparatus invalid.
3. the handheld apparatus with sleep mode as claimed in claim 1, wherein this processing module also comprises the hardware of this handheld apparatus of initialization.
4. the handheld apparatus with sleep mode as claimed in claim 1, wherein this processing module can return deposit this system information before, cause the interruption of this handheld apparatus invalid.
5. the handheld apparatus with sleep mode as claimed in claim 2, wherein this processing module also is included in back and deposits after this system information, causes the interruption of this handheld apparatus effective.
6. the handheld apparatus with sleep mode as claimed in claim 1, wherein this system information comprises the memory data of this handheld apparatus.
7. the handheld apparatus with sleep mode as claimed in claim 1, wherein this system information comprises the shadow memory data of this handheld apparatus.
8. the handheld apparatus with sleep mode as claimed in claim 1, wherein this system information comprises the data of the register on the chip of the central processing unit of this handheld apparatus or chipset.
9. the handheld apparatus with sleep mode as claimed in claim 1, wherein this system information comprises the program counter data of this handheld apparatus.
10. the handheld apparatus with sleep mode as claimed in claim 1, wherein this dormancy trigger module is a button that is arranged on this handheld apparatus.
11. the handheld apparatus with sleep mode as claimed in claim 1, wherein this dormancy trigger module is a software program.
12. the handheld apparatus with sleep mode as claimed in claim 1, wherein this nonvolatile memory is a flash memory or an Electrically Erasable Read Only Memory.
13. the handheld apparatus with sleep mode as claimed in claim 1, wherein this processing module is built the system core that places this handheld apparatus.
14. the method for operating with handheld apparatus of sleep mode comprises the following steps:
Receive a dormancy signal;
Respond this dormancy signal and this handheld apparatus is switched to a privileged mode with a processing module;
Store system information to a nonvolatile memory of this handheld apparatus;
One dormancy mark is made as one first value; And
Trigger a power circuit and cause this handheld apparatus shutdown; With
Receive a start signal to start this handheld apparatus, comprising:
Respond this start signal and check this dormancy mark with this processing module; And
If this dormancy is labeled as this first value, then this system information in this nonvolatile memory is returned and deposit, and this handheld apparatus is switched to user's pattern; With
If this dormancy mark is not to be this first value, then cause this handheld apparatus to carry out normal boot-strap with this processing module.
15. the method for operating with handheld apparatus of sleep mode as claimed in claim 14 also comprises with this processing module causing the interruption of this handheld apparatus invalid.
16. the method for operating with handheld apparatus of sleep mode as claimed in claim 14 also comprises the hardware with this this handheld apparatus of processing module initialization.
17. the method for operating with handheld apparatus of sleep mode as claimed in claim 14 also is included in back and deposits before this system information, causes the interruption of this handheld apparatus invalid with this processing module
18. the method for operating with handheld apparatus of sleep mode as claimed in claim 14 also is included in back and deposits after this system information, causes the interruption of this handheld apparatus effective with this processing module
19. the method for operating with handheld apparatus of sleep mode as claimed in claim 14, wherein this system information comprises the memory data of this handheld apparatus.
20. the method for operating with handheld apparatus of sleep mode as claimed in claim 14, wherein this system information comprises the shadow memory data of this handheld apparatus.
21. the method for operating with handheld apparatus of sleep mode as claimed in claim 14, wherein this system information comprises the register data on the chip of the central processing unit of this handheld apparatus and chipset.
22. the method for operating with handheld apparatus of sleep mode as claimed in claim 14, wherein this system information comprises the program counter data of this handheld apparatus.
23. the method for operating with handheld apparatus of sleep mode as claimed in claim 14, wherein this dormancy signal is to receive by a dormancy trigger module.
24. the method for operating with handheld apparatus of sleep mode as claimed in claim 23, wherein this dormancy trigger module is a button that is arranged on this handheld apparatus.
25. the method for operating with handheld apparatus of sleep mode as claimed in claim 23, wherein this dormancy trigger module is a software program.
26. the method for operating with handheld apparatus of sleep mode as claimed in claim 14, wherein this nonvolatile memory is a flash memory or an Electrically Erasable Read Only Memory.
27. the method for operating with handheld apparatus of sleep mode as claimed in claim 14, wherein this processing module is built a system core that places this handheld apparatus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 02154870 CN1248089C (en) | 2002-12-03 | 2002-12-03 | Hand held apparatus having sleep function and operating method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 02154870 CN1248089C (en) | 2002-12-03 | 2002-12-03 | Hand held apparatus having sleep function and operating method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1504859A CN1504859A (en) | 2004-06-16 |
CN1248089C true CN1248089C (en) | 2006-03-29 |
Family
ID=34235583
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 02154870 Expired - Fee Related CN1248089C (en) | 2002-12-03 | 2002-12-03 | Hand held apparatus having sleep function and operating method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1248089C (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005316855A (en) * | 2004-04-30 | 2005-11-10 | Toshiba Corp | Information processor, starting method thereof, and starting program thereof |
CN100339798C (en) * | 2005-01-21 | 2007-09-26 | 宏碁股份有限公司 | Sleep method and apparatus therefor |
US8914653B2 (en) | 2008-09-05 | 2014-12-16 | Hewlett-Packard Development Company, L.P. | Method and system for providing hybrid-shutdown and fast startup processes |
CN101710253B (en) * | 2009-11-25 | 2012-06-13 | 安凯(广州)微电子技术有限公司 | Deep-sleep method of embedded system |
CN102023898A (en) * | 2010-12-21 | 2011-04-20 | 中兴通讯股份有限公司 | Method and device for realizing hot plug of central processing unit (CPU) |
TWI461897B (en) * | 2011-11-16 | 2014-11-21 | Wistron Corp | Power control device and electronic device using the same |
CN103220008B (en) * | 2012-01-19 | 2015-12-09 | 宏碁股份有限公司 | Wireless communication apparatus |
CN104007669B (en) * | 2013-02-25 | 2016-11-23 | 日月光半导体制造股份有限公司 | Wireless communication module and electricity-saving control method thereof |
CN104216297A (en) * | 2013-05-30 | 2014-12-17 | 英业达科技有限公司 | False triggering prevention method and direct-current power supply unit applying same |
CN104765625B (en) * | 2014-01-08 | 2018-09-18 | 群联电子股份有限公司 | Suspend mode starts method, memorizer control circuit unit and storage device |
CN106775609A (en) * | 2015-11-19 | 2017-05-31 | 飞思卡尔半导体公司 | System and method for reducing dormancy and recovery time |
-
2002
- 2002-12-03 CN CN 02154870 patent/CN1248089C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1504859A (en) | 2004-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1248089C (en) | Hand held apparatus having sleep function and operating method thereof | |
US5943692A (en) | Mobile client computer system with flash memory management utilizing a virtual address map and variable length data | |
CN101710253B (en) | Deep-sleep method of embedded system | |
CN101218566B (en) | Method and system for facilitating fast wake-up of a flash memory system | |
CN106484472B (en) | Memory recovery method and terminal | |
CN103377009B (en) | Operational state data in management memory module | |
US8479031B2 (en) | System switching unit having a switch to switch on/off a channel for data interaction between a first system and the bus interface of a second system according to the operation state of the second system | |
US20080320203A1 (en) | Memory Management in a Computing Device | |
CN106970881B (en) | Hot and cold page tracking and compression recovery method based on large page | |
CN101065734A (en) | Storing system information in a low-latency persistent memory device upon transition to a lower-power state | |
CN102460384A (en) | Program, control method, and control device | |
JP2009525555A (en) | Reduce power consumption by disabling refresh of unused portions of DRAM during periods of device inactivity | |
CN101916201A (en) | Android-based mobile terminal cold-boot method and device | |
CN101179782A (en) | Data processing method and system of mobile terminal | |
CN113495799A (en) | Memory fault processing method and related equipment | |
CN102073600B (en) | Data backup method, flash memory controller and flash memory storage system | |
GB2406668A (en) | Memory management in a computing device | |
JP3253881B2 (en) | Computer system and hibernation control method in the system | |
CN102163151A (en) | Fast speed computer system power-on & power-off method | |
CN101616217A (en) | A kind of method and apparatus that shows key message | |
CN101403972A (en) | Memory card guiding method and device of embedded system | |
CN100339828C (en) | Method and device for realizing rapid start | |
CN102687113A (en) | Program, control method, and control device | |
CN118210741A (en) | Page exchange method, storage system and electronic equipment | |
CN117170872A (en) | Memory management method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20060329 Termination date: 20181203 |
|
CF01 | Termination of patent right due to non-payment of annual fee |