Summary of the invention
In view of this, purpose of the present invention is providing a kind of portable electron device and method for managing power supply thereof exactly, to reduce the power consumption of portable electron device when playing dynamic menu; In addition, portable electron device is got back to from power down mode in the holding state, and the reaction action of dynamic menu can improve.
According to one object of the present invention, a kind of method for managing power supply of portable electron device is proposed, the method comprises:
Start a frame updating timer, wherein the timing time limit of frame updating timer is the frame updating time;
Start a picture Displaying timer device, wherein the timing time limit of picture Displaying timer device is that a picture shows the time;
When the frame updating time expired, portable electron device carried out an image processing computing and shows the result of this image processing computing, and restarts the frame updating timer;
When the picture demonstration time expires, suspend the frame updating timer;
Wherein, when the frame updating timer was suspended, portable electron device did not carry out the image processing computing, to reduce the energy consumption of portable electron device.
According to one object of the present invention, a kind of method for managing power supply of portable electron device is proposed, wherein this portable electron device shows the image sequence of being made up of a plurality of frames, this method comprises:
When this portable electron device enters a holding state:
Start one and change frame timer, wherein the timing time limit of this replacing frame timer is a replacing frame time;
Start a picture Displaying timer device, wherein the timing time limit of this picture Displaying timer device is that a picture shows the time;
When this portable electron device is in this holding state:
When the replacing frame time expired, this portable electron device showed the frame in these frames, and restarts this replacing frame timer, to show these frames seriatim;
When the picture demonstration time expires, suspend and change frame timer, and enter a power down mode;
Wherein, when the replacing frame timer was suspended, this portable electron device was not handled the display action of image sequence, to reduce the energy consumption of this portable electron device.
According to one object of the present invention, a kind of portable electron device is proposed, this portable electron device comprises:
One memory stores a plurality of program command; And
One processor couples with memory, in order to carry out these program command, to carry out following at least action:
Start a frame updating timer, wherein the timing time limit of frame updating timer is the frame updating time;
Start a picture Displaying timer device, wherein the timing time limit of picture Displaying timer device is that a picture shows the time;
When the frame updating time expired, processor carried out an image processing computing showing the result of this image processing computing, and restarts the frame updating timer;
When the picture demonstration time expires, suspend the frame updating timer;
Wherein, when the frame updating timer was suspended, processor did not carry out the image processing computing, to reduce the energy consumption of this portable electron device.
For above-mentioned purpose of the present invention, feature and advantage can be become apparent, a preferred embodiment cited below particularly, and in conjunction with the accompanying drawings, carry out following detailed description:
Embodiment
The principle of the method for managing power supply of portable electron device of the present invention is the control range that the situation of the processing action of program that portable electron device is being carried out is included power management in, make portable electron device can save the more energy, and the processing action that therefrom improves program is resumed the reaction time after carrying out.
Above-mentioned principle can be illustrated by the sequential chart of Fig. 1.In Fig. 1, transverse axis is a time shaft, and the solid arrow on the time shaft is represented respectively and put institute's event sometime, as incident 110,112,114 and 120.And dotted arrow is represented respectively when using method for managing power supply of the present invention, can avoid event (as incident 130), and by this, portable electron device can be saved the more energy.In this example, portable electron device when for example being standby, shows the animation of being made up of a plurality of frames (frames) under certain default situation.
By Fig. 1, at time point t
1The time, portable electron device enters a holding state, at this moment, starts one and changes frame timer, and start a picture Displaying timer device, and the timing time limit of wherein changing frame timer is a replacing frame time T
A, and the timing time limit of picture Displaying timer device is a picture demonstration time T
BAfterwards, portable electron device enters one and waits for state-event.That is to say that portable electron device is waited for the generation of variety of event, to respond.
When portable electron device is in such waiting event state, can handle different actions according to various situations.When changing frame time T
AWhen expiring, shown in incident 120, this portable electron device shows in these frames continuously, and restarts this and change frame timer, to show these frames seriatim; So, portable electron device can show the animation that these frames are formed.When picture shows time T
BWhen expiring (when incident 112 takes place), at time point t
2The time, to change frame timer and be suspended (suspend), portable electron device enters a power down mode.Wherein, portable electron device is as adopting LCD, and this portable electron device can be turned off a corresponding backlight, to save the energy.Certainly, if portable electron device adopts other display without backlight, just can consider this problem.
When portable electron device is in power down mode, also can handle different actions according to various situations.When this portable electron device receives an inputting interface incident (user-interface event) and need not change screen display (when incident 114 takes place), it for example is the inputting interface of portable electron device, as keyboard or touch control screen, when being touched, this portable electron device is in time point t
3, this changes frame timer to recover (resume), restarts this picture Displaying timer device, and enters such waiting event state.
When changing frame timer and be suspended, i.e. time point t
2To t
3Between, portable electron device is not handled the action that animation shows.In Fig. 1, from time point t
2To t
3Between dotted arrow (as incident 130) represent change frame time T this moment
AShould overdue incident, but be suspended because of changing frame timer, portable electron device is not handled the relevant action that shows another frame of these frames.So for example the processor of portable electron device can reduce energy consumption.
Above-mentioned when portable electron device receives the inputting interface incident and need not change screen display, recover to change frame timer and be meant, for example this changes frame timer at first to change frame time T
AThe time difference of the time a that is counted when being suspended is as the timing time limit, promptly with T
A-a recovers timing as the timing time limit; Work as T
AThe timing time limit of-a is changed frame timer promptly to change frame time T to after date
A(or other replacing frame time) is the timing time limit, continues timing, and the time a that is counted when wherein being suspended is less than changing frame time T
ASo, make to change when animation that frame timer is resumed and when being played once more, a period of time that will pass through between the adjacent picture has been condensed to T
A-a, so, as at time point t
4The next frame that is triggered and shows does not have the phenomenon that delay just shows too for a long time.So the processing action of animation program is resumed after the execution, the reaction time that animation shows is improved.
Fig. 2 and Fig. 3 are a flow chart, and with the preferred embodiment of explanation according to the method for managing power supply of portable electron device of the present invention, wherein portable electron device is a mobile phone.In this embodiment, mobile phone when for example being standby (idle), shows the animation of being made up of a plurality of frame under certain default situation.This mobile phone comprises a display screen and corresponding backlight, a processor carrying out an operating system, and user's inputting interface; Described operating system provides chained library, calls for example various functions of timer of various functions thereby generating for application software, or the various nextport hardware component NextPorts of control example such as backlight.In this embodiment, the power management of mobile phone is realized via power management software.
By Fig. 2, shown in step 210, mobile phone enters a holding state (idle state).When step 220, a power management module starts one and changes frame timer, and the timing time limit of wherein changing frame timer is a replacing frame time T
AIn step 230, this power management module starts a picture Displaying timer device, and wherein the timing time limit of this picture Displaying timer device is that a picture shows time T
BChange frame time T
AShow time T less than picture
B, T for example
A=1.0 seconds, T
B=15 to 30 seconds.In addition, changing frame timer and picture Displaying timer device can start simultaneously; And another kind of implementation method is: restart the replacing frame timer after starting picture Displaying timer device earlier.Afterwards, shown in step 240, power management module enters one and waits for state-event 240 (waiting event state).That is to say, mobile phone in holding state, the various events of wait-for-response.
When power management module is in such waiting event state 240, can handle different actions according to various situations.Shown in step 250, when changing frame time T
AWhen expiring, power management module makes portable electron device show one of these frames, shown in step 260.In step 270, power management module is restarted the replacing frame timer.So, portable electron device can show these frames seriatim, reaches the function that animation shows.Afterwards, this power management module keeps in such waiting event state 240.
In addition, shown in step 280, when this picture shows time T
BWhen expiring, power management module enters step 290, changes frame timer to suspend.In addition, step 290 can be embodied as with step 280 and takes place synchronously.Then, make this mobile phone enter a power down mode 300 (power saving state or suspendstate), i.e. step 300.The backlight that this power management module can turn off a mobile phone is to save power supply.
In addition, when power management module is in waiting event state 240, that is mobile phone is in holding state, the various events of wait-for-response.At this moment, mobile phone also can be handled different actions according to various situations, that is to say that the processor of mobile phone still can be carried out other work, operates to keep mobile phone, as receives external conversation or receive news in brief etc.When this mobile phone receives an inputting interface incident and need not change screen display, it for example is the inputting interface of mobile phone, when being touched as keyboard or touch control screen, this power management module can restart picture Displaying timer device, then, this power management module is got back to such waiting event state 240.On the other hand, when mobile phone receives an inputting interface incident and will change screen display, for example be the cellie when inputting interface is keyed in numeral or point selection function, picture must for example show numeral or literal etc. along with change.For this reason, power management module stops picture Displaying timer device and changes frame timer, with the demonstration of stops animation.Then, finish this power management module to enter other module to handle the incident that such meeting changes screen display.
Please refer to Fig. 3, when power management module is in this power down mode 300, also can handle different actions according to various situations.That is to say that the processor of mobile phone still can be carried out other work, operate, as receive external conversation or receive news in brief etc. to keep mobile phone.In step 310, when mobile phone receives an inputting interface incident and need not change screen display, for example be the inputting interface of mobile phone, when being touched as keyboard or touch control screen, this power management module can upgrade (refresh) picture, shown in step 320; Wherein, the backlight module that before is switched off can be opened again.Then, in step 330, change frame timer and be resumed, to show animation.After this, shown in step 340, power management module is restarted picture Displaying timer device.At last, power management module is got back to such waiting event state 240, that is to say that mobile phone leaves power down mode, is returned to holding state with the wait-for-response variety of event.On the other hand, in step 350, when mobile phone receives an inputting interface incident and will change screen display, for example be the cellie when inputting interface is keyed in numeral or point selection function, picture must for example show numeral or literal etc. along with change.For this reason, this power management module stops (stop) picture Displaying timer device in step 360, with the demonstration of stops animation.At last, finish power management module to enter other module to handle the incident that such meeting changes screen display, shown in step 370.
When this replacing frame timer was suspended, promptly before step 330 was performed, the processor of mobile phone was not handled the action that animation shows.So processor can be reduced energy consumption.
When above-mentioned mobile phone receives the inputting interface incident and need not change screen display, recover to change frame timer and be meant: for example change frame timer at first to change frame time T
AThe time difference of the time a that is counted when being suspended is as the timing time limit, promptly with T
A-a recovers timing as the timing time limit; Work as T
AThe timing time limit of-a is changed frame timer promptly to change frame time T to after date
A(or other replacing frame time) is the timing time limit, continues timing, and the time a that is counted when wherein being suspended is less than changing frame time T
ASo when animation was played once more owing to the replacing frame timer is resumed, a period of time that will pass through between the adjacent picture had been condensed to T
A-a, so, the time point t in Fig. 1 for example
4The next frame that is triggered and shows does not have the phenomenon that delay just shows too for a long time.Certainly, the mode that this power management module recovers to change frame timer also can otherwise be carried out except above-mentioned mode, for example changes frame timer and at first changes frame time T with this
A1/2 as the timing time limit, promptly with T
A/ 2 as the timing time limit, recovers timing; Work as T
A/ 2 timing time limit is changed frame timer promptly to change frame time T to after date
A(or other replacing frame time) is the timing time limit, continues timing.By this, the processing of animation program action is resumed after the execution, and the reaction time that animation shows can both be reduced.
In addition, when power management module is in such waiting event state 240, can handle different actions according to various situations.Except as the described replacing frame time of step 250 T
AOverdue incident reaches as the described picture of step 280 and shows time T
BBeyond the overdue incident, when above-mentioned mobile phone receives an inputting interface incident and need not change screen display, as neglectful when touching inputting interface, power management module can be restarted this picture Displaying timer device, recomputate and when enter power down mode, at this moment, screen can continue to show animation.In addition, when mobile phone received an inputting interface incident and will change screen display, for example being the cellie keyed in numeral or the point selection function from inputting interface, and picture must for example show numeral or literal etc. along with change.For this reason, power management module stops (stop) and changes frame timer and picture Displaying timer device, and then, power management module stops to carry out.After this, other module can be activated to handle the incident that such meeting changes screen display.
In another embodiment, join in the operating system of portable electron device or in the software program according to the method step of method for managing power supply of the present invention.When portable electron device under certain default situation, when for example being standby, start a picture Displaying timer device.When the picture Displaying timer device timing time limit expires, suspend other relevant frame update and show or touch the timer of image processing, to enter power down mode (shown in step 300), wherein but these relevant frame update show or touch the timer called after frame updating timer of image processing computing, and its timing time limit is the frame updating time.Because the frame updating timer can trigger portable electron device and handle action, when the frame updating timer was suspended, the processor of portable electron device was not handled the action that picture shows, energy is saved.For example, in power down mode, portable electron device can suspend the information that shows in the revolving horse lantern mode or need do the computing that image is handled, to reduce the energy that portable electron device is consumed in standby.
Moreover, portable electron device is under certain default situation, when for example being standby, demonstration is moved by the frame updating of the image sequence that a plurality of frames (frames) are formed, when for example being pictures, film, bulletin, also can use method for managing power supply of the present invention to save the more energy for portable electron device.
Please refer to Fig. 4, according to an embodiment of portable electron device of the present invention, portable electron device 400 comprises a processor 410 and a memory 420, and a picture Displaying timer device 460.Memory 420 stores a plurality of program command, and processor 410 then couples with memory 420, in order to carry out these program command, to carry out following action.Start picture Displaying timer device 460, wherein the timing time limit of picture Displaying timer device 460 is that a picture shows the time.When the picture Displaying timer device timing time limit expires, suspend other relevant frame update and show or touch the timer of image processing, as the frame updating timer 470 among Fig. 4, to enter power down mode (shown in step 300).
When if the frame updating time expires, processor 410 carries out an image processing computing and handles the result of computing with display image, and restarts the frame updating timer.If when the picture demonstration time expires, suspend this frame updating timer 470.In said process, when frame updating timer 470 was suspended, processor 410 did not carry out relative image processing computing, to reduce the energy consumption of portable electron device 400.Moreover portable electron device 400 also can comprise a backlight 490, and when frame updating timer 470 was suspended, processor 410 was turned off backlight 490, further saved the energy.And the disclosed method for managing power supply of each embodiment of the invention described above also can be realized in portable electron device shown in Figure 4.In addition, as shown in Figure 4, picture Displaying timer device 460 and frame updating timer 470 are realized with circuit.But in another embodiment, one of picture Displaying timer device 460 and frame updating timer 470 or both are realized in the mode of software instruction.It should be noted that both boot sequence of picture Displaying timer device 460 and frame updating timer 470, different priorities can simultaneously or be arranged.
Portable electron device for colour, as colored mobile phone, in the middle of one day, most time all is to be among the holding state, because the situation of the processing action (as above-mentioned animation action) of the program that the principle of method for managing power supply of the present invention is being carried out mobile phone is included the control range of power management in, make mobile phone can save the more energy, and the processing action that therefrom improves program is resumed the reaction time after carrying out.Relative, because known method for managing power supply is not considered the situation of the processing action of the program that mobile phone is being carried out, so method for managing power supply of the present invention can be saved the more energy by substitute's machine.
The above embodiment of the present invention discloses the method for managing power supply of a kind of portable electron device of the present invention, to reduce the power consumption of portable electron device when the playing animation; In addition, portable electron device is got back to from power down mode in the holding state, and the reaction time that image shows can improve, to produce smooth display effect.Thus, the stand-by time of portable electron device can increase, and the user can produce positive evaluation to this portable electron device.Therefore competitiveness of product can strengthen.
In sum; though the present invention with a preferred embodiment openly as above; yet it is not in order to limit the present invention; any those skilled in the art is under the situation that does not break away from the spirit and scope of the present invention; can make various variations and modification, so protection scope of the present invention is with appended being as the criterion that claim was limited.