Summary of the invention
Yet for the palm PC of prior art, have following problem: when using palm PC, though the operation of battery-operated device, whether the electric quantity of power supply of periodically confirming battery below certain value, does not take other measure under dormant state.Therefore, continue to consume very a spot of electric weight, the electric quantity of power supply of last battery can drop to below the certain value eventually, thereby causes user data loss.
Therefore, even the invention provides the electric quantity of power supply that under dormant state, also can detect battery, guarantee the method for short stand-by time.
First feature of the present invention is: under dormant state, periodically detect the electric quantity of power supply of battery, when arriving the required charge value of the shortest stand-by time, Min. ground consumes the electric weight of peripheral device, forbids continuing to use palm PC.
Second feature of the present invention is: the function of first feature is to realize by the mode of utilizing the function that inner treater (Embedded Processor) loads, so the palm PC of other kind is suitable for too.
Realize by following three steps according to palm PC standby time guarantee method of the present invention: compare by the aggregate value (SRCNR+BCI) of customer requirements battery detecting time (BCI) when the present time (SRCNR) of the wakeup time (SRTAR) of RTAR memory storage and RCNR memory storage and the dormancy or with present time (SRCNR) comparison, change the wakeup time of system or the first step that wakes up at original wakeup time; Enter park mode, when the RTAR memory values is consistent with present time, the RTAR memory values is compared with above-mentioned wakeup time, if identical, second step that then enters normal operation mode from park mode; When above-mentioned comparative result is inequality, if the dump energy of battery supply can fully ensure the shortest stand-by time, then be returned to above-mentioned first step, if the dump energy of battery supply can only ensure the shortest stand-by time reluctantly, except that supplying with memory power, cut off the third step of all power supply supplies so with the data of preserving its storage.
As mentioned above, the present invention also can detect the electric quantity of power supply of battery under dormant state, to can guarantee the dump energy numerical value of the shortest stand-by time the time, except that supplying memory power with the data of preserving its storage, stop the supply of all other power supplys, thus user data loss when preventing that battery supply is exhausted.This is the good result that the present invention has.
Embodiment
The processing procedure of 1 pair of assurance stand-by time of the present invention is elaborated below with reference to accompanying drawings.
The present invention is that the characteristic of utilizing the central processing unit (CPU) be installed in general machine intimate to be had realizes.That is, the present invention utilizes (wake-up) function of waking up of real-time clock (RTC:Real Time Clock) to realize.No matter which kind of CPU is so long as generally provide the palm PC of notice (Notification) function to have this function, so be not to utilize particular series (for example: Intel) CPU could realize, utilizes other CPU also can realize.
Palm PC is when open mode, and battery-operated device drives, and judges whether power supply remains the required minimum amount of power of stand-by time is arranged.Change system over to park mode in case of necessity.
But under palm PC entered dormant state, above-mentioned battery-operated device did not move, so utilize real-time clock by the some cycles waken system.At this, it should be noted that not being to drive all OS drives battery-operated device, but confirm under the routine that is entering that once waking up whether waking the shortest stand-by time up detects.Only confirm just to change park mode again over to behind the battery information.
The reason of doing like this is: if the waking up of user's timing setting, then normal open system.But just when dormancy, under situation about waking up for the shortest stand-by time of detection, the user is familiar with less than this fact, and then can avoid confusion.
Below, under the park mode, the periodic wakeup processing procedure of carrying out for the shortest stand-by time of detection describes with reference to Fig. 1.
The real-time clock relational storage of Yin Te (Intel) standard has RTAR storer and RCNR storer.Above-mentioned RTAR storer is an alarm memory, has set the time waken system of storage by the user.In addition, RCNR memory stores present time, the time of continuing updated stored.Under the park mode, the moment of the value unanimity of above-mentioned two storer RTAR, RCNR, system is waken up, and carries out necessary operation.
At this, when system was in park mode, the electric quantity of power supply testing process of battery was as follows:
At first, system is stored in time of waken system in the above-mentioned RTAR storer (S1) before entering park mode.
Then, the wakeup time that is stored in above-mentioned RTAR storer by customer requirements be stored in the present time of RCNR storer and just the aggregate value in battery detecting time of dormancy compare (S2).The reason that need compare like this is: entering the preceding above-mentioned wakeup time of park mode is the warning numerical value that the user sets in advance, if this numerical value is in the total numerical value of above-mentioned present time and battery detecting time, the alarm condition of user's setting can keep in the same old way so, can utilize this wakeup time to revive from dormant state.
In the above-mentioned comparative result, if above-mentioned wakeup time greater than above-mentioned total numerical value, is set at this total numerical value the storing value of RTAR storer so, the battery detecting time shifts to an earlier date a little, so the user is unaware of from dormancy revive (S3).Yet, in the above-mentioned comparative result, if distinguish that above-mentioned wakeup time is less than above-mentioned total numerical value, so wakeup time and above-mentioned present time are compared, if distinguish when wakeup time is smaller, as mentioned above, aggregate value is set at the storing value of RTAR storer, detect by the battery detecting time (BCI) from present moment, revive then, detect the dump energy (S4, S5) of power supply.
Yet, in the comparative result in above-mentioned steps S4, if when distinguishing above-mentioned waking up greater than above-mentioned present time, this is equivalent to wakeup time at present time with add up to situation between the numerical value.Therefore, in this case, above-mentioned wakeup time is logined at above-mentioned RTAR storer.Press the dump energy (S6) of the time detecting battery supply of user's request.After this, enter dormant state, when memory values was consistent with present time, central processing unit made its time-out, and relatively whether the RTAR memory values is identical with above-mentioned wakeup time.If distinguish that comparative result is identical, then break away from dormant state and enter normal operation mode (S7 to S10).
But, in above-mentioned comparative result, if distinguish when above-mentioned RTAR memory values and above-mentioned wakeup time are inequality, if the battery supply residual electric quantity can fully guarantee the shortest stand-by time, then be returned to above-mentioned steps S2, carry out the conventional sense (S11) of the dump energy of above-mentioned battery supply repeatedly.
Yet, when the dump energy numerical value of above-mentioned battery supply can only guarantee the shortest stand-by time reluctantly, for preserve memory stores (for example: data SDRAM), only continue to supply with this power supply, stop other all power supplys and supply with.